From 9d3f1aa7571cd532c0c27bf8376ebf4b2178a252 Mon Sep 17 00:00:00 2001
From: charles <981744753@qq.com>
Date: 星期三, 24 七月 2024 17:45:45 +0800
Subject: [PATCH] fix:解决srm之前改了域名,处理各种异常状态,跳转也会出现异常等问题。

---
 src/components/makepager/CommonFormTableView.vue |   39 +++++++++++++++++++++++++++++----------
 1 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index c48c044..cfbb18b 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -223,7 +223,7 @@
       v-if="editSelCommonConfig.editVisible"
       :edit-common-config="editSelCommonConfig"
       :sign="sign"
-      :selectBoxList="tableList.tableData"
+      :selectBoxList="arrDisabledList"
       :quotationNumber="quotationNumber"
       @selClient="selClient"
       @getSelectArray="getSelectArray"
@@ -304,20 +304,31 @@
           mergeNumber: 1
         }
       }
+    },
+    disabledList:{
+      type:[Array],
+      default: () => {
+        return []
+      }
     }
   },
   data() {
     return {
       total: 0,
       productList: [],
-      tableList: [],
+      tableList: {
+        tableData:[]
+      },
       editSelCommonConfig: {
         editVisible: false,
         isSelectBox: false,
         title: "",
-        infomation: {}
+        infomation: {},
+        supplierId:null,
       },
-      productIndex: 0
+      productIndex: 0,
+      supplierId:null,
+      arrDisabledList:[]
     }
   },
   created() {
@@ -332,6 +343,13 @@
         this.getTableInfo()
       },
       immediate: true
+    },
+    supplierId(n,o) {  
+      this.editSelCommonConfig.supplierId=n
+      console.log(n,o,"鐪嬬湅閭�") 
+    } ,
+    'tableList.tableData':function () {
+      this.arrDisabledList=this.disabledList.concat(this.tableList.tableData)
     }
   },
   computed: {},
@@ -366,14 +384,15 @@
     },
     getTableInfo() {
       this.tableList = this.productTableList
+      this.arrDisabledList=this.disabledList.concat(this.tableList.tableData)
     },
     // 浜у搧鍚嶇О
     async getProductList() {
       let fn = this.sign == "purchase" ? getProductList : getProductListFromGrpc
       await fn({
-        page: 1,
-        pageSize: 100
-      }).then((res) => {
+          page: 1,
+          pageSize: 100,
+        }).then((res) => {
         if (res.code === 200) {
           if (res.data.list && res.data.list.length > 0) {
             this.productList = res.data.list
@@ -488,7 +507,7 @@
       }
     },
     commonInputChange(val, prop, row, scope) {
-      if (prop === "amount") {
+      if (prop === "amount"||prop=='purchasePrice') {
         this.tableList.tableData.map((ite) => {
           if (ite.name === row.name) {
             ite.total = row.amount * row.purchasePrice
@@ -547,6 +566,7 @@
       this.tableList.tableData.map((ite) => {
         if (ite.name === item.name) {
           ite.amount = item.amount || 1
+          ite.productId = item.id
           ite.number = item.number
           ite.purchasePrice = item.purchasePrice
           ite.price = item.purchasePrice
@@ -559,8 +579,7 @@
       })
     },
     // 鏂板
-    selClientClick(scope, prop) {
-      console.log(scope, prop)
+    selClientClick(scope) {
       this.productIndex = scope.$index
       this.editSelCommonConfig.title = "浜у搧鍚嶇О"
       this.editSelCommonConfig.isSelectBox = true

--
Gitblit v1.8.0