Browse Source

YT-1744【库存转移申请】增加到批次的选择,默认当天,可修改,非必填项。

intex_online20241224
zhaoyiran 2 months ago
parent
commit
4e06a3d659
  1. 2
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue
  2. 37
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts

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

@ -95,6 +95,7 @@ import * as LocationApi from '@/api/wms/location'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import * as ruleApi from '@/api/wms/rule/index'
import { formatTime } from '@/utils/index'
const { loadStart, loadDone } = usePageLoading()
//
// 使
@ -327,6 +328,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['uom'] = item['uom']
newRow['qty'] = item['qty']
newRow['toInventoryStatus'] = item['inventoryStatus']//
newRow['toBatch'] = formatTime(new Date(), 'yyyyMMdd')
tableData.value.push(newRow)
})
}else if (formField == 'toLocationCode') {

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

@ -588,22 +588,27 @@ 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
},
tableForm: {
disabled: false,
type:'FormDate',
placeholder: '请选择到批次',
valueFormat: 'YYYYMMDD',
format: 'YYYYMMDD',
},
form: {
componentProps: {
disabled: false,
valueFormat: 'YYYYMMDD',
}
}
},
{
label: '从包装号',
field: 'fromPackingNumber',

Loading…
Cancel
Save