1
wwl
2025-03-25 785b8cb5b5c4a338fb748b0aff18c187102fb9f2
1
1个文件已修改
71 ■■■■ 已修改文件
src/views/doctor/checkAll/index.vue 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/checkAll/index.vue
@@ -96,17 +96,14 @@
    </template>
    <!-- 点击弹出框 -->
    <el-drawer custom-class="tanchu"
  :visible.sync="drawer"
  :before-close="handleClose"
  :with-header="false"
  size="100%"
  :show-close="true">
  <div class="top">
    <table style="width: 100%; margin: 10px 10px; border: 1px solid #dfe6ec; border-collapse: collapse;" cellspacing="4">
      <caption style="background-color: #f8f8f9; font-size: 18px">
        {{ tableAll.cusName }}的体检资料
      </caption>
    <el-drawer custom-class="tanchu" :visible.sync="drawer" :before-close="handleClose" :with-header="false" size="100%"
      :show-close="true">
      <div class="top">
        <table style="width: 100%; margin: 10px 10px; border: 1px solid #dfe6ec; border-collapse: collapse;"
          cellspacing="4">
          <caption style="background-color: #f8f8f9; font-size: 18px">
            {{ tableAll.cusName }}的体检资料
          </caption>
          <tr style="
              border: 1px solid #dfe6ec;
              border-collapse: collapse;
@@ -1076,34 +1073,42 @@
      shanchu({
        id: row.orderDetailId,
      }).then((res) => {
        console.log(res);
        // 找到要删除项所在的父级数组
        const parentItem = this.yichangList.find(item =>
          item.sone.some(soneItem => soneItem.proId === row.proId)
        );
        if (res.code === 200) {  // 添加成功响应检查
          // 找到要删除项所在的父级数组
          const parentItem = this.yichangList.find(item =>
            item.sone.some(soneItem => soneItem.proId === row.proId)
          );
        if (parentItem) {
          // 从父级的 sone 数组中删除该项
          const index = parentItem.sone.findIndex(item => item.proId === row.proId);
          if (index > -1) {
            parentItem.sone.splice(index, 1);
          if (parentItem) {
            // 从父级的 sone 数组中删除该项
            const index = parentItem.sone.findIndex(item => item.proId === row.proId);
            if (index > -1) {
              parentItem.sone.splice(index, 1);
            // 如果删除后 sone 数组为空,则删除整个父级项
            if (parentItem.sone.length === 0) {
              const parentIndex = this.yichangList.indexOf(parentItem);
              if (parentIndex > -1) {
                this.yichangList.splice(parentIndex, 1);
              // 如果删除后 sone 数组为空,则删除整个父级项
              if (parentItem.sone.length === 0) {
                const parentIndex = this.yichangList.indexOf(parentItem);
                if (parentIndex > -1) {
                  this.yichangList.splice(parentIndex, 1);
                }
              }
              // 更新 expends 数组
              this.getExpends();
              this.$message.success('删除成功');
              // 自动更新异常结果数据
              this.yichangjieguo();
            }
            // 更新 expends 数组
            this.getExpends();
            this.$message.success('删除成功');
          }
        } else {
          this.$message.error('删除失败');
        }
      })
      }).catch((error) => {
        console.error('删除失败:', error);
        this.$message.error('删除操作失败');
      });
    },
    getConfigKey() {
      getconfigKey("sfkqtwbg").then((res) => {