Browse Source

BUG修改

master
parent
commit
dfb6f8aadd
  1. 7
      src/views/eam/item/itemAccounts/index.vue
  2. 16
      src/views/eam/item/itemApplyMain/index.vue

7
src/views/eam/item/itemAccounts/index.vue

@ -181,13 +181,18 @@ const submitItem = async (formFieldRef, searchFieldRef, selections, typeRef, row
})) }))
ItemAccountsApi.replaceLocation(deviceItemRelList).then((res) => { ItemAccountsApi.replaceLocation(deviceItemRelList).then((res) => {
message.success(t('更换成功'))
//
getList()
}) })
} }
const getItemWithOutBind = async () => { const getItemWithOutBind = async () => {
try { try {
const res = await ItemApi.getItemPage({ const res = await ItemApi.getItemPage({
...Item.allSchemas.searchSchema ...Item.allSchemas.searchSchema,
available:"TRUE"
}) })
if (res.list?.length > 0) { if (res.list?.length > 0) {
// const response = await getDeviceItemPage(DeviceAccounts.allSchemas.searchSchema); // const response = await getDeviceItemPage(DeviceAccounts.allSchemas.searchSchema);

16
src/views/eam/item/itemApplyMain/index.vue

@ -73,12 +73,18 @@
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async () => { nextTick(async () => {
if (type == 'tableForm') { if (type == 'tableForm') {
console.log(formField);
// //
row[formField] = val[0][searchField] if (formField == 'itemNumber') {
row['itemNumber'] = val[0]['itemNumber'] row[formField] = val[0][searchField]
row['isRadeIn'] = val[0]['isRadeIn'] row['itemNumber'] = val[0]['itemNumber']
row['currentQty'] = val[0]['qty'] row['isRadeIn'] = val[0]['isInAccount']
row['available'] = val[0]['available'] row['currentQty'] = val[0]['qty']
row['available'] = val[0]['available']
}
if (formField == 'deviceNumber') {
row['deviceNumber'] = val[0]['number']
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

Loading…
Cancel
Save