diff --git a/src/utils/disposition/tableColumns.ts b/src/utils/disposition/tableColumns.ts index 8a2681191..f19fbec51 100644 --- a/src/utils/disposition/tableColumns.ts +++ b/src/utils/disposition/tableColumns.ts @@ -11402,11 +11402,19 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive export const DemandforecastingMain = useCrudSchemas(reactive([ { label: '供应商代码', - field: 'supplierCode' + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '版本号', - field: 'version' + field: 'version', + sort: 'custom', + table: { + width: 150 + }, }, { label: '发布时间', @@ -11414,6 +11422,16 @@ export const DemandforecastingMain = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -11423,6 +11441,16 @@ export const DemandforecastingMain = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -11432,23 +11460,49 @@ export const DemandforecastingMain = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { label: '单据号', - field: 'number' + field: 'number', + sort: 'custom', + table: { + width: 150 + }, }, { label: '业务类型', - field: 'businessType' + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '状态', - field: 'status' + field: 'status', + sort: 'custom', + table: { + width: 150 + }, }, { label: '备注', - field: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', @@ -11457,11 +11511,25 @@ export const DemandforecastingMain = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -11469,27 +11537,310 @@ export const DemandforecastingMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + }, +])) + +//表单校验 +export const DemandforecastingMainRules = reactive({ + available: [ + { required: true, message: '请选择是否可用', trigger: 'change' } + ], + status: [ + { required: true, message: '请选择状态', trigger: 'change' } + ], +}) + +/** + * @returns {Array} 要货预测子表 + */ +export const DemandforecastingDetail = useCrudSchemas(reactive([ + { + label: '预测时间类型', + field: 'predictTimeType' + }, + { + label: '预测日期', + field: 'predictTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '单据号', + field: 'number' + }, + { + label: '物品代码', + field: 'itremCode' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '计划数量', + field: 'planQty' + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, isTable: true }, + { + label: '最后更新时间', + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '最后更新者', + field: 'updater' + } +])) + +//表单校验 +export const DemandforecastingDetailRules = reactive({ + predictTimeType: [ + { required: true, message: '请选择预测时间类型', trigger: 'change' } + ], + predictTime: [ + { required: true, message: '请输入预测时间', trigger: 'blur' } + ], + planQty: [ + { required: true, message: '请输入计划数量', trigger: 'blur' } + ], + uom: [ + { required: true, message: '请选择计量单位', trigger: 'change' } + ], +}) + +/** + * @returns {Array} 要货计划主表 + */ +export const PurchasePlanMain = useCrudSchemas(reactive([ + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '时间窗口', + field: 'timeWindow', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '仓库代码', + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '月台代码', + field: 'dockCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '单据号', + field: 'number', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '业务类型', + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '开始时间', + field: 'beginTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + } + }, + { + label: '结束时间', + field: 'endTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + } + }, + { + label: '创建时间', + field: 'createTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + } + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '最后更新时间', + field: 'updateTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + } + }, + { + label: '最后更新者', + field: 'updater', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '是否可用', + field: 'available', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + } ])) +//表单校验 +export const PurchasePlanMainRules = reactive({ + available: [ + { required: true, message: '请选择是否可用', trigger: 'change' } + ] +}) + /** - * @returns {Array} 要货预测子表 + * @returns {Array} 要货计划子表 */ -export const DemandforecastingDetail = useCrudSchemas(reactive([ +export const PurchasePlanDetail = useCrudSchemas(reactive([ { - label: '预测时间类型', - field: 'predictTimeType', - dictType: DICT_TYPE.PACK_UNIT, - dictClass: 'string' + label: '订单号', + field: 'poNumber' }, { - label: '预测日期', - field: 'predictTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '订单行', + field: 'poLine' }, { label: '单据号', @@ -11497,7 +11848,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive([ }, { label: '物品代码', - field: 'itremCode' + field: 'itemCode' }, { label: '备注', @@ -11515,6 +11866,10 @@ export const DemandforecastingDetail = useCrudSchemas(reactive([ label: '创建者', field: 'creator' }, + { + label: '已发货数量', + field: 'shippedQty' + }, { label: '计划数量', field: 'planQty' @@ -11527,6 +11882,10 @@ export const DemandforecastingDetail = useCrudSchemas(reactive([ isSearch: true, isTable: true }, + { + label: '最后更新者', + field: 'updater' + }, { label: '最后更新时间', field: 'updateTime', @@ -11536,82 +11895,171 @@ export const DemandforecastingDetail = useCrudSchemas(reactive([ } }, { - label: '最后更新者', - field: 'updater' - } + label: '是否可用', + field: 'available', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, ])) +//表单校验 +export const PurchasePlanDetailRules = reactive({ + available: [ + { required: true, message: '请选择是否可用', trigger: 'change' } + ], + poNumber: [ + { required: true, message: '请输入订单号', trigger: 'blur' } + ], + shippedQty: [ + { required: true, message: '请输入已发货数量', trigger: 'blur' } + ], +}) + /** * @returns {Array} 供应商发货申请主表 */ export const SupplierdeliverRequestMain = useCrudSchemas(reactive([ { label: '要货计划单号', - field: 'ppNumber' + field: 'ppNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '发货单号', - field: 'asnNumber' + field: 'asnNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '供应商代码', - field: 'supplierCode' + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人姓名', - field: 'contactName' + field: 'contactName', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人电话', - field: 'contactPhone' + field: 'contactPhone', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人电子邮件', - field: 'contactEmail' + field: 'contactEmail', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从仓库代码', - field: 'fromWarehouseCode' + field: 'fromWarehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到仓库代码', - field: 'toWarehouseCode' + field: 'toWarehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到月台代码', - field: 'toDockCode' + field: 'toDockCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '时间窗口', - field: 'timeWindow' + field: 'timeWindow', + sort: 'custom', + table: { + width: 150 + }, }, { label: '计划到货时间', - field: 'planArriveTime' + field: 'planArriveTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, }, { label: '承运商', - field: 'carrierCode' + field: 'carrierCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '运输方式', - field: 'transferMode' + field: 'transferMode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '车牌号', - field: 'vehiclePlateNumber' + field: 'vehiclePlateNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '单据号', - field: 'number' + field: 'number', + sort: 'custom', + table: { + width: 150 + }, }, { label: '业务类型', - field: 'businessType' + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '备注', - field: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', @@ -11619,11 +12067,19 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive( formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, }, { label: '申请时间', @@ -11631,7 +12087,11 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive( formatter: dateFormatter, detaul: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, }, { label: '截止时间', @@ -11639,19 +12099,31 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive( formatter: dateFormatter, detaul: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, }, { label: '部门', - field: 'departmentCode' + field: 'departmentCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '状态', field: 'status', dictType: DICT_TYPE.REQUEST_STATUS, dictClass: 'string', - isSearch:true, - isTable:true + isSearch: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '最后更新时间', @@ -11705,19 +12177,35 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive( export const SupplierdeliverRequestDetail = useCrudSchemas(reactive([ { label: '包装号', - field: 'packingNumber' + field: 'packingNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '器具号', - field: 'containerNumber' + field: 'containerNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '批次', - field: 'batch' + field: 'batch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '替代批次', - field: 'altBatch' + field: 'altBatch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到货日期', @@ -11725,7 +12213,11 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive([ }, { label: '要货计划单号', - field: 'ppNumber0' + field: 'ppNumber' }, { label: '发货单号', @@ -12221,11 +12737,17 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive( label: '从库位类型范围', field: 'fromLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, - dictClass: 'string' + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '到库位类型范围', - field: 'toLocationTypes' + field: 'toLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '从库区代码范围', @@ -12409,7 +12931,9 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive([ label: '标包单位', field: 'stdPackUnit', dictType: DICT_TYPE.PACK_UNIT, - dictClass: 'string' + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '供应商计量数量', @@ -12839,7 +13367,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ label: '供应商计量单位', field: 'supplierUom', dictType: DICT_TYPE.UOM, - dictClass: 'string' + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '转换率', @@ -12879,7 +13409,11 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ }, { label: '计量单位', - field: 'uom' + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '单据号', @@ -13123,7 +13657,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, { label: '库存状态', - field: 'inventoryStatus' + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '从库位代码', @@ -13171,7 +13709,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, { label: '标包单位', - field: 'stdPackUnit' + field: 'stdPackUnit', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '数量', @@ -13179,7 +13721,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, { label: '计量单位', - field: 'uom' + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '供应商计量数量', @@ -13207,7 +13753,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, { label: '不合格原因', - field:'failedReason' + field: 'failedReason', + dictType: DICT_TYPE.PURCHASE_RETURN_REASON, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '单价', @@ -13247,7 +13797,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, { label: '计量单位', - field: 'uom' + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '单据号', @@ -13475,7 +14029,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive }, { label: '库存状态', - field: 'inventoryStatus' + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '订单号', @@ -13527,7 +14085,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive }, { label: '计量单位', - field: 'uom' + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '备注', @@ -13539,15 +14101,23 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive }, { label: '创建时间', - field: 'createTime' + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '最后更新者', - field: 'updator' + field: 'updater' }, { label: '最后更新时间', - field: 'updateTime' + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } } ])) @@ -14280,7 +14850,7 @@ export const InspectRequestMain = useCrudSchemas(reactive([ field: 'businessType' }, { - label: '从仓库代码范围', + label: '从仓库代码', field: 'fromWarehouseCode' }, { @@ -14459,7 +15029,11 @@ export const InspectRequestDetail = useCrudSchemas(reactive([ }, { label: '库存状态', - field: 'inventoryStatus' + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '从库位代码', @@ -14467,7 +15041,11 @@ export const InspectRequestDetail = useCrudSchemas(reactive([ }, { label: '最后更新时间', - field: 'updateTime' + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '最后更新者', @@ -14499,7 +15077,11 @@ export const InspectRequestDetail = useCrudSchemas(reactive([ }, { label: '计量单位', - field: 'uom' + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true } ])) @@ -14566,7 +15148,7 @@ export const InspectJobMain = useCrudSchemas(reactive([ { label: '状态', field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, + dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -15531,7 +16113,7 @@ export const PutawayJobMain = useCrudSchemas(reactive([ { label: '状态', field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, + dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -16240,7 +16822,11 @@ export const PreparetoissueDetail = useCrudSchemas(reactive([ }, { label: '计量单位', - field: 'uom' + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '最后更新者', @@ -16543,7 +17129,7 @@ export const RepleinshJobMain = useCrudSchemas(reactive([ { label: '状态', field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, + dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -17363,7 +17949,7 @@ export const PickJobMain = useCrudSchemas(reactive([ { label: '状态', field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, + dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -18223,7 +18809,7 @@ export const IssueJobMain = useCrudSchemas(reactive([ { label: '状态', field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, + dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -18853,12 +19439,16 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ field: 'requestTime', formatter: dateFormatter, detail: { - dateFormat: 'YYYY--MM-DD HH:mm:ss' + dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { label: '要求截止时间', - field: 'requestDueTime' + field: 'requestDueTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '状态', @@ -18877,7 +19467,7 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ field: 'updateTime', formatter: dateFormatter, detail: { - dateFormat: 'YYYY--MM-DD HH:mm:ss' + dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { @@ -18909,7 +19499,7 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ field: 'acceptTime', formatter: dateFormatter, detail: { - dateFormat: 'YYYY--MM-DD HH:mm:ss' + dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { @@ -18921,7 +19511,7 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ field: 'completeTime', formatter: dateFormatter, detail: { - dateFormat: 'YYYY--MM-DD HH:mm:ss' + dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { @@ -18957,7 +19547,7 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ field: 'createTime', formatter: dateFormatter, detail: { - dateFormat: 'YYYY--MM-DD HH:mm:ss' + dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { @@ -19420,7 +20010,6 @@ export const ProductionreceiptRecordDetail = useCrudSchemas(reactive([ label: '创建者', field: 'creator' }, - { label: '创建时间', field: 'createTime', @@ -20986,7 +21574,7 @@ export const ProductionMain = useCrudSchemas(reactive([ }, { label: '是否可用', - field: '', + field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, @@ -21048,7 +21636,11 @@ export const ProductionDeatil = useCrudSchemas(reactive([ }, { label: '计量单位', - field: 'uom' + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '最后更新时间', @@ -21784,7 +22376,6 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive([ label: '创建者', field: 'creator' }, - { label: '创建时间', field: 'createTime', @@ -25065,7 +25656,7 @@ export const ProductputawayJobMain = useCrudSchemas(reactive([ { label: '状态', field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, + dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -25847,7 +26438,7 @@ export const OfflinesettlementRecordMain = useCrudSchemas(reactive field: 'requestNumber' }, { - label: '制品收货记录', + label: '制品收货记录单号', field: 'productReceiptRecordNumber' }, { @@ -26047,13 +26638,13 @@ export const OfflinesettlementRecordDetail = useCrudSchemas(reactive([ { - label: '供应商代码', + label: '客户代码', field: 'customerCode' }, { label: '订单类型', field: 'type', - dictType: DICT_TYPE.SALE_ORDER_STATUS, + dictType: DICT_TYPE.SALE_ORDER_TYPE, dictClass: 'string', isSearch: true, isTable: true @@ -26163,7 +26754,7 @@ export const SaleDetail = useCrudSchemas(reactive([ { label: '标包单位', field: 'stdPackUnit', - dictType: DICT_TYPE.TRUE_FALSE, + dictType: DICT_TYPE.PACK_UNIT, dictClass: 'string', isSearch: true, isTable: true @@ -26175,7 +26766,7 @@ export const SaleDetail = useCrudSchemas(reactive([ { label: '客户计量单位', field: 'customerPackUnit', - dictType: DICT_TYPE.TRUE_FALSE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true @@ -26235,7 +26826,7 @@ export const SaleDetail = useCrudSchemas(reactive([ { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.TRUE_FALSE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true @@ -26267,7 +26858,7 @@ export const SaleDetail = useCrudSchemas(reactive([ */ export const DeliverPlanMain = useCrudSchemas(reactive([ { - label: '客户', + label: '客户代码', field: 'customerCode' }, { @@ -29360,6 +29951,17 @@ export const CustomersettleRecordDetail = useCrudSchemas(reactive( label: '备注', field: 'remark' }, + { + label: '代码', + field: 'code' + }, + { + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, + isTable: true, + isSearch: true + }, { label: '任务明细ID', field: 'jobDetailId' @@ -29440,7 +30042,7 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive([ }, { label: '创建时间', - field: 'createTime', + field: 'creationTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -29847,7 +30449,7 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive([ { label: '标包单位', field: 'stdPackUnit', - dictType: DICT_TYPE.UOM, + dictType: DICT_TYPE.PACK_UNIT, dictClass: 'string', isSearch: true, isTable: true @@ -30179,7 +30781,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.LOCATION_TYPE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true @@ -31115,7 +31717,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive( { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.LOCATION_TYPE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true @@ -32018,7 +32620,7 @@ export const TransferissueJobDetail = useCrudSchemas(reactive([ }, { label: '创建时间', - field: 'createtime', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -32898,7 +33500,7 @@ export const TransferreceiptJobDetail = useCrudSchemas(reactive([ }, { label: '创建时间', - field: 'createtime', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -33220,7 +33822,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ }, { label: '从库区代码范围', - field: 'fromDockCode' + field: 'fromAreaCodes' }, { label: '单据号', @@ -33407,7 +34009,7 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.LOCATION_TYPE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true @@ -33730,7 +34332,7 @@ export const UnplannedissueJobDetail = useCrudSchemas(reactive([ }, { label: '创建时间', - field: 'createtime', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -33912,6 +34514,14 @@ export const UnplannedissueRecordDetail = useCrudSchemas(reactive( isSearch: true, isTable: true }, + { + label: '单价', + field: 'singlePrice' + }, + { + label: '金额', + field: 'amount' + }, { label: '单据号', field: 'number' @@ -34122,15 +34732,27 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive([ label: '批次', field: 'batch' }, + { + label: '替代批次', + field: 'altBatch' + }, { label: '库存状态', field: 'inventoryStatus', @@ -34526,7 +35152,7 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive([ }, { label: '创建时间', - field: 'createtime', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -34536,6 +35162,30 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive([ label: '创建者', field: 'creator' }, + { + label: '到货日期', + field: 'arriveDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '生产日期', + field: 'produceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '过期日期', + field: 'expireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, ])) /** @@ -35460,7 +36110,15 @@ export const ScrapRecordMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -35636,7 +36294,15 @@ export const CountPlanMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '冻结盘点', @@ -35644,7 +36310,15 @@ export const CountPlanMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '盘点空库位', @@ -35652,7 +36326,15 @@ export const CountPlanMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '盘点零库存', @@ -35660,7 +36342,15 @@ export const CountPlanMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '盘点负库存', @@ -35668,7 +36358,15 @@ export const CountPlanMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '明盘', @@ -35676,7 +36374,15 @@ export const CountPlanMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '单据号', @@ -35744,7 +36450,15 @@ export const CountPlanMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -35755,7 +36469,7 @@ export const CountPlanDetail = useCrudSchemas(([ { label: '盘点范围类型', field: 'type', - dictType: DICT_TYPE.COUNT_STAGE, + dictType: DICT_TYPE.COUNT_TYPE, dictClass: 'string', isSearch: true, isTable: true @@ -35818,7 +36532,15 @@ export const CountPlanDetail = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -35916,7 +36638,15 @@ export const CountRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '自动通过', @@ -35924,7 +36654,15 @@ export const CountRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '自动执行', @@ -35932,7 +36670,15 @@ export const CountRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '直接生成记录', @@ -35940,7 +36686,15 @@ export const CountRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -36216,7 +36970,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改库位', @@ -36224,7 +36986,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改数量', @@ -36232,7 +37002,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许大于推荐数量', @@ -36240,7 +37018,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许小于推荐数量', @@ -36248,7 +37034,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改库存状态', @@ -36256,7 +37050,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许连续扫描', @@ -36264,7 +37066,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许部分完成', @@ -36272,7 +37082,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改批次', @@ -36280,7 +37098,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改箱码', @@ -36288,7 +37114,15 @@ export const CountJobMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -36492,7 +37326,15 @@ export const CountRecordMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -36716,7 +37558,15 @@ export const CountadjustRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '自动通过', @@ -36724,7 +37574,15 @@ export const CountadjustRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '自动执行', @@ -36732,7 +37590,15 @@ export const CountadjustRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '直接生成记录', @@ -36740,7 +37606,15 @@ export const CountadjustRequestMain = useCrudSchemas(([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -36960,7 +37834,15 @@ export const CountadjustRecordMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ]))