|
|
@ -17,6 +17,9 @@ import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/produ |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
|
|
|
|
import * as WarehouseApi from '@/api/wms/warehouse' |
|
|
|
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
@ -37,6 +40,17 @@ const userDept = userStore.userSelfInfo.dept |
|
|
|
* @returns {Array} 发料申请主表 |
|
|
|
*/ |
|
|
|
export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '车间代码', |
|
|
|
field: 'workshopCode', |
|
|
@ -80,39 +94,54 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从仓库代码', |
|
|
|
field: 'fromWarehouseCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
label: '申请时间', |
|
|
|
field: 'requestTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库位类型范围', |
|
|
|
field: 'fromLocationTypes', |
|
|
|
// dictType: DICT_TYPE.LOCATION_TYPE,
|
|
|
|
// dictClass: 'string',
|
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库区代码范围', |
|
|
|
field: 'fromAreaCodes', |
|
|
|
label: '截止时间', |
|
|
|
field: 'dueTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style:{width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到仓库代码', |
|
|
|
field: 'toWarehouseCode', |
|
|
|
label: '从库位类型范围', |
|
|
|
field: 'fromLocationTypes', |
|
|
|
// dictType: DICT_TYPE.LOCATION_TYPE,
|
|
|
|
// dictClass: 'string',
|
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -132,8 +161,8 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库区代码范围', |
|
|
|
field: 'toAreaCodes', |
|
|
|
label: '从库区代码范围', |
|
|
|
field: 'fromAreaCodes', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -141,111 +170,65 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '业务类型', |
|
|
|
field: 'businessType', |
|
|
|
label: '到库区代码范围', |
|
|
|
field: 'toAreaCodes', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: 'Issue', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
label: '从仓库代码', |
|
|
|
field: 'fromWarehouseCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
label: '到仓库代码', |
|
|
|
field: 'toWarehouseCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '申请时间', |
|
|
|
field: 'requestTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '截止时间', |
|
|
|
field: 'dueTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
label: '业务类型', |
|
|
|
field: 'businessType', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
value: 'Issue', |
|
|
|
componentProps: { |
|
|
|
style:{width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '部门', |
|
|
@ -254,42 +237,22 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: userDept.name, |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
|
field: 'updateTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
// form: {
|
|
|
|
// value: userDept.name,
|
|
|
|
// componentProps: {
|
|
|
|
// disabled: true
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
|
field: 'updater', |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '使用在途库', |
|
|
@ -391,52 +354,116 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
|
field: 'updateTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
|
field: 'updater', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isDetail: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 300, |
|
|
|
width: 200, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
export const IssueRequestMainRules = reactive({ |
|
|
|
// workshopCode: [
|
|
|
|
// { required: true, message: '请选择车间代码', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
fromWarehouseCode: [ |
|
|
|
{ required: true, message: '请输入从仓库代码', trigger: 'blur' } |
|
|
|
], |
|
|
|
fromLocationTypes: [ |
|
|
|
{ required: true, message: '请选择从库位类型范围', trigger: 'change' } |
|
|
|
workshopCode: [ |
|
|
|
{ required: true, message: '请选择车间代码', trigger: 'change' } |
|
|
|
], |
|
|
|
toWarehouseCode: [ |
|
|
|
{ required: true, message: '请输入到仓库代码', trigger: 'blur' } |
|
|
|
], |
|
|
|
toLocationTypes: [ |
|
|
|
{ required: true, message: '请选择到库位类型范围', trigger: 'change' } |
|
|
|
], |
|
|
|
departmentCode: [ |
|
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
|
], |
|
|
|
autoCommit: [ |
|
|
|
{ required: true, message: '请选择是否自动提交', trigger: 'change' } |
|
|
|
], |
|
|
|
autoAgree: [ |
|
|
|
{ required: true, message: '请选择是否自动通过', trigger: 'change' } |
|
|
|
], |
|
|
|
autoExecute: [ |
|
|
|
{ required: true, message: '请选择是否自动执行', trigger: 'change' } |
|
|
|
], |
|
|
|
directCreateRecord: [ |
|
|
|
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } |
|
|
|
fromWarehouseCode: [ |
|
|
|
{ required: true, message: '请选择从仓库代码', trigger: 'change' } |
|
|
|
], |
|
|
|
businessType: [ |
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
dueTime: [ |
|
|
|
{ required: true, message: '请选择截止时间', trigger: 'change' } |
|
|
|
], |
|
|
|
|
|
|
|
// fromLocationTypes: [
|
|
|
|
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// toWarehouseCode: [
|
|
|
|
// { required: true, message: '请输入到仓库代码', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
// toLocationTypes: [
|
|
|
|
// { required: true, message: '请选择到库位类型范围', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// departmentCode: [
|
|
|
|
// { required: true, message: '请输入部门', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
// autoCommit: [
|
|
|
|
// { required: true, message: '请选择是否自动提交', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// autoAgree: [
|
|
|
|
// { required: true, message: '请选择是否自动通过', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// autoExecute: [
|
|
|
|
// { required: true, message: '请选择是否自动执行', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// directCreateRecord: [
|
|
|
|
// { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// businessType: [
|
|
|
|
// { required: true, message: '请输入业务类型', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
|