From ac8749d1f785ee58cec73c27254562c940363205 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 16 十月 2023 16:52:54 +0800
Subject: [PATCH] feat: 销售总单添加必填校验
---
src/views/sales/refundForm/AddRefundFormDialog.vue | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue
index 4a7f564..61d8fdf 100644
--- a/src/views/sales/refundForm/AddRefundFormDialog.vue
+++ b/src/views/sales/refundForm/AddRefundFormDialog.vue
@@ -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],
@@ -397,7 +400,8 @@
this.formInfo()
}
},
- methods: {
+ methods: {
+ ...mapActions(["getReturnListFliter"]),
formInfo() {
this.objCode.type = "閿�鍞��娆剧紪鐮�"
this.objCode.codeStandID = ""
@@ -508,9 +512,16 @@
}
}
},
- handleSelectClient(value, item) {
+ async handleSelectClient(value, item) {
if (value === "client") {
this.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