From 33836e44d74759010d8e79f3cc702186c4bdf4ea Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 17 十月 2023 11:22:56 +0800
Subject: [PATCH] bug修复(5235 5236)

---
 src/views/sales/salesReturn/AddSalesReturnDialog.vue |   17 ++++++++---------
 src/views/sales/refundForm/AddRefundFormDialog.vue   |   23 +++++++++++------------
 2 files changed, 19 insertions(+), 21 deletions(-)

diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue
index 0402e2c..38ac025 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",
@@ -375,7 +375,7 @@
         editVisible: false,
         title: "",
         infomation: {},
-        clientId:""
+        clientId: ""
       },
       clientId: this.editCommonConfig.infomation.client_id,
       sourceId: this.editCommonConfig.infomation.sourceId,
@@ -401,8 +401,8 @@
       this.formInfo()
     }
   },
-  methods: { 
-    ...mapActions(["getReturnListFliter"]),  
+  methods: {
+    ...mapActions(["getReturnListFliter"]),
     formInfo() {
       this.objCode.type = "閿�鍞��娆剧紪鐮�"
       this.objCode.codeStandID = ""
@@ -484,9 +484,9 @@
           reason: data.reason || "",
           refundDate: data.refundDate || "",
           sourceId: this.sourceId || 0,
-          sourceType: 1
-        },
-        codeRule: this.codeRule
+          sourceType: 1,
+          codeRule: this.codeRule
+        }
       }
       return params
     },
@@ -516,14 +516,13 @@
     async handleSelectClient(value, item) {
       if (value === "client") {
         this.clientId = item.id
-        this.editSelCommonConfig.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
diff --git a/src/views/sales/salesReturn/AddSalesReturnDialog.vue b/src/views/sales/salesReturn/AddSalesReturnDialog.vue
index 89ce967..fb9d398 100644
--- a/src/views/sales/salesReturn/AddSalesReturnDialog.vue
+++ b/src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -309,7 +309,7 @@
         editVisible: false,
         title: "閿�鍞槑缁嗗崟",
         infomation: {},
-        clientId:""
+        clientId: ""
       },
       productId: 1,
       isNoProduct: true,
@@ -428,9 +428,9 @@
           returnDate: data.returnDate || "",
           salesReturnStatusId: data.salesReturnStatusId || 0,
           sourceId: this.SalesDetailsId,
-          sourceType: 1
-        },
-        codeRule: this.codeRule
+          sourceType: 1,
+          codeRule: this.codeRule
+        }
       }
       return params
     },
@@ -460,7 +460,7 @@
     async handleSelectClient(value, item) {
       if (value === "client") {
         this.clientId = item.id
-        this.editSelCommonConfig.clientId=item.id
+        this.editSelCommonConfig.clientId = item.id
         await getSalesDetailsList({
           clientId: this.clientId
         }).then((res) => {
@@ -487,7 +487,7 @@
       if (value === "client") {
         this.editConfig.infomation.client_name = row.name
         this.clientId = row.id
-        this.editSelCommonConfig.clientId=row.id
+        this.editSelCommonConfig.clientId = row.id
         await getSalesDetailsList({
           clientId: row.id
         }).then((res) => {
@@ -503,12 +503,11 @@
     // 娓呴櫎宸查�夋嫨鐢ㄦ埛
     clearupClient(value) {
       if (value === "client") {
-        this.editConfig.infomation={}
+        this.editConfig.infomation = {}
         // this.editConfig.infomation.client_name = ""
         // this.clientId = 0
-        
       } else if (value === "contract") {
-        this.editConfig.infomation.salesDetailNumber=""
+        this.editConfig.infomation.salesDetailNumber = ""
         this.productTableList.tableData = []
         this.tableData = []
         this.SalesDetailsId = 0

--
Gitblit v1.8.0