From bf915c71f7ab3fcd9a7f81ed18f3a10c68d50dc0 Mon Sep 17 00:00:00 2001
From: payne <bzrlw2012@163.com>
Date: 周四, 25 4月 2024 10:35:45 +0800
Subject: [PATCH] 客户档案调整

---
 iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue |  191 ++++++++++++++++++++++++-----------------------
 1 files changed, 96 insertions(+), 95 deletions(-)

diff --git a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue
index 8f87c49..b751075 100644
--- a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue
+++ b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue
@@ -1,5 +1,5 @@
 锘�<template>
-  <!-- 鏇夸唬鍝佺鐞� -->
+  <!-- 鏇夸唬鍝佺鐞� -琛ㄦ牸鍐呭 -->
   <div style="background-color: white">
     <!-- <a-spin :spinning="loading"> -->
     <div class="wms-task-management-detail-div">
@@ -7,6 +7,8 @@
         <!-- <span style="font-weight:bold;cursor:default;">
           <a style="cursor:default;">{{ row.no }}</a>鍗曟嵁璇︽儏
         </span> -->
+        <!-- 鐗╂枡缂栧彿: {{  materialCode }}
+        鐗╂枡鍚嶇О: {{    materialName }} -->
         <div style="margin-top: 10px;">
           <a-table :columns="columns" :data-source="list" row-key="id" :pagination="false" :scroll="{ x: true }">
             <template slot="index" slot-scope="text, record, index">{{ index + 1 }}</template>
@@ -24,11 +26,8 @@
           </a-table>
         </div>
       </div>
-
       <p @click="$refs.showList.add()">鏂板琛�</p>
-
       <show-list ref="showList" @ok="handleSubmit" />
-     
     </div>
   </div>
 </template>
@@ -69,66 +68,66 @@
           scopedSlots: { customRender: 'index' },
           align: 'center'
         },
-        {
-					title: '鏇夸唬缂栧彿',
-					align: 'center',
-					customHeaderCell: () => {
-						return {
-							style: {
-								'min-width': '120px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					customCell: () => {
-						return {
-							style: {
-								'min-width': '120px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					sorter: true,
-					dataIndex: 'substituteCode'
-				},
-				{
-					title: '鐗╂枡缂栧彿',
-					align: 'center',
-					customHeaderCell: () => {
-						return {
-							style: {
-								'min-width': '120px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					customCell: () => {
-						return {
-							style: {
-								'min-width': '120px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					sorter: true,
-					dataIndex: 'materialCode'
-				},
-				{
-					title: '鐗╂枡鍚嶇О',
-					align: 'center',
-					customHeaderCell: () => {
-						return {
-							style: {
-								'min-width': '120px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					customCell: () => {
-						return {
-							style: {
-								'min-width': '120px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					sorter: true,
-					dataIndex: 'materialName'
-				},
+        // {
+				// 	title: '鏇夸唬缂栧彿',
+				// 	align: 'center',
+				// 	customHeaderCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	customCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	sorter: true,
+				// 	dataIndex: 'substituteCode'
+				// },
+				// {
+				// 	title: '鐗╂枡缂栧彿',
+				// 	align: 'center',
+				// 	customHeaderCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	customCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	sorter: true,
+				// 	dataIndex: 'materialCode'
+				// },
+				// {
+				// 	title: '鐗╂枡鍚嶇О',
+				// 	align: 'center',
+				// 	customHeaderCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	customCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	sorter: true,
+				// 	dataIndex: 'materialName'
+				// },
 				{
 					title: '鏇夸唬鍝佺墿鏂欑紪鍙�',
 					align: 'center',
@@ -149,26 +148,26 @@
 					sorter: true,
 					dataIndex: 'substituteMaterialCode'
 				},
-				{
-					title: '鏇夸唬鍝佺墿鏂欏悕绉�',
-					align: 'center',
-					customHeaderCell: () => {
-						return {
-							style: {
-								'min-width': '140px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					customCell: () => {
-						return {
-							style: {
-								'min-width': '140px'//鏈�灏忓垪瀹借缃�
-							}
-						}
-					},
-					sorter: true,
-					dataIndex: 'substituteMaterialName'
-				},
+				// {
+				// 	title: '鏇夸唬鍝佺墿鏂欏悕绉�',
+				// 	align: 'center',
+				// 	customHeaderCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '140px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	customCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '140px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	sorter: true,
+				// 	dataIndex: 'substituteMaterialName'
+				// },
 				{
 					title: '鏇夸唬娆″簭',
 					align: 'center',
@@ -231,11 +230,14 @@
         this.afterClsoe()
       }
     },
-    initShow() {
-      this.loading = true
-      this.getList(() => {
-        this.loading = false
-      })
+
+    initShowSubstituteGood() {
+      // this.materialCode = materialCode
+      // this.materialName = materialName
+      // this.loading = true
+      // this.getList(() => {
+      //   this.loading = false
+      // })
     },
     getList(row) {
       let params = { id: row.id }
@@ -258,7 +260,11 @@
 
     },
     handleSubmit(item) {
-      alert(1)
+      var arr1 = this.list.filter(key => key.substituteMaterialCode === item.substituteMaterialCode)
+      if(arr1.length>0){
+        this.$message.warning("宸插瓨鍦ㄧ浉鍚岀墿鏂�")
+        return
+      }
       this.list.push(item) 
       this.visible = false
     },
@@ -267,11 +273,6 @@
     },
     itemDelete(record, index) {
       this.list.splice(index, 1)
-    },
-    addLine(){
-      this.list.push({
-        
-      })
     }
   }
 }

--
Gitblit v1.9.3