1
lkk
2025-06-10 c1cf70d01a5b11075170cfc6278a213833d1f799
src/views/doctor/examination/index.vue
@@ -420,6 +420,29 @@
        />
      </div>
    </div>
     <el-dialog :visible.sync="open" width="980px" append-to-body>
      <el-form ref="form" :model="form" label-width="98px" @submit.native.prevent>
        <el-form-item label="弃检" prop="isZybUnit">
          <el-radio-group v-model="form.isZybUnit">
            <el-radio :label="0">自动弃检</el-radio>
            <el-radio :label="1">其他</el-radio>
          </el-radio-group>
        </el-form-item>
        <!-- filterable -->
        <el-form-item label="弃检原因" prop="yy" style="margin-left: 20px" v-if="form.isZybUnit == 1">
          <el-select  v-model="form.yy" placeholder="请选择弃检原因" clearable style="width: 150px">
            <el-option v-for="dict in dict.type.qj_type" :key="dict.value" :label="dict.label" :value="dict.label" />
          </el-select>
        </el-form-item>
        <br />
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitFormqijian">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>
@@ -434,20 +457,21 @@
  yijian,
  resultList,
  typeOne,
  huifu,
  huifu,csymxmxzqtyybcjk
} from "@/api/doctor/examination";
import { getCompany, queryCompany } from "@/api/team/tuanti";
import { getNewDateList } from "@/api/hosp/order";
import moment from "moment";
export default {
  dicts: ["dict_tj_status"],
  dicts: ["dict_tj_status", "qj_type"],
  data() {
    return {
      jieguoList: [],
      jyjc: null,
      dis: false,
      isLoading:false,
        open: false,
      createTimeList: "",
      currentRow: null,
      total: 0,
@@ -476,6 +500,7 @@
      exaList: [],
      // 表单参数
      xianshi: "",
       rowProId: '',
      name: "",
      form: {},
      clearTimeSet: null,
@@ -819,10 +844,57 @@
      });
    },
    cancel() {
      this.open = false
    },
    submitFormqijian() {
      if (this.form.isZybUnit == 0) {
        const tjNUm = this.selectedTjNumber;
        const proId = this.rowProId;
        qijian(tjNUm, proId).then((res) => {
          if (res.code == 200) {
              this.open = false
            cSWebGetPro(tjNUm).then((res) => {
              if (res.code === 200) {
                // 更新右边表格的数据
                this.xiangmuList = res.data;
                this.isLoading = false
              }
            });
          }
        });
      } else {
        if (this.form.yy != null) {
          let data = {
            tjNum: this.selectedTjNumber,
            proId: this.rowProId,
            yy: this.form.yy,
          }
          csymxmxzqtyybcjk(data).then((res) => {
            if (res.code == 200) {
              cSWebGetPro(this.selectedTjNumber).then((res) => {
                if (res.code === 200) {
                    this.open = false
                  // 更新右边表格的数据
                  this.xiangmuList = res.data;
                  this.isLoading = false
                }
              });
            }
          });
        } else {
          this.$modal.msgError("请选择弃检原因");
        }
      }
    },
    // 弃检按钮
    qijian(row) {
      const tjNUm = this.selectedTjNumber;
      const proId = row.proId;
         this.rowProId = row.proId;
      row.isLoading = true;
      if (row.type == "2") {
        huifu(tjNUm, proId).then((res) => {
@@ -837,17 +909,19 @@
          }
        });
      } else {
        qijian(tjNUm, proId).then((res) => {
          if (res.code == 200) {
            cSWebGetPro(tjNUm).then((res) => {
              if (res.code === 200) {
                // 更新右边表格的数据
                this.xiangmuList = res.data;
                this.isLoading = false
              }
            });
          }
        });
         this.open = true
        this.form = {}
        // qijian(tjNUm, proId).then((res) => {
        //   if (res.code == 200) {
        //     cSWebGetPro(tjNUm).then((res) => {
        //       if (res.code === 200) {
        //         // 更新右边表格的数据
        //         this.xiangmuList = res.data;
        //         this.isLoading = false
        //       }
        //     });
        //   }
        // });
      }
    },
    yijian(row) {