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 { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
import * as ruleApi from '@/api/wms/rule/index' import * as ruleApi from '@/api/wms/rule/index'
import { formatTime } from '@/utils/index'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// //
// 使 // 使
@ -327,6 +328,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
newRow['qty'] = item['qty'] newRow['qty'] = item['qty']
newRow['toInventoryStatus'] = item['inventoryStatus']// newRow['toInventoryStatus'] = item['inventoryStatus']//
newRow['toBatch'] = formatTime(new Date(), 'yyyyMMdd')
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
}else if (formField == 'toLocationCode') { }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: '到批次', label: '到批次',
// field: 'toBatch', field: 'toBatch',
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// isTableForm: true, tableForm: {
// isForm: false, disabled: false,
// tableForm: { type:'FormDate',
// disabled: true, placeholder: '请选择到批次',
// placeholder: '请选择从批次', valueFormat: 'YYYYMMDD',
// valueFormat: 'YYYYMMDD', format: 'YYYYMMDD',
// format: 'YYYYMMDD', },
// }, form: {
// }, componentProps: {
disabled: false,
valueFormat: 'YYYYMMDD',
}
}
},
{ {
label: '从包装号', label: '从包装号',
field: 'fromPackingNumber', field: 'fromPackingNumber',

Loading…
Cancel
Save