qinxianzhangyao
2023-12-09 10b03fefc1355bfaad0b79494d6564ce4ee4adf7
src/views/hosp/project/index.vue
@@ -92,7 +92,14 @@
            placeholder="选择主项名称" style="width: 200px" @select="obtain" />
        </el-form-item>
        <el-form-item label="明细项目" prop="proName" v-if="key == 'Y'">
          <el-input v-model="form.proName" placeholder="请输入明细项目" @click.native="getDetailed">
          <span slot="label" style="display:inline-block;border-bottom: 2px solid blue;" @click="getDetailed">
            明细项目
            <!-- <el-tooltip effect="dark" content="明细项目" placement="bottom">
              <i class='el-icon-question' @click="getDetailed" />
            </el-tooltip> -->
          </span>
          <el-input v-model="form.proName" placeholder="请输入明细项目">
          </el-input>
        </el-form-item>
        <el-form-item label="明细项目" prop="proName" v-if="key == 'N'">
@@ -127,8 +134,8 @@
          <el-input v-model="form.proType" placeholder="请输入项目类型" />
        </el-form-item>
       
        <el-form-item label="科室名称" prop="deptName ">
          <el-select v-model="form.deptName" placeholder="请选择科室名称" @change="changeValue" filterable style="width: 205px">
        <el-form-item label="科室名称" prop="deptId">
          <el-select v-model="form.deptId" placeholder="请选择科室名称" @change="changeValue" filterable style="width: 205px">
            <el-option v-for="dict in parentNameList" :key="dict.deptId" :label="dict.deptName" :value="dict.deptId" />
          </el-select>
        </el-form-item>
@@ -437,7 +444,7 @@
        proPrice: [
          { required: true, message: "项目价格不能为空", trigger: "blur" },
        ],
        deptName: [
        deptId: [
          { required: true, message: "科室名称不能为空", trigger: "blur" },
        ],
        // proStandard: [
@@ -526,6 +533,7 @@
      // }
      this.open = true;
      this.title = "体检项目信息维护";
      this.form.deptId = this.queryParams.deptId
      if (this.key = "Y") {
          gettreeList().then((response) => {
            this.deptOptionstree = response.data;
@@ -536,8 +544,26 @@
    // 打开input弹框
    getDetailed() {
      if (this.selectList.proName === "主类目") {
        this.dialogTableVisible = false;
      } else {
      this.dialogTableVisible = true;
      this.getlistSfxm()
      }
    },
    obtain(vals) {
      if (this.projectOptions) {
        this.selectList = vals;
      }
      if (this.selectList.proName === "主类目") {
        this.showPrise = true;
        this.showRentPrise = false;
      } else {
        this.showPrise = false;
        this.showRentPrise = true;
      }
    },
    getlistSfxm() {
      this.loading = true;
@@ -736,18 +762,7 @@
    
    obtain(vals) {
      if (this.projectOptions) {
        this.selectList = vals;
      }
      if (this.selectList.proName === "主类目") {
        this.showPrise = true;
        this.showRentPrise = false;
      } else {
        this.showPrise = false;
        this.showRentPrise = true;
      }
    },
    // 新增行
    addmembers() {
      if (this.form.proName) {
@@ -957,7 +972,8 @@
              } else {
                this.form.consumablesList = null;
              }
              if (this.form.deptName === null || this.form.proParentId === null) {
              if (this.form.deptId === null || this.form.proParentId === null) {
                this.$message.error("请填写父项名称或科室名称");
                this.open = true;
              } else {
@@ -1026,7 +1042,8 @@
              } else {
                this.form.consumablesList = null;
              }
              if (this.form.deptName === null || this.form.proParentId === null) {
              if (this.form.deptId === null || this.form.proParentId === null) {
                this.$message.error("请填写父项名称或科室名称");
                this.open = true;
              } else {