|
@ -1,23 +1,27 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; |
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
import * as ItembasicApi from "@/api/wms/itembasic"; |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import { Productionline } from "@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data"; |
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
import * as ProductionlineApi from "@/api/wms/productionline"; |
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
import { Shift } from "@/views/wms/basicDataManage/orderManage/shift/shift.data"; |
|
|
import { Shift } from '@/views/wms/basicDataManage/orderManage/shift/shift.data' |
|
|
import * as ShiftApi from "@/api/wms/shift"; |
|
|
import * as ShiftApi from '@/api/wms/shift' |
|
|
import { Team } from "@/views/wms/basicDataManage/orderManage/team/team.data"; |
|
|
import { Team } from '@/views/wms/basicDataManage/orderManage/team/team.data' |
|
|
import * as TeamApi from "@/api/wms/team"; |
|
|
import * as TeamApi from '@/api/wms/team' |
|
|
|
|
|
|
|
|
|
|
|
import * as ItempackagingApi from '@/api/wms/itempackage' |
|
|
|
|
|
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const PackageRules = reactive({ |
|
|
export const PackageRules = reactive({ |
|
|
number: [required], |
|
|
number: [required], |
|
|
itemCode: [required], |
|
|
itemCode: [required], |
|
|
itemName: [required], |
|
|
itemName: [required] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const Package = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '标签号', |
|
|
label: '标签号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
@ -25,7 +29,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
fixed: 'left', |
|
|
fixed: 'left', |
|
|
width:210 |
|
|
width: 210 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -43,7 +47,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '标签模板', |
|
|
label: '标签模板', |
|
|
field: 'template', |
|
|
field: 'template', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 180 |
|
|
} |
|
|
} |
|
@ -52,7 +56,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '标签状态', |
|
|
label: '标签状态', |
|
|
field: 'status', |
|
|
field: 'status', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
dictType: DICT_TYPE.LABEL_STATUS, |
|
|
dictType: DICT_TYPE.LABEL_STATUS, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
@ -64,7 +68,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '关联号', |
|
|
label: '关联号', |
|
|
field: 'relateNumber', |
|
|
field: 'relateNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 210 |
|
|
width: 210 |
|
|
} |
|
|
} |
|
@ -74,7 +78,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'barcodeString', |
|
|
field: 'barcodeString', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 380, |
|
|
width: 380 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
@ -130,12 +134,12 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '是否可用', |
|
|
label: '是否可用', |
|
|
field: 'available', |
|
|
field: 'available', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
search: { |
|
|
search: { |
|
|
value: 'TRUE', |
|
|
value: 'TRUE' |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Switch', |
|
|
component: 'Switch', |
|
@ -158,15 +162,15 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
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' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -196,10 +200,10 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
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' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -222,16 +226,18 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const PackageInventory = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '物料代码', |
|
|
label: '物料代码', |
|
|
field: 'itemCode', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -243,23 +249,28 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '物料信息', |
|
|
searchTitle: '物料信息', |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}, { |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'enableMake', |
|
|
key: 'enableMake', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}], |
|
|
} |
|
|
verificationParams: [{ |
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'code', |
|
|
key: 'code', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isFormModel: true, |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -268,27 +279,27 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'itemName', |
|
|
field: 'itemName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm:false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料描述1', |
|
|
label: '物料描述1', |
|
|
field: 'itemDesc1', |
|
|
field: 'itemDesc1', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm:false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料描述2', |
|
|
label: '物料描述2', |
|
|
field: 'itemDesc2', |
|
|
field: 'itemDesc2', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm:false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '批次', |
|
@ -296,8 +307,8 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
|
// label: '替代批次',
|
|
|
// label: '替代批次',
|
|
@ -315,24 +326,24 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
valueFormat: 'YYYY-MM-DD', |
|
|
valueFormat: 'YYYY-MM-DD', |
|
|
type: 'daterange', |
|
|
type: 'daterange', |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width: '100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'date', |
|
|
type: 'date', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 180, |
|
|
width: 180 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '有效期(日)', |
|
|
label: '有效期(日)', |
|
@ -348,8 +359,8 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '失效日期', |
|
|
label: '失效日期', |
|
@ -359,7 +370,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
type: 'daterange', |
|
|
type: 'daterange', |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], |
|
@ -369,7 +380,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width: '100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'date', |
|
|
type: 'date', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -377,8 +388,8 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 180, |
|
|
width: 180 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '计量单位', |
|
@ -390,15 +401,15 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
component: 'Select' |
|
|
component: 'Select' |
|
|
}, |
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
@ -407,7 +418,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
precision: 6 |
|
|
precision: 6 |
|
|
}, |
|
|
}, |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '替代计量单位', |
|
|
label: '替代计量单位', |
|
@ -419,15 +430,15 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
component: 'Select' |
|
|
component: 'Select' |
|
|
}, |
|
|
}, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '替代数量', |
|
|
label: '替代数量', |
|
|
field: 'altQty', |
|
|
field: 'altQty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
@ -436,49 +447,102 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
precision: 6 |
|
|
precision: 6 |
|
|
}, |
|
|
}, |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '转换率', |
|
|
label: '转换率', |
|
|
field: 'convertRate', |
|
|
field: 'convertRate', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '包装数量', |
|
|
label: '包装规格', |
|
|
field: 'packQty', |
|
|
field: 'packUnit', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 120 |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
disabled: true |
|
|
enterSearch: true, |
|
|
} |
|
|
isInpuFocusShow: true, |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
|
|
|
|
|
|
searchField: 'packUnit', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装规格', |
|
|
key: 'itemCode', |
|
|
field: 'packUnit', |
|
|
value: 'itemCode', |
|
|
sort: 'custom', |
|
|
message: '请先选择物料代码!', |
|
|
// dictType: DICT_TYPE.PACK_UNIT,
|
|
|
isMainValue: true |
|
|
// dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
} |
|
|
table: { |
|
|
], |
|
|
width: 150, |
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'packUnit', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true |
|
|
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Select', |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
|
|
|
|
|
|
searchField: 'packUnit', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: 'itemCode', |
|
|
|
|
|
message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'packUnit', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true |
|
|
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
{ |
|
|
disabled: true |
|
|
label: '包装数量', |
|
|
|
|
|
field: 'packQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
@ -518,7 +582,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'productionLineCodePackage', |
|
|
field: 'productionLineCodePackage', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -530,19 +594,23 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '生产线信息', |
|
|
searchTitle: '生产线信息', |
|
|
searchAllSchemas: Productionline.allSchemas, |
|
|
searchAllSchemas: Productionline.allSchemas, |
|
|
searchPage: ProductionlineApi.getProductionlinePage, |
|
|
searchPage: ProductionlineApi.getProductionlinePage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}], |
|
|
} |
|
|
verificationParams: [{ |
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'code', |
|
|
key: 'code', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isFormModel: true, |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -551,7 +619,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'teamCode', |
|
|
field: 'teamCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -563,19 +631,23 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '生产线信息', |
|
|
searchTitle: '生产线信息', |
|
|
searchAllSchemas: Team.allSchemas, |
|
|
searchAllSchemas: Team.allSchemas, |
|
|
searchPage: TeamApi.getTeamPage, |
|
|
searchPage: TeamApi.getTeamPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}], |
|
|
} |
|
|
verificationParams: [{ |
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'code', |
|
|
key: 'code', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isFormModel: true, |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -584,7 +656,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'shiftCode', |
|
|
field: 'shiftCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -596,19 +668,23 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '生产线信息', |
|
|
searchTitle: '生产线信息', |
|
|
searchAllSchemas: Shift.allSchemas, |
|
|
searchAllSchemas: Shift.allSchemas, |
|
|
searchPage: ShiftApi.getShiftPage, |
|
|
searchPage: ShiftApi.getShiftPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}], |
|
|
} |
|
|
verificationParams: [{ |
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'code', |
|
|
key: 'code', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isFormModel: true, |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -621,38 +697,25 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const PackageRulesInventor = reactive({ |
|
|
export const PackageRulesInventor = reactive({ |
|
|
itemCode: [ |
|
|
itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }], |
|
|
{ required: true, message: '请选择物料代码', trigger: 'change' } |
|
|
batch: [{ required: true, message: '请输入批次', trigger: 'blur' }], |
|
|
], |
|
|
produceDate: [{ required: true, message: '请选择生产日期', trigger: 'change' }], |
|
|
batch: [ |
|
|
validityDays: [{ required: true, message: '请输入有效期(日)', trigger: 'blur' }], |
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
expireDate: [{ required: true, message: '请选择失效日期', trigger: 'change' }], |
|
|
], |
|
|
uom: [{ required: true, message: '请选择计量单位', trigger: 'change' }], |
|
|
produceDate: [ |
|
|
qty: [{ required: true, message: '请输入数量', trigger: 'blur' }], |
|
|
{ required: true, message: '请选择生产日期', trigger: 'change' } |
|
|
woNumber: [{ required: true, message: '请选择生产订单号', trigger: 'change' }], |
|
|
], |
|
|
woLine: [{ required: true, message: '请选择生产订单行', trigger: 'change' }], |
|
|
validityDays: [ |
|
|
productionLineCodePackage: [{ required: true, message: '请选择生产线代码', trigger: 'change' }], |
|
|
{ required: true, message: '请输入有效期(日)', trigger: 'blur' } |
|
|
packUnit: [ |
|
|
], |
|
|
{ required: true, message: '请选择包装规格', trigger: ['change','blur'] } |
|
|
expireDate: [ |
|
|
|
|
|
{ required: true, message: '请选择失效日期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
uom: [ |
|
|
|
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
qty: [ |
|
|
|
|
|
{ required: true, message: '请输入数量', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
woNumber: [ |
|
|
|
|
|
{ required: true, message: '请选择生产订单号', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
woLine: [ |
|
|
|
|
|
{ required: true, message: '请选择生产订单行', trigger: 'change' } |
|
|
|
|
|
], |
|
|
], |
|
|
productionLineCodePackage: [ |
|
|
packQty: [ |
|
|
{ required: true, message: '请选择生产线代码', trigger: 'change' } |
|
|
{ required: true, message: '请输入包装数量', trigger: ['change','blur'] } |
|
|
], |
|
|
], |
|
|
}) |
|
|
}) |
|
|