diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue
index e4bbf084..ccf0430c 100644
--- a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue
+++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue
@@ -103,10 +103,10 @@
物料名称
- handleMatCode(scope, val)" class="!w-180px">
-
+ @change="(val) => handleMatName(scope, val)" class="!w-180px">
+
@@ -625,7 +625,7 @@ const getMatList = async (name) =>{
pageSize: 10,
status: '1'
}
- if(name){
+ if(name.length>0){
matParams.name = name
}
@@ -672,14 +672,14 @@ const handlePn = async (scope) =>{
const matSelectLoading = ref(false)
-const remoteMatCodeSearch = async (name) => {
+const remoteMatNameSearch = async (name) => {
matSelectLoading.value = true
// 获得物料列表
await getMatList(name)
matSelectLoading.value = false
}
-const handleMatCode = async (scope, matid) => {
+const handleMatName = async (scope, matid) => {
scope.row.matId = scope.row.matList.find((item) => item.id === matid)?.id
scope.row.matName = scope.row.matList.find((item) => item.id === matid)?.name
scope.row.matCode = scope.row.matList.find((item) => item.id === matid)?.code
@@ -687,9 +687,10 @@ const handleMatCode = async (scope, matid) => {
scope.row.matType = scope.row.matList.find((item) => item.id === matid)?.materialType
scope.row.matUnit = scope.row.matList.find((item) => item.id === matid)?.unit
- if(matid.length==0){
- scope.row.rgId = ''
+ scope.row.rgId = ''
scope.row.pnId = ''
+ if(matid.length==0){
+
}
scope.row.pnlist = pnList.value.filter(pn => pn.wh_id == formData.value.whId && matLastData.value.filter( mat => mat.matId == matid && mat.pnId == pn.id).length>0)