From c7b33db117fd2893d7d1c93bf5d46e87d33e44d0 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 16 十二月 2024 16:08:51 +0800
Subject: [PATCH] 初审结果查询

---
 src/views/reservation/resercopy/index.vue |   56 +++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 41 insertions(+), 15 deletions(-)

diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue
index 418d563..f36df99 100644
--- a/src/views/reservation/resercopy/index.vue
+++ b/src/views/reservation/resercopy/index.vue
@@ -29,7 +29,7 @@
         </el-select>
         <i class="el-icon-circle-plus-outline" @click="handleAdd"></i>
       </el-form-item>
-      <el-form-item label="閮ㄩ棬" prop="dwDeptName">
+      <!-- <el-form-item label="閮ㄩ棬" prop="dwDeptName">
         <el-select
           v-model="objs.dwDeptName"
           placeholder="璇烽�夋嫨閮ㄩ棬"
@@ -45,7 +45,7 @@
           />
         </el-select>
         <i class="el-icon-circle-plus-outline" @click="handleAddbumen"></i>
-      </el-form-item>
+      </el-form-item> -->
       <!-- <el-form-item label="鍒嗙粍" prop="payType">
         <el-select v-model="objs.payType" placeholder="璇烽�夋嫨缁撶畻鏂瑰紡" style="width: 200px" clearable>
           <el-option v-for="dict in groupingList" :key="dict.id" :label="dict.groupingName" :value="dict.id" />
@@ -67,7 +67,7 @@
       </el-form-item>
       <el-form-item label="鏈夋晥澶╂暟" prop="yxts">
         <el-input
-        style="width:100px"
+          style="width: 100px"
           v-model="objs.yxts"
           placeholder="鏈夋晥澶╂暟"
         />澶�(鍙嚜瀹氫箟)
@@ -90,7 +90,6 @@
           icon="el-icon-upload2"
           size="mini"
           @click="handleImport"
-          v-hasPermi="['system:user:import']"
           >瀵煎叆</el-button
         >
       </el-col>
@@ -100,7 +99,6 @@
           icon="el-icon-upload2"
           size="mini"
           @click="importTemplate"
-          v-hasPermi="['system:user:import']"
           >涓嬭浇妯℃澘</el-button
         >
       </el-col>
@@ -231,7 +229,7 @@
         </div>
       </el-upload>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitFileForm">纭� 瀹�</el-button>
+        <el-button type="primary" @click="submitFileForm">淇濆瓨淇℃伅</el-button>
         <el-button @click="upload.open = false">鍙� 娑�</el-button>
       </div>
     </el-dialog>
@@ -399,9 +397,13 @@
   getDwAndDwDept,
   newExcelImport,
 } from "@/api/system/comp";
-import { newConfirm, getCompany, queryCompany } from "@/api/team/tuanti";
+import {
+  newConfirm,
+  getCompany,
+  queryCompany,
+  getconfigKey,
+} from "@/api/team/tuanti";
 import { getToken } from "@/utils/auth";
-import { read, utils } from "xlsx";
 
 export default {
   dicts: [
@@ -427,6 +429,7 @@
       }
     };
     return {
+     
       leftList: "",
       isdisabled: true,
       setDisabled: {
@@ -474,9 +477,8 @@
 
       objs: {
         drugManufacturerId: "",
-        dwDeptName: "",
         reservationTime: "",
-        yxts:"30",
+        yxts: "",
       },
       DataList: [],
       tjOrderList: [], //鍗曚釜椤圭洰闆嗗悎
@@ -507,7 +509,7 @@
         // 涓婁紶鐨勫湴鍧�
         url:
           process.env.VUE_APP_BASE_API +
-          "/reservation/reservation/newExcelImport",
+          "/reservation/reservation/newExcelImportNotDwDeptId",
       },
       // 鏌ヨ鍙傛暟
       queryParam: {
@@ -770,6 +772,7 @@
     },
     // 鎼滅储
     getRemoteData(query) {
+      
       if (query) {
         let compName = query;
         queryCompany(compName).then((response) => {
@@ -784,6 +787,10 @@
     // 鑾峰彇鍗曚綅淇℃伅闆嗗悎
     getCompanyList() {
       this.loading = true;
+      getconfigKey('team_reservation_default_day').then((res) => {
+        console.log(res, 1111);
+        this.objs.yxts = res.msg;
+      });
       getCompany(this.queryParam).then((response) => {
         this.CompanyList = response.data;
         this.total = response.total;
@@ -841,10 +848,10 @@
       this.objs.drugManufacturerId = "";
       this.objs.dwDeptName = "";
       this.objs.reservationTime = "";
-      this.objs.yxts = "";
       this.TotalPrice = "";
       this.tableData[0] = [];
       this.TotalPrice1 = "";
+      this.userList = []
       // this.resetForm("form");
       this.form = {};
     },
@@ -853,7 +860,6 @@
     selectTime(val) {
       this.objs.reservationTime = val;
     },
-
     /** 瀵煎叆鎸夐挳鎿嶄綔 */
     handleImport() {
       if (this.objs.drugManufacturerId && this.objs.reservationTime) {
@@ -877,8 +883,24 @@
     },
     // 鏂囦欢涓婁紶鎴愬姛澶勭悊
     handleFileSuccess(response, file, fileList) {
+      console.log(response, 666666);
+      if (response.code == 500) {
+        console.log(22222222222);
+        // Message.warning(response.msg);
+        // this.$modal.msgError(response.msg);
+        // this.$modal.msgError("浜哄憳"+ response.data.list + "淇℃伅閿欒");
+        const errorList = response.data.list.join(", ");
+        this.$confirm(`${errorList}`, "浠ヤ笅浜哄憳淇℃伅鏈夎锛岃鏍稿鍚庡鍏ワ細", {
+          confirmButtonText: "纭畾",
+          cancelButtonText: "鍙栨秷",
+          type: "error",
+          center: true,
+          dangerouslyUseHTMLString: true,
+        });
+      }
       this.ListObj = response.data;
       this.userList = response.data.list;
+
       this.userList.forEach((item) => {
         this.CompanyList.forEach((item1) => {
           if (item1.drugManufacturerId == this.objs.drugManufacturerId) {
@@ -890,6 +912,8 @@
       this.upload.isUploading = false;
       this.$refs.upload.clearFiles();
       this.leftList = response.msg;
+      console.log(response.code);
+
       if (this.leftList == "鎿嶄綔澶辫触") {
         this.isdisabled = true;
         this.$alert(
@@ -971,13 +995,15 @@
 
     /** 纭鎸夐挳 */
     submitForm() {
-      if (this.objs.reservationTime && this.data.dwDeptId) {
+      // if (this.objs.reservationTime && this.data.dwDeptId) {
+      if (this.objs.reservationTime) {
         let data = {
           copeWith: this.ListObj.hjMoney,
           reservations: this.userList,
           reservationTime: this.objs.reservationTime,
           dwDeptId: this.data.dwDeptId,
-          yxts:this.objs.yxts,
+          yxts: this.objs.yxts,
+          dwId: this.data.dwId,
         };
         newConfirm(data).then((res) => {
           this.$modal.msgSuccess("鎻愪氦鎴愬姛");

--
Gitblit v1.8.0