From 1249ca8ff44f8de7992fdb5866eae19613d606c3 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 16 八月 2023 19:37:49 +0800 Subject: [PATCH] 详情页联调 --- src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue b/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue index eda11e6..d9d1319 100644 --- a/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue +++ b/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue @@ -147,7 +147,7 @@ querySearchAsync(queryString, callback, 'productName') } " - value-key="name" + value-key="Name" @select="handleSelectClient('productName', $event)" ></el-autocomplete> <div class="common-select-btn" @click="selClientClick('productName')"> @@ -609,6 +609,9 @@ }, saleChancelist() { return this.$store.state.getClientName.saleChancelist + }, + productList() { + return this.$store.state.getClientName.productList } }, data() { @@ -617,7 +620,7 @@ editConfig: this.editCommonConfig, rules: { serviceNumber: [{ required: true, message: "璇疯緭鍏ユ湇鍔″崟缂栧彿", trigger: "blur" }], - faultTypeId: [{ required: true, message: "璇烽�夋嫨鏁呴殰绫诲埆", trigger: "change" }], + // faultTypeId: [{ required: true, message: "璇烽�夋嫨鏁呴殰绫诲埆", trigger: "change" }], subject: [{ required: true, message: "璇疯緭鍏ヤ富棰�", trigger: "blur" }], // productCategory: [{ required: true, message: "璇烽�夋嫨浜у搧绫诲埆", trigger: "change" }], serviceManId: [{ required: true, message: "璇烽�夋嫨浜у搧绫诲埆", trigger: "change" }], @@ -674,7 +677,7 @@ contactId: this.editCommonConfig.infomation.contactId, serviceContractId: this.editCommonConfig.infomation.serviceContractId, SalesDetailsId: this.editCommonConfig.infomation.SalesDetailsId, - productNameId: this.editCommonConfig.infomation.productId, + productName: this.editCommonConfig.infomation.productName, saleChanceId: this.editCommonConfig.infomation.saleChanceId } }, @@ -688,6 +691,7 @@ this.$store.dispatch("geSalesDetails") this.$store.dispatch("geContact") this.$store.dispatch("geChance") + this.$store.dispatch("geProductList") this.getFaultTypeList() this.getSeverityList() this.getPriorityLevelList() @@ -765,7 +769,8 @@ SalesDetailsId: this.SalesDetailsId || 0, priorityLevelId: data.priorityLevelId || 0, problemDesc: data.problemDesc || "", - productId: this.productNameId, + productName: this.productName, + productTypeName: "", realTime: data.realTime || "", remark: data.remark || "", saleChanceId: this.saleChanceId || 0, @@ -794,7 +799,7 @@ } else if (value === "contract") { restaurants = this.salesDetailsList } else if (value === "productName") { - restaurants = this.productNameList + restaurants = this.productList } else if (value === "contact") { restaurants = this.contactNamelist } else if (value === "chance") { @@ -807,6 +812,8 @@ return (state) => { if (value === "serviceContract" || value === "contract") { return state.number.toLowerCase().indexOf(queryString.toLowerCase()) === 0 + } else if (value === "productName") { + return state.Name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 } else { return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 } @@ -820,7 +827,7 @@ } else if (value === "contract") { this.SalesDetailsId = item.id } else if (value === "productName") { - this.productCategoryId = item.id + this.productName = item.Name } else if (value === "contact") { this.contactId = item.id } else if (value === "chance") { @@ -834,15 +841,12 @@ } else if (value === "serviceContract") { this.editSelCommonConfig.title = "鏈嶅姟鍚堝悓" this.editSelCommonConfig.editVisible = true - this.editSelCommonConfig.tableInfomation = [...this.serviceContractList] } else if (value === "contract") { this.editSelCommonConfig.title = "閿�鍞槑缁嗗崟" this.editSelCommonConfig.editVisible = true - this.editSelCommonConfig.tableInfomation = [...this.salesDetailsList] } else if (value === "productName") { this.editSelCommonConfig.title = "浜у搧鍚嶇О" this.editSelCommonConfig.editVisible = true - this.editSelCommonConfig.tableInfomation = [...this.productNameList] } else if (value === "contact") { this.editSelectContactConfig.editVisible = true } else if (value === "chance") { @@ -864,8 +868,8 @@ this.editConfig.infomation.number = row.number this.SalesDetailsId = row.id } else if (value === "productName") { - this.editConfig.infomation.product_name = row.name - this.productNameId = row.id + this.editConfig.infomation.product_name = row.Name + this.productName = row.Name } else if (value === "chance") { this.editConfig.infomation.sale_chance_name = row.name this.saleChanceId = row.id @@ -877,14 +881,14 @@ this.editConfig.infomation.client_name = "" this.clientId = 0 } else if (value === "serviceContract") { - this.editConfig.infomation.service_number = "" + this.editConfig.infomation.serviceContract_Number = "" this.serviceContractId = 0 } else if (value === "contract") { this.editConfig.infomation.number = "" this.SalesDetailsId = 0 } else if (value === "productName") { this.editConfig.infomation.product_name = "" - this.productNameId = 0 + this.productName = "" } else if (value === "contact") { this.editConfig.infomation.contact_name = "" this.contactId = 0 -- Gitblit v1.8.0