From 1eb08ced0ef966804e96c9b792bba45ca6eb6601 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 25 4月 2024 11:25:45 +0800
Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/iWare_RawMaterialWarehouse

---
 iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue
index 44fff97..3937741 100644
--- a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue
+++ b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue
@@ -39,10 +39,11 @@
                 <a-form-item label="ERP浠g爜">
                   <a-input v-model="queryParam.erpCode" allow-clear placeholder="璇疯緭鍏RP浠g爜"/>
                 </a-form-item>
-              </a-col>
-              <a-col :md="8" :sm="24">
+              </a-col><a-col :md="8" :sm="24">
                 <a-form-item label="鎵�灞炰粨搴�">
-                  <a-input v-model="queryParam.warehouseId" allow-clear placeholder="璇疯緭鍏ユ墍灞炰粨搴�"/>
+                  <a-select :allowClear="true" style="width: 100%" v-model="queryParam.warehouseId" placeholder="璇烽�夋嫨鎵�灞炰粨搴�">
+                    <a-select-option v-for="(item,index) in warehouseIdData" :key="index" :value="item.code">{{ item.name }}</a-select-option>
+                  </a-select>
                 </a-form-item>
               </a-col>
 			<a-col :md="8" :sm="24">
@@ -168,6 +169,9 @@
 			<a-button type="primary" v-if="hasPerm('WmsArea:add')" icon="plus" @click="$refs.addForm.add()">鏂板搴撳尯淇℃伅</a-button>
 		</div>
 		</template>
+		  <span slot="warehouseIdscopedSlots" slot-scope="text">
+			{{ 'area_type' | dictType(text) }}
+			</span>
 		  <span slot="isBarcodeLevelControlscopedSlots" slot-scope="text">
 			<div v-if="text===true ">
 				<a-tag color="green">鏄�</a-tag>
@@ -438,7 +442,8 @@
 	}
 	},
 	sorter: true,
-	dataIndex: 'warehouseId'
+	dataIndex: 'warehouseId',
+	scopedSlots: { customRender: 'warehouseIdscopedSlots' }
 	},
 	{
 	title: '闆朵欢绾х鎺�',
@@ -675,6 +680,7 @@
 	return res.data
 	})
 	},
+        warehouseIdData: [],
 	selectedRowKeys: [],
 	selectedRows: []
 	}
@@ -701,6 +707,8 @@
 	}
 	});
 	}
+	const warehouseIdOption = this.$options
+	this.warehouseIdData = warehouseIdOption.filters['dictData']('area_type')
 	const isBarcodeLevelControlOption = this.$options
 	this.isBarcodeLevelControlData = isBarcodeLevelControlOption.filters['dictData']('yes_true_false')
 	const isFIFOOption = this.$options
@@ -824,4 +832,5 @@
   button {
     margin-right: 8px;
   }
+
 </style>

--
Gitblit v1.9.3