qx
qx
2025-06-09 e03e83323c452893d3d5e43fc3e0f2f8f34f47c9
qx
2个文件已修改
107 ■■■■ 已修改文件
src/api/doctor/examination.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/examination/index.vue 97 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/doctor/examination.js
@@ -84,3 +84,13 @@
        params: {tjNum:tjNum}
    })
}
// 初审页面项目选择其他原因保存接口
export function csymxmxzqtyybcjk(query) {
    return request({
        url: '/check/csymxmxzqtyybcjk',
        method: 'get',
         params:query
    })
}
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,
@@ -819,6 +843,51 @@
      });
    },
    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;
@@ -837,17 +906,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) {