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