From b2e0bcff3ced2ac14a5de6511bff05b6a5045372 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期五, 11 四月 2025 13:30:42 +0800 Subject: [PATCH] qx --- src/views/reservation/resercopy/index.vue | 47 +++++++++++++++++++++++++++++------------------ 1 files changed, 29 insertions(+), 18 deletions(-) diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue index 8d478e9..fed9291 100644 --- a/src/views/reservation/resercopy/index.vue +++ b/src/views/reservation/resercopy/index.vue @@ -194,6 +194,7 @@ <!-- <el-table-column label="鑱旂郴閭" align="center" prop="email" /> --> <!-- <el-table-column label="浣撴绫诲埆" align="center" prop="tjCategory" /> --> <el-table-column label="鍒嗙粍" align="center" prop="groupingName" /> + <el-table-column label="鎵�鍦ㄥ湴" align="center" prop="szd" /> <el-table-column label="椤圭洰鏀惰垂" align="center" prop="ysPrice" /> </el-table> </div> @@ -208,6 +209,7 @@ <el-upload ref="upload" :limit="1" + :key="uploadKey" accept=".xlsx, .xls" :headers="upload.headers" :data="data" @@ -397,6 +399,7 @@ </template> <script> +import Cookies from "js-cookie" import { addDept, addComp, @@ -480,6 +483,7 @@ dwId: "", dwDeptId: "", dwName: "", + }, objs: { @@ -512,7 +516,7 @@ // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹� updateSupport: 0, // 璁剧疆涓婁紶鐨勮姹傚ご閮� - headers: { Authorization: "Bearer " + getToken() }, + headers: { Authorization: "Bearer " + getToken() ,hospId: Cookies.get("hospId")}, // 涓婁紶鐨勫湴鍧� url: process.env.VUE_APP_BASE_API + @@ -634,6 +638,7 @@ ], }, ListObj: {}, + uploadKey:0, // 閬僵灞� loading: true, pacStatus: "鍚敤", @@ -694,7 +699,7 @@ }); }, idFn(value) { - console.log(value); + this.userList = [] if (value) { this.data.dwId = value; Deptlist(value).then((response) => { @@ -870,6 +875,8 @@ /** 瀵煎叆鎸夐挳鎿嶄綔 */ handleImport() { if (this.objs.drugManufacturerId && this.objs.reservationTime) { + this.$refs.upload?.clearFiles(); + this.uploadKey = Date.now(); // 鏀瑰彉 key 寮哄埗閲嶆柊娓叉煋缁勪欢 this.upload.title = "鐢ㄦ埛瀵煎叆"; this.upload.open = true; } else { @@ -890,24 +897,25 @@ }, // 鏂囦欢涓婁紶鎴愬姛澶勭悊 handleFileSuccess(response, file, fileList) { - console.log(response, 666666); if (response.code == 500) { - console.log(22222222222); + this.isdisabled = true; // Message.warning(response.msg); // this.$modal.msgError(response.msg); // this.$modal.msgError("浜哄憳"+ response.data.list + "淇℃伅閿欒"); const errorList = response.data.list.join(", "); - this.$confirm(`${errorList}`, "浠ヤ笅浜哄憳淇℃伅鏈夎锛岃鏍稿鍚庡鍏ワ細", { + + this.$confirm(`${errorList}`, `${response.msg}`, { confirmButtonText: "纭畾", cancelButtonText: "鍙栨秷", type: "error", center: true, dangerouslyUseHTMLString: true, }); - } - this.ListObj = response.data; + }else{ + this.isdisabled = false; + this.ListObj = response.data; this.userList = response.data.list; - + this.userList.forEach((item) => { this.CompanyList.forEach((item1) => { if (item1.drugManufacturerId == this.objs.drugManufacturerId) { @@ -915,11 +923,12 @@ } }); }); + } + this.upload.open = false; this.upload.isUploading = false; this.$refs.upload.clearFiles(); this.leftList = response.msg; - console.log(response.code); if (this.leftList == "鎿嶄綔澶辫触") { this.isdisabled = true; @@ -933,15 +942,17 @@ "瀵煎叆缁撴灉", { dangerouslyUseHTMLString: true } ); - } else { - this.isdisabled = false; - this.$alert( - "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + - response.msg, - { dangerouslyUseHTMLString: true } - ); - this.rightList = response; - } + } + // else { + // console.log(11111) + // this.isdisabled = false; + // this.$alert( + // "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + + // response.msg, + // { dangerouslyUseHTMLString: true } + // ); + // this.rightList = response; + // } for (let i = 0; i < fileList.length; i++) { if (file.name != fileList[i].name) { this.fileList.push({ -- Gitblit v1.8.0