Browse Source

修复bug

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

3
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']
@ -168,6 +168,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
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['toBatch'] = val[0]['batch']
setV['locationCode'] = val[0]['locationCode'] setV['locationCode'] = val[0]['locationCode']
setV['fromQty'] = val[0]['qty'] setV['fromQty'] = val[0]['qty']
setV['fromInventoryStatus'] = val[0]['inventoryStatus'] setV['fromInventoryStatus'] = val[0]['inventoryStatus']

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