From 68eb60800a453078e55927dcde6ee9956963f68f Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期二, 17 十月 2023 11:16:15 +0800 Subject: [PATCH] Merge branch 'dev' of ssh://192.168.5.5:29418/web/crm-web into dev --- src/views/sales/refundForm/AddRefundFormDialog.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue index 4a7f564..0402e2c 100644 --- a/src/views/sales/refundForm/AddRefundFormDialog.vue +++ b/src/views/sales/refundForm/AddRefundFormDialog.vue @@ -122,7 +122,7 @@ </el-form-item> </el-col> <el-col :span="12"> - <el-form-item label="浠樻鏂瑰紡" prop="paymentTypeId"> + <el-form-item label="閫�娆炬柟寮�" prop="paymentTypeId"> <div class="common-select"> <el-select style="width: 100%" @@ -314,6 +314,9 @@ import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog" import { getPaymentTypeList } from "@/api/common/payment" import codeMixin from "@/views/client/followupRecords/mixin/codeMixin" +import { getSalesReturnList } from "@/api/sales/salesReturn" +import { mapActions } from 'vuex'; + export default { name: "AddRefundFormDialog", mixins: [codeMixin], @@ -371,7 +374,8 @@ editSelCommonConfig: { editVisible: false, title: "", - infomation: {} + infomation: {}, + clientId:"" }, clientId: this.editCommonConfig.infomation.client_id, sourceId: this.editCommonConfig.infomation.sourceId, @@ -397,7 +401,8 @@ this.formInfo() } }, - methods: { + methods: { + ...mapActions(["getReturnListFliter"]), formInfo() { this.objCode.type = "閿�鍞��娆剧紪鐮�" this.objCode.codeStandID = "" @@ -508,9 +513,17 @@ } } }, - handleSelectClient(value, item) { + async handleSelectClient(value, item) { if (value === "client") { this.clientId = item.id + this.editSelCommonConfig.clientId=item.id + console.log("瀹㈡埛鍚嶇О",this.clientId,value,item) + await getSalesReturnList({ + 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