From 8e5ec095fc4ba9cac7c91b681b06846d3e4155ae Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 16 十月 2023 21:17:29 +0800 Subject: [PATCH] 销售明细,退货单、退款单根据客户进行筛选 --- src/views/client/contacts/AddContactsDialog.vue | 53 +++++++++++++++++++++++++++-------------------------- 1 files changed, 27 insertions(+), 26 deletions(-) diff --git a/src/views/client/contacts/AddContactsDialog.vue b/src/views/client/contacts/AddContactsDialog.vue index f0ff288..42ca99a 100644 --- a/src/views/client/contacts/AddContactsDialog.vue +++ b/src/views/client/contacts/AddContactsDialog.vue @@ -26,21 +26,17 @@ <el-col :span="12" v-if="isUnflod"> <el-form-item label="鑱旂郴浜虹紪鍙�" prop="number"> <WordInput - v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0" + v-if="codenumer && (explain != '' || isIdDisabled) && method == 0" :codenumer="codenumer" :sum="sum" - :disabled="editConfig.infomation.id || isIdDisabled" + :disabled="this.editConfig.title !== '鏂板缓' || isIdDisabled" :inputValue="inputValue" @codeList="codeList" /> <span v-else-if="method == 0" style="color: #f56c6c" - >璇蜂紭鍏堥厤缃紪鐮佽鑼� - <el-button type="text" @click="numberClick"> - 閰嶇疆瑙勮寖 - </el-button - ></span + >璇蜂紭鍏堥厤缃紪鐮佽鑼� <el-button type="text" @click="numberClick"> 閰嶇疆瑙勮寖 </el-button></span > - <span v-else>鑷姩鐢熸垚</span> + <span v-else>鑷姩鐢熸垚</span> </el-form-item> </el-col> <el-col :span="12"> @@ -88,7 +84,12 @@ </el-col> <el-col :span="12"> <el-form-item v-if="isUnflod" label="閿�鍞礋璐d汉" prop="member_id"> - <el-select v-model="editConfig.infomation.member_id" placeholder="璇烽�夋嫨" size="mini" style="width: 100%"> + <el-select + v-model="editConfig.infomation.member_id" + placeholder="璇烽�夋嫨" + size="mini" + style="width: 100%" + > <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> </el-option> </el-select> @@ -271,7 +272,7 @@ import { getAllData } from "@/api/client/client" import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog" import { getCityList } from "@/api/common/address" -import codeMixin from "@/views/client/followupRecords/mixin/codeMixin"; +import codeMixin from "@/views/client/followupRecords/mixin/codeMixin" export default { name: "AddContactsDialog", mixins: [codeMixin], @@ -300,7 +301,7 @@ rules: { name: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], number: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], - client_name:[{ required: true, message: "璇烽�夋嫨瀹㈡埛鍚嶇О", trigger: "change" }], + client_name: [{ required: true, message: "璇烽�夋嫨瀹㈡埛鍚嶇О", trigger: "blur" }], member_id: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }], phone: [ { required: false, message: "", trigger: "blur" }, @@ -351,27 +352,27 @@ this.getCityList(this.editConfig.infomation.province_id, "edit") } this.getCommonData() - this.formInfo(); + this.formInfo() }, - watch:{ - 'editContactsConfig.visible'(val){ - if(val){ + watch: { + "editContactsConfig.visible"(val) { + if (val) { this.formInfo() } }, - 'editContactsConfig.infomation.codeStandID'(){ + "editContactsConfig.infomation.codeStandID"() { this.formInfo() } }, methods: { - formInfo(){ - this.objCode.type='鑱旂郴浜虹紪鐮�' - this.objCode.codeStandID = '' - if(this.editConfig.infomation.codeStandID){ - this.objCode.codeStandID = this.editConfig.infomation.codeStandID; + formInfo() { + this.objCode.type = "鑱旂郴浜虹紪鐮�" + this.objCode.codeStandID = "" + if (this.editConfig.infomation.codeStandID) { + this.objCode.codeStandID = this.editConfig.infomation.codeStandID } - this.getRCodeStandardList(); - }, + this.getRCodeStandardList() + }, getCommonData() { this.editConfig.infomation.country_id = 1 this.editConfig.infomation.province_id = @@ -452,8 +453,8 @@ province_id: data.province_id || 0, region_id: data.region_id || 0, wechat: data.wechat || "", - codeStandID:data.ID, - codeRule:this.codeRule, + codeStandID: data.ID, + codeRule: this.codeRule } return params }, @@ -550,7 +551,7 @@ } .common-select { .common-select-sel { - width:100%; + width: 100%; } } } -- Gitblit v1.8.0