diff --git a/src/views/eam/item/itemAccounts/index.vue b/src/views/eam/item/itemAccounts/index.vue index 9efea87..a1669bc 100644 --- a/src/views/eam/item/itemAccounts/index.vue +++ b/src/views/eam/item/itemAccounts/index.vue @@ -181,13 +181,18 @@ const submitItem = async (formFieldRef, searchFieldRef, selections, typeRef, row })) ItemAccountsApi.replaceLocation(deviceItemRelList).then((res) => { + message.success(t('更换成功')) + // 刷新列表 + getList() }) } const getItemWithOutBind = async () => { try { const res = await ItemApi.getItemPage({ - ...Item.allSchemas.searchSchema + ...Item.allSchemas.searchSchema, + available:"TRUE" + }) if (res.list?.length > 0) { // const response = await getDeviceItemPage(DeviceAccounts.allSchemas.searchSchema); diff --git a/src/views/eam/item/itemApplyMain/index.vue b/src/views/eam/item/itemApplyMain/index.vue index bb1ec5c..28798d6 100644 --- a/src/views/eam/item/itemApplyMain/index.vue +++ b/src/views/eam/item/itemApplyMain/index.vue @@ -73,12 +73,18 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { nextTick(async () => { if (type == 'tableForm') { + console.log(formField); // 明细查询页赋值 - row[formField] = val[0][searchField] - row['itemNumber'] = val[0]['itemNumber'] - row['isRadeIn'] = val[0]['isRadeIn'] - row['currentQty'] = val[0]['qty'] - row['available'] = val[0]['available'] + if (formField == 'itemNumber') { + row[formField] = val[0][searchField] + row['itemNumber'] = val[0]['itemNumber'] + row['isRadeIn'] = val[0]['isInAccount'] + row['currentQty'] = val[0]['qty'] + row['available'] = val[0]['available'] + } + if (formField == 'deviceNumber') { + row['deviceNumber'] = val[0]['number'] + } } else { const setV = {} setV[formField] = val[0][searchField]