From c58678b4bed3394da8cc90cd6e2c580da4741dde Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 17 十月 2023 20:22:45 +0800 Subject: [PATCH] 联系人编号去掉 --- src/views/sales/refundForm/AddRefundFormDialog.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue index 1211ce1..eff816e 100644 --- a/src/views/sales/refundForm/AddRefundFormDialog.vue +++ b/src/views/sales/refundForm/AddRefundFormDialog.vue @@ -315,7 +315,7 @@ import { getPaymentTypeList } from "@/api/common/payment" import codeMixin from "@/views/client/followupRecords/mixin/codeMixin" import { getSalesReturnList } from "@/api/sales/salesReturn" -import { mapActions } from 'vuex'; +import { mapActions } from "vuex" export default { name: "AddRefundFormDialog", @@ -374,7 +374,8 @@ editSelCommonConfig: { editVisible: false, title: "", - infomation: {} + infomation: {}, + clientId: "" }, clientId: this.editCommonConfig.infomation.client_id, sourceId: this.editCommonConfig.infomation.sourceId, @@ -400,8 +401,8 @@ this.formInfo() } }, - methods: { - ...mapActions(["getReturnListFliter"]), + methods: { + ...mapActions(["getReturnListFliter"]), formInfo() { this.objCode.type = "閿�鍞��娆剧紪鐮�" this.objCode.codeStandID = "" @@ -427,6 +428,7 @@ // 淇濆瓨 saveClick(formName) { this.$refs[formName].validate((valid) => { + this.validateFormNumber() if (valid) { console.log(this.editConfig.infomation) for (let i = 0; i < this.tableData.length; i++) { @@ -483,9 +485,9 @@ reason: data.reason || "", refundDate: data.refundDate || "", sourceId: this.sourceId || 0, - sourceType: 1 - }, - codeRule: this.codeRule + sourceType: 1, + codeRule: this.codeRule + } } return params }, @@ -515,13 +517,13 @@ async handleSelectClient(value, item) { if (value === "client") { this.clientId = item.id - console.log("瀹㈡埛鍚嶇О",this.clientId,value,item) + this.editSelCommonConfig.clientId = item.id + console.log("瀹㈡埛鍚嶇О", this.clientId, value, item) await getSalesReturnList({ - clientId:this.clientId - }).then((res)=>{ + clientId: this.clientId + }).then((res) => { this.getReturnListFliter(res.data.list) }) - } else if (value === "salesReturn") { console.log(item) this.editConfig.infomation.sale_return_nunber = item.number -- Gitblit v1.8.0