From 31badcdb4ce90f9b52c15267500d498da29cda16 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期四, 08 八月 2024 16:57:26 +0800 Subject: [PATCH] su --- src/views/reservation/resercopy/index.vue | 93 +++++++++++++++++++++++++--------------------- 1 files changed, 51 insertions(+), 42 deletions(-) diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue index 4b8fbfb..b82e029 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" /> @@ -58,12 +58,19 @@ type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" - style="width: 220px" + style="width: 130px" placeholder="璇烽�夋嫨棰勭害鏃ユ湡" @change="selectTime" :picker-options="setDisabled" > </el-date-picker> + </el-form-item> + <el-form-item label="鏈夋晥澶╂暟" prop="yxts"> + <el-input + style="width:100px" + v-model="objs.yxts" + placeholder="鏈夋晥澶╂暟" + />澶�(鍙嚜瀹氫箟) </el-form-item> </el-form> @@ -92,7 +99,7 @@ type="primary" icon="el-icon-upload2" size="mini" - @click="importTemplate" + @click="importTemplate" v-hasPermi="['system:user:import']" >涓嬭浇妯℃澘</el-button > @@ -124,7 +131,6 @@ prop="company" width="200" > - </el-table-column> <!-- <el-table-column label="宸ュ彿" align="center" prop="jobNo" width="80" /> --> <el-table-column label="濮撳悕" align="center" prop="name" width="75" /> @@ -346,26 +352,26 @@ label-width="100px" :inline="true" > - <el-form-item label="鍗曚綅鍚嶇О" prop="drugManufacturerId"> - <el-select - :remote-method="getRemoteData" - v-model="objs.drugManufacturerId" - remote - filterable - style="width: 200px" - placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" - clearable - @clear="getCompanyList" - @change="idFn1" - > - <el-option - v-for="dict in CompanyList" - :key="dict.cnName" - :label="dict.cnName" - :value="dict.drugManufacturerId" - /> - </el-select> - </el-form-item> + <el-form-item label="鍗曚綅鍚嶇О" prop="drugManufacturerId"> + <el-select + :remote-method="getRemoteData" + v-model="objs.drugManufacturerId" + remote + filterable + style="width: 200px" + placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" + clearable + @clear="getCompanyList" + @change="idFn1" + > + <el-option + v-for="dict in CompanyList" + :key="dict.cnName" + :label="dict.cnName" + :value="dict.drugManufacturerId" + /> + </el-select> + </el-form-item> <el-form-item label="閮ㄩ棬鍚嶇О" prop="dwDeptName"> <el-input v-model="form.dwDeptName" placeholder="璇疯緭鍏ラ儴闂ㄥ悕绉�" /> </el-form-item> @@ -463,13 +469,13 @@ data: { dwId: "", dwDeptId: "", - dwName:"", + dwName: "", }, objs: { drugManufacturerId: "", - dwDeptName: "", reservationTime: "", + yxts:"30", }, DataList: [], tjOrderList: [], //鍗曚釜椤圭洰闆嗗悎 @@ -500,7 +506,7 @@ // 涓婁紶鐨勫湴鍧� url: process.env.VUE_APP_BASE_API + - "/reservation/reservation/newExcelImport", + "/reservation/reservation/newExcelImportNotDwDeptId", }, // 鏌ヨ鍙傛暟 queryParam: { @@ -664,7 +670,7 @@ methods: { // 淇濆瓨閮ㄩ棬 handleAddDept() { - let data = { + let data = { dwName: this.data.dwName, dwId: this.data.dwId, dwDeptName: this.form.dwDeptName, @@ -690,12 +696,12 @@ console.log(value); if (value) { this.data.dwId = value; - this.CompanyList.forEach(item=>{ + this.CompanyList.forEach((item) => { console.log(item); - if(item.drugManufacturerId == this.data.dwId){ - this.data.dwName = item.cnName + if (item.drugManufacturerId == this.data.dwId) { + this.data.dwName = item.cnName; } - }) + }); } }, idBm(value) { @@ -834,6 +840,7 @@ this.objs.drugManufacturerId = ""; this.objs.dwDeptName = ""; this.objs.reservationTime = ""; + this.objs.yxts = ""; this.TotalPrice = ""; this.tableData[0] = []; this.TotalPrice1 = ""; @@ -871,14 +878,13 @@ handleFileSuccess(response, file, fileList) { this.ListObj = response.data; this.userList = response.data.list; - this.userList.forEach(item => { - this.CompanyList.forEach (item1 => { - if(item1.drugManufacturerId ==this.objs.drugManufacturerId ){ - item.company = item1.cnName + this.userList.forEach((item) => { + this.CompanyList.forEach((item1) => { + if (item1.drugManufacturerId == this.objs.drugManufacturerId) { + item.company = item1.cnName; } - }) - - }) + }); + }); this.upload.open = false; this.upload.isUploading = false; this.$refs.upload.clearFiles(); @@ -964,17 +970,20 @@ /** 纭鎸夐挳 */ 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, + dwId: this.data.dwId, }; newConfirm(data).then((res) => { this.$modal.msgSuccess("鎻愪氦鎴愬姛"); this.confirm = true; - this.userList = []; + this.userList = []; }); } else { this.$modal.msgError("璇峰~鍐欏甫鏄熷彿鍐呭"); -- Gitblit v1.8.0