Browse Source

YT-1404:库存转移,批次——批次,记录的到批次不正确,与申请的不一致

intex_online20241228
宋国强 3 months ago
parent
commit
e1488f2993
  1. 11
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue
  2. 32
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts
  3. 4
      src/views/wms/supplierManage/invoicingcalendar/index.vue

11
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue

@ -341,11 +341,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
toManagementPrecision.value = res[0].ManagementPrecision
})
if (toManagementPrecision.value == 'BY_BATCH') {
row['toBatchFormItemType'] = 'FormDate'
row['disabled_toBatch'] = false
if(row['fromBatch']==''){
row['fromBatchFormItemType'] = 'FormDate'
row['disabled_fromBatch'] = false
}
} else if (toManagementPrecision.value == 'BY_QUANTITY') {
row['toBatchFormItemType'] = ''
row['disabled_toBatch'] = true
//row['fromBatchFormItemType'] = ''
row['disabled_fromBatch'] = true
}
} else {
row[formField] = val[0][searchField]

32
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts

@ -588,22 +588,22 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}
},
},
{
label: '到批次',
field: 'toBatch',
sort: 'custom',
table: {
width: 150
},
isTableForm: true,
isForm: false,
tableForm: {
disabled: true,
placeholder: '请选择从批次',
valueFormat: 'YYYYMMDD',
format: 'YYYYMMDD',
},
},
// {
// label: '到批次',
// field: 'toBatch',
// sort: 'custom',
// table: {
// width: 150
// },
// isTableForm: true,
// isForm: false,
// tableForm: {
// disabled: true,
// placeholder: '请选择从批次',
// valueFormat: 'YYYYMMDD',
// format: 'YYYYMMDD',
// },
// },
{
label: '从包装号',
field: 'fromPackingNumber',

4
src/views/wms/supplierManage/invoicingcalendar/index.vue

@ -168,14 +168,14 @@ const formsSuccess = async (formType,data) => {
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
if(data.beginDay > data.endDay){
if(parseFloat(data.beginDay) > parseFloat(data.endDay)){
message.error('开始日期要小于截止日期')
return;
}
await InvoicingcalendarApi.createInvoicingcalendar(data)
message.success(t('common.createSuccess'))
} else {
if(data.beginDay > data.endDay){
if(parseFloat(data.beginDay) > parseFloat(data.endDay)){
message.error('开始日期要小于截止日期')
return;
}

Loading…
Cancel
Save