You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
914 lines
19 KiB
914 lines
19 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
import { TableColumn } from '@/types/table'
|
|
import { QadCostcentre } from '@/views/wms/basicDataManage/subject/qadCostcentre/qadCostcentre.data'
|
|
import * as QadCostcentreApi from '@/api/wms/qadCostcentre/index'
|
|
|
|
import { QadProject } from '@/views/wms/basicDataManage/subject/qadProject/qadProject.data'
|
|
import * as QadProjectApi from '@/api/wms/qadProject'
|
|
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount'
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data'
|
|
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库任务主表
|
|
*/
|
|
export const UnplannedissueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '单据号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150,
|
|
fixed: 'left'
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
|
|
dictClass: 'string',
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
|
|
return cellValue
|
|
},
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
componentProps: {
|
|
filterable: true
|
|
}
|
|
},
|
|
tableForm: {
|
|
type: 'Select',
|
|
filterable: true
|
|
}
|
|
},
|
|
{
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '成本中心代码',
|
|
field: 'costCenterCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
tableForm: {
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
searchListPlaceholder: '请选择成本中心代码',
|
|
searchField: 'costcentreCode',
|
|
searchTitle: '成本中心代码',
|
|
searchAllSchemas: QadCostcentre.allSchemas,
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage
|
|
},
|
|
form: {
|
|
// labelMessage: '信息提示说明!!!',
|
|
componentProps: {
|
|
isSearchList: true, // 开启查询弹窗
|
|
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
searchTitle: '成本中心代码', // 查询弹窗标题
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
searchCondition: [{
|
|
key: 'available',
|
|
value: 'TRUE',
|
|
isMainValue: false
|
|
}]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '成本中心类型',
|
|
field: 'costCenterType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
componentProps: {
|
|
disabled: true
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '领用原因代码',
|
|
field: 'reasonCodeRequisition',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
tableForm: {
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
searchListPlaceholder: '请选择成领用原因代码',
|
|
searchField: 'code',
|
|
searchTitle: '领用原因代码',
|
|
searchAllSchemas: SubjectAccount.allSchemas,
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage,
|
|
searchCondition: [{
|
|
key: 'available',
|
|
value: 'TRUE',
|
|
isMainValue: false
|
|
},{
|
|
key: 'costcentreType',
|
|
value: 'costCenterType',
|
|
message: '成本中心类型不能为空!',
|
|
isMainValue: true
|
|
}]
|
|
},
|
|
form: {
|
|
// labelMessage: '信息提示说明!!!',
|
|
componentProps: {
|
|
isSearchList: true, // 开启查询弹窗
|
|
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
searchTitle: '领用原因代码', // 查询弹窗标题
|
|
searchAllSchemas: SubjectAccount.allSchemas, // 查询弹窗所需类
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法
|
|
searchCondition: [{
|
|
key: 'available',
|
|
value: 'TRUE',
|
|
isMainValue: false
|
|
},{
|
|
key: 'costcentreType',
|
|
value: 'costCenterType',
|
|
message: '成本中心类型不能为空!',
|
|
isMainValue: true
|
|
}]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
tableForm: {
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
searchListPlaceholder: '请选择QAD项目信息',
|
|
searchField: 'projectCode',
|
|
searchTitle: '领用原因代码',
|
|
searchAllSchemas: QadProject.allSchemas,
|
|
searchPage: QadProjectApi.getQadProjectPage
|
|
},
|
|
form: {
|
|
// labelMessage: '信息提示说明!!!',
|
|
componentProps: {
|
|
isSearchList: true, // 开启查询弹窗
|
|
searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本
|
|
searchField: 'projectCode', // 查询弹窗赋值字段
|
|
searchTitle: '领用原因代码', // 查询弹窗标题
|
|
searchAllSchemas: QadProject.allSchemas, // 查询弹窗所需类
|
|
searchPage: QadProjectApi.getQadProjectPage, // 查询弹窗所需分页方法
|
|
searchCondition: [{
|
|
key: 'available',
|
|
value: 'TRUE',
|
|
isMainValue: false
|
|
}]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '工作中心',
|
|
field: 'workCenter',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
// {
|
|
// label: '状态',
|
|
// field: 'jobStageStatus',
|
|
// sort: 'custom',
|
|
// table: {
|
|
// width: 150
|
|
// },
|
|
// },
|
|
{
|
|
label: '从库区类型范围',
|
|
field: 'fromAreaTypes',
|
|
dictType: DICT_TYPE.AREA_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到库区类型范围',
|
|
field: 'toAreaTypes',
|
|
dictType: DICT_TYPE.AREA_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false,
|
|
table: {
|
|
width: 120,
|
|
fixed: 'right'
|
|
},
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const UnplannedissueJobMainRules = reactive({
|
|
requestNumber: [
|
|
{ required: true, message: '请选择申请单号', trigger: 'change' }
|
|
],
|
|
fromWarehouseCode: [
|
|
{ required: true, message: '请选择仓库代码', trigger: 'change' }
|
|
],
|
|
fromAreaTypes: [
|
|
{ required: true, message: '请选择从库区类型范围', trigger: 'change' }
|
|
],
|
|
fromAreaCodes: [
|
|
{ required: true, message: '请选择从库区代码范围', trigger: 'change' }
|
|
],
|
|
requestTime: [
|
|
{ required: true, message: '请输入申请时间', trigger: 'change' }
|
|
],
|
|
requestDueTime: [
|
|
{ required: true, message: '请输入要求截止时间', trigger: 'change' }
|
|
],
|
|
status: [
|
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
|
],
|
|
// jobStageStatus: [
|
|
// { required: true, message: '请选择阶段状态', trigger: 'change' }
|
|
// ],
|
|
priority: [
|
|
{ required: true, message: '请输入优先级', trigger: 'blur' }
|
|
],
|
|
priorityIncrement: [
|
|
{ required: true, message: '请输入优先级增量', trigger: 'blur' }
|
|
],
|
|
departmentCode: [
|
|
{ required: true, message: '请输入部门', trigger: 'blur' }
|
|
],
|
|
userPositionCode: [
|
|
{ required: true, message: '请输入岗位', trigger: 'blur' }
|
|
],
|
|
number: [
|
|
{ required: true, message: '请输入单据号', trigger: 'blur' }
|
|
],
|
|
businessType: [
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' }
|
|
],
|
|
createTime: [
|
|
{ required: true, message: '请输入创建时间', trigger: 'blur' }
|
|
],
|
|
creator: [
|
|
{ required: true, message: '请输入创建者', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库任务子表
|
|
*/
|
|
export const UnplannedissueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '单据号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
hiddenInMain:true,
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '品番',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '品名',
|
|
field: 'itemName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '背番',
|
|
field: 'itemDesc1',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'itemDesc2',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
// {
|
|
// label: '器具号',
|
|
// field: 'containerNumber',
|
|
// sort: 'custom',
|
|
// isTable:false,
|
|
// table: {
|
|
// width: 150
|
|
// },
|
|
// },
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode',
|
|
sort: 'custom',
|
|
isTable:false,
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode',
|
|
isTable:false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
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',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
]))
|
|
|
|
//表单校验
|
|
export const UnplannedissueJobDetailRules = reactive({
|
|
packingNumber: [
|
|
{ required: true, message: '请选择包装号', trigger: 'change' }
|
|
],
|
|
batch: [
|
|
{ required: true, message: '请输入批次', trigger: 'blur' }
|
|
],
|
|
inventoryStatus: [
|
|
{ required: true, message: '请选择库存状态', trigger: 'change' }
|
|
],
|
|
fromLocationCode: [
|
|
{ required: true, message: '请选择从库位代码', trigger: 'change' }
|
|
],
|
|
number: [
|
|
{ required: true, message: '请输入单据号', trigger: 'blur' }
|
|
],
|
|
itemCode: [
|
|
{ required: true, message: '请选择品番', trigger: 'change' }
|
|
],
|
|
createTime: [
|
|
{ required: true, message: '请输入创建时间', trigger: 'blur' }
|
|
],
|
|
creator: [
|
|
{ required: true, message: '请输入创建者', trigger: 'blur' }
|
|
],
|
|
})
|
|
|