Browse Source

修复bug

master
chenfang 10 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 { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['fromPackingNumber'] = val[0]['packingNumber'] setV['fromPackingNumber'] = val[0]['fromPackingNumber']
setV['toPackingNumber'] = val[0]['packingNumber'] setV['toPackingNumber'] = val[0]['packingNumber']
setV['fromBatch'] = val[0]['batch'] setV['fromBatch'] = val[0]['batch']
setV['toBatch'] = 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 ) => { const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
if(formField == 'fromPackingNumber') { if(formField == 'fromPackingNumber') {
setV['fromPackingNumber'] = val[0]['packingNumber'] setV['fromPackingNumber'] = val[0]['packingNumber']
setV['itemCode'] = val[0]['itemCode'] setV['itemCode'] = val[0]['itemCode']
setV['fromBatch'] = val[0]['batch'] setV['fromBatch'] = val[0]['batch']
setV['locationCode'] = val[0]['locationCode'] setV['toBatch'] = val[0]['batch']
setV['fromQty'] = val[0]['qty'] setV['locationCode'] = val[0]['locationCode']
setV['fromInventoryStatus'] = val[0]['inventoryStatus'] setV['fromQty'] = val[0]['qty']
setV['uom'] = val[0]['uom'] setV['fromInventoryStatus'] = val[0]['inventoryStatus']
} else { setV['uom'] = val[0]['uom']
} else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

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

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