|
@ -10,7 +10,8 @@ import { Workstation } from '@/views/wms/basicDataManage/factoryModeling/worksta |
|
|
|
|
|
|
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data' |
|
|
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data' |
|
|
|
|
|
import * as ItempackagingApi from '@/api/wms/itempackage' |
|
|
|
|
|
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' |
|
|
import * as ProductionlineitemApi from '@/api/wms/productionlineitem' |
|
|
import * as ProductionlineitemApi from '@/api/wms/productionlineitem' |
|
|
import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data' |
|
|
import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data' |
|
|
|
|
|
|
|
@ -301,6 +302,21 @@ export const IssueRequestMain = useCrudSchemas( |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '优先级', |
|
|
|
|
|
field: 'priority', |
|
|
|
|
|
dictType: DICT_TYPE.PRIORITY, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Select' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区类型范围', |
|
|
label: '从库区类型范围', |
|
|
field: 'fromAreaTypes', |
|
|
field: 'fromAreaTypes', |
|
@ -880,26 +896,124 @@ export const IssueRequestDetail = useCrudSchemas( |
|
|
isForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '包装规格', |
|
|
field: 'qty', |
|
|
field: 'packUnit', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
isInpuFocusShow: true, |
|
|
|
|
|
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
|
|
|
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: 'itemCode', |
|
|
|
|
|
message: '请填写物料代码!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
// form: {
|
|
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
// componentProps: {
|
|
|
|
|
|
// enterSearch:true,
|
|
|
|
|
|
// isSearch:true,
|
|
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
// searchListPlaceholder: '请选择包装规格', // 输入框占位文本
|
|
|
|
|
|
// searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
|
|
// 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,
|
|
|
|
|
|
// }], // 失去焦点校验参数
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '标包数', |
|
|
|
|
|
field: 'packQty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
|
|
|
disabled:true, |
|
|
type: 'InputNumber', |
|
|
type: 'InputNumber', |
|
|
min: 0, |
|
|
min: 0, |
|
|
precision: 6 |
|
|
precision: 0 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '包装数', |
|
|
|
|
|
field: 'qty1', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain: true, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 0 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
min: 0, |
|
|
min: 0, |
|
|
precision: 6 |
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '数量', |
|
|
|
|
|
field: 'qty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain: true, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'slot' |
|
|
|
|
|
}, |
|
|
|
|
|
// form: {
|
|
|
|
|
|
// component: 'InputNumber',
|
|
|
|
|
|
// componentProps: {
|
|
|
|
|
|
// min: 0,
|
|
|
|
|
|
// precision: 6
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '计量单位', |
|
@ -1170,6 +1284,10 @@ export const IssueRequestDetailRules = reactive({ |
|
|
toLocationCode: [ |
|
|
toLocationCode: [ |
|
|
{ required: true, message: '请输入到库位代码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入到库位代码', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
|
|
|
qty1: [ |
|
|
|
|
|
{ required: true, message: '请输入包装数量', trigger: 'blur' }, |
|
|
|
|
|
{ min: true, message: '包装数量不能小于1', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
qty: [ |
|
|
qty: [ |
|
|
{ required: true, message: '请输入数量', trigger: 'blur' } |
|
|
{ required: true, message: '请输入数量', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|