qinxianzhangyao
2023-12-22 ca7febfd03af9f1dc4016b7c761bd326080f3508
qxtj
1个文件已修改
42 ■■■■■ 已修改文件
src/views/hosp/project/index.vue 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue
@@ -64,7 +64,7 @@
            width="110px" /> -->
          <el-table-column label="参与小结" align="center" prop="needReport" :show-overflow-tooltip="true" width="110px">
            <template slot-scope="scope">
              <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.proCheckMethod" />
              <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.needReport" />
            </template>
          </el-table-column>
          <el-table-column label="是否空腹" align="center" prop="proCheckMethod" :show-overflow-tooltip="true" width="110px">
@@ -326,8 +326,8 @@
            </div>
            <div class="pag" v-if="List == false">
              <div class="pag1">
                <pagination v-show="total > 0" :total="total" :page.sync="querycharge.page"
                  :limit.sync="querycharge.pageSize" @pagination="getListByXmId" />
                <pagination v-show="total > 0" :total="total" :page.sync="queryParam.page"
                  :limit.sync="queryParam.pageSize" @pagination="getListByXmId" />
              </div>
            </div>
          </el-col>
@@ -572,6 +572,9 @@
    handleAdd(row) {
      // this.reset();
      this.loading = true;
      this.form.proPrice = 0.00
      this.form.proName = ""
      this.form.proId = null
      ProjectTree().then((response) => {
        if (response.code == 200) {
          this.loading = false;
@@ -820,7 +823,7 @@
        deptName: null,
        consumablesList: [],
        tjStandardList: [],
        proStatus: "启用",
        proStatus: "0",
      };
      this.resetForm("form");
    },
@@ -967,11 +970,6 @@
          this.showRentPrise = true;
        }
        this.form.deptId = Number(this.form.deptId);
        if (this.form.proStatus === 0) {
          this.form.proStatus = "启用";
        } else {
          this.form.proStatus = "停用";
        }
        if (this.form.proStandard === 0) {
          this.showPrise = true;
          this.showRentPrise = false;
@@ -979,6 +977,7 @@
          this.showPrise = false;
          this.showRentPrise = true;
        }
        this.form.proStatus =  this.form.proStatus.toString()
        this.form.consumablesList = response.data.consumablesList;
        this.form.tjStandardList = response.data.tjStandardList;
        if (this.form.tjStandardList != null) {
@@ -1086,11 +1085,8 @@
                  }
                });
              }
              if (this.form.proStatus === "启用") {
                this.form.proStatus = 0;
              } else {
                this.form.proStatus = 1;
              }
              updateProject(this.form).then((response) => {
                this.$modal.msgSuccess("修改成功");
                this.cancel();
@@ -1106,11 +1102,7 @@
                this.$message.error("请填写父项名称或科室名称");
                this.open = true;
              } else {
                if (this.form.proStatus === "启用") {
                  this.form.proStatus = 0;
                } else {
                  this.form.proStatus = 1;
                }
                addProject(this.form).then((response) => {
                  this.$modal.msgSuccess("新增成功");
                  this.cancel();
@@ -1156,11 +1148,7 @@
                  }
                });
              }
              if (this.form.proStatus === "启用") {
                this.form.proStatus = 0;
              } else {
                this.form.proStatus = 1;
              }
              updateProject(this.form).then((response) => {
                this.$modal.msgSuccess("修改成功");
                this.cancel();
@@ -1176,11 +1164,7 @@
                this.$message.error("请填写父项名称或科室名称");
                this.open = true;
              } else {
                if (this.form.proStatus === "启用") {
                  this.form.proStatus = 0;
                } else {
                  this.form.proStatus = 1;
                }
                addProject(this.form).then((response) => {
                  this.$modal.msgSuccess("新增成功");
                  this.cancel();