WXL
4 天以前 c4fb35392368d6b826fceddce1911fe451153986
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -202,7 +202,7 @@
                    <el-radio :label="1">病区关联</el-radio>
                  </el-radio-group>
                </el-form-item> -->
                <el-row >
                <el-row>
                  <el-col :span="20"
                    ><el-form-item label="适用科室" prop="region">
                      <el-select
@@ -225,7 +225,7 @@
                      </el-select> </el-form-item
                  ></el-col>
                </el-row>
                <el-row >
                <el-row>
                  <el-col :span="20"
                    ><el-form-item label="适用病区" prop="region">
                      <el-select
@@ -436,6 +436,7 @@
                    :currentList="overallCase"
                    :tableLabel="tableLabelhzwb"
                    :serialnumber="false"
                    :agenumber="true"
                    :searchTrue="true"
                    :multiplechoice="false"
                    :controlxz="false"
@@ -528,6 +529,7 @@
              :currentList="patientuserList"
              :tableLabel="tableLabelhz"
              :heights="600"
              :agenumber="true"
              :serialnumber="false"
              :center="false"
              :typeinfo="3"
@@ -536,6 +538,8 @@
          <pagination
            v-show="patienttotal > 0 && this.patientqueryParams.allhosp != 6"
            :total="patienttotal"
            :page.sync="patientqueryParams.pageNum"
            :limit.sync="patientqueryParams.pageSize"
            @pagination="handleAddpatient"
          />
        </div>
@@ -800,6 +804,7 @@
              :serialnumber="false"
              :controlsc="false"
              :multiplechoice="false"
              :agenumber="true"
              :typeinfo="1"
            />
            <pagination
@@ -807,7 +812,7 @@
              :total="total"
              :page.sync="topqueryParams.pageNum"
              :limit.sync="topqueryParams.pageSize"
              @pagination="Acquisitiontype"
              @pagination="handleQuerymb"
            />
          </el-row>
        </div>
@@ -885,9 +890,8 @@
      tableLabelhz: [
        { label: "出院日期", width: "180", prop: "endtime" },
        { label: "患者", width: "", prop: "name" },
        { label: "身份证", width: "200", prop: "idcardno" },
        { label: "患者编号", width: "200", prop: "patientno" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
        { label: "患者标签", width: "", prop: "tag" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
@@ -898,9 +902,8 @@
      tableLabelhzwb: [
        { label: "出院日期", width: "180", prop: "endtime" },
        { label: "患者", width: "", prop: "name" },
        { label: "身份证", width: "200", prop: "sfzh" },
        { label: "患者编号", width: "200", prop: "sfzh" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
        { label: "出院天数", width: "", prop: "endDay" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
@@ -955,6 +958,8 @@
        topica: 1, //0全部1科室2病区
        leavehospitaldistrictcodes: [],
        leaveldeptcodes: [],
        hospitaldistrictcodes: [],
        deptcodes: [],
      },
      topicoptions: [{ children: [{ children: [] }] }],
      showSearch: true, //
@@ -1302,6 +1307,8 @@
          // },
        ];
      }
      console.log(this.topqueryParams, "this.topqueryParams");
      getQtemplatelist(this.topqueryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
@@ -1424,7 +1431,7 @@
    },
    // 预览
    previewfnmb() {
      console.log(this.form.templateid,'this.form.templateid');
      console.log(this.form.templateid, "this.form.templateid");
      getTaskQuestioncomit(this.form.templateid).then((res) => {
        if (res.code == 200) {
@@ -1491,17 +1498,16 @@
        this.allpids.push(item.patid);
      });
      if (
        this.patientqueryParams.allhosp == 1 ||
        (this.patientqueryParams.allhosp == 1 &&
          this.patientqueryParams.cry == 1)
          !this.patientqueryParams.zsallhosp) ||
        this.patientqueryParams.zsallhosp == 1
      ) {
        this.tableLabelhz = [
          // { label: "入院日期", width: "170", prop: "starttime" },
          { label: "出院日期", width: "180", prop: "endtime" },
          { label: "患者", width: "", prop: "name" },
          { label: "身份证", width: "200", prop: "idcardno" },
          { label: "患者编号", width: "200", prop: "patientno" },
          { label: "性别", width: "", prop: "sex" },
          { label: "年龄", width: "", prop: "age" },
          { label: "患者标签", width: "200", prop: "tag" },
          { label: "出院天数", width: "", prop: "endDay" },
          { label: "责任护士", width: "", prop: "nurseName" },
@@ -1509,13 +1515,15 @@
          { label: "科室", width: "180", prop: "dept" },
          { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
        ];
      } else if (this.patientqueryParams.allhosp == 4) {
      } else if (
        this.patientqueryParams.allhosp == 4 ||
        this.patientqueryParams.zsallhosp == 4
      ) {
        this.tableLabelhz = [
          { label: "入院日期", width: "150", prop: "starttime" },
          { label: "患者", width: "", prop: "name" },
          { label: "身份证", width: "200", prop: "idcardno" },
          { label: "患者编号", width: "200", prop: "patientno" },
          { label: "性别", width: "", prop: "sex" },
          { label: "年龄", width: "", prop: "age" },
          { label: "患者标签", width: "200", prop: "tag" },
          { label: "出院天数", width: "", prop: "endDay" },
          { label: "责任护士", width: "", prop: "nurseName" },
@@ -1529,14 +1537,8 @@
      } else {
        this.patientqueryParams.pids = null;
      }
      // 类型判断
      if (this.patientqueryParams.allhosp == 1) {
        this.patientqueryParams.cry = 1;
      } else if (this.patientqueryParams.allhosp == 4) {
        this.patientqueryParams.cry = 0;
        this.patientqueryParams.allhosp = "1";
      }
      // 来源判断
      // 科室还是病区
      if (this.patientqueryParams.searchscope == 1) {
        this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
@@ -1554,6 +1556,31 @@
        this.patientqueryParams.leavehospitaldistrictcodes =
          store.getters.belongWards.map((obj) => obj.districtCode);
      }
      // 出院还是入院
      if (
        (this.patientqueryParams.allhosp == 1 &&
          !this.patientqueryParams.zsallhosp) ||
        this.patientqueryParams.zsallhosp == 1
      ) {
        this.patientqueryParams.cry = 1;
        this.patientqueryParams.hospitaldistrictcodes = [];
        this.patientqueryParams.deptcodes = [];
        this.patientqueryParams.zsallhosp = "1";
      } else if (
        this.patientqueryParams.allhosp == 4 ||
        this.patientqueryParams.zsallhosp == 4
      ) {
        this.patientqueryParams.deptcodes =
          this.patientqueryParams.leaveldeptcodes;
        this.patientqueryParams.hospitaldistrictcodes =
          this.patientqueryParams.leavehospitaldistrictcodes;
        this.patientqueryParams.leavehospitaldistrictcodes = [];
        this.patientqueryParams.leaveldeptcodes = [];
        this.patientqueryParams.cry = 0;
        this.patientqueryParams.allhosp = "1";
        this.patientqueryParams.zsallhosp = "4";
      }
      getTaskpatientQC(this.patientqueryParams).then((response) => {
        this.patientuserList = response.rows;
        this.patientuserList.forEach((item) => {
@@ -1582,11 +1609,11 @@
          item.isoperation = 1;
          item.patid = item.id;
          item.hospType = this.patientqueryParams.allhosp;
          item.sfzh = item.idcardno;
          item.sfzh = item.patientno;
          item.deptCode = item.deptcode;
          item.deptName = item.dept;
          item.admindate = item.inhosptime;
          item.sfzh = item.idcardno;
          item.sfzh = item.patientno;
          if (this.patientqueryParams.allhosp == 6) {
            item.patfrom = 1;
          }
@@ -1669,15 +1696,15 @@
        !this.patientqueryParams.leaveldeptcodes[0]
      )
        this.patientqueryParams.leaveldeptcodes = null;
      console.log(this.patientqueryParams.allhosp, "bbblll");
      this.handleAddpatient();
    },
    // 获取外部患者导入列表
    Externallist() {
      this.tableLabelhz = [
        { label: "患者", width: "", prop: "name" },
        { label: "身份证", width: "200", prop: "idcardno" },
        { label: "患者编号", width: "200", prop: "patientno" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
        { label: "出院天数", width: "", prop: "endDay" },
      ];
      this.patientqueryParams.pageSize = 1000;
@@ -2024,10 +2051,10 @@
            this.objyl.svyTaskTemplateScriptVOS =
              this.objyl.svyTemplateLibScripts;
            this.form.svyTaskTemplateVO = this.objyl;
            this.form.templatename=this.objyl.svyname;
            this.form.templatename = this.objyl.svyname;
            this.$modal.msgSuccess("暂存成功保存任务后模板失效");
            this.drawermb=false;
            this.previewtf=false;
            this.drawermb = false;
            this.previewtf = false;
          });
      } else {
        setTimeout(() => {