From 9bc27231d681cbc1bae6d8f199521d332c9c23f7 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 19 八月 2024 11:14:23 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/QuestionnaireTask.vue |  189 +++++++++++++++++++----------------------------
 1 files changed, 77 insertions(+), 112 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index 2a871f3..441b241 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -162,8 +162,10 @@
                     <el-checkbox
                       v-for="(item, index) in checkboxlist"
                       :key="index"
-                      :label="item"
-                    ></el-checkbox>
+                      :label="item.value"
+                    >
+                      {{ item.label }}</el-checkbox
+                    >
                   </el-checkbox-group>
                 </el-form-item>
               </el-form>
@@ -220,7 +222,6 @@
         }}</el-button>
         <el-button @click="resetForm('ruleForm')">閲嶇疆</el-button>
       </div>
-
       <!-- 浠诲姟璇︽儏 -->
       <div v-if="Editprogress == 2">
         <el-alert title="鍦ㄦ湰闃舵閫夋嫨瀹f暀鐥呬汉" type="success" effect="dark">
@@ -233,88 +234,6 @@
             <div class="examine-jic">
               <div class="jic-value">
                 <el-row :gutter="20">
-                  <!--鐢ㄦ埛鏁版嵁-->
-                  <!-- <el-form
-                    :model="topqueryParams"
-                    ref="queryForm"
-                    size="small"
-                    :inline="true"
-                    v-show="showSearch"
-                    label-width="98px"
-                  >
-                    <el-form-item label="鎮h�呭悕绉�">
-                      <el-input v-model="topqueryParams.name"></el-input>
-                    </el-form-item>
-
-                    <el-form-item label="鎮h�呰寖鍥�" prop="status">
-                      <el-select
-                        v-model="topqueryParams.topic"
-                        placeholder="璇烽�夋嫨"
-                      >
-                        <el-option
-                          v-for="item in taskoptions"
-                          :key="item.value"
-                          :label="item.label"
-                          :value="item.value"
-                        >
-                        </el-option>
-                      </el-select>
-                    </el-form-item>
-
-                    <el-form-item label="鎮h�呯姸鎬�" prop="status">
-                      <el-select
-                        v-model="topqueryParams.topic"
-                        placeholder="璇烽�夋嫨"
-                      >
-                        <el-option
-                          v-for="item in topicoptions"
-                          :key="item.value"
-                          :label="item.label"
-                          :value="item.value"
-                        >
-                        </el-option>
-                      </el-select>
-                    </el-form-item>
-                    <el-form-item label="闂嵎缁撴灉" prop="status">
-                      <el-select
-                        v-model="topqueryParams.topic"
-                        placeholder="璇烽�夋嫨"
-                      >
-                        <el-option
-                          v-for="item in topicoptions"
-                          :key="item.value"
-                          :label="item.label"
-                          :value="item.value"
-                        >
-                        </el-option>
-                      </el-select>
-                    </el-form-item>
-                    <el-form-item label="鎮h�呯數璇�">
-                      <el-input v-model="topqueryParams.name"></el-input>
-                    </el-form-item>
-                    <el-form-item>
-                      <el-button
-                        type="primary"
-                        icon="el-icon-search"
-                        size="medium"
-                        @click="handleQuery"
-                        >鎼滅储</el-button
-                      >
-                      <el-button
-                        icon="el-icon-refresh"
-                        size="medium"
-                        @click="resetQuery"
-                        >閲嶇疆</el-button
-                      >
-                      <el-button
-                        icon="el-icon-upload2"
-                        size="medium"
-                        type="warning"
-                        >褰撳墠鎮h�呬竴閿彂閫�</el-button
-                      >
-                    </el-form-item>
-                  </el-form>
-                  <el-divider></el-divider> -->
                   <el-row :gutter="10" class="mb8">
                     <el-col :span="1.5">
                       <el-select
@@ -408,29 +327,11 @@
               label-width="98px"
             >
               <el-form-item label="鎮h�呭悕绉帮細">
-                <el-input v-model="patientqueryParams.name"></el-input>
+                <el-input
+                  v-model="patientqueryParams.name"
+                  @keyup.enter.native="handleQuery"
+                ></el-input>
               </el-form-item>
-
-              <!-- <el-form-item label="灏辫瘖绉戝" prop="status">
-                <el-select
-                  v-model="patientqueryParams.topic"
-                  placeholder="璇烽�夋嫨"
-                >
-                  <el-option-group
-                    v-for="group in topicoptions[0].children"
-                    :key="group.deptName"
-                    :label="group.deptName"
-                  >
-                    <el-option
-                      v-for="item in group.children"
-                      :key="item.deptId"
-                      :label="item.deptName"
-                      :value="item.deptId"
-                    >
-                    </el-option>
-                  </el-option-group>
-                </el-select>
-              </el-form-item> -->
 
               <el-form-item>
                 <el-button
@@ -902,6 +803,7 @@
     this.id = this.$route.query.id;
     this.form.type = this.$route.query.type;
     this.form.typename = this.$route.query.typename;
+    this.form.serviceType = Number(this.$route.query.serviceType);
     this.listDept();
     this.Acquisitiontype();
     this.Getdetails();
@@ -946,7 +848,70 @@
       this.currenttype = this.$route.query.type;
       this.title = "闂嵎鍐呭鍒楄〃";
       this.tableLabel = this.tableLabelwj;
-      this.checkboxlist = ["鐭俊", "寰俊", "浜哄伐鐢佃瘽", "鏅鸿兘鏈哄櫒浜�"];
+      if (this.form.serviceType == 1) {
+        this.checkboxlist = [
+          {
+            value: "1",
+            label: "浜哄伐",
+          },
+
+          {
+            value: "2",
+            label: "绾歌川",
+          },
+        ];
+      } else if (this.form.serviceType == 6) {
+        this.checkboxlist = [
+          {
+            value: "3",
+            label: "鐢佃瘽",
+          },
+          {
+            value: "4",
+            label: "鐭俊",
+          },
+          {
+            value: "5",
+            label: "寰俊鍏紬鍙�",
+          },
+          {
+            value: "6",
+            label: "寰俊灏忕▼搴�",
+          },
+
+          {
+            value: "8",
+            label: "鏅鸿兘鏈哄櫒浜�",
+          },
+        ];
+      } else if (this.form.serviceType == 7) {
+        this.checkboxlist = [
+          {
+            value: "1",
+            label: "浜哄伐",
+          },
+          {
+            value: "2",
+            label: "绾歌川",
+          },
+          {
+            value: "3",
+            label: "鐢佃瘽",
+          },
+          {
+            value: "4",
+            label: "鐭俊",
+          },
+          {
+            value: "5",
+            label: "寰俊鍏紬鍙�",
+          },
+          {
+            value: "6",
+            label: "寰俊灏忕▼搴�",
+          },
+        ];
+      }
       getQtemplatelist(queryParams).then((response) => {
         this.userList = response.rows;
         this.total = response.total;
@@ -959,8 +924,8 @@
     },
     // 淇濆瓨
     submitForm(formName) {
-      // this.form.preachform = this.checkList.join(",");
-      this.formatFn(1);
+      this.form.preachform = this.checkList.join(",");
+
       if (!this.form.patTaskRelevances[0]) {
         this.$modal.msgError("璇烽�夋嫨鐥呬汉");
         return;
@@ -1180,7 +1145,7 @@
               ? this.form.patTaskRelevances
               : [];
             this.overallCase = this.form.patTaskRelevances.concat();
-            this.formatFn(2);
+            this.checkList = this.form.preachform.split(",");
             console.log(this.form.showDate, "this.form");
             this.daytime = this.form.showDate.split(",");
             if (this.form.showTimeMorn) {
@@ -1301,7 +1266,7 @@
     // 鏌ョ湅妯$増
     previewGo() {
       this.$router.push({
-        path: "/knowledge/templateku/configurat/",
+        path: "/knowledge/tpuconfigurat/",
         query: { id: this.previewid, task: true, data: this.form },
       });
     },

--
Gitblit v1.9.3