1
lkk
2025-06-20 208396dbf678efb7419701f9557a4ac2cc6c250b
src/views/hosp/project/index.vue
@@ -130,6 +130,7 @@
          v-loading="loading"
          :data="projectList"
          ref="tableRef"
          height="580"
          border
        >
          <el-table-column
@@ -468,11 +469,27 @@
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="样本类型" prop="specimenType">
          <el-select
            v-model="form.specimenType"
            placeholder="请选择样本类型"
            style="width: 200px"
            filterable
            clearable
          >
            <el-option
              v-for="dict in dict.type.yblx"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="检查部位" prop="checkBw">
          <el-select
            v-model="form.checkBw"
            placeholder="请选择检查部位"
            style="width: 200px"
            style="width: 260px"
            filterable
            clearable
          >
@@ -488,7 +505,7 @@
          <el-input
            v-model="form.proMetering"
            placeholder="请输入单位"
            style="width: 260px"
            style="width: 200px"
          />
        </el-form-item>
        <el-form-item label="参考范围" prop="proScope">
@@ -502,14 +519,14 @@
          <el-input
            v-model="form.sl"
            placeholder="请输入数量"
            style="width: 200px"
            style="width: 260px"
          />
        </el-form-item>
        <el-form-item label="组合标志" prop="sfzhfy">
          <el-select
            v-model="form.sfzhfy"
            placeholder="请选择是否组合标志"
            style="width: 260px"
            style="width: 200px"
          >
            <el-option
              v-for="dict in dict.type.sys_yes_no"
@@ -546,7 +563,7 @@
          <el-input
            v-model="form.hisXmmc"
            placeholder="his项目名称"
            style="width: 200px"
            style="width: 260px"
          ></el-input>
        </el-form-item>
        <el-form-item label="his项目名称" prop="hisXmmc" v-if="key == 'N'">
@@ -560,7 +577,7 @@
          <el-input
            v-model="form.hisXmbm"
            placeholder="请输入his编码"
            style="width: 260px"
            style="width: 200px"
          />
        </el-form-item>
        <el-form-item label="his单价" prop="hisdj">
@@ -581,14 +598,14 @@
          <el-input
            v-model="form.lisXmmc"
            placeholder="请输入LIS项目"
            style="width: 200px"
            style="width: 260px"
          ></el-input>
        </el-form-item>
        <el-form-item label="LIS编码" prop="lisXmbm">
          <el-input
            v-model="form.lisXmbm"
            placeholder="请输入his编码"
            style="width: 260px"
            style="width: 200px"
          />
        </el-form-item>
        <el-form-item label="备注" prop="proRemark">
@@ -602,8 +619,14 @@
          <el-input
            v-model="form.xh"
            placeholder="请输入排序"
            style="width: 200px"
            style="width: 260px"
          />
        </el-form-item>
        <el-form-item label="是否参与异常" prop="sfcyyc">
          <el-select v-model="form.sfcyyc" placeholder="请选择是否参与异常" style="width: 200px">
            <el-option v-for="dict in dictTypesy" :key="dict.value" :label="dict.label"
              :value="dict.value"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <el-button
@@ -955,6 +978,7 @@
    "sys_dict_position",
    "tj_result_type",
    "sys_yes_no",
    "yblx",
  ],
  components: { Treeselect, IconSelect, Packagese },
  data() {
@@ -980,6 +1004,16 @@
        children: "dictSfxms",
        label: "xmmc",
      },
      dictTypesy: [
        {
          value:"0",
          label:"是"
        },
        {
          value:"1",
          label:"否"
        }
      ],
      xmmc: "",
      chargeId: [],
      List: false,
@@ -1056,6 +1090,7 @@
        proScope: "",
        proSex: "2",
        resultType: "",
        sfcyyc: "0",
      },
      rules: {
        createTime: [
@@ -1083,7 +1118,7 @@
  watch: {
    deptName(val) {
      this.debounceFilter(val);
    },
    },
    treeId(newVal) {
      console.log(newVal,8989)
      if (newVal && newVal.length > 0) {
@@ -1120,9 +1155,9 @@
  created() {
    this.getConsumables();
    this.getDeptList();
    this.getDeptTree().then(() => {
      this.precomputePinyin();
    });
    // this.getDeptTree().then(() => {
    //   this.precomputePinyin();
    // });
  },
  mounted() {
    this.getDeptTree().then(() => {
@@ -1410,13 +1445,18 @@
    getDeptTree() {
      return deptTree111().then((response) => {
        this.deptOptions = response.data;
        this.treeId.push(this.treeDate.id);
        this.treeId = []
        if(this.treeDate.id){
          this.treeId.push( this.treeDate.id)
        }else{
          this.treeId.push("532")
        }
      });
    },
    handleNodeClick(date) {
      this.treeDate = date;
      this.treeId = []
      console.log(this.treeId,2222);
      this.xiugaiList ={}
      this.xiugais = date.qf === "0";
      let proId = date.id;
      getInfoByProId(proId).then((response) => {
@@ -1571,8 +1611,10 @@
      }
    },
    handleUpdate1() {
      this.form={}
      this.form = this.xiugaiList;
      this.form.proStatus = this.form.proStatus.toString();
      this.form.sfcyyc = this.form.sfcyyc.toString();
      this.proParent = true;
      this.isPriceDisabled = true;
      getlist().then((response) => {
@@ -1598,6 +1640,7 @@
        this.showPrise = this.form.proParentId === "0";
        this.showRentPrise = !this.showPrise;
        this.form.proStatus = this.form.proStatus.toString();
        this.form.sfcyyc = this.form.sfcyyc.toString();
        this.form.consumablesList = response.data.consumablesList;
        this.form.tjStandardList = response.data.tjStandardList;
        if (this.form.tjStandardList) {