WXL (wul)
2 天以前 ed9c3d2d0354d493209769f0013de98eb7e443e5
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -80,6 +80,15 @@
                    >
                  </el-radio-group>
                </el-form-item>
                <!-- <el-form-item label="服务形式">
                  <SortCheckbox
                    v-model="checkList"
                    :options="checkboxlist"
                    value-key="value"
                    label-key="label"
                    @change="checkSelectionChange"
                  />
                </el-form-item> -->
                <el-form-item label="执行周期" prop="longTask">
                  <el-radio-group v-model="form.longTask">
                    <el-radio :label="0">自定义周期</el-radio>
@@ -199,7 +208,7 @@
                </el-form-item>
                <el-form-item label="任务关联" prop="longTask">
                  <el-radio-group v-model="form.appltype">
                    <el-radio label="1">课题组关联</el-radio>
                    <el-radio label="1">科室关联</el-radio>
                    <el-radio label="2">病区关联</el-radio>
                    <el-radio label="3">疾病关联</el-radio>
                    <el-radio label="4">手术关联</el-radio>
@@ -207,7 +216,7 @@
                </el-form-item>
                <el-row v-if="form.appltype == 1">
                  <el-col :span="20"
                    ><el-form-item label="适用课题组" prop="region">
                    ><el-form-item label="适用科室" prop="region">
                      <el-select
                        v-model="deptcodesWards"
                        @remove-tag="removetag"
@@ -215,7 +224,7 @@
                        size="medium"
                        multiple
                        filterable
                        placeholder="请选择课题组"
                        placeholder="请选择科室"
                      >
                        <el-option
                          class="ruleFormaa"
@@ -432,8 +441,11 @@
            </div>
          </div>
        </div>
        <el-button type="success" @click="nextstep('ruleForm')">{{
          quote ? "立即创建" : "任务详情配置"
        <el-button type="primary" @click="nextstep('ruleForm')">{{
          quote ? "立即创建" : "派发患者配置"
        }}</el-button>
        <el-button type="success" @click="submitForm('ruleForm')">{{
          quote ? "立即创建" : "确认服务配置"
        }}</el-button>
        <el-button @click="resetForm('ruleForm')">重置</el-button>
      </div>
@@ -517,7 +529,7 @@
        </div>
        <el-button type="primary" @click="laststep()">上一步</el-button>
        <el-button type="success" @click="submitForm('ruleForm')">{{
          quote ? "立即创建" : "确认任务配置"
          quote ? "立即创建" : "确认服务配置"
        }}</el-button>
        <el-button @click="resetForm('ruleForm')">重置</el-button>
      </div>
@@ -911,8 +923,9 @@
  taskdiaggetlist,
  taskopergetlist,
} from "@/api/AiCentre/index";
import OptionalForm from "@/components/OptionalForm"; //正则组件
import OptionalForm from "@/components/OptionalForm"; //疾病添加组件
import SFtable from "@/components/SFtable"; //表格组件
import SortCheckbox from "@/components/SortCheckbox"; //表格组件
import { MessageBox } from "element-ui";
export default {
@@ -941,7 +954,7 @@
      previewtftype: 0, //预览情况0新模板预览1已选择模板修改
      dialogVisiblepatient: false, //添加患者弹框
      dialogVisiblepatientjb: false, //添加疾病弹框
      deptcodesWards: [], //课题组数据
      deptcodesWards: [], //科室数据
      leavehospitaldistrictcodes: [], //病区数据
      operationcodes: [], //手术数据
      illnesscodes: [], //疾病数据
@@ -971,7 +984,7 @@
        { label: "年龄", width: "", prop: "age" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
        { label: "课题组", width: "240", prop: "dept" },
        { label: "科室", width: "240", prop: "dept" },
        { label: "病区", width: "240", prop: "leavehospitaldistrictname" },
      ],
      // 患者表单
@@ -985,7 +998,7 @@
        { label: "出院天数", width: "", prop: "endDay" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
        { label: "课题组", width: "180", prop: "deptName" },
        { label: "科室", width: "180", prop: "deptName" },
        { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
      ],
@@ -1025,7 +1038,8 @@
        pageNum: 1, //
        pageSize: 10,
      },
      checkList: "",
      checkList: '',
      selectedOrder: [],
      deliverytopqueryParams: {
        pageNum: 1, //
        pageSize: 10,
@@ -1146,7 +1160,7 @@
        },
        {
          value: 1,
          label: "课题组患者",
          label: "科室患者",
        },
        {
          value: 2,
@@ -1155,14 +1169,14 @@
      ],
      tasktypes: store.getters.tasktypes,
      // 课题组/病区
      // 科室/病区
      belongWards: [],
      deptlist: [],
      hosplist: [],
      diagglist: [],
      operlist: [],
      tempDetpRelevanceslist: [], //课题组数据
      tempDetpRelevanceslistform: [], //课题组数据
      tempDetpRelevanceslist: [], //科室数据
      tempDetpRelevanceslistform: [], //科室数据
      tempbelongWards: [], //病区数据
      tempbelongWardsform: [], //病区数据
      rules: {
@@ -1179,20 +1193,20 @@
          { required: true, message: "发送设置不能为空", trigger: "blur" },
        ],
        deptcode: [
          { required: true, message: "适用课题组不能为空", trigger: "blur" },
          { required: true, message: "适用科室不能为空", trigger: "blur" },
        ],
        // leavehospitaldistrictcode: [
        //   { required: true, message: "适用病区不能为空", trigger: "blur" },
        // ],
      },
      belongDepts: [],
      // 课题组院区查询入参
      // 科室院区查询入参
      queryParamsdept: {},
      quote: false,
      serviceType: null,
    };
  },
  components: { SFtable, OptionalForm },
  components: { SFtable, OptionalForm, SortCheckbox },
  created() {
    this.appraiselist = store.getters.appraiselist;
@@ -1284,9 +1298,13 @@
            value: "5",
            label: "微信公众号",
          },
          { label: "微信小程序", value: '6' },
          { label: "微信小程序", value: "6" },
        ];
      } else if (this.form.serviceType == 6||this.form.serviceType == 14||this.form.serviceType == 15) {
      } else if (
        this.form.serviceType == 6 ||
        this.form.serviceType == 14 ||
        this.form.serviceType == 15
      ) {
        this.checkboxlist = [
          {
            value: "3",
@@ -1448,11 +1466,11 @@
        this.$modal.msgError("请选择任务关联条件");
        return;
      }
      if (!this.form.patTaskRelevances[0] && !this.form.longTask) {
        this.$modal.msgError("请选择病人");
        return;
      }
      //暂停任务患者限制
      // if (!this.form.patTaskRelevances[0] && !this.form.longTask) {
      //   this.$modal.msgError("请选择病人");
      //   return;
      // }
      if (!this.form.templatename && !this.templateor) {
        this.$modal.msgError("未选择模板");
@@ -1561,6 +1579,11 @@
        }
      });
    },
    checkSelectionChange(selectedValues, selectedOrder) {
      this.selectedOrder = selectedOrder;
      console.log("当前选中:", selectedValues);
      console.log("选中顺序:", selectedOrder);
    },
    getillness(id) {
      if (id) {
        getillness({ outid: id, type: 5 }).then((res) => {
@@ -1654,7 +1677,7 @@
          { label: "出院天数", width: "", prop: "endDay" },
          { label: "责任护士", width: "", prop: "nurseName" },
          { label: "医生", width: "", prop: "drname" },
          { label: "课题组", width: "180", prop: "dept" },
          { label: "科室", width: "180", prop: "dept" },
          { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
        ];
      } else if (this.patientqueryParams.allhosp == 1) {
@@ -1668,7 +1691,7 @@
          { label: "出院天数", width: "", prop: "endDay" },
          { label: "责任护士", width: "", prop: "nurseName" },
          { label: "医生", width: "", prop: "drname" },
          { label: "课题组", width: "180", prop: "dept" },
          { label: "科室", width: "180", prop: "dept" },
          { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
        ];
      }
@@ -1842,7 +1865,7 @@
      this.patientqueryParams = {
        pageNum: 1, //
        pageSize: 10,
        topica: 1, //0全部1课题组2病区
        topica: 1, //0全部1科室2病区
        leavehospitaldistrictcodes: [],
        leaveldeptcodes: [],
      };
@@ -1913,7 +1936,7 @@
                this.time1 = this.form.showTimeMorn.split(",");
              }
            }
            // 获取任务课题组
            // 获取任务科室
            if (this.form.taskid) {
              this.listDept();
            }
@@ -1990,7 +2013,7 @@
        }
      });
    },
    // 任务课题组删除触发
    // 任务科室删除触发
    removetag(row) {
      let result = this.deptlist
        .filter((item) => item.deptCode == row)
@@ -2180,7 +2203,7 @@
        });
      }
    },
    // 保存课题组/病区
    // 保存科室/病区
    putbelongDepts(id) {
      this.tempDetpRelevanceslistform.forEach((item) => {
        item.tempid = id;
@@ -2190,7 +2213,7 @@
      });
      depthospgetson(this.tempDetpRelevanceslistform).then((res) => {
        if (res.code == 200) {
          this.$modal.msgSuccess("课题组更新成功");
          this.$modal.msgSuccess("科室更新成功");
          this.tempDetpRelevanceslistform = [];
        }
      });
@@ -2202,7 +2225,7 @@
      });
    },
    // 课题组处理
    // 科室处理
    Departmenttreatment() {
      if (!this.form.taskid) {
        this.templateor = true;