Browse Source

BUG修改

master
parent
commit
dfb6f8aadd
  1. 7
      src/views/eam/item/itemAccounts/index.vue
  2. 8
      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) => {
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);

8
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);
//
if (formField == 'itemNumber') {
row[formField] = val[0][searchField]
row['itemNumber'] = val[0]['itemNumber']
row['isRadeIn'] = val[0]['isRadeIn']
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]

Loading…
Cancel
Save