From 18f35fe78de41a1b240758c91e05380decb48978 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期五, 25 七月 2025 17:39:59 +0800 Subject: [PATCH] 1 --- src/views/reservation/reservations/index.vue | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/views/reservation/reservations/index.vue b/src/views/reservation/reservations/index.vue index 54a1bf5..b99dc91 100644 --- a/src/views/reservation/reservations/index.vue +++ b/src/views/reservation/reservations/index.vue @@ -605,10 +605,10 @@ style="width: 160px" /> </el-form-item> - <el-form-item label="鍗曚綅鍚嶇О" prop="company"> + <el-form-item label="鍗曚綅鍚嶇О" prop="companyId"> <el-select :remote-method="getRemoteData" - v-model="formIn.company" + v-model="formIn.companyId" remote default-first-option allow-create @@ -1389,10 +1389,10 @@ style="width: 160px" /> </el-form-item> - <el-form-item label="鍗曚綅鍚嶇О" prop="company"> + <el-form-item label="鍗曚綅鍚嶇О" prop="companyId"> <el-select :remote-method="getRemoteData" - v-model="formIn.company" + v-model="formIn.companyId" remote default-first-option allow-create @@ -2121,7 +2121,7 @@ cusSex: null, cusBrithday: null, cusAddr: null, - cusPhone: null, + phone: null, yykssj: "", // 棰勭害寮�濮嬫椂闂� yyjssj: "", // 棰勭害缁撴潫鏃堕棿 cusPostcode: null, @@ -2235,7 +2235,7 @@ // cusAddr: [ // { required: true, message: "鐜板眳浣忓湴鍧�涓嶈兘涓虹┖", trigger: "blur" }, // ], - cusPhone: [ + phone: [ { required: true, validator: checkPhoneNum, trigger: "blur" }, ], reservationTime: [ @@ -2345,11 +2345,7 @@ created() { this.getList(); }, - watch: { - "formIn.company"(val) { - console.log("formIn.company changed:", val, typeof val); - }, - }, + methods: { isAll(value) { return value === "" || value === null; @@ -2458,6 +2454,7 @@ idFn1(value) { if (value) { this.form.dictCompId = value; + console.log(value) // this.CompanyList.forEach((item) => { // if (item.drugManufacturerId == this.form.dictCompId) { // this.form.compName = item.cnName; @@ -2578,7 +2575,7 @@ cusSex: null, cusBrithday: null, cusAddr: null, - cusPhone: null, + phone: null, yykssj: "", // 棰勭害寮�濮嬫椂闂� yyjssj: "", // 棰勭害缁撴潫鏃堕棿 cusPostcode: null, @@ -3155,6 +3152,7 @@ this.formIn.company = item.cnName; } }); + let data; if (pacId) { data = { @@ -3171,7 +3169,7 @@ name: this.formIn.name, nation: this.formIn.nation, pacId, - phoe: this.formIn.cusPhone, + phoe: this.formIn.phoe, reservationTime: this.formIn.reservationTime, sex: this.formIn.sex, timeRegion: this.formIn.timeRegion, @@ -3211,10 +3209,11 @@ career: this.formIn.career, }; } - console.log('鎻愪氦鍙傛暟', data); tjReappoint(data).then((res) => { + console.log("鎺ュ彛鍝嶅簲", res); if (res.code === 200) { this.$modal.msgSuccess("棰勭害鎴愬姛"); + Object.assign(this.formIn, data); this.getList(); this.$tab.refreshPage(); _this.drawer = false; -- Gitblit v1.8.0