Browse Source

修复bug

master
chenfang 11 months ago
parent
commit
76293ee63c
  1. 23
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  2. 19
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

23
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -133,7 +133,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else {
const setV = {}
setV[formField] = val[0][searchField]
setV['fromPackingNumber'] = val[0]['packingNumber']
setV['fromPackingNumber'] = val[0]['fromPackingNumber']
setV['toPackingNumber'] = val[0]['packingNumber']
setV['fromBatch'] = val[0]['batch']
setV['toBatch'] = val[0]['batch']
@ -164,17 +164,18 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
if(formField == 'fromPackingNumber') {
setV['fromPackingNumber'] = val[0]['packingNumber']
setV['itemCode'] = val[0]['itemCode']
setV['fromBatch'] = val[0]['batch']
setV['locationCode'] = val[0]['locationCode']
setV['fromQty'] = val[0]['qty']
setV['fromInventoryStatus'] = val[0]['inventoryStatus']
setV['uom'] = val[0]['uom']
} else {
if(formField == 'fromPackingNumber') {
setV['fromPackingNumber'] = val[0]['packingNumber']
setV['itemCode'] = val[0]['itemCode']
setV['fromBatch'] = val[0]['batch']
setV['toBatch'] = val[0]['batch']
setV['locationCode'] = val[0]['locationCode']
setV['fromQty'] = val[0]['qty']
setV['fromInventoryStatus'] = val[0]['inventoryStatus']
setV['uom'] = val[0]['uom']
} else {
setV[formField] = val[0][searchField]
}
}
formRef.setValues(setV)
})
}

19
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -447,6 +447,11 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '从器具号',
@ -498,6 +503,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: {
component: 'InputNumber',
componentProps: {
min:1,
precision: 6
}
},
@ -908,16 +914,19 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
//表单校验
export const InventorychangeRequestDetailRules = reactive({
locationCode: [
{ required: true, message: '请选择库位代码', trigger: 'change' }
],
// locationCode: [
// { required: true, message: '请选择库位代码', trigger: 'change' }
// ],
// locationGroupCode: [
// { required: true, message: '请选择库位组代码', trigger: 'change' }
// ],
// areaCode: [
// { required: true, message: '请选择库区代码', trigger: 'change' }
// ],
itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' }
// itemCode: [
// { required: true, message: '请选择物品代码', trigger: 'change' }
// ],
toInventoryStatus: [
{ required: true, message: '请选择到库存状态', trigger: 'change' }
],
})
Loading…
Cancel
Save