lkk
2024-12-12 a55722601ade8cbd4e7129eaf6de3ed2690a12ef
弃检
2个文件已修改
48 ■■■■ 已修改文件
src/api/doctor/examination.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/examination/index.vue 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/doctor/examination.js
@@ -36,3 +36,12 @@
        params: {tjNumber:tjNumber}
    })
}
// 点击弃检
export function qijian(tjNUm,proId) {
    return request({
        url: '/hosp/order/chushenyemianqijianjiekou',
        method: 'get',
        params: {tjNUm:tjNUm,proId:proId}
    })
}
src/views/doctor/examination/index.vue
@@ -285,7 +285,10 @@
                @click="qijian(scope.row)"
                >弃检</el-button
              >
              <el-button size="mini" type="text"  @click="queryResult(scope.row)"
              <el-button
                size="mini"
                type="text"
                @click="queryResultone(scope.row)"
                >结果查询</el-button
              >
              <!--  @click="chaxun(scope.row) " -->
@@ -303,7 +306,7 @@
                <div
                  style="
                    text-align: center;
                    background-color: #FDE2E2;
                  background-color: #fde2e2;
                    margin-top: 10px;
                  "
                >
@@ -316,7 +319,6 @@
                  border
                  style="width: 100%"
                  :header-cell-style="{ background: 'Transparent' }"
                >
                  <el-table-column type="expand">
                    <template slot-scope="props">
@@ -365,6 +367,7 @@
                  </el-table-column>
                </el-table>
              </div>
            </template>
          </div>
        </div>
@@ -395,6 +398,7 @@
  confirmOrder,
  cSWebGetPro,
  dataSynchronization,
  qijian,
} from "@/api/doctor/examination";
import { getNewDateList } from "@/api/hosp/order";
import moment from "moment";
@@ -405,8 +409,10 @@
    return {
      dis: false,
      createTimeList: "",
      currentRow: null,
      total: 0,
      loading: true,
      selectedTjNumber: "",
      drawer: false,
      // 查询参数
      queryParams: {
@@ -639,6 +645,9 @@
    handleCurrentChange(val) {
      this.currentRow = val;
      let tjNumber = val.tjNumber;
      this.selectedTjNumber = val.tjNumber;
      console.log(this.currentRow, 4455);
      cSWebGetPro(tjNumber).then((res) => {
        this.xiangmuList = res.data;
        this.xiangmuList.forEach((item) => {
@@ -673,15 +682,31 @@
        });
      });
    },
    qijian(row) {},
    // 弃检按钮
    qijian(row) {
      const tjNUm = this.selectedTjNumber;
      const proId = row.proId;
      qijian(tjNUm, proId).then((res) => {
        if (res.code == 200) {
          cSWebGetPro(tjNUm).then((res) => {
            if (res.code === 200) {
              // 更新右边表格的数据
              this.xiangmuList = res.data;
            }
          });
        }
      });
    },
    chaxun() {},
    handleRowClick(row, column, event) {
      console.log(row); // 
    },
    queryResult(row) {
    queryResultone(row) {
      // 将当前行的数据存储到 currentRow
      this.currentRow = row;
      console.log(this.currentRow,999555);
      // this.currentRow = row;
      // console.log(this.currentRow, 999555);
      
      // 打开抽屉
      this.drawer = true;