Browse Source

bug修改

hella_online_20240829
parent
commit
2966a54994
  1. 2
      src/views/qms/inspectionJob/inspectionJobMain.data.ts
  2. 416
      src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts
  3. 558
      src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts
  4. 296
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

2
src/views/qms/inspectionJob/inspectionJobMain.data.ts

@ -444,7 +444,7 @@ export const InspectionJobMain = useCrudSchemas(
isDetail: false,
isForm: false,
table: {
width: 250,
width: 300,
fixed: 'right'
}
}

416
src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts

@ -4,7 +4,8 @@ import { dateFormatter } from '@/utils/formatTime'
/**
* @returns {Array}
*/
export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
export const IssueJobMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
@ -14,7 +15,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left'
},
sortSearchDefault: 1,
isSearch: true,
isSearch: true
},
{
label: '申请单号',
@ -23,7 +24,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable: false
},
{
label: '供应商代码',
@ -32,7 +33,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '车间代码',
@ -41,7 +42,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '从仓库代码',
@ -50,7 +51,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '申请时间',
@ -69,9 +70,9 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '要求截止时间',
@ -89,10 +90,10 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isTable: false,
isTable: false
},
{
label: '过期时间',
@ -111,9 +112,9 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '状态',
@ -125,7 +126,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:1,
sortTableDefault: 1
},
{
label: '到仓库代码',
@ -134,7 +135,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '生产线代码',
@ -143,7 +144,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '工位代码',
@ -152,7 +153,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
@ -172,9 +173,9 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '最后更新者',
@ -183,8 +184,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
@ -196,7 +196,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
},
isTable: false,
form: {
component: 'InputNumber',
component: 'InputNumber'
}
},
{
@ -208,7 +208,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
},
isTable: false,
form: {
component: 'InputNumber',
component: 'InputNumber'
}
},
{
@ -218,7 +218,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '承接人用户名',
@ -227,7 +227,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '承接时间',
@ -246,9 +246,9 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '完成人用户名',
@ -257,7 +257,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '完成时间',
@ -276,9 +276,9 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '从库区类型范围',
@ -289,7 +289,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
}
},
{
label: '到库区类型范围',
@ -300,7 +300,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
}
},
{
label: '业务类型',
@ -309,7 +309,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '备注',
@ -318,7 +318,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '创建时间',
@ -337,9 +337,9 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '创建者',
@ -348,7 +348,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '最后更新时间',
@ -370,7 +370,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
@ -391,7 +391,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '到库区代码范围',
@ -400,7 +400,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
// {
// label: '使用在途库',
@ -619,151 +619,116 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 120,
fixed: 'right'
},
}
]))
}
])
)
//表单校验
export const IssueJobMainRules = reactive({
requestNumber: [
{ required: true, message: '请选择申请单号', trigger: 'change' }
],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' }
],
fromAreaTypes: [
{ required: true, message: '请选择从库区类型范围', trigger: 'change' }
],
toWarehouseCode: [
{ required: true, message: '请选择到仓库代码', trigger: 'change' }
],
toAreaTypes: [
{ required: true, message: '请选择到库区类型范围', trigger: 'change' }
],
requestTime: [
{ required: true, message: '请输入申请时间', trigger: 'change' }
],
requestDueTime: [
{ required: true, message: '请输入要求截止时间', trigger: 'change' }
],
status: [
{ required: true, message: '请选择状态', trigger: 'change' }
],
requestNumber: [{ required: true, message: '请选择申请单号', trigger: 'change' }],
fromWarehouseCode: [{ required: true, message: '请选择从仓库代码', trigger: 'change' }],
fromAreaTypes: [{ required: true, message: '请选择从库区类型范围', trigger: 'change' }],
toWarehouseCode: [{ required: true, message: '请选择到仓库代码', trigger: 'change' }],
toAreaTypes: [{ 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' }
],
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 IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '生产线代码',
field: 'productionLineCode',
sort: 'custom',
table: {
width: 150
},
isTable:false,
hiddenInMain:true,
},
export const IssueJobDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '工位代码',
field: 'workStationCode',
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
isTable:false,
hiddenInMain:true,
sortSearchDefault: 2,
isSearch: true,
sortTableDefault: 3
},
{
label: '在途库库位',
field: 'onTheWayLocationCode',
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
isTable:false,
hiddenInMain:true,
sortTableDefault: 3
},
{
label: '包装号',
field: 'packingNumber',
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
sortTableDefault:5,
sortSearchDefault: 3,
sortTableDefault: 4
},
{
label: '包装规格',
field: 'packUnit',
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:5,
form: {
component: 'InputNumber'
},
hiddenInMain: true
},
{
label: '包装数量',
field: 'packQty',
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
},
sortTableDefault:5,
sortTableDefault: 6
},
{
label: '器具号',
field: 'containerNumber',
label: '包装规格',
field: 'packUnit',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
isTable:false,
sortTableDefault: 5
},
{
label: '批次',
field: 'batch',
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
sortSearchDefault:3,
sortTableDefault:4,
form: {
component: 'InputNumber'
},
sortTableDefault: 5
},
{
label: '库存状态',
field: 'inventoryStatus',
@ -773,27 +738,7 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
},
{
label: '采购订单号',
field: 'poNumber',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:2,
},
{
label: '订单行',
field: 'poLine',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:2,
}
},
{
label: '从库位代码',
@ -802,7 +747,7 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isSearch: true,
isSearch: true
},
{
label: '到库位代码',
@ -811,27 +756,16 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isSearch: true,
isSearch: true
},
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
sortSearchDefault:2,
isSearch: true,
sortTableDefault:3,
},
{
label: '物料名称',
field: 'itemName',
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
width: 180
},
sortTableDefault:3,
hiddenInMain: true
},
{
label: '物料描述1',
@ -840,7 +774,7 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain: true,
hiddenInMain: true
},
{
label: '物料描述2',
@ -849,7 +783,7 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain: true,
hiddenInMain: true
},
{
label: '项目代码',
@ -858,109 +792,161 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain: true,
hiddenInMain: true
},
{
label: '数量',
field: 'qty',
label: '从货主',
field: 'fromOwnerCode',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
hiddenInMain: true
},
hiddenInMain: true,
{
label: '到货主',
field: 'toOwnerCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:6,
hiddenInMain: true
},
{
label: '单据号',
field: 'number',
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
hiddenInMain: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '备注',
field: 'remark',
label: '生产线代码',
field: 'productionLineCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
isTable: false,
isDetail: false,
hiddenInMain: true
},
{
label: '从货主代码',
field: 'fromOwnerCode',
label: '工位代码',
field: 'workStationCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
isTable: false,
isDetail: false,
hiddenInMain: true
},
{
label: '到货主代码',
field: 'toOwnerCode',
label: '在途库库位',
field: 'onTheWayLocationCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
isTable: false,
isDetail: false,
hiddenInMain: true
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
label: '包装号',
field: 'packingNumber',
sort: 'custom',
isTable: false,
table: {
width: 150
},
isSearch: false,
isDetail: false,
sortTableDefault: 5
},
{
label: '器具号',
field: 'containerNumber',
sort: 'custom',
table: {
width: 180
width: 150
},
hiddenInMain: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isDetail: false,
isTable: false
},
// {
// label: '采购订单号',
// field: 'poNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true,
// isDetail: false,
// sortTableDefault: 2
// },
// {
// label: '订单行',
// field: 'poLine',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true,
// isDetail: false,
// sortTableDefault: 2
// },
{
label: '创建者',
field: 'creator',
label: '备注',
field: 'remark',
sort: 'custom',
isDetail: false,
table: {
width: 150
},
hiddenInMain: true,
hiddenInMain: true
},
{
label: '供应商计量数量',
field: 'supplierQty',
sort: 'custom',
isDetail: false,
table: {
width: 150
},
isTable: false,
hiddenInMain: true,
form: {
component: 'InputNumber',
component: 'InputNumber'
}
},
{
@ -973,11 +959,11 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: false,
hiddenInMain:true,
},
]))
isDetail: false,
hiddenInMain: true
}
])
)
//表单校验
export const IssueJobDetailRules = reactive({

558
src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts

@ -4,7 +4,8 @@ import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/**
* @returns {Array}
*/
export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
export const IssueRecordMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
@ -26,7 +27,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:1,
sortTableDefault: 1
},
{
label: '申请单号',
@ -35,7 +36,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable: false
},
{
label: '任务单号',
@ -44,7 +45,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable: false
},
{
label: '供应商代码',
@ -53,7 +54,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '车间代码',
@ -62,7 +63,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '出库事务类型',
@ -71,7 +72,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '入库事务类型',
@ -80,7 +81,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '执行时间',
@ -99,9 +100,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '生效日期',
@ -121,9 +122,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '申请时间',
@ -142,9 +143,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '截止时间',
@ -163,9 +164,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '部门',
@ -174,7 +175,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '接口类型',
@ -185,7 +186,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
}
},
{
label: '业务类型',
@ -194,7 +195,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '备注',
@ -203,38 +204,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTable: true,
isTable: false
},
{
label: '最后更新时间',
field: 'updateTime',
@ -255,7 +227,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
@ -284,7 +256,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '从库区类型范围',
@ -295,7 +267,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
}
},
{
label: '从库区代码范围',
@ -306,7 +278,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
}
},
{
label: '到仓库代码',
@ -315,7 +287,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
{
label: '到库区类型范围',
@ -326,7 +298,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
}
},
{
label: '到库区代码范围',
@ -335,7 +307,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
// {
// label: '使用在途库',
@ -382,7 +354,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:6,
sortTableDefault: 6
},
{
label: '批次', // 子表数据 只是为了展示
@ -391,103 +363,64 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:5,
},
]))
sortTableDefault: 5
}
])
)
//表单校验
export const IssueRecordMainRules = reactive({
requestNumber: [
{ required: true, message: '请选择申请单号', trigger: 'change' }
],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' }
],
fromAreaTypes: [
{ required: true, message: '请选择从库区类型范围', trigger: 'change' }
],
toWarehouseCode: [
{ required: true, message: '请选择到仓库代码', trigger: 'change' }
],
toAreaTypes: [
{ required: true, message: '请选择库位类型范围', trigger: 'change' }
],
outTransaction: [
{ required: true, message: '请输入出库事务类型', trigger: 'blur' }
],
inTransaction: [
{ required: true, message: '请输入入库事务类型', trigger: 'blur' }
],
executeTime: [
{ required: true, message: '请输入执行时间', trigger: 'change' }
],
activeDate: [
{ required: true, message: '请输入生效日期', trigger: 'change' }
],
available: [
{ required: true, message: '请输入是否可用', trigger: 'blur' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
interfaceType: [
{ required: true, message: '请选择接口类型', trigger: 'change' }
],
number: [
{ required: true, message: '请输入单据号', trigger: 'blur' }
],
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
],
createTime: [
{ required: true, message: '请输入创建时间', trigger: 'blur' }
],
creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' }
],
requestNumber: [{ required: true, message: '请选择申请单号', trigger: 'change' }],
fromWarehouseCode: [{ required: true, message: '请选择从仓库代码', trigger: 'change' }],
fromAreaTypes: [{ required: true, message: '请选择从库区类型范围', trigger: 'change' }],
toWarehouseCode: [{ required: true, message: '请选择到仓库代码', trigger: 'change' }],
toAreaTypes: [{ required: true, message: '请选择库位类型范围', trigger: 'change' }],
outTransaction: [{ required: true, message: '请输入出库事务类型', trigger: 'blur' }],
inTransaction: [{ required: true, message: '请输入入库事务类型', trigger: 'blur' }],
executeTime: [{ required: true, message: '请输入执行时间', trigger: 'change' }],
activeDate: [{ required: true, message: '请输入生效日期', trigger: 'change' }],
available: [{ required: true, message: '请输入是否可用', trigger: 'blur' }],
departmentCode: [{ required: true, message: '请输入部门', trigger: 'blur' }],
interfaceType: [{ required: true, message: '请选择接口类型', trigger: 'change' }],
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 IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
export const IssueRecordDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '从包装号',
field: 'fromPackingNumber',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
hiddenInMain: true
},
{
label: '到包装号',
field: 'toPackingNumber',
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
hiddenInMain: true
sortSearchDefault: 2,
sortTableDefault: 4
},
{
label: '包装规格',
field: 'packUnit',
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:8,
sortTableDefault: 4
},
{
label: '包装数量',
field: 'packQty',
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:8,
hiddenInMain: true
},
{
label: '计量单位',
@ -499,98 +432,155 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:9,
sortTableDefault: 9
},
{
label: '从批次',
field: 'fromBatch',
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
sortSearchDefault:3,
isSearch: true,
hiddenInMain: true
},
{
label: '到批次',
field: 'toBatch',
label: '物料描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
sortSearchDefault:4,
isSearch: true,
hiddenInMain: true
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
label: '从包装号',
field: 'fromPackingNumber',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
hiddenInMain: true
},
{
label: '采购订单号',
field: 'poNumber',
label: '到包装号',
field: 'toPackingNumber',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:2,
isSearch: true,
hiddenInMain: true
},
{
label: '订单行',
field: 'poLine',
label: '包装规格',
field: 'packUnit',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:3,
sortTableDefault: 8
},
{
label: '生产线代码',
field: 'productionLineCode',
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
},
isTable:false
sortTableDefault: 8
},
{
label: '工位代码',
field: 'workStationCode',
label: '从批次',
field: 'fromBatch',
sort: 'custom',
table: {
width: 150
},
isTable:false
sortSearchDefault: 3,
isSearch: true,
hiddenInMain: true
},
{
label: '在途库库位',
field: 'onTheWayLocationCode',
label: '到批次',
field: 'toBatch',
sort: 'custom',
table: {
width: 150
},
isTable:false
sortSearchDefault: 4,
isSearch: true,
hiddenInMain: true
},
{
label: '供应商代码',
field: 'supplierCode',
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
isTable:false,
},
// {
// label: '采购订单号',
// field: 'poNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true,
// sortTableDefault: 2
// },
// {
// label: '订单行',
// field: 'poLine',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true,
// sortTableDefault: 3
// },
// {
// label: '生产线代码',
// field: 'productionLineCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isTable: false
// },
// {
// label: '工位代码',
// field: 'workStationCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isTable: false
// },
// {
// label: '在途库库位',
// field: 'onTheWayLocationCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isTable: false
// },
// {
// label: '供应商代码',
// field: 'supplierCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isTable: false
// },
{
label: '从货主代码',
field: 'fromOwnerCode',
@ -598,7 +588,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true
},
{
label: '从库位代码',
@ -607,7 +597,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isSearch: true,
isSearch: true
},
{
label: '从库位组代码',
@ -616,7 +606,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true
},
{
label: '从库区代码',
@ -625,7 +615,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true
},
{
label: '到货主代码',
@ -634,7 +624,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true
},
{
label: '到库位代码',
@ -643,71 +633,23 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isSearch: true,
},
{
label: '到库位组代码',
field: 'toLocationGroupCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '到库区代码',
field: 'toAreaCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 180
},
hiddenInMain:true,
},
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
sortSearchDefault:2,
sortTableDefault:4,
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:4,
isSearch: true
},
{
label: '备注',
field: 'remark',
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
isTable: true,
isDetail: false
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
isDetail: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
@ -715,92 +657,125 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
hiddenInMain:true,
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '物料描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '项目代码',
field: 'projectCode',
label: '到库位组代码',
field: 'toLocationGroupCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
hiddenInMain: true
},
hiddenInMain:true,
},
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '从器具号',
field: 'fromContainerNumber',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
},
{
label: '到器具号',
field: 'toContainerNumber',
label: '到库区代码',
field: 'toAreaCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain: true
},
// {
// label: '单据号',
// field: 'number',
// sort: 'custom',
// table: {
// width: 180
// },
// hiddenInMain: true
// },
// {
// label: '备注',
// field: 'remark',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true
// },
// {
// label: '创建时间',
// field: 'createTime',
// formatter: dateFormatter,
// detail: {
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
// },
// sort: 'custom',
// table: {
// width: 180
// },
// hiddenInMain: true,
// form: {
// component: 'DatePicker',
// componentProps: {
// type: 'datetime',
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
// valueFormat: 'x'
// }
// }
// },
// {
// label: '创建者',
// field: 'creator',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true
// },
// {
// label: '项目代码',
// field: 'projectCode',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true
// },
// {
// label: '接口类型',
// field: 'interfaceType',
// dictType: DICT_TYPE.INTERFACE_TYPE,
// dictClass: 'string',
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true
// },
// {
// label: '从器具号',
// field: 'fromContainerNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true
// },
// {
// label: '到器具号',
// field: 'toContainerNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true
// }
// {
// label: '代码',
@ -819,7 +794,8 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150
// },
// },
]))
])
)
//表单校验
export const IssueRecordDetailRules = reactive({

296
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -43,7 +43,8 @@ const queryParams = {
/**
* @returns {Array}
*/
export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
export const IssueRequestMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
@ -54,7 +55,7 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
},
isForm: false,
isSearch: true,
sortSearchDefault:1,
sortSearchDefault: 1
},
{
label: '车间代码',
@ -74,11 +75,13 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '车间信息', // 查询弹窗标题
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
searchPage: WorkshopApi.getWorkshopPage, // 查询弹窗所需分页方法
searchCondition: [{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
}
},
@ -98,16 +101,19 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '生产线信息', // 查询弹窗标题
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
searchCondition: [{
searchCondition: [
{
key: 'workshopCode',
value: 'workshopCode',
message: '请填写车间代码!',
isMainValue: true
},{
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
},
form: {
// labelMessage: '信息提示说明!!!',
@ -118,16 +124,19 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '生产线信息', // 查询弹窗标题
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
searchCondition: [{
searchCondition: [
{
key: 'workshopCode',
value: 'workshopCode',
message: '请填写车间代码!',
isMainValue: true
},{
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
}
},
@ -147,16 +156,19 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '工位信息', // 查询弹窗标题
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法
searchCondition: [{
searchCondition: [
{
key: 'productionLineCode',
value: 'productionLineCode',
message: '请填写生产线代码!',
isMainValue: true
},{
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
},
form: {
// labelMessage: '信息提示说明!!!',
@ -168,16 +180,19 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '工位信息', // 查询弹窗标题
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法
searchCondition: [{
searchCondition: [
{
key: 'productionLineCode',
value: 'productionLineCode',
message: '请填写生产线代码!',
isMainValue: true
},{
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
}
},
@ -217,10 +232,10 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
isForm: false
},
{
label: '截止时间',
@ -240,9 +255,9 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
},
{
label: '从库区类型范围',
@ -375,7 +390,7 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable: false
},
// {
// label: '使用在途库',
@ -498,10 +513,10 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
isForm: false
},
{
label: '创建者',
@ -511,7 +526,7 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: true,
isForm: false,
isForm: false
},
{
label: '最后更新时间',
@ -530,10 +545,10 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isForm: false,
isForm: false
},
{
label: '最后更新者',
@ -543,7 +558,7 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isTable: false,
isForm: false,
isForm: false
},
{
label: '操作',
@ -553,32 +568,28 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 230,
fixed: 'right'
},
},
]))
}
}
])
)
export const IssueRequestMainRules = reactive({
workshopCode: [
{ required: true, message: '请选择车间代码', trigger: 'change' }
],
productionLineCode: [
{ required: true, message: '请选择生产线代码', trigger: 'change' }
],
workshopCode: [{ required: true, message: '请选择车间代码', trigger: 'change' }],
productionLineCode: [{ required: true, message: '请选择生产线代码', trigger: 'change' }],
// fromWarehouseCode: [
// { required: true, message: '请选择从仓库代码', trigger: 'change' }
// ],
// dueTime: [
// { required: true, message: '请选择截止时间', trigger: 'change' }
// ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }]
})
/**
* @returns {Array}
*/
export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
export const IssueRequestDetail = useCrudSchemas(
reactive<CrudSchema[]>([
// {
// label: '生产线代码',
// field: 'productionLineCode',
@ -689,7 +700,7 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
sortSearchDefault: 4,
sortTableDefault: 6,
isTableForm: false,
isForm: false,
isForm: false
},
{
label: '器具号',
@ -701,8 +712,7 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true,
isTableForm: false,
isForm: false,
isTable: false,
isTable: false
},
{
label: '批次',
@ -718,19 +728,7 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false,
isForm: false
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
// {
// label: '从库位代码',
// field: 'fromLocationCode',
@ -776,7 +774,8 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
@ -803,14 +802,27 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
]
}
}
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 300
},
sortTableDefault: 4,
isTableForm: false,
isForm: false
},
{
label: '数量',
field: 'qty',
@ -843,7 +855,7 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:9,
sortTableDefault: 6,
tableForm: {
type: 'Select',
disabled: true
@ -854,6 +866,43 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
sortTableDefault: 7,
isTable: true,
isDetail: true,
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
isTableForm: false,
isForm: false
},
{
label: '物料描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
isTableForm: false,
isForm: false
},
// {
// label: '采购订单号',
// field: 'poNumber',
@ -889,39 +938,39 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '备注',
field: 'remark',
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
width: 300
},
hiddenInMain:true,
sortTableDefault: 5,
isTableForm: false,
isForm: false
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
label: '未执行任务数量',
field: 'unexecutedQty',
sort: 'custom',
table: {
width: 180
width: 150
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
component: 'InputNumber'
},
hiddenInMain:true,
isTableForm: false,
isForm: false
hiddenInMain: true
},
// {
// label: '备注',
// field: 'remark',
// sort: 'custom',
// table: {
// width: 150
// },
// hiddenInMain: true
// },
{
label: '创建者',
field: 'creator',
@ -934,8 +983,8 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false
},
{
label: '最后更新时间',
field: 'updateTime',
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -949,40 +998,16 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
},
isTable:false,
hiddenInMain:true,
isTableForm: false,
isForm: false,
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isTable:false,
hiddenInMain: true,
isTableForm: false,
isForm: false
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
table: {
width: 300
},
sortTableDefault:4,
isTableForm: false,
isForm: false
},
{
label: '物料描述1',
field: 'itemDesc1',
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
@ -991,9 +1016,10 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false,
isForm: false
},
{
label: '物料描述2',
field: 'itemDesc2',
label: '从货主',
field: 'fromOwnerCode',
sort: 'custom',
table: {
width: 150
@ -1003,8 +1029,8 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false
},
{
label: '项目代码',
field: 'projectCode',
label: '到货主',
field: 'toOwnerCode',
sort: 'custom',
table: {
width: 150
@ -1013,42 +1039,43 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false,
isForm: false
},
{
label: '从货主代码',
field: 'fromOwnerCode',
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 150
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isTable: false,
hiddenInMain: true,
isTableForm: false,
isForm: false
},
{
label: '到货主代码',
field: 'toOwnerCode',
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isTable: false,
hiddenInMain: true,
isTableForm: false,
isForm: false
},
{
label: '未执行任务数量',
field: 'unexecutedQty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
},
isTableForm:false,
hiddenInMain:true,
},
{
label: '操作',
field: 'action',
@ -1059,9 +1086,10 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 200,
fixed: 'right'
},
isTableForm:false,
isTableForm: false
}
]))
])
)
//表单校验
export const IssueRequestDetailRules = reactive({

Loading…
Cancel
Save