|
@ -1,8 +1,21 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
|
|
|
|
|
|
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
|
|
|
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
|
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as WorkstationApi from '@/api/wms/workstation' |
|
|
|
|
|
import { Workstation } from '@/views/wms/basicDataManage/factoryModeling/workstation/workstation.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
const queryParams = { |
|
|
const queryParams = { |
|
|
pageSize:10, |
|
|
pageSize:10, |
|
@ -29,6 +42,17 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择车间代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '车间信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WorkshopApi.getWorkshopPage // 查询弹窗所需分页方法
|
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从仓库代码', |
|
|
label: '从仓库代码', |
|
@ -37,6 +61,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库位类型范围', |
|
|
label: '从库位类型范围', |
|
@ -48,6 +73,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区代码范围', |
|
|
label: '从库区代码范围', |
|
@ -56,6 +82,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
@ -75,6 +102,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
@ -99,6 +127,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -129,11 +158,13 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '截止时间', |
|
|
label: '截止时间', |
|
@ -149,6 +180,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -201,6 +233,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -224,6 +257,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库位类型范围', |
|
|
label: '到库位类型范围', |
|
@ -236,6 +270,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区代码范围', |
|
|
label: '到库区代码范围', |
|
@ -244,6 +279,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '自动提交', |
|
|
label: '自动提交', |
|
@ -339,18 +375,18 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const ProductionreturnRequestMainRules = reactive({ |
|
|
export const ProductionreturnRequestMainRules = reactive({ |
|
|
fromWarehouseCode: [ |
|
|
// fromWarehouseCode: [
|
|
|
{ required: true, message: '请输入从仓库代码', trigger: 'blur' } |
|
|
// { required: true, message: '请输入从仓库代码', trigger: 'blur' }
|
|
|
], |
|
|
// ],
|
|
|
fromLocationTypes: [ |
|
|
// fromLocationTypes: [
|
|
|
{ required: true, message: '请选择从库位类型范围', trigger: 'change' } |
|
|
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
|
|
|
], |
|
|
// ],
|
|
|
toWarehouseCode: [ |
|
|
// toWarehouseCode: [
|
|
|
{ required: true, message: '请输入到仓库代码', trigger: 'blur' } |
|
|
// { required: true, message: '请输入到仓库代码', trigger: 'blur' }
|
|
|
], |
|
|
// ],
|
|
|
toLocationTypes: [ |
|
|
// toLocationTypes: [
|
|
|
{ required: true, message: '请选择到库位类型范围', trigger: 'change' } |
|
|
// { required: true, message: '请选择到库位类型范围', trigger: 'change' }
|
|
|
], |
|
|
// ],
|
|
|
departmentCode: [ |
|
|
departmentCode: [ |
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
], |
|
|
], |
|
@ -366,9 +402,9 @@ export const ProductionreturnRequestMainRules = reactive({ |
|
|
directCreateRecord: [ |
|
|
directCreateRecord: [ |
|
|
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } |
|
|
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
businessType: [ |
|
|
// businessType: [
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
// { required: true, message: '请输入业务类型', trigger: 'blur' }
|
|
|
], |
|
|
// ],
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -382,6 +418,25 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ProductionlineApi.getProductionlinePage // 查询弹窗所需分页方法
|
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, |
|
|
|
|
|
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ProductionlineApi.getProductionlinePage // 查询弹窗所需分页方法
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '工位代码', |
|
|
label: '工位代码', |
|
@ -390,6 +445,25 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择工位代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WorkstationApi.getWorkstationPage // 查询弹窗所需分页方法
|
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, |
|
|
|
|
|
searchListPlaceholder: '请选择工位代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WorkstationApi.getWorkstationPage // 查询弹窗所需分页方法
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '库存状态', |
|
|
label: '库存状态', |
|
@ -401,6 +475,9 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从货主代码', |
|
|
label: '从货主代码', |
|
@ -409,6 +486,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到货主代码', |
|
|
label: '到货主代码', |
|
@ -417,6 +496,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装号', |
|
|
label: '包装号', |
|
@ -425,6 +506,25 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择包装号', // 输入框占位文本
|
|
|
|
|
|
searchField: 'packingNumber', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库存余额信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法
|
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, |
|
|
|
|
|
searchListPlaceholder: '请选择包装号', // 输入框占位文本
|
|
|
|
|
|
searchField: 'packingNumber', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库存余额信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '器具号', |
|
|
label: '器具号', |
|
@ -433,6 +533,14 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '批次', |
|
@ -441,6 +549,14 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库位代码', |
|
|
label: '从库位代码', |
|
@ -449,6 +565,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
@ -471,6 +589,14 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
@ -494,6 +620,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -519,6 +646,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述1', |
|
|
label: '物品描述1', |
|
@ -527,6 +656,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述2', |
|
|
label: '物品描述2', |
|
@ -535,6 +666,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目代码', |
|
|
label: '项目代码', |
|
@ -543,6 +676,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
@ -553,6 +688,15 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -565,6 +709,9 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -580,6 +727,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -614,7 +762,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const ProductionreturnRequestDetailRules = reactive({ |
|
|
export const ProductionreturnRequestDetailRules = reactive({ |
|
|
packingNumber: [ |
|
|
packingNumber: [ |
|
|
{ required: true, message: '请输入包装号', trigger: 'blur' } |
|
|
{ required: true, message: '请选择包装号', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
batch: [ |
|
|
batch: [ |
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
@ -622,9 +770,9 @@ export const ProductionreturnRequestDetailRules = reactive({ |
|
|
inventoryStatus: [ |
|
|
inventoryStatus: [ |
|
|
{ required: true, message: '请选择库存状态', trigger: 'change' } |
|
|
{ required: true, message: '请选择库存状态', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
fromLocationCode: [ |
|
|
// fromLocationCode: [
|
|
|
{ required: true, message: '请输入从库位代码', trigger: 'blur' } |
|
|
// { required: true, message: '请输入从库位代码', trigger: 'blur' }
|
|
|
], |
|
|
// ],
|
|
|
itemCode: [ |
|
|
itemCode: [ |
|
|
{ required: true, message: '请输入物品代码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入物品代码', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|