From 0a77c3fc1aa1bb7cf35993d09bb76d7b1394cff1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com>
Date: Wed, 10 Jul 2024 16:49:20 +0800
Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/qms/inspectionJob/index.vue | 596 ++--
.../inspectionJob/inspectionJobMain.data.ts | 1135 +++---
.../inspectionRecordMain.data.ts | 756 ++--
.../inspectionRequestMain.data.ts | 784 +++--
.../purchasereceiptJobMain.data.ts | 3038 ++++++++---------
5 files changed, 3201 insertions(+), 3108 deletions(-)
diff --git a/src/views/qms/inspectionJob/index.vue b/src/views/qms/inspectionJob/index.vue
index 3566e702d..34ac036b8 100644
--- a/src/views/qms/inspectionJob/index.vue
+++ b/src/views/qms/inspectionJob/index.vue
@@ -1,33 +1,52 @@
-
+
-
+
-
-
+ }"
+ v-model:pageSize="tableObject.pageSize"
+ v-model:currentPage="tableObject.currentPage"
+ v-model:sort="tableObject.sort"
+ >
+
{{ row.number }}
-
+
-
-
+
diff --git a/src/views/qms/inspectionJob/inspectionJobMain.data.ts b/src/views/qms/inspectionJob/inspectionJobMain.data.ts
index a9d51f446..1db4e1263 100644
--- a/src/views/qms/inspectionJob/inspectionJobMain.data.ts
+++ b/src/views/qms/inspectionJob/inspectionJobMain.data.ts
@@ -2,434 +2,454 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter2 } from '@/utils/formatTime'
import { validateHanset, validateEmail } from '@/utils/validator'
import { dateFormatter } from '@/utils/formatTime'
-import { validateTwoNum,validateSixNum} from '@/utils/validator'
+import { validateTwoNum, validateSixNum } from '@/utils/validator'
const { t } = useI18n() // 国际化
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
-const resultEntryMethodList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY)
-const featureTypeList = getStrDictOptions( DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE )
-const isCanUpdateList = [{
- label:'是',
- value:true
-},{
- label:'否',
- value:false
-}]
+const resultEntryMethodList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY)
+const featureTypeList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE)
+const isCanUpdateList = [
+ {
+ label: '是',
+ value: true
+ },
+ {
+ label: '否',
+ value: false
+ }
+]
/**
* @returns {Array} 检验任务主表
*/
-export const InspectionJobMain = useCrudSchemas(reactive([
- {
- label: '编码',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- form: {
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 200,
- fixed: 'left'
- }
- },
- {
- label: '申请单号',
- field: 'requestNumber',
- sort: 'custom',
- isSearch: true,
- form: {
- componentProps:{
- disabled:true
+export const InspectionJobMain = useCrudSchemas(
+ reactive([
+ {
+ label: '编码',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 200,
+ fixed: 'left'
}
},
- table: {
- width: 200
- }
- },
- {
- label: '供应商编码',
- field: 'supplierCode',
- sort: 'custom',
- isSearch: true,
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '申请单号',
+ field: 'requestNumber',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 200
}
},
- table: {
- width: 175
- }
- },{
- label: '供应商名称',
- field: 'supplierName',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 175
+ {
+ label: '发货单号',
+ field: 'asnNumber',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
+ }
},
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '供应商编码',
+ field: 'supplierCode',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 175
}
},
- },
- {
- label: '物料编码',
- field: 'itemCode',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
+ {
+ label: '供应商名称',
+ field: 'supplierName',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 175
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ }
},
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '物料编码',
+ field: 'itemCode',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
}
},
- },
- {
- label: '物料名称',
- field: 'itemName',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 175
+ {
+ label: '物料名称',
+ field: 'itemName',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 175
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ }
},
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '物料批次',
+ field: 'batch',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- },
- {
- label: '物料批次',
- field: 'batch',
- sort: 'custom',
- isSearch: false,
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '参考订单号',
+ field: 'referenceOrderCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- table: {
- width: 150
- }
- },
- {
- label: '参考订单号',
- field: 'referenceOrderCode',
- sort: 'custom',
- isSearch: false,
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '参考订单行',
+ field: 'referenceOrderRow',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0,
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- table: {
- width: 150
- }
- },
- {
- label: '参考订单行',
- field: 'referenceOrderRow',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'InputNumber',
- value: 0,
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 150
- }
- },
- {
- label: '参考凭证号',
- field: 'referenceCertificateCode',
- sort: 'custom',
- isSearch: false,
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '参考凭证号',
+ field: 'referenceCertificateCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- table: {
- width: 150
- }
- },
- {
- label: '参考凭证行',
- field: 'referenceCertificateRow',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'InputNumber',
- value: 0,
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 150
- }
- },
- {
- label: '检验方案编码',
- field: 'inspectionSchemeCode',
- sort: 'custom',
- isSearch: false,
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '参考凭证行',
+ field: 'referenceCertificateRow',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0,
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- table: {
- width: 200
- }
- },
- {
- label: '检验批次',
- field: 'inspectionBatch',
- sort: 'custom',
- isSearch: false,
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '检验方案编码',
+ field: 'inspectionSchemeCode',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 200
}
},
- table: {
- width: 150
- }
- },
- {
- label: '检验批数量',
- field: 'inspectionBatchAmount',
- sort: 'custom',
- isSearch: false,
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '检验批次',
+ field: 'inspectionBatch',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- table: {
- width: 150
- }
- },
- // {
- // label: '采样总数量',
- // field: 'sampleTotalAmount',
- // sort: 'custom',
- // isSearch: false,
- // form: {
- // componentProps:{
- // disabled:true
- // }
- // },
- // table: {
- // width: 150
- // }
- // },
- {
- label: '检验类型',
- field: 'inspectionType',
- sort: 'custom',
- isSearch: false,
- dictType: DICT_TYPE.INSPECTION_TYPE,
- dictClass: 'string',
- form: {
- component: 'Select',
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 150
- }
- },
- // {
- // label: '检验批来源',
- // field: 'inspectionBatchSource',
- // sort: 'custom',
- // isSearch: false,
- // dictType: DICT_TYPE.INSPECTION_BATCH_SOURCE,
- // dictClass: 'string',
- // form:{
- // componentProps:{
- // disabled:true
- // }
- // },
- // table: {
- // width: 150
- // }
- // },
- {
- label: '检验阶段',
- field: 'inspectionStage',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'InputNumber',
- value: 0,
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 150
- }
- },
- {
- label: '检验严格性',
- field: 'inspectionStringency',
- sort: 'custom',
- isSearch: false,
- dictType: DICT_TYPE.INSPECTION_SEVERITY,
- dictClass: 'string',
- form:{
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 150
- }
- },
- {
- label: '计划开始时间',
- field: 'planStartTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x',
- disabled:true
- }
- },
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- table: {
- width: 175
- }
- },
- {
- label: '计划结束时间',
- field: 'planEndTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x',
- disabled:true
- }
- },
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- table: {
- width: 175
- }
- },
- {
- label: '检验水平',
- field: 'inspectionLevel',
- sort: 'custom',
- isSearch: false,
- dictType: DICT_TYPE.INSPECTION_LEVEL,
- dictClass: 'string',
- form:{
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 150
- }
- },
- {
- label: 'AQL值',
- field: 'aqlValue',
- sort: 'custom',
- isSearch: false,
- dictType: DICT_TYPE.BASIC_AQL,
- dictClass: 'string',
- form:{
- componentProps:{
- disabled:true
- }
- },
- table: {
- width: 150
- }
- },
- // {
- // label: '使用决策',
- // field: 'usageDecision',
- // sort: 'custom',
- // isSearch: false,
- // dictType: DICT_TYPE.USAGE_DECISION,
- // form:{
- // componentProps:{
- // }
- // }
- // },
- // {
- // label: '是否可用',
- // field: 'available',
- // dictType: DICT_TYPE.TRUE_FALSE,
- // dictClass: 'string',
- // isTable: true,
- // sort: 'custom',
- // table: {
- // width: 150
- // },
- // form: {
- // component: 'Switch',
- // value: 'TRUE',
- // componentProps: {
- // inactiveValue: 'FALSE',
- // activeValue: 'TRUE',
- // disabled:true
- // }
- // }
- // },
- {
- label: '操作',
- field: 'action',
- isDetail: false,
- isForm: false,
- table: {
- width: 200,
- fixed: 'right'
+ {
+ label: '检验批数量',
+ field: 'inspectionBatchAmount',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
+ }
+ },
+ // {
+ // label: '采样总数量',
+ // field: 'sampleTotalAmount',
+ // sort: 'custom',
+ // isSearch: false,
+ // form: {
+ // componentProps:{
+ // disabled:true
+ // }
+ // },
+ // table: {
+ // width: 150
+ // }
+ // },
+ {
+ label: '检验类型',
+ field: 'inspectionType',
+ sort: 'custom',
+ isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_TYPE,
+ dictClass: 'string',
+ form: {
+ component: 'Select',
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
+ }
+ },
+ // {
+ // label: '检验批来源',
+ // field: 'inspectionBatchSource',
+ // sort: 'custom',
+ // isSearch: false,
+ // dictType: DICT_TYPE.INSPECTION_BATCH_SOURCE,
+ // dictClass: 'string',
+ // form:{
+ // componentProps:{
+ // disabled:true
+ // }
+ // },
+ // table: {
+ // width: 150
+ // }
+ // },
+ {
+ label: '检验阶段',
+ field: 'inspectionStage',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0,
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '检验严格性',
+ field: 'inspectionStringency',
+ sort: 'custom',
+ isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_SEVERITY,
+ dictClass: 'string',
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '计划开始时间',
+ field: 'planStartTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x',
+ disabled: true
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
+ }
+ },
+ {
+ label: '计划结束时间',
+ field: 'planEndTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x',
+ disabled: true
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
+ }
+ },
+ {
+ label: '检验水平',
+ field: 'inspectionLevel',
+ sort: 'custom',
+ isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_LEVEL,
+ dictClass: 'string',
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: 'AQL值',
+ field: 'aqlValue',
+ sort: 'custom',
+ isSearch: false,
+ dictType: DICT_TYPE.BASIC_AQL,
+ dictClass: 'string',
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
+ }
+ },
+ // {
+ // label: '使用决策',
+ // field: 'usageDecision',
+ // sort: 'custom',
+ // isSearch: false,
+ // dictType: DICT_TYPE.USAGE_DECISION,
+ // form:{
+ // componentProps:{
+ // }
+ // }
+ // },
+ // {
+ // label: '是否可用',
+ // field: 'available',
+ // dictType: DICT_TYPE.TRUE_FALSE,
+ // dictClass: 'string',
+ // isTable: true,
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // form: {
+ // component: 'Switch',
+ // value: 'TRUE',
+ // componentProps: {
+ // inactiveValue: 'FALSE',
+ // activeValue: 'TRUE',
+ // disabled:true
+ // }
+ // }
+ // },
+ {
+ label: '操作',
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 200,
+ fixed: 'right'
+ }
}
- }
-]))
+ ])
+)
//表单校验
export const InspectionJobMainRules = reactive({
@@ -439,176 +459,185 @@ export const InspectionJobMainRules = reactive({
/**
* @returns {Array} 检验任务子表
*/
-export const InspectionJobDetail = useCrudSchemas(reactive([
- {
- label: '编码',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '检验方案模板编码',
- field: 'inspectionCode',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '描述',
- field: 'processDescribe',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '顺序号',
- field: 'sequenceCode',
- sort: 'custom',
- isSearch: true,
- form: {
- component: 'InputNumber',
- value: 0
+export const InspectionJobDetail = useCrudSchemas(
+ reactive([
+ {
+ label: '编码',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '检验方案模板编码',
+ field: 'inspectionCode',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '描述',
+ field: 'processDescribe',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '顺序号',
+ field: 'sequenceCode',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ }
},
- },
- {
- label: '检验特性编号',
- field: 'inspectionCharCode',
- sort: 'custom',
- isSearch: true,
- },
- {
- label: '检验特性编码',
- field: 'inspectionJobCharacteristicsRespVO.number',
- sort: 'custom',
- },
- {
- label: '检验特性描述',
- field: 'inspectionJobCharacteristicsRespVO.description',
- sort: 'custom',
- },{
- label: '检验方法',
- field: 'inspectionJobCharacteristicsRespVO.inspectionMethodCode',
- sort: 'custom',
- },{
- label: '采样过程编码',
- field: 'inspectionJobCharacteristicsRespVO.samplingProcessCode',
- sort: 'custom',
- },{
- label: '动态修改规则编码',
- field: 'inspectionJobCharacteristicsRespVO.dynamicUpdateCode',
- sort: 'custom',
- },{
- label: '是否允许修改特征值',
- field: 'inspectionJobCharacteristicsRespVO.isCanUpdate',
- sort: 'custom',
- formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
- return isCanUpdateList.find((account) => account.value == cellValue)?.label
- },
- },{
- label: '结果录入方式',
- field: 'inspectionJobCharacteristicsRespVO.resultEntryMethod',
- sort: 'custom',
- // dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY,
- // dictClass: 'string',
- formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
- return resultEntryMethodList.find((account) => account.value == cellValue)?.label
- },
- },{
- label: '特征类型',
- field: 'inspectionJobCharacteristicsRespVO.featureType',
- sort: 'custom',
- formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
- return featureTypeList.find((account) => account.value == cellValue)?.label
+ {
+ label: '检验特性编号',
+ field: 'inspectionCharCode',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '检验特性编码',
+ field: 'inspectionJobCharacteristicsRespVO.number',
+ sort: 'custom'
+ },
+ {
+ label: '检验特性描述',
+ field: 'inspectionJobCharacteristicsRespVO.description',
+ sort: 'custom'
+ },
+ {
+ label: '检验方法',
+ field: 'inspectionJobCharacteristicsRespVO.inspectionMethodCode',
+ sort: 'custom'
+ },
+ {
+ label: '采样过程编码',
+ field: 'inspectionJobCharacteristicsRespVO.samplingProcessCode',
+ sort: 'custom'
+ },
+ {
+ label: '动态修改规则编码',
+ field: 'inspectionJobCharacteristicsRespVO.dynamicUpdateCode',
+ sort: 'custom'
+ },
+ {
+ label: '是否允许修改特征值',
+ field: 'inspectionJobCharacteristicsRespVO.isCanUpdate',
+ sort: 'custom',
+ formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
+ return isCanUpdateList.find((account) => account.value == cellValue)?.label
+ }
},
- }
-]))
+ {
+ label: '结果录入方式',
+ field: 'inspectionJobCharacteristicsRespVO.resultEntryMethod',
+ sort: 'custom',
+ // dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY,
+ // dictClass: 'string',
+ formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
+ return resultEntryMethodList.find((account) => account.value == cellValue)?.label
+ }
+ },
+ {
+ label: '特征类型',
+ field: 'inspectionJobCharacteristicsRespVO.featureType',
+ sort: 'custom',
+ formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
+ return featureTypeList.find((account) => account.value == cellValue)?.label
+ }
+ }
+ ])
+)
//表单校验
export const InspectionJobDetailRules = reactive({
taskCode: [required],
processCode: [required],
sequenceCode: [required],
- available: [required],
+ available: [required]
})
/**
* @returns {Array} 检验任务包装
*/
-export const InspectionJobPackage = useCrudSchemas(reactive([
- {
- label: '编码',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:true
- },
- table:{
- width:200
- }
- },
- {
- label: '包装号',
- field: 'packageCode',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:true
- },
- table:{
- width:200
- }
- },
- {
- label: '包装规格',
- field: 'packageSpecificationCode',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:true
- },
- table:{
- width:180
- }
- },
- {
- label: '数量',
- field: 'amount',
- sort: 'custom',
- isSearch: true,
- form: {
- component: 'InputNumber',
- value: 0
- },
- tableForm:{
- disabled:true
- },
- table:{
- width:150
- }
- },
- {
- label: '计量单位',
- field: 'measuringUnit',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:true
- },
- table:{
- width:150
- }
- },
- {
- label: '采样数量',
- field: 'sampleAmount',
- sort: 'custom',
- isSearch: true,
- isTable:false,
- table:{
- width:150,
+export const InspectionJobPackage = useCrudSchemas(
+ reactive([
+ {
+ label: '编码',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: true
+ },
+ table: {
+ width: 200
+ }
+ },
+ {
+ label: '包装号',
+ field: 'packageCode',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: true
+ },
+ table: {
+ width: 200
+ }
+ },
+ {
+ label: '包装规格',
+ field: 'packageSpecificationCode',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: true
+ },
+ table: {
+ width: 180
+ }
+ },
+ {
+ label: '数量',
+ field: 'amount',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ tableForm: {
+ disabled: true
+ },
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '计量单位',
+ field: 'measuringUnit',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: true
+ },
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '采样数量',
+ field: 'sampleAmount',
+ sort: 'custom',
+ isSearch: true,
+ isTable: false,
+ table: {
+ width: 150
+ }
}
- },
-]))
+ ])
+)
//表单校验
export const InspectionJobPackageRules = reactive({
- sampleAmount: [required,
- { validator:validateSixNum, trigger: 'blur'}]
+ sampleAmount: [required, { validator: validateSixNum, trigger: 'blur' }]
})
diff --git a/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts b/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts
index 90263f8d8..8837aa808 100644
--- a/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts
+++ b/src/views/qms/inspectionRecord/inspectionRecordMain.data.ts
@@ -2,419 +2,435 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter2 } from '@/utils/formatTime'
import { validateHanset, validateEmail } from '@/utils/validator'
import { dateFormatter } from '@/utils/formatTime'
-import {validateTwoNum,validateSixNum } from '@/utils/validator'
+import { validateTwoNum, validateSixNum } from '@/utils/validator'
const { t } = useI18n() // 国际化
/**
* @returns {Array} 检验任务主表
*/
-export const InspectionRecordMain = useCrudSchemas(reactive([
- {
- label: '记录编码',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- isForm:false,
- table: {
- width: 200,
- fixed: 'left'
- }
- },
- {
- label: '申请编码',
- field: 'requestNumber',
- sort: 'custom',
- isSearch: true,
- isForm:false,
- table: {
- width: 200
- }
- },
- {
- label: '任务编码',
- field: 'jobNumber',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 200
- }
- },
- {
- label: '供应商编码',
- field: 'supplierCode',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 200
- }
- },{
- label: '供应商名称',
- field: 'supplierName',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 200
+export const InspectionRecordMain = useCrudSchemas(
+ reactive([
+ {
+ label: '记录编码',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false,
+ table: {
+ width: 200,
+ fixed: 'left'
+ }
},
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '申请编码',
+ field: 'requestNumber',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false,
+ table: {
+ width: 200
}
},
- },
- {
- label: '物料编码',
- field: 'itemCode',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
+ {
+ label: '任务编码',
+ field: 'jobNumber',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 200
+ }
},
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '发货单号',
+ field: 'asnNumber',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- },
- {
- label: '物料名称',
- field: 'itemName',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 200
+ {
+ label: '供应商编码',
+ field: 'supplierCode',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 200
+ }
},
- form: {
- componentProps:{
- disabled:true
+ {
+ label: '供应商名称',
+ field: 'supplierName',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 200
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
}
},
- },
- {
- label: '批次',
- field: 'batch',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- {
- label: '检验方案编码',
- field: 'inspectionSchemeCode',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 200
- }
- },
- {
- label: '检验批次',
- field: 'inspectionBatch',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- {
- label: '检验批数量',
- field: 'inspectionBatchAmount',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- // {
- // label: '采样总数量',
- // field: 'sampleTotalAmount',
- // sort: 'custom',
- // isSearch: false,
- // isForm:false,
- // table: {
- // width: 150
- // }
- // },
- {
- label: '检验类型',
- field: 'inspectionType',
- dictType: DICT_TYPE.INSPECTION_TYPE,
- sort: 'custom',
- isSearch: false,
- isForm:false,
- form: {
- component: 'Select'
+ {
+ label: '物料编码',
+ field: 'itemCode',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ }
},
- table: {
- width: 150
- }
- },
- {
- label: '参考订单号',
- field: 'referenceOrderCode',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- {
- label: '参考订单行',
- field: 'referenceOrderRow',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- form: {
- component: 'InputNumber',
- value: 0
+ {
+ label: '物料名称',
+ field: 'itemName',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 200
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ }
},
- table: {
- width: 150
- }
- },
- {
- label: '参考凭证号',
- field: 'referenceCertificateCode',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- {
- // reference_certificate_row
- label: '参考凭证行',
- field: 'referenceCertificateRow',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- form: {
- component: 'InputNumber',
- value: 0
+ {
+ label: '批次',
+ field: 'batch',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
+ }
},
- table: {
- width: 150
- }
- },
- {
- label: '检验阶段',
- field: 'inspectionStage',
- sort: 'custom',
- isSearch: false,
- isForm:false,
- form: {
- component: 'InputNumber',
- value: 0
+ {
+ label: '检验方案编码',
+ field: 'inspectionSchemeCode',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 200
+ }
},
- table: {
- width: 150
- }
- },
- {
- label: '检验严格性',
- field: 'inspectionStringency',
- dictType: DICT_TYPE.INSPECTION_SEVERITY,
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- {
- label: '计划开始时间',
- field: 'planStartTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isForm:false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '检验批次',
+ field: 'inspectionBatch',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '检验批数量',
+ field: 'inspectionBatchAmount',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ // {
+ // label: '采样总数量',
+ // field: 'sampleTotalAmount',
+ // sort: 'custom',
+ // isSearch: false,
+ // isForm:false,
+ // table: {
+ // width: 150
+ // }
+ // },
+ {
+ label: '检验类型',
+ field: 'inspectionType',
+ dictType: DICT_TYPE.INSPECTION_TYPE,
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ form: {
+ component: 'Select'
+ },
+ table: {
+ width: 150
+ }
},
- table: {
- width: 175
- }
- },
- {
- label: '计划结束时间',
- field: 'planEndTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isForm:false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '参考订单号',
+ field: 'referenceOrderCode',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '参考订单行',
+ field: 'referenceOrderRow',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ table: {
+ width: 150
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ {
+ label: '参考凭证号',
+ field: 'referenceCertificateCode',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
+ }
},
- table: {
- width: 175
- }
- },
- {
- label: '实际开始时间',
- field: 'realStartTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isForm:false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ // reference_certificate_row
+ label: '参考凭证行',
+ field: 'referenceCertificateRow',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ table: {
+ width: 150
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '检验阶段',
+ field: 'inspectionStage',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ table: {
+ width: 150
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ {
+ label: '检验严格性',
+ field: 'inspectionStringency',
+ dictType: DICT_TYPE.INSPECTION_SEVERITY,
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
+ }
},
- table: {
- width: 175
- }
- },
- {
- label: '实际结束时间',
- field: 'realEndTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- isForm:false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '计划开始时间',
+ field: 'planStartTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isForm: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '计划结束时间',
+ field: 'planEndTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isForm: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ {
+ label: '实际开始时间',
+ field: 'realStartTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isForm: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
+ }
},
- table: {
- width: 175
- }
- },
- {
- label: '检验水平',
- field: 'inspectionLevel',
- dictType: DICT_TYPE.INSPECTION_LEVEL,
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- {
- label: 'AQL值',
- field: 'aqlValue',
- dictType: DICT_TYPE.BASIC_AQL,
- sort: 'custom',
- isSearch: false,
- isForm:false,
- table: {
- width: 150
- }
- },
- {
- label: '使用决策',
- field: 'useDecision',
- sort: 'custom',
- isSearch: false,
- dictType: DICT_TYPE.USAGE_DECISION,
- table: {
- width: 150
- }
-
- },
- {
- label: '创建时间',
- field: 'createTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '实际结束时间',
+ field: 'realEndTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ isForm: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
}
},
- isForm: false,
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ {
+ label: '检验水平',
+ field: 'inspectionLevel',
+ dictType: DICT_TYPE.INSPECTION_LEVEL,
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: 'AQL值',
+ field: 'aqlValue',
+ dictType: DICT_TYPE.BASIC_AQL,
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '使用决策',
+ field: 'useDecision',
+ sort: 'custom',
+ isSearch: false,
+ dictType: DICT_TYPE.USAGE_DECISION,
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
+ }
},
- table: {
- width: 175
- }
- },
- {
- label: '操作',
- field: 'action',
- isDetail: false,
- isForm: false,
- table: {
- width: 200,
- fixed: 'right'
+ {
+ label: '操作',
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 200,
+ fixed: 'right'
+ }
}
- }
-]))
+ ])
+)
//表单校验
export const InspectionRecordMainRules = reactive({
diff --git a/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts b/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts
index 20406de65..c7af0319c 100644
--- a/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts
+++ b/src/views/qms/inspectionRequest/inspectionRequestMain.data.ts
@@ -4,441 +4,471 @@ import * as ItemApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
-import { validateInteger,validateTwoNum } from '@/utils/validator'
+import { validateInteger, validateTwoNum } from '@/utils/validator'
// 表单校验
export const InspectionMainRules = reactive({
requestStartTime: [required],
itemCode: [required],
requestEndTime: [required],
- batch: [required,{ validator:validateInteger, message: '请输入正确的整数', trigger: 'blur'}],
- requestInspectionNum: [required,{ validator:validateTwoNum, message: '小数点后最多2位', trigger: 'blur'}],
- referenceCertificateRow: [{ validator:validateInteger, message: '请输入正确的整数', trigger: 'blur'}],
+ batch: [required, { validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' }],
+ requestInspectionNum: [
+ required,
+ { validator: validateTwoNum, message: '小数点后最多2位', trigger: 'blur' }
+ ],
+ referenceCertificateRow: [
+ { validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' }
+ ],
inspectionType: [required],
- minPackageQty: [required],
+ minPackageQty: [required]
})
-export const InspectionMain = useCrudSchemas(reactive([
- {
- label: '申请编码',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- table: {
- width: 200,
- fixed: 'left'
- },
- form:{
- componentProps:{
- disabled:true
- }
- }
- },
- {
- label: '申请日期',
- field: 'applicationDate',
- sort: 'custom',
- formatter: dateFormatter2,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+export const InspectionMain = useCrudSchemas(
+ reactive([
+ {
+ label: '申请编码',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 200,
+ fixed: 'left'
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
}
},
- isForm:false,
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '发货单号',
+ field: 'asnNumber',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ table: {
+ width: 150
}
},
- table: {
- width: 120
- },
- detail: {
- dateFormat: 'YYYY-MM-DD'
- },
- },
- {
- label: '申请时间',
- field: 'applicationTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '申请日期',
+ field: 'applicationDate',
+ sort: 'custom',
+ formatter: dateFormatter2,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ table: {
+ width: 120
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
}
},
- isForm:false,
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '申请时间',
+ field: 'applicationTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- table: {
- width: 175
- }
- },
- {
- label: '要求开始时间',
- field: 'requestStartTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '要求开始时间',
+ field: 'requestStartTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '要求结束时间',
+ field: 'requestEndTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- table: {
- width: 175
- }
- },
- {
- label: '要求结束时间',
- field: 'requestEndTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '完成时间',
+ field: 'finishTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: false,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ table: {
+ width: 175
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '供应商编码',
+ field: 'supplierCode',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 175
+ },
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '供应商信息', // 查询弹窗标题
+ searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法
+ multiple: false,
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- table: {
- width: 175
- }
- },
- {
- label: '完成时间',
- field: 'finishTime',
- sort: 'custom',
- formatter: dateFormatter,
- isSearch: false,
- search: {
- component: 'DatePicker',
- componentProps: {
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ {
+ label: '供应商名称',
+ field: 'supplierName',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 175
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
}
},
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ label: '物料编码',
+ field: 'itemCode',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '物料信息', // 查询弹窗标题
+ searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: ItemApi.getItembasicPage, // 查询弹窗所需分页方法
+ multiple: false,
+ searchCondition: [
+ {
+ key: 'available',
+ value: 'TRUE',
+ isMainValue: false
+ }
+ ]
+ }
}
},
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ {
+ label: '物料名称',
+ field: 'itemName',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ }
},
- table: {
- width: 175
- }
- },
- {
- label: '供应商编码',
- field: 'supplierCode',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 175
+ {
+ label: '批次',
+ field: 'batch',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
+ }
},
- form:{
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchTitle: '供应商信息', // 查询弹窗标题
- searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
- searchField: 'code', // 查询弹窗赋值字段
- searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法
- multiple:false,
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- isMainValue: false
- }]
+ {
+ label: '待检数量',
+ field: 'requestInspectionNum',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
}
- }
- },
- {
- label: '供应商名称',
- field: 'supplierName',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 175
},
- form:{
- componentProps: {
- disabled:true
+ {
+ label: '参考订单号',
+ field: 'referenceOrderCode',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
}
- }
- },
- {
- label: '物料编码',
- field: 'itemCode',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
},
- form:{
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchTitle: '物料信息', // 查询弹窗标题
- searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
- searchField: 'code', // 查询弹窗赋值字段
- searchPage: ItemApi.getItembasicPage, // 查询弹窗所需分页方法
- multiple:false,
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- isMainValue: false
- }]
+ {
+ label: '参考订单行',
+ field: 'referenceOrderRow',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ table: {
+ width: 150
}
- }
- },
- {
- label: '物料名称',
- field: 'itemName',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
},
- form:{
- componentProps: {
- disabled:true
+ {
+ label: '参考凭证号',
+ field: 'referenceCertificateCode',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 150
}
- }
- },
- {
- label: '批次',
- field: 'batch',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
- }
- },
- {
- label: '待检数量',
- field: 'requestInspectionNum',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
- }
- },
- {
- label: '参考订单号',
- field: 'referenceOrderCode',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
- }
- },
- {
- label: '参考订单行',
- field: 'referenceOrderRow',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'InputNumber',
- value: 0
},
- table: {
- width: 150
- }
- },
- {
- label: '参考凭证号',
- field: 'referenceCertificateCode',
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
- }
- },
- {
- label: '参考凭证行',
- field: 'referenceCertificateRow',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'InputNumber',
- value: 0
+ {
+ label: '参考凭证行',
+ field: 'referenceCertificateRow',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ table: {
+ width: 150
+ }
},
- table: {
- width: 150
- }
- },
- {
- label: '检验类型',
- field: 'inspectionType',
- sort: 'custom',
- isSearch: false,
- dictType: DICT_TYPE.INSPECTION_TYPE,
- dictClass: 'string',
- form: {
- componentProps: {
+ {
+ label: '检验类型',
+ field: 'inspectionType',
+ sort: 'custom',
+ isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_TYPE,
+ dictClass: 'string',
+ form: {
+ componentProps: {}
+ },
+ table: {
+ width: 175
}
},
- table: {
- width: 175
- }
- },
- {
- label: '小包装数',
- field: 'minPackageQty',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'InputNumber',
- value: 0
+ {
+ label: '小包装数',
+ field: 'minPackageQty',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ table: {
+ width: 150
+ }
},
- table: {
- width: 150
- }
- }, {
- label: '检验水平',
- field: 'inspectionLevel',
- sort: 'custom',
- dictType: DICT_TYPE.INSPECTION_LEVEL,
- dictClass: 'string',
- table: {
- width: 150
+ {
+ label: '检验水平',
+ field: 'inspectionLevel',
+ sort: 'custom',
+ dictType: DICT_TYPE.INSPECTION_LEVEL,
+ dictClass: 'string',
+ table: {
+ width: 150
+ },
+ isSearch: true
+ },
+ {
+ label: 'aql',
+ field: 'aql',
+ sort: 'custom',
+ dictType: DICT_TYPE.BASIC_AQL,
+ dictClass: 'string',
+ table: {
+ width: 150
+ }
},
- isSearch: true,
- }, {
- label: 'aql',
- field: 'aql',
- sort: 'custom',
- dictType: DICT_TYPE.BASIC_AQL,
- dictClass: 'string',
- table: {
- width: 150
- }
- }, {
- label: '操作',
- field: 'action',
- isForm: false,
- table: {
- width: 240,
- fixed: 'right'
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 240,
+ fixed: 'right'
+ }
}
- }
-]))
+ ])
+)
// 表单校验
export const InspectionRequestPackageRules = reactive({
// packageCode: [required],
// packageSpecificationCode: [required],
- amount: [required,{ validator:validateTwoNum, message: '小数点后最多2位', trigger: 'blur'}],
- measuringUnit: [required],
+ amount: [required, { validator: validateTwoNum, message: '小数点后最多2位', trigger: 'blur' }],
+ measuringUnit: [required]
})
/**
* @returns {Array} 检验申请包装
*/
-export const InspectionRequestPackage = useCrudSchemas(reactive([
- {
- label: '编码',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:true
- },
- isTableForm:false,
- form:{
- componentProps:{
- disabled:true
+export const InspectionRequestPackage = useCrudSchemas(
+ reactive([
+ {
+ label: '编码',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: true
+ },
+ isTableForm: false,
+ form: {
+ componentProps: {
+ disabled: true
+ }
}
- }
- },
- {
- label: '包装号',
- field: 'packageCode',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:false
- },
- },
- {
- label: '包装规格',
- field: 'packageSpecificationCode',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:false
},
- },
- {
- label: '数量',
- field: 'amount',
- sort: 'custom',
- isSearch: false,
- form: {
- component: 'InputNumber',
- value: 0
+ {
+ label: '包装号',
+ field: 'packageCode',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: false
+ }
},
- tableForm:{
- disabled:false
+ {
+ label: '包装规格',
+ field: 'packageSpecificationCode',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: false
+ }
},
- },
- {
- label: '计量单位',
- field: 'measuringUnit',
- sort: 'custom',
- isSearch: true,
- tableForm:{
- disabled:false
+ {
+ label: '数量',
+ field: 'amount',
+ sort: 'custom',
+ isSearch: false,
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ tableForm: {
+ disabled: false
+ }
},
- table:{
- width:150
+ {
+ label: '计量单位',
+ field: 'measuringUnit',
+ sort: 'custom',
+ isSearch: true,
+ tableForm: {
+ disabled: false
+ },
+ table: {
+ width: 150
+ }
}
- }
-]))
+ ])
+)
diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts
index 3617757b5..91e1ee099 100644
--- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts
@@ -1,1640 +1,1580 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
-import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
+import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
import { fa } from 'element-plus/es/locale'
import { DICT_TYPE } from '@/utils/dict'
/**
* @returns {Array} 采购收货任务主表
*/
-export const PurchasereceiptJobMain = useCrudSchemas(reactive([
- {
- label: '单据号',
- field: 'number',
- sort: 'custom',
- table: {
- width: 180,
- fixed: 'left'
- },
- isSearch: true,
- sortSearchDefault:1
- },
- {
- label: '申请单号',
- field: 'requestNumber',
- sort: 'custom',
- table: {
- width: 180
- },
- isSearch: false,
- sortTableDefault:2,
- },
- {
- label: '发货单号',
- field: 'asnNumber',
- sort: 'custom',
- table: {
- width: 180
- },
- sortTableDefault:3,
- isSearch: true
- },
- {
- label: '要货计划单号',
- field: 'ppNumber',
- sort: 'custom',
- isTable:false,
- table: {
- width: 180
- },
- },
- {
- label: '供应商代码',
- field: 'supplierCode',
- sort: 'custom',
- sortTableDefault:1,
- table: {
- width: 150
- },
- isSearch: true,
- sortSearchDefault:2
- },
- {
- label: '到月台代码',
- field: 'toDockCode',
- sort: 'custom',
- isTable:false,
- table: {
- width: 150
- },
- },
- {
- label: '承运商',
- field: 'carrierCode',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1010
- },
- {
- label: '数据来源',
- field: 'sourceType',
- dictType: DICT_TYPE.PURCHASERECEIPT_SOURCE_TYPE,
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- componentProps: {
- disabled: true
+export const PurchasereceiptJobMain = useCrudSchemas(
+ reactive([
+ {
+ label: '单据号',
+ field: 'number',
+ sort: 'custom',
+ table: {
+ width: 180,
+ fixed: 'left'
+ },
+ isSearch: true,
+ sortSearchDefault: 1
+ },
+ {
+ label: '申请单号',
+ field: 'requestNumber',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isSearch: false,
+ sortTableDefault: 2
+ },
+ {
+ label: '发货单号',
+ field: 'asnNumber',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ sortTableDefault: 3,
+ isSearch: true
+ },
+ {
+ label: '要货计划单号',
+ field: 'ppNumber',
+ sort: 'custom',
+ isTable: false,
+ table: {
+ width: 180
}
},
- isSearch: false,
- sortTableDefault:5,
- },
- {
- label: '运输方式',
- field: 'transferMode',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1011
- },
- {
- label: '车牌号',
- field: 'vehiclePlateNumber',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1012
- },
- {
- label: '从仓库代码',
- field: 'fromWarehouseCode',
- sort: 'custom',
- isTable:false,
- table: {
- width: 150
- },
- },
- {
- label: '到仓库代码',
- field: 'toWarehouseCode',
- sort: 'custom',
- isTable:false,
- table: {
- width: 150
- },
- formatter: dateFormatter,
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '供应商代码',
+ field: 'supplierCode',
+ sort: 'custom',
+ sortTableDefault: 1,
+ table: {
+ width: 150
+ },
+ isSearch: true,
+ sortSearchDefault: 2
+ },
+ {
+ label: '到月台代码',
+ field: 'toDockCode',
+ sort: 'custom',
+ isTable: false,
+ table: {
+ width: 150
}
},
- },
- {
- label: '申请时间',
- field: 'requestTime',
- sort: 'custom',
- isTable:false,
- table: {
- width: 180
- },
- formatter: dateFormatter,
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '承运商',
+ field: 'carrierCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1010
+ },
+ {
+ label: '数据来源',
+ field: 'sourceType',
+ dictType: DICT_TYPE.PURCHASERECEIPT_SOURCE_TYPE,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ isSearch: false,
+ sortTableDefault: 5
+ },
+ {
+ label: '运输方式',
+ field: 'transferMode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1011
+ },
+ {
+ label: '车牌号',
+ field: 'vehiclePlateNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1012
+ },
+ {
+ label: '从仓库代码',
+ field: 'fromWarehouseCode',
+ sort: 'custom',
+ isTable: false,
+ table: {
+ width: 150
}
},
- },
- {
- label: '要求截止时间',
- field: 'requestDueTime',
- sort: 'custom',
- table: {
- width: 180
- },
- isTable:false,
- formatter: dateFormatter,
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '到仓库代码',
+ field: 'toWarehouseCode',
+ sort: 'custom',
+ isTable: false,
+ table: {
+ width: 150
+ },
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
}
},
- },
- {
- label: '状态',
- field: 'status',
- dictType: DICT_TYPE.JOB_STATUS,
- dictClass: 'string',
- isSearch: false,
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:6
- },
- {
- label: '过期时间',
- field: 'expiredTime',
- formatter: dateFormatter,
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- isTable:false,
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '申请时间',
+ field: 'requestTime',
+ sort: 'custom',
+ isTable: false,
+ table: {
+ width: 180
+ },
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
}
},
- },
- // {
- // label: '状态',
- // field: 'jobStageStatus',
- // sort: 'custom',
- // table: {
- // width: 150
- // },
- // },
- {
- label: '优先级',
- field: 'priority',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- form: {
- component: 'InputNumber',
- }
- },
- {
- label: '优先级增量',
- field: 'priorityIncrement',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- form: {
- component: 'InputNumber',
- }
- },
- {
- label: '部门',
- field: 'departmentCode',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '岗位',
- field: 'userPositionCode',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '承接人',
- field: 'acceptUserName',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '承接时间',
- field: 'acceptTime',
- formatter: dateFormatter,
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- isTable:false,
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '要求截止时间',
+ field: 'requestDueTime',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isTable: false,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
+ }
+ },
+ {
+ label: '状态',
+ field: 'status',
+ dictType: DICT_TYPE.JOB_STATUS,
+ dictClass: 'string',
+ isSearch: false,
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 6
+ },
+ {
+ label: '过期时间',
+ field: 'expiredTime',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isTable: false,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
+ }
+ },
+ // {
+ // label: '状态',
+ // field: 'jobStageStatus',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ {
+ label: '优先级',
+ field: 'priority',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false,
+ form: {
+ component: 'InputNumber'
+ }
+ },
+ {
+ label: '优先级增量',
+ field: 'priorityIncrement',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false,
+ form: {
+ component: 'InputNumber'
+ }
+ },
+ {
+ label: '部门',
+ field: 'departmentCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '岗位',
+ field: 'userPositionCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '承接人',
+ field: 'acceptUserName',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '承接时间',
+ field: 'acceptTime',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isTable: false,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
+ }
+ },
+ {
+ label: '完成人',
+ field: 'completeUserName',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '完成时间',
+ field: 'completeTime',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isTable: false,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
+ }
+ },
+ {
+ label: '从库区类型范围',
+ field: 'fromAreaTypes',
+ dictType: DICT_TYPE.AREA_TYPE,
+ dictClass: 'string',
+ isTable: false,
+ sort: 'custom',
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '到库区类型范围',
+ field: 'toAreaTypes',
+ dictType: DICT_TYPE.AREA_TYPE,
+ dictClass: 'string',
+ isTable: false,
+ sort: 'custom',
+ table: {
+ width: 150
}
},
- },
- {
- label: '完成人',
- field: 'completeUserName',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '完成时间',
- field: 'completeTime',
- formatter: dateFormatter,
- detail: {
- dateFormat: 'YYYY-MM-DD HH:mm:ss'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- isTable:false,
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '从库区代码范围',
+ field: 'fromAreaCodes',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '到库区代码范围',
+ field: 'toAreaCodes',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '业务类型',
+ field: 'businessType',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '创建者',
+ field: 'creator',
+ 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
+ },
+ isTable: false,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
}
},
- },
- {
- label: '从库区类型范围',
- field: 'fromAreaTypes',
- dictType: DICT_TYPE.AREA_TYPE,
- dictClass: 'string',
- isTable: false,
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '到库区类型范围',
- field: 'toAreaTypes',
- dictType: DICT_TYPE.AREA_TYPE,
- dictClass: 'string',
- isTable: false,
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '从库区代码范围',
- field: 'fromAreaCodes',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '到库区代码范围',
- field: 'toAreaCodes',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '业务类型',
- field: 'businessType',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '备注',
- field: 'remark',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '创建者',
- field: 'creator',
- 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
- },
- isTable:false,
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '自动完成',
+ field: 'autoComplete',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- },
- {
- label: '自动完成',
- field: 'autoComplete',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许修改库位',
+ field: 'allowModifyLocation',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许修改库位',
- field: 'allowModifyLocation',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许修改数量',
+ field: 'allowModifyQty',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许修改数量',
- field: 'allowModifyQty',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许大于推荐数量',
+ field: 'allowBiggerQty',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许大于推荐数量',
- field: 'allowBiggerQty',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许小于推荐数量',
+ field: 'allowSmallerQty',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许小于推荐数量',
- field: 'allowSmallerQty',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许修改库存状态',
+ field: 'allowModifyInventoryStatus',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许修改库存状态',
- field: 'allowModifyInventoryStatus',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许连续扫描',
+ field: 'allowContinuousScanning',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许连续扫描',
- field: 'allowContinuousScanning',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许部分完成',
+ field: 'allowPartialComplete',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许部分完成',
- field: 'allowPartialComplete',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许修改批次',
+ field: 'allowModifyBatch',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许修改批次',
- field: 'allowModifyBatch',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '允许修改箱码',
+ field: 'allowModifyPackingNumber',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: false,
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE'
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '允许修改箱码',
- field: 'allowModifyPackingNumber',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isTable: false,
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
+ {
+ label: '操作',
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 250,
+ fixed: 'right'
}
},
- sort: 'custom',
- table: {
- width: 180
- },
- },
- {
- label: '操作',
- field: 'action',
- isDetail: false,
- isForm: false,
- table: {
- width: 250,
- fixed: 'right'
- },
- },
- {
- label: '批次', // 实际是子表的到批次,为了不影响页面,单独放上面
- field: 'toBatch',
- sort: 'custom',
- isForm:false,
- isTableForm:false,
- table: {
- width: 150
- },
- sortTableDefault:1001,
- },
- {
- label: '包装号', // 实际是子表的到包装号,为了不影响页面,单独放上面
- field: 'toPackingNumber',
- sort: 'custom',
- isForm:false,
- isTableForm:false,
- table: {
- width: 150
- },
- sortTableDefault:1001,
- },
+ {
+ label: '批次', // 实际是子表的到批次,为了不影响页面,单独放上面
+ field: 'toBatch',
+ sort: 'custom',
+ isForm: false,
+ isTableForm: false,
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1001
+ },
+ {
+ label: '包装号', // 实际是子表的到包装号,为了不影响页面,单独放上面
+ field: 'toPackingNumber',
+ sort: 'custom',
+ isForm: false,
+ isTableForm: false,
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1001
+ },
- {
- label: '创建时间',
- field: 'createTime',
- isForm: false,
- table: {
- width: 180
- },
- formatter: dateFormatter,
- detail: {
- dateFormat : 'YYYY-MM-DD HH:mm:ss'
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- style: {width:'100%'},
- type: 'datetime',
- dateFormat: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ {
+ label: '创建时间',
+ field: 'createTime',
+ isForm: false,
+ table: {
+ width: 180
+ },
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: { width: '100%' },
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x'
+ }
}
+ },
+ {
+ label: '创建者',
+ field: 'creator',
+ table: {
+ width: 130
+ },
+ isForm: false,
+ isTable: true
}
- },
- {
- label: '创建者',
- field: 'creator',
- table: {
- width: 130
- },
- isForm: false,
- isTable: true
- }
-
-]))
+ ])
+)
//表单校验
export const PurchasereceiptJobMainRules = reactive({
- requestNumber: [
- { required: true, message: '请选择申请单号', trigger: 'change' }
- ],
- supplierCode: [
- { 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' }],
+ supplierCode: [{ 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 PurchasereceiptJobDetail = useCrudSchemas(reactive([
- {
- label: '包装号',
- field: 'packingNumber',
- sort: 'custom',
- table: {
- width: 150
- },
- isSearch:true,
- hiddenInMain:true,
- sortTableDefault:1002,
- sortSearchDefault:1002
- },
- {
- label: '包装规格',
- field: 'packUnit',
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1002
- },
- {
- label: '包装数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- },
- sortTableDefault:1002
- },
- {
- label: '器具号',
- field: 'containerNumber',
- sort: 'custom',
- hiddenInMain:true,
- table: {
- width: 150
- },
- isTable:false,
- },
- {
- label: '批次',
- field: 'batch',
- sort: 'custom',
- table: {
- width: 150
- },
- sortSearchDefault:1000,
- isSearch:true,
- hiddenInMain:true,
- sortTableDefault:8,
- },
- {
- label: '替代批次',
- field: 'altBatch',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- hiddenInMain:true,
- },
- {
- label: '到货日期',
- field: 'arriveDate',
- formatter: dateFormatter2,
- detail: {
- dateFormat: 'YYYY-MM-DD'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- sortTableDefault:1005,
- hiddenInMain:true,
- form: {
- component: 'DatePicker',
- componentProps: {
- style: {width: '100%'},
- type: 'date',
- dateFormat: 'YYYY-MM-DD',
- valueFormat: 'x',
+export const PurchasereceiptJobDetail = useCrudSchemas(
+ reactive([
+ {
+ label: '包装号',
+ field: 'packingNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isSearch: true,
+ hiddenInMain: true,
+ sortTableDefault: 1002,
+ sortSearchDefault: 1002
+ },
+ {
+ label: '包装规格',
+ field: 'packUnit',
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1002
+ },
+ {
+ label: '包装数量',
+ field: 'qty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber'
+ },
+ sortTableDefault: 1002
+ },
+ {
+ label: '器具号',
+ field: 'containerNumber',
+ sort: 'custom',
+ hiddenInMain: true,
+ table: {
+ width: 150
+ },
+ isTable: false
+ },
+ {
+ label: '批次',
+ field: 'batch',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortSearchDefault: 1000,
+ isSearch: true,
+ hiddenInMain: true,
+ sortTableDefault: 8
+ },
+ {
+ label: '替代批次',
+ field: 'altBatch',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false,
+ hiddenInMain: true
+ },
+ {
+ label: '到货日期',
+ field: 'arriveDate',
+ formatter: dateFormatter2,
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ sortTableDefault: 1005,
+ hiddenInMain: true,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: { width: '100%' },
+ type: 'date',
+ dateFormat: 'YYYY-MM-DD',
+ valueFormat: 'x'
+ }
}
},
- },
- {
- label: '生产日期',
- field: 'produceDate',
- formatter: dateFormatter2,
- detail: {
- dateFormat: 'YYYY-MM-DD'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- sortTableDefault:1005,
- hiddenInMain:true,
- form: {
- component: 'DatePicker',
- componentProps: {
- style: {width: '100%'},
- type: 'date',
- dateFormat: 'YYYY-MM-DD',
- valueFormat: 'x',
+ {
+ label: '生产日期',
+ field: 'produceDate',
+ formatter: dateFormatter2,
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ sortTableDefault: 1005,
+ hiddenInMain: true,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: { width: '100%' },
+ type: 'date',
+ dateFormat: 'YYYY-MM-DD',
+ valueFormat: 'x'
+ }
}
},
- },
- {
- label: '过期日期',
- field: 'expireDate',
- formatter: dateFormatter2,
- detail: {
- dateFormat: 'YYYY-MM-DD'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- sortTableDefault:1005,
- hiddenInMain:true,
- form: {
- component: 'DatePicker',
- componentProps: {
- style: {width: '100%'},
- type: 'date',
- dateFormat: 'YYYY-MM-DD',
- valueFormat: 'x',
+ {
+ label: '过期日期',
+ field: 'expireDate',
+ formatter: dateFormatter2,
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ sortTableDefault: 1005,
+ hiddenInMain: true,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: { width: '100%' },
+ type: 'date',
+ dateFormat: 'YYYY-MM-DD',
+ valueFormat: 'x'
+ }
}
},
- },
- {
- label: '库存状态',
- field: 'inventoryStatus',
- dictType: DICT_TYPE.INVENTORY_STATUS,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:1006,
- },
- {
- label: '来源库位',
- field: 'fromLocationCode',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1007,
- },
- {
- label: '目标库位',
- field: 'toLocationCode',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1007,
- },
- {
- label: '采购订单号',
- field: 'poNumber',
- sort: 'custom',
- table: {
- width: 150
- },
- isSearch:true,
- sortTableDefault:6,
-
- },
- {
- label: '订单行',
- field: 'poLine',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:6,
- },
- {
- label: '行类型',
- field: 'poLineType',
- sort: 'custom',
- table: {
- width: 180
- },
- sortTableDefault:6,
- hiddenInMain:true,
- isForm: false,
- tableForm:{
- disabled: true
- }
- },
-
- {
- label: '供应商计量数量',
- field: 'supplierQty',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1009,
- hiddenInMain:true,
- form: {
- component: 'InputNumber',
- }
- },
- {
- label: '供应商计量单位',
- field: 'supplierUom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1009,
- hiddenInMain:true,
- },
- {
- label: '转换率',
- field: 'convertRate',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- },
- sortTableDefault:1009,
- hiddenInMain:true,
- },
- {
- label: '从货主',
- field: 'fromOwnerCode',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:1008,
- },
- {
- label: '到货主',
- field: 'toOwnerCode',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:1008,
- },
- {
- label: '物料代码',
- field: 'itemCode',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:7,
- isSearch:true
- },
- {
- label: '物料名称',
- field: 'itemName',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:7,
- },
- {
- label: '物料描述1',
- field: 'itemDesc1',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:7,
- },
- {
- label: '物料描述2',
- field: 'itemDesc2',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:7,
- },
- {
- label: '项目代码',
- field: 'projectCode',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:1010,
- },
- {
- label: '计量单位',
- field: 'uom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1004
- },
- {
- label: '订单数量',
- field: 'orderQty',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:1004
- },
- {
- label: '收货数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:1004
- },
- {
- label: '数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable:false,
- form: {
- component: 'InputNumber',
- },
- sortTableDefault:1004
- },
- {
- label: '单据号',
- field: 'number',
- sort: 'custom',
- table: {
- width: 180
- },
- hiddenInMain:true,
- sortTableDefault:1011,
- },
- {
- label: '备注',
- field: 'remark',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:1012,
- hiddenInMain:true,
- },
- {
- label: '创建者',
- field: 'creator',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain:true,
- sortTableDefault:1012
- },
- {
- 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: 'inventoryStatus',
+ dictType: DICT_TYPE.INVENTORY_STATUS,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1006
+ },
+ {
+ label: '来源库位',
+ field: 'fromLocationCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1007
+ },
+ {
+ label: '目标库位',
+ field: 'toLocationCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1007
+ },
+ {
+ label: '采购订单号',
+ field: 'poNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isSearch: true,
+ sortTableDefault: 6
+ },
+ {
+ label: '订单行',
+ field: 'poLine',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 6
+ },
+ {
+ label: '行类型',
+ field: 'poLineType',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ sortTableDefault: 6,
+ hiddenInMain: true,
+ isForm: false,
+ tableForm: {
+ disabled: true
}
},
- hiddenInMain:true,
- sortTableDefault:1012
- },
- {
- label: '操作',
- hiddenInMain:true,
- field: 'action',
- isDetail: false,
- isForm: false ,
- table: {
- width: 180,
- fixed: 'right'
- },
- isTableForm:true,
- },
-]))
+ {
+ label: '供应商计量数量',
+ field: 'supplierQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1009,
+ hiddenInMain: true,
+ form: {
+ component: 'InputNumber'
+ }
+ },
+ {
+ label: '供应商计量单位',
+ field: 'supplierUom',
+ dictType: DICT_TYPE.UOM,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1009,
+ hiddenInMain: true
+ },
+ {
+ label: '转换率',
+ field: 'convertRate',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber'
+ },
+ sortTableDefault: 1009,
+ hiddenInMain: true
+ },
+ {
+ label: '从货主',
+ field: 'fromOwnerCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1008
+ },
+ {
+ label: '到货主',
+ field: 'toOwnerCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1008
+ },
+ {
+ label: '物料代码',
+ field: 'itemCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 7,
+ isSearch: true
+ },
+ {
+ label: '物料名称',
+ field: 'itemName',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 7
+ },
+ {
+ label: '物料描述1',
+ field: 'itemDesc1',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 7
+ },
+ {
+ label: '物料描述2',
+ field: 'itemDesc2',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 7
+ },
+ {
+ label: '项目代码',
+ field: 'projectCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1010
+ },
+ {
+ label: '计量单位',
+ field: 'uom',
+ dictType: DICT_TYPE.UOM,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1004
+ },
+ {
+ label: '订单数量',
+ field: 'orderQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1004
+ },
+ {
+ label: '收货数量',
+ field: 'qty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1004
+ },
+ {
+ label: '数量',
+ field: 'qty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false,
+ form: {
+ component: 'InputNumber'
+ },
+ sortTableDefault: 1004
+ },
+ {
+ label: '单据号',
+ field: 'number',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1011
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault: 1012,
+ hiddenInMain: true
+ },
+ {
+ label: '创建者',
+ field: 'creator',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1012
+ },
+ {
+ 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'
+ }
+ },
+ hiddenInMain: true,
+ sortTableDefault: 1012
+ },
+ {
+ label: '操作',
+ hiddenInMain: true,
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 180,
+ fixed: 'right'
+ },
+ isTableForm: true
+ }
+ ])
+)
//表单校验
export const PurchasereceiptJobDetailRules = reactive({
- packingNumber: [
- { required: true, message: '请选择包装号', trigger: 'change' }
- ],
- batch: [
- { required: true, message: '请输入批次', trigger: 'blur' }
- ],
- arriveDate: [
- { required: true, message: '请输入到货日期', trigger: 'change' }
- ],
- produceDate: [
- { required: true, message: '请输入生产日期', trigger: 'change' }
- ],
- expireDate: [
- { required: true, message: '请输入过期日期', trigger: 'change' }
- ],
- inventoryStatus: [
- { required: true, message: '请选择库存状态', trigger: 'change' }
- ],
- poNumber: [
- { required: true, message: '请选择订单号', trigger: 'change' }
- ],
- poLine: [
- { required: true, message: '请输入订单行', trigger: 'blur' }
- ],
- packQty: [
- { required: true, message: '请输入包装数量', trigger: 'blur' }
- ],
- packUnit: [
- { required: true, message: '请选择包装规格', trigger: 'change' }
- ],
- convertRate: [
- { required: true, message: '请输入转换率', trigger: 'blur' }
- ],
- toLocationCode: [
- { 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' }
- ],
+ packingNumber: [{ required: true, message: '请选择包装号', trigger: 'change' }],
+ batch: [{ required: true, message: '请输入批次', trigger: 'blur' }],
+ arriveDate: [{ required: true, message: '请输入到货日期', trigger: 'change' }],
+ produceDate: [{ required: true, message: '请输入生产日期', trigger: 'change' }],
+ expireDate: [{ required: true, message: '请输入过期日期', trigger: 'change' }],
+ inventoryStatus: [{ required: true, message: '请选择库存状态', trigger: 'change' }],
+ poNumber: [{ required: true, message: '请选择订单号', trigger: 'change' }],
+ poLine: [{ required: true, message: '请输入订单行', trigger: 'blur' }],
+ packQty: [{ required: true, message: '请输入包装数量', trigger: 'blur' }],
+ packUnit: [{ required: true, message: '请选择包装规格', trigger: 'change' }],
+ convertRate: [{ required: true, message: '请输入转换率', trigger: 'blur' }],
+ toLocationCode: [{ 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' }]
})
-
/**
* @returns {Array} 采购收货任务子表
*/
-export const PurchasereceiptJobDetailPackingNumber = useCrudSchemas(reactive([
- {
- label: '包装号',
- field: 'packingNumber',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- componentProps: {
- disabled:true
+export const PurchasereceiptJobDetailPackingNumber = useCrudSchemas(
+ reactive([
+ {
+ label: '包装号',
+ field: 'packingNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
}
},
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '器具号',
- field: 'containerNumber',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- componentProps: {
- disabled:true
+ {
+ label: '器具号',
+ field: 'containerNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
}
},
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '批次',
- field: 'batch',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- componentProps: {
- disabled:true
+ {
+ label: '批次',
+ field: 'batch',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
}
},
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '替代批次',
- field: 'altBatch',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- componentProps: {
- disabled:true
+ {
+ label: '替代批次',
+ field: 'altBatch',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm: {
+ disabled: true
}
},
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '到货日期',
- field: 'arriveDate',
- formatter: dateFormatter2,
- detail: {
- dateFormat: 'YYYY-MM-DD'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- disabled:true,
- style: {width: '100%'},
- type: 'date',
- dateFormat: 'YYYY-MM-DD',
- valueFormat: 'x',
+ {
+ label: '到货日期',
+ field: 'arriveDate',
+ formatter: dateFormatter2,
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ disabled: true,
+ style: { width: '100%' },
+ type: 'date',
+ dateFormat: 'YYYY-MM-DD',
+ valueFormat: 'x'
+ }
+ },
+ tableForm: {
+ disabled: true
}
},
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '生产日期',
- field: 'produceDate',
- formatter: dateFormatter2,
- detail: {
- dateFormat: 'YYYY-MM-DD'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- style: {width: '100%'},
- type: 'date',
- dateFormat: 'YYYY-MM-DD',
- valueFormat: 'x',
+ {
+ label: '生产日期',
+ field: 'produceDate',
+ formatter: dateFormatter2,
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: { width: '100%' },
+ type: 'date',
+ dateFormat: 'YYYY-MM-DD',
+ valueFormat: 'x'
+ }
+ },
+ tableForm: {
+ disabled: true,
+ type: 'FormDate',
+ valueFormat: 'x'
}
},
- tableForm: {
- disabled: true,
- type:'FormDate',
- valueFormat: 'x',
- }
- },
- {
- label: '过期日期',
- field: 'expireDate',
- formatter: dateFormatter2,
- detail: {
- dateFormat: 'YYYY-MM-DD'
- },
- sort: 'custom',
- table: {
- width: 180
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- style: {width: '100%'},
- type: 'date',
- dateFormat: 'YYYY-MM-DD',
- valueFormat: 'x',
+ {
+ label: '过期日期',
+ field: 'expireDate',
+ formatter: dateFormatter2,
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: { width: '100%' },
+ type: 'date',
+ dateFormat: 'YYYY-MM-DD',
+ valueFormat: 'x'
+ }
+ },
+ tableForm: {
+ disabled: true,
+ type: 'FormDate',
+ valueFormat: 'x'
}
},
- tableForm: {
- disabled: true,
- type:'FormDate',
- valueFormat: 'x',
- }
- },
- {
- label: '库存状态',
- field: 'inventoryStatus',
- dictType: DICT_TYPE.INVENTORY_STATUS,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '从库位代码',
- field: 'fromLocationCode',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '到库位代码',
- field: 'toLocationCode',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '订单号',
- field: 'poNumber',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '订单行',
- field: 'poLine',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '包装数量',
- field: 'packQty',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '包装规格',
- field: 'packUnit',
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '供应商计量数量',
- field: 'supplierQty',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '供应商计量单位',
- field: 'supplierUom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '转换率',
- field: 'convertRate',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '从货主代码',
- field: 'fromOwnerCode',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '到货主代码',
- field: 'toOwnerCode',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '物料代码',
- field: 'itemCode',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '物料名称',
- field: 'itemName',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '物料描述1',
- field: 'itemDesc1',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '物料描述2',
- field: 'itemDesc2',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '项目代码',
- field: 'projectCode',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- component: 'InputNumber',
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '计量单位',
- field: 'uom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- type: 'Select',
- disabled: true,
- }
- },
- {
- label: '单据号',
- field: 'number',
- sort: 'custom',
- table: {
- width: 180
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '备注',
- fiield: 'remark',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- label: '创建者',
- field: 'creator',
- sort: 'custom',
- table: {
- width: 150
- },
- tableForm: {
- disabled: true,
- }
- },
- {
- 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: 'inventoryStatus',
+ dictType: DICT_TYPE.INVENTORY_STATUS,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
}
},
- tableForm: {
- disabled: true,
- type:'FormDate',
- valueFormat: 'x',
+ {
+ label: '从库位代码',
+ field: 'fromLocationCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '到库位代码',
+ field: 'toLocationCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '订单号',
+ field: 'poNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '订单行',
+ field: 'poLine',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '包装数量',
+ field: 'packQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber'
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '包装规格',
+ field: 'packUnit',
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '供应商计量数量',
+ field: 'supplierQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber'
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '供应商计量单位',
+ field: 'supplierUom',
+ dictType: DICT_TYPE.UOM,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '转换率',
+ field: 'convertRate',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber'
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '从货主代码',
+ field: 'fromOwnerCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '到货主代码',
+ field: 'toOwnerCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '物料代码',
+ field: 'itemCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '物料名称',
+ field: 'itemName',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '物料描述1',
+ field: 'itemDesc1',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '物料描述2',
+ field: 'itemDesc2',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '项目代码',
+ field: 'projectCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '数量',
+ field: 'qty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber'
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '计量单位',
+ field: 'uom',
+ dictType: DICT_TYPE.UOM,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'Select',
+ disabled: true
+ }
+ },
+ {
+ label: '单据号',
+ field: 'number',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '备注',
+ fiield: 'remark',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ label: '创建者',
+ field: 'creator',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm: {
+ disabled: true
+ }
+ },
+ {
+ 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'
+ }
+ },
+ tableForm: {
+ disabled: true,
+ type: 'FormDate',
+ valueFormat: 'x'
+ }
}
- },
-]))
+ ])
+)