From f4d2c032c91e459ee8775ba88870478be3e76261 Mon Sep 17 00:00:00 2001
From: payne <bzrlw2012@163.com>
Date: 周三, 24 4月 2024 14:39:09 +0800
Subject: [PATCH] 调整

---
 iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue |  109 +++++++++++++++++++++++++++++-------------------------
 1 files changed, 59 insertions(+), 50 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 a7029c1..1d87a39 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
@@ -7,6 +7,9 @@
         <!-- <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>
@@ -25,20 +28,17 @@
         </div>
       </div>
 
-      <p @click="visible = true">鏂板琛�</p>
+      <p @click="$refs.showList.add()">鏂板琛�</p>
 
-      <a-modal title="鏇夸唬鍝佸垪琛�" :width="900" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit"
-        @cancel="handleCancel">
-        <show-list ref="showList" @ok="handleOk" />
-        <!-- <a-spin :spinning="confirmLoading"></a-spin> -->
-      </a-modal>
+      <show-list ref="showList" @ok="handleSubmit" />
+     
     </div>
   </div>
 </template>
 
 <script>
 import { WmsOrderRukuDetail } from '@/api/modular/main/WmsOrderManage'
-import showList from './index.vue'
+import showList from './addForm.vue'
 
 export default {
   name: 'wmsOrderRukuManagementDetailDrawer',
@@ -92,46 +92,46 @@
 					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: 'materialCode'
+				// },
+				// {
+				// 	title: '鐗╂枡鍚嶇О',
+				// 	align: 'center',
+				// 	customHeaderCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	customCell: () => {
+				// 		return {
+				// 			style: {
+				// 				'min-width': '120px'//鏈�灏忓垪瀹借缃�
+				// 			}
+				// 		}
+				// 	},
+				// 	sorter: true,
+				// 	dataIndex: 'materialName'
+				// },
 				{
 					title: '鏇夸唬鍝佺墿鏂欑紪鍙�',
 					align: 'center',
@@ -234,7 +234,10 @@
         this.afterClsoe()
       }
     },
-    initShow() {
+
+    initShow(materialCode,materialName) {
+      this.materialCode = materialCode
+      this.materialName = materialName
       this.loading = true
       this.getList(() => {
         this.loading = false
@@ -258,9 +261,10 @@
       this.list = []
     },
     handleOk(param) {
-      this.list = param
+
     },
-    handleSubmit() {
+    handleSubmit(item) {
+      this.list.push(item) 
       this.visible = false
     },
     handleCancel() {
@@ -268,6 +272,11 @@
     },
     itemDelete(record, index) {
       this.list.splice(index, 1)
+    },
+    addLine(){
+      this.list.push({
+        
+      })
     }
   }
 }

--
Gitblit v1.9.3