From 30e7ca11b36177cdaea2839aa5146c180ce53197 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 21 七月 2025 21:32:43 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/Missioncreation.vue |   99 +++++++++++++++++++++++++++----------------------
 1 files changed, 54 insertions(+), 45 deletions(-)

diff --git a/src/views/patient/propaganda/Missioncreation.vue b/src/views/patient/propaganda/Missioncreation.vue
index e50cc2b..5527139 100644
--- a/src/views/patient/propaganda/Missioncreation.vue
+++ b/src/views/patient/propaganda/Missioncreation.vue
@@ -390,7 +390,6 @@
                         icon="el-icon-upload2"
                         size="medium"
                         @click="handleImport"
-
                         >瀵煎叆</el-button
                       >
                     </el-col>
@@ -592,10 +591,12 @@
           <el-table-column prop="serial" label="鎮h�卛d"> </el-table-column>
           <el-table-column prop="name" label="濮撳悕"> </el-table-column>
           <el-table-column prop="sex" label="鎬у埆"> </el-table-column>
-          <el-table-column prop="idcardno" width="300" label="璇佷欢鍙风爜"> </el-table-column>
+          <el-table-column prop="idcardno" width="300" label="璇佷欢鍙风爜">
+          </el-table-column>
           <el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column>
-          <el-table-column prop="telcode" width="200" label="鑱旂郴鏂瑰紡"> </el-table-column>
-          <el-table-column prop="createTime"  width="200" label="鍒涘缓鏃ユ湡">
+          <el-table-column prop="telcode" width="200" label="鑱旂郴鏂瑰紡">
+          </el-table-column>
+          <el-table-column prop="createTime" width="200" label="鍒涘缓鏃ユ湡">
           </el-table-column>
         </el-table>
         <!-- <pagination
@@ -778,8 +779,8 @@
         { label: "韬唤璇�", width: "200", prop: "sfzh" },
         { label: "鎬у埆", width: "", prop: "sex" },
         { label: "骞撮緞", width: "", prop: "age" },
-        { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
-        { label: "涓绘不鍖荤敓", width: "", prop: "drname" },
+        // { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
+        // { label: "涓绘不鍖荤敓", width: "", prop: "drname" },
         { label: "绉戝", width: "240", prop: "dept" },
         { label: "鐥呭尯", width: "240", prop: "leavehospitaldistrictname" },
       ],
@@ -790,8 +791,8 @@
         { label: "韬唤璇�", width: "200", prop: "sfzh" },
         { label: "鎬у埆", width: "", prop: "sex" },
         { label: "骞撮緞", width: "", prop: "age" },
-        { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
-        { label: "涓绘不鍖荤敓", width: "", prop: "drname" },
+        // { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
+        // { label: "涓绘不鍖荤敓", width: "", prop: "drname" },
         { label: "绉戝", width: "180", prop: "deptName" },
         { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
       ],
@@ -817,7 +818,7 @@
         { label: "鐭俊", value: 4 },
         { label: "寰俊鍏紬", value: 5 },
         { label: "閽夐拤", value: 6 },
-        { label: "鏅鸿兘鏈哄櫒浜�", value: 7 },
+        // { label: "鏅鸿兘鏈哄櫒浜�", value: 7 },
       ],
       upload: {
         // 鏄惁鏄剧ず寮瑰嚭灞傦紙鐢ㄦ埛瀵煎叆锛�
@@ -921,7 +922,7 @@
         templatename: "",
         templateid: null,
         libtemplateid: null,
-        kcb: "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
+        kcb: "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
         jsy: "鐢熸椿涓婅鍔抽�哥粨鍚堬紝娉ㄦ剰浼戞伅鍜岃惀鍏伙紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
       },
       taskoptions: [
@@ -969,7 +970,7 @@
     this.belongDepts = store.getters.belongDepts;
     this.form.typename = this.$route.query.typename;
     this.form.serviceType = Number(this.$route.query.serviceType);
-    this.listDept();
+    // this.listDept();
     this.Acquisitiontype();
     this.Getdetails();
     this.getheLibraryAssort();
@@ -1042,10 +1043,10 @@
             label: "寰俊灏忕▼搴�",
           },
 
-          {
-            value: "8",
-            label: "鏅鸿兘鏈哄櫒浜�",
-          },
+          // {
+          //   value: "8",
+          //   label: "鏅鸿兘鏈哄櫒浜�",
+          // },
         ];
       } else if (this.form.serviceType == 8) {
         this.checkboxlist = [
@@ -1062,10 +1063,10 @@
             label: "寰俊灏忕▼搴�",
           },
 
-          {
-            value: "8",
-            label: "鏅鸿兘鏈哄櫒浜�",
-          },
+          // {
+          //   value: "8",
+          //   label: "鏅鸿兘鏈哄櫒浜�",
+          // },
           {
             value: "9",
             label: "閽夐拤",
@@ -1094,6 +1095,11 @@
         this.$modal.msgError("鏈�夋嫨妯℃澘");
         return;
       }
+      if (this.form.deptcode || this.form.leavehospitaldistrictcode) {
+      } else {
+        this.$modal.msgError("璇烽�夋嫨绉戝鎴栫梾鍖�");
+        return;
+      }
       const filteredArray = this.variableList.filter(
         (item) =>
           item.name !== "濮撳悕" && item.name !== "鐢佃瘽" && item.name !== "鍦板潃"
@@ -1104,7 +1110,7 @@
         this.form.isoperation = 2;
       } else {
         this.form.isoperation = 1;
-        this.form.sendState=1;
+        this.form.sendState = 1;
       }
       if (!this.form.type) {
         this.form.type = this.$route.query.type;
@@ -1196,8 +1202,8 @@
           { label: "韬唤璇�", width: "200", prop: "sfzh" },
           { label: "鎬у埆", width: "", prop: "sex" },
           { label: "骞撮緞", width: "", prop: "age" },
-          { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
-          { label: "鍖荤敓", width: "", prop: "drname" },
+          // { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
+          // { label: "鍖荤敓", width: "", prop: "drname" },
           { label: "绉戝", width: "180", prop: "dept" },
           { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
         ];
@@ -1256,7 +1262,7 @@
     handleExport() {},
 
     // 閫夋嫨鎮h�呰〃鏁版嵁
-    handleSelectionChange(selection,type) {
+    handleSelectionChange(selection, type) {
       console.log("澶氶�夋偅鑰�");
       this.SelectPatientslist = selection;
       this.multiple = !selection.length;
@@ -1271,8 +1277,8 @@
             item.sfzh = item.idcardno;
           }
           if (type) {
-            item.hospType=type
-          }else{
+            item.hospType = type;
+          } else {
             item.hospType = this.patientqueryParams.allhosp;
           }
           this.overallCase.push(item);
@@ -1350,8 +1356,8 @@
         templateid: null,
         libtemplateid: null,
         serviceType: Number(this.$route.query.serviceType),
-        kcb: "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�",
-        jsy: "鐢熸椿涓婅鍔抽�哥粨鍚堬紝娉ㄦ剰浼戞伅鍜岃惀鍏伙紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
+        kcb: "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�",
+        jsy: "鎰熻阿鎮ㄥ弬涓庢湰娆¢殢璁裤�傛偍鐨勫弽棣堝府鍔╂垜浠洿濂藉湴浜嗚В瀹濆疂鐨勯�傚簲鎯呭喌锛屽苟涓烘偍鎻愪緵鏇寸簿鍑嗙殑鎶ょ悊寤鸿涓庡仴搴锋寚瀵笺�傜鎮ㄥ拰瀹濆疂鍋ュ悍蹇箰",
       };
 
       if (this.id) {
@@ -1416,12 +1422,12 @@
       });
     },
     // 鑾峰彇绉戝鍒楄〃
-    listDept() {
-      listDept().then((res) => {
-        this.topicoptions = this.handleTree(res.data, "deptId");
-        console.log(this.topicoptions, "topicoptions");
-      });
-    },
+    // listDept() {
+    //   listDept().then((res) => {
+    //     this.topicoptions = this.handleTree(res.data, "deptId");
+    //     console.log(this.topicoptions, "topicoptions");
+    //   });
+    // },
     // 鏂板娲鹃�佹偅鑰�
     AddDispatchpatients() {
       // this.SelectPatientslist.forEach((item) => {
@@ -1520,16 +1526,19 @@
     previewFn() {
       this.Tasktemplate.id = null;
 
-      this.Tasktemplate.templateid = this.libId;
-      this.Tasktemplate.isoperation = 1;
-      TaskQuestioncomit(this.Tasktemplate).then((response) => {
-        console.log(response);
-        this.previewtf = false;
-        this.form.templateid = response.data;
-        this.form.libtemplateid = this.libId;
-        this.form.templatename = this.libName;
-        this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
-      });
+      this.form.templateid = this.libId;
+      this.form.templatename = this.libName;
+      this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
+      this.previewtf = false;
+
+      // this.Tasktemplate.isoperation = 1;
+      // TaskQuestioncomit(this.Tasktemplate).then((response) => {
+      //   console.log(response);
+      //   this.previewtf = false;
+      //   this.form.templateid = response.data;
+      //   this.form.libtemplateid = this.libId;
+      //   this.form.templatename = this.libName;
+      // });
     },
     // 澶勭悊鏈嶅姟褰㈠紡
     formatFn(type) {
@@ -1583,9 +1592,9 @@
         this.$refs.upload.submit();
         this.dractive++;
       } else if (this.dractive == 2) {
-        this.handleSelectionChange(this.uploadingData,4);
+        this.handleSelectionChange(this.uploadingData, 4);
         this.upload.open = false;
-        this.dractive = 1
+        this.dractive = 1;
       }
     },
 

--
Gitblit v1.9.3