su
su1124
2024-08-15 2ab2dcd91a6ee60fa907fd3c667ed174f17f13b5
src/views/hosp/order/index.vue
@@ -157,6 +157,16 @@
          >订单明细</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          size="mini"
          @click="budadzd"
          :disabled="single"
          v-hasPermi="['hosp:order:export']"
          >打印补录单</el-button
        >
      </el-col>
      <right-toolbar
        :showSearch.sync="showSearch"
        @queryTable="getList"
@@ -1082,7 +1092,13 @@
    </el-dialog>
    <!-- 添加或修改体检记录对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="950px" append-to-body :close-on-click-modal="false">
    <el-dialog
      :title="title"
      :visible.sync="open"
      width="950px"
      append-to-body
      :close-on-click-modal="false"
    >
      <el-tabs v-model="activeName1" type="card">
        <!-- <el-tab-pane label="订单流水" name="first">
          <el-table :data="numberList" style="width: 100%">
@@ -1123,7 +1139,7 @@
          <el-table :data="huizongList" style="width: 100%" max-height="200">
            <el-table-column
              align="center"
            type="index"
              type="index"
              label="序号"
              width="50"
            >
@@ -1277,6 +1293,100 @@
        <!-- <el-button @click="cancel">取 消</el-button> -->
      </div>
    </el-dialog>
    <el-dialog
      :title="title1"
      :visible.sync="budadaozhen"
      width="1100px"
      style="height: 860px"
      append-to-body
      :close-on-click-modal="false"
    >
      <el-row type="flex" class="row-bg" justify="space-around">
        <el-col :span="13">
          <div
            style="text-align: center; margin-bottom: 10px; margin-top: 10px"
          >
            补录列表
          </div>
          <div class="tab3">
            <el-table
              :data="DataLists"
              border
              style="width: 100%"
              height="400"
              @selection-change="handleProjectssChange"
            >
              <el-table-column type="selection" width="40" align="center" />
              <el-table-column
                type="index"
                label="序号"
                align="center"
                width="49px"
              >
              </el-table-column>
              <el-table-column
                prop="blje"
                label="补录金额"
                align="center"
                width="74px"
              >
              </el-table-column>
              <el-table-column
                prop="bldh"
                label="补录单号"
                align="center"
                width="155px"
              >
              </el-table-column>
              <el-table-column
                prop="blsj"
                label="补录时间"
                align="center"
                width="156px"
              >
              </el-table-column>
              <el-table-column
                prop="blrmc"
                label="补录人"
                align="center"
                width="96px"
              >
              </el-table-column>
            </el-table>
          </div>
        </el-col>
        <el-col :span="10">
          <div class="grid-content bg-purple">
            <div
              style="text-align: center; margin-bottom: 10px; margin-top: 10px"
            >
              补录项目
            </div>
            <el-table
              :data="DataListss"
              border
              style="width: 100%"
              height="400"
              :span-method="objectSpanMethod2"
            >
              <el-table-column prop="propinName" label="检查项目">
              </el-table-column>
              <el-table-column prop="proPrice" label="原价" width="56px">
              </el-table-column>
              <el-table-column prop="proName" label="明细项目" width="260px">
              </el-table-column>
            </el-table>
          </div>
        </el-col>
      </el-row>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="dayin">打 印</el-button>
        <!-- <el-button @click="cancel">取 消</el-button> -->
      </div>
    </el-dialog>
  </div>
</template>
@@ -1302,6 +1412,7 @@
  getProParentIdDxList,
  getProSonDxList,
} from "@/api/system/tijian";
import { createLogger } from "vuex";
export default {
  components: {
    ViewPdf,
@@ -1310,6 +1421,8 @@
  name: "Order",
  data() {
    return {
      bldhid: "",
      budadaozhen: false,
      huizongList: [],
      DataLists: [],
      infoList: [],
@@ -1404,7 +1517,7 @@
        tjNum: null,
        bgbeginTime: null,
        bgendTime: null,
        xmmc:null,
        xmmc: null,
      },
      startTime: "",
      startTime1: "",
@@ -1843,7 +1956,6 @@
          discount: discount,
        });
        console.log(this.bill);
        this.title = "订单流水";
      });
      getTransitionInfo(tjNumber).then((res) => {
@@ -1863,6 +1975,44 @@
        });
      });
    },
    budadzd() {
      this.bldhs =[];
      getBlproByTjh(this.tjnumbers).then((res) => {
        if (res.data) {
          this.DataLists = res.data;
          this.budadaozhen = true;
          this.title1 = "补打导诊单";
        } else {
          this.$message({
            type: "warning ",
            message: "该客户没有补录项目",
          });
        }
      });
    },
    dayin() {
      console.log(this.bldhs);
      this.bldhid.toString(this.bldhs);
      this.bldhs.forEach((item) => {
        console.log(item, 666);
        this.bldhid += item + ",";
      });
      // this.bldhid = this.bldhs.toString()
      console.log(this.bldhid);
      const tjNumber = this.tjnumbers;
      const viewNum = "983185234038140928";
      const jxbz = this.bldhid;
      const params = { viewNum, tjNumber, jxbz };
      console.log(params);
      hasReport(tjNumber).then((res) => {
        if (res == 1) {
          this.$tab.openPage("导诊单", "/report/budabreDailyReport", params);
          this.budadaozhen = false;
        } else {
          this.$message.error("该用户暂无项目!");
        }
      });
    },
    handleClick(tab, event) {
      if (this.activeNames == "first") {
@@ -1876,10 +2026,9 @@
          this.loading = false;
        });
      } else {
        console.log(111)
        this.TotalPrice1 = 0;
        this.checkedkey =[]
        this.DataList = []
        this.checkedkey = [];
        this.DataList = [];
        this.getDataList();
        if (this.marryalls != 0) {
          this.TotalPrice1 += this.marryalls;
@@ -1950,7 +2099,7 @@
      this.activeNames = "first";
      /** 查询部门下拉树结构 */
      this.handleClick();
      this.Projectopen = true;
      this.title = "补录项目";
    },
@@ -2011,7 +2160,7 @@
      this.activeNames = "first";
      /** 查询部门下拉树结构 */
      this.handleClick();
      this.Projectopen1 = true;
      this.title = "补录项目";
    },
@@ -2041,8 +2190,8 @@
              this.TotalPrice1 = item.proPrice + this.TotalPrice1;
            });
            if (this.marryalls != 0) {
          this.TotalPrice1 += this.marryalls;
        }
              this.TotalPrice1 += this.marryalls;
            }
          }
        });
      } else if (checked.checkedNodes.length == 0) {
@@ -2078,8 +2227,8 @@
              this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
            });
            if (this.marryalls != 0) {
          this.TotalPrice1 += this.marryalls;
        }
              this.TotalPrice1 += this.marryalls;
            }
          }
        });
      } else if (checked == true) {
@@ -2120,8 +2269,8 @@
            this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
          });
          if (this.marryalls != 0) {
          this.TotalPrice1 += this.marryalls;
        }
            this.TotalPrice1 += this.marryalls;
          }
        }
      });
    },