diff --git a/src/utils/disposition/tableColumns.ts b/src/utils/disposition/tableColumns.ts index 43d49f914..83783a0c0 100644 --- a/src/utils/disposition/tableColumns.ts +++ b/src/utils/disposition/tableColumns.ts @@ -1,6 +1,5 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' -import { validateTwoNum } from "@/utils/validator"; /** * @returns {Array} 基础物料信息 */ @@ -1159,6 +1158,8 @@ export const Supplier = useCrudSchemas(reactive([ { label: '代码', field: 'code', + sort: 'custom', + isSearch: true, table: { width: 150 } @@ -1166,6 +1167,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '名称', field: 'name', + sort: 'custom', table: { width: 150 } @@ -1173,6 +1175,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '简称', field: 'shortName', + sort: 'custom', table: { width: 150 } @@ -1180,6 +1183,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '地址', field: 'address', + sort: 'custom', table: { width: 150 } @@ -1187,6 +1191,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '国家', field: 'country', + sort: 'custom', table: { width: 150 } @@ -1194,6 +1199,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '城市', field: 'city', + sort: 'custom', table: { width: 150 } @@ -1201,6 +1207,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '电话', field: 'phone', + sort: 'custom', table: { width: 150 } @@ -1208,6 +1215,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '传真', field: 'fax', + sort: 'custom', table: { width: 150 } @@ -1215,6 +1223,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '邮编', field: 'postId', + sort: 'custom', table: { width: 150 } @@ -1222,6 +1231,7 @@ export const Supplier = useCrudSchemas(reactive([ { label: '联系人', field: 'contacts', + sort: 'custom', table: { width: 150 } @@ -1229,6 +1239,7 @@ export const Supplier = useCrudSchemas(reactive([ { label:'银行', field: 'bank', + sort: 'custom', table: { width: 150 } @@ -1236,65 +1247,129 @@ export const Supplier = useCrudSchemas(reactive([ { label: '币种', field: 'currency', + sort: 'custom', dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + table: { + width: 150 + } }, { label: '税率', - field: 'taxRate' + field: 'taxRate', + sort: 'custom', + form: { + component: 'InputNumber', + }, + table: { + width: 150 + } }, { label: '类型', field: 'type', + sort: 'custom', dictType: DICT_TYPE.SUPPLIER_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + table: { + width: 150 + } }, { label: '是否可用', field: 'available', + sort: 'custom', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + table: { + width: 150 + } }, { label: '生效时间', field: 'activeTime', + sort: 'custom', isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + table: { + width: 180 } }, { label: '失效时间', field: 'expireTime', + sort: 'custom', isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + table: { + width: 180 } }, { label: '备注', - field: 'remark' + field: 'remark', + sort: 'custom', + isTable: false, + isForm: false, }, { label: '创建时间', field: 'createTime', - isTable: true, + sort: 'custom', + isTable: false, + isForm: false, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + table: { + width: 180 } }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + isTable: false, + isForm: false, }, { label: '操作', @@ -1326,63 +1401,122 @@ export const SupplierRules = reactive({ export const Supplieritem = useCrudSchemas(reactive([ { label: '供应商代码', - field: 'supplierCode' + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + } }, { label: '物料代码', - field: 'itemCode' + field: 'itemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + } }, { label: '供应商物料代码', - field: 'supplierItemCode' + field: 'supplierItemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + } }, { label: '供应商计量单位', field: 'supplierUom', dictType: DICT_TYPE.UOM, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + } }, { label: '转换率', - field: 'convertRate' + field: 'convertRate', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '供应商包装单位', field: 'packUnit', dictType: DICT_TYPE.PACK_UNIT, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + } }, { label: '供应商包装量', - field: 'packQty' + field: 'packQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '供应商替代包装单位', field: 'altPackUnit', dictType: DICT_TYPE.PACK_UNIT, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + } }, { label: '供应商替代包装量', - field: 'altPackQty' + field: 'altPackQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '每器具包装数', - field: 'packQtyOfContainer' + field: 'packQtyOfContainer', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '默认收货仓库', - field: 'defaultWarehouseCode' + field: 'defaultWarehouseCode', + sort: 'custom', + table: { + width: 150 + } }, { label: '默认收货库位', - field: 'defaultLocationCode' + field: 'defaultLocationCode', + sort: 'custom', + table: { + width: 150 + } }, { label: '结算方式', @@ -1390,7 +1524,11 @@ export const Supplieritem = useCrudSchemas(reactive([ dictType: DICT_TYPE.SETTLEMENT_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + } }, { label: '是否可用', @@ -1398,7 +1536,19 @@ export const Supplieritem = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + table: { + width: 150 + } }, { label: '生效时间', @@ -1407,6 +1557,16 @@ export const Supplieritem = useCrudSchemas(reactive([ isTable: true, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -1416,28 +1576,58 @@ export const Supplieritem = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + } }, { label: '创建时间', field: 'createTime', isTable: true, + isForm: false, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { label: '创建者', field: 'creator', isTable: true, + isForm: false, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 } }, { @@ -1479,11 +1669,21 @@ export const SupplieritemRules = reactive({ export const Purchaseprice = useCrudSchemas(reactive([ { label: '供应商代码', - field: 'supplierCode' + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '物料代码', - field: 'itemCode' + field: 'itemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + } }, { label: '货币', @@ -1491,11 +1691,22 @@ export const Purchaseprice = useCrudSchemas(reactive([ dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + } }, { label: '价格', - field: 'price' + field: 'price', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '是否可用', @@ -1503,7 +1714,19 @@ export const Purchaseprice = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -1512,6 +1735,16 @@ export const Purchaseprice = useCrudSchemas(reactive([ formatter: dateFormatter, details: { dateFormatter: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -1521,24 +1754,55 @@ export const Purchaseprice = useCrudSchemas(reactive([ formatter: dateFormatter, details: { dateFormatter: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { label: '备注', - field: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', field: 'createTime', - isTable: true, + isTable: false, + isForm:false, formatter: dateFormatter, details: { dateFormatter: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { label: '创建者', - field: 'creator' + field: 'creator', + isTable: false, + isForm:false, + sort: 'custom', + table: { + width: 150 + } }, { label: '操作', @@ -1576,47 +1840,92 @@ export const PurchasepriceRules = reactive({ export const Customer = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '简称', - field: 'shortName' + field: 'shortName', + sort: 'custom', + table: { + width: 150 + }, }, { label:'地址', - field: 'address' + field: 'address', + sort: 'custom', + table: { + width: 150 + }, }, { label: '国家', - field: 'country' + field: 'country', + sort: 'custom', + table: { + width: 150 + }, }, { label: '城市', - field: 'city' + field: 'city', + sort: 'custom', + table: { + width: 150 + }, }, { label: '电话', - field: 'phone' + field: 'phone', + sort: 'custom', + table: { + width: 150 + }, }, { label: '传真', - field: 'fax' + field: 'fax', + sort: 'custom', + table: { + width: 150 + }, }, { label: '邮编', - field: 'postId' + field: 'postId', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人', - field: 'contacts' + field: 'contacts', + sort: 'custom', + table: { + width: 150 + }, }, { label: '银行', - field: 'bank' + field: 'bank', + sort: 'custom', + table: { + width: 150 + }, }, { label: '币种', @@ -1624,11 +1933,22 @@ export const Customer = useCrudSchemas(reactive([ dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '税率', - field: 'taxRate' + field: 'taxRate', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '类型', @@ -1636,7 +1956,11 @@ export const Customer = useCrudSchemas(reactive([ dictType: DICT_TYPE.CUSTOMER_TYPE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -1644,7 +1968,19 @@ export const Customer = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -1653,6 +1989,16 @@ export const Customer = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -1662,24 +2008,55 @@ export const Customer = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', field: 'createTime', - isTable: true, + isTable: false, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isForm: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false }, { label: '操作', @@ -1711,87 +2088,183 @@ export const CustomerRules = reactive({ export const Customerdock = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '城市', - field: 'city' + field: 'city', + sort: 'custom', + table: { + width: 150 + }, }, { label: '地址', - field: 'address' + field: 'address', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人姓名', - field: 'contactPerson' + field: 'contactPerson', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人电话', - field: 'contactPhone' + field: 'contactPhone', + sort: 'custom', + table: { + width: 150 + }, }, { label: '客户代码', - field: 'customerCode' + field: 'customerCode', + sort: 'custom', + table: { + width: 150 + } }, { label: '仓库', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '默认库位', - field: 'defaultLocationCode' + field: 'defaultLocationCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '是否可用', field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, - isForm: false, - isSearch: true - }, - { - label: '生效时间', - field: 'activeTime', - isTable: true, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } - }, - { + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + }, + { + label: '生效时间', + field: 'activeTime', + 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: 'expireTime', 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', field: 'createTime', - isTable: true, + isTable: false, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + isSearch: false, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isForm: false, }, { label: '创建者', - field: 'creator' + field: 'creator', + isSearch: false, + isTable: false, + isForm: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作', @@ -1826,62 +2299,127 @@ export const CustomerdockRules = reactive({ export const Customeritem = useCrudSchemas(reactive([ { label: '客户代码', - field: 'customerCode' + field: 'customerCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '物料代码', - field: 'itemCode' + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '客户物料代码', - field: 'customerItemCode' + field: 'customerItemCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '客户计量单位', field: 'cusotmerUom', dictType: DICT_TYPE.UOM, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '转换率', - field: 'convertRate' + field: 'convertRate', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '客户包装单位', field: 'packUnit', dictType: DICT_TYPE.PACK_UNIT, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '客户包装量', - field: 'packQty' + field: 'packQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '客户替代包装单位', field: 'altPackUnit', dictType: DICT_TYPE.PACK_UNIT, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '客户替代包装量', - field: 'altPackQty' + field: 'altPackQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '每器具包装数', - field: 'packQtyOfContainer' + field: 'packQtyOfContainer', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '是否可用', field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + isSearch: true }, { label: '生效时间', @@ -1890,6 +2428,16 @@ export const Customeritem = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -1899,24 +2447,55 @@ export const Customeritem = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', field: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, { label: '操作', @@ -1957,15 +2536,30 @@ export const CustomeritemRules = reactive({ export const Project = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '客户代码', - field: 'customerCode' + field: 'customerCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '是否可用', @@ -1973,7 +2567,19 @@ export const Project = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -1982,6 +2588,16 @@ export const Project = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -1991,24 +2607,55 @@ export const Project = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isTable: false, + isForm: false, }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false, }, { label: '操作', @@ -2037,11 +2684,21 @@ export const ProjectRules = reactive({ export const Saleprice = useCrudSchemas(reactive([ { label: '客户代码', - field: 'customercode' + field: 'customercode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '物料代码', - field: 'itemcode' + field: 'itemcode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '货币', @@ -2049,11 +2706,22 @@ export const Saleprice = useCrudSchemas(reactive([ dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '价格', - field: 'price' + field: 'price', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '是否可用', @@ -2061,7 +2729,19 @@ export const Saleprice = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -2070,6 +2750,16 @@ export const Saleprice = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -2079,24 +2769,55 @@ export const Saleprice = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isForm: false, + isTable: false, }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false, }, { label: '操作', @@ -2134,15 +2855,29 @@ export const SalepriceRules = reactive({ export const Warehouse = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '类型', @@ -2150,7 +2885,11 @@ export const Warehouse = useCrudSchemas(reactive([ dictType: DICT_TYPE.WAREHOUSE_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2158,7 +2897,19 @@ export const Warehouse = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -2167,7 +2918,17 @@ export const Warehouse = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -2176,24 +2937,55 @@ export const Warehouse = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + sort: 'custom', + table: { + width: 180 + }, }, { label: '备注', - field: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isTable: false, + isForm: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, { label: '操作', @@ -2222,19 +3014,37 @@ export const WarehouseRules = reactive({ export const Dock = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '城市', - field: 'city' + field: 'city', + sort: 'custom', + table: { + width: 150 + }, }, { label: '地址', - field: 'address' + field: 'address', + sort: 'custom', + table: { + width: 150 + }, }, { label: '类型', @@ -2242,23 +3052,43 @@ export const Dock = useCrudSchemas(reactive([ dictType: DICT_TYPE.DOCK_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '默认库位代码', - field: 'defaultLocationCode' + field: 'defaultLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人姓名', - field: 'contactPerson' + field: 'contactPerson', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人电话', - field: 'contactPhone' + field: 'contactPhone', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2266,42 +3096,95 @@ export const Dock = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true - }, - { - label: '生效时间', - field: 'activeTime', - isTable: true, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } - }, - { + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + }, + { + label: '生效时间', + field: 'activeTime', + isTable: true, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + }, + { label: '失效时间', field: 'expireTime', isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '备注', - field: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', field: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, { label: '操作', @@ -2339,15 +3222,28 @@ export const DockRules = reactive({ export const Area = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '类型', @@ -2355,7 +3251,11 @@ export const Area = useCrudSchemas(reactive([ dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否是功能区', @@ -2363,7 +3263,19 @@ export const Area = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否可用', @@ -2371,7 +3283,19 @@ export const Area = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -2380,7 +3304,17 @@ export const Area = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -2389,24 +3323,55 @@ export const Area = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isTable: false, + isForm: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, { label: '操作', @@ -2441,19 +3406,38 @@ export const AreaRules = reactive({ export const Locationgroup = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '区域代码', - field: 'areaCode' + field: 'areaCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2461,7 +3445,19 @@ export const Locationgroup = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -2470,7 +3466,17 @@ export const Locationgroup = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -2479,24 +3485,55 @@ export const Locationgroup = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isForm: false, + isTable: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false }, { label: '操作', @@ -2531,23 +3568,44 @@ export const LocationgroupRules = reactive({ export const Location = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '区域代码', - field: 'areaCode' + field: 'areaCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库位组代码', - field: 'locationGroupCode' + field: 'locationGroupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: 'ERP库位代码', @@ -2555,7 +3613,11 @@ export const Location = useCrudSchemas(reactive([ dictType: DICT_TYPE.ERP_LOCATION, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '类型', @@ -2563,43 +3625,101 @@ export const Location = useCrudSchemas(reactive([ dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '巷道', - field: 'aisle' + field: 'aisle', + sort: 'custom', + table: { + width: 150 + }, }, { label: '货架', - field: 'shelf' + field: 'shelf', + sort: 'custom', + table: { + width: 150 + }, }, { label: '行', - field: 'locationRow' + field: 'locationRow', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '列', - field: 'locationColum' + field: 'locationColum', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '拣料优先级', - field: 'pickPriority' + field: 'pickPriority', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '最大承重', - field: 'maxWeight' + field: 'maxWeight', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '最大面积', - field: 'maxArea' + field: 'maxArea', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '最大体积', - field: 'maxVolume' + field: 'maxVolume', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '用户组代码', - field: 'userGroupCode' + field: 'userGroupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2608,6 +3728,10 @@ export const Location = useCrudSchemas(reactive([ dictClass: 'string', isTable: true, isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '生效时间', @@ -2616,7 +3740,17 @@ export const Location = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -2625,24 +3759,55 @@ export const Location = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isForm: false, + isTable: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false }, { label: '操作', @@ -2692,11 +3857,21 @@ export const LocationRules = reactive({ export const Workshop = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '类型', @@ -2704,7 +3879,11 @@ export const Workshop = useCrudSchemas(reactive([ dictType: DICT_TYPE.WORKSHOP_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2712,7 +3891,19 @@ export const Workshop = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -2721,7 +3912,17 @@ export const Workshop = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -2730,19 +3931,56 @@ export const Workshop = 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: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isForm: false, + isTable: false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false }, - { label: '备注', field: 'remark' }, - { label: '创建者', field: 'creator' }, { label: '操作', field: 'action', @@ -2770,31 +4008,57 @@ export const WorkshopRules = reactive({ export const Productionline = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' - }, - { - label: '类型', - field: 'type', + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + }, + { + label: '类型', + field: 'type', dictType: DICT_TYPE.PRODUCTION_LINE_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '车间代码', - field: 'workshopCode' + field: 'workshopCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '原料库位', - field: 'rawLocationCode' + field: 'rawLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '成品库位', - field: 'fgLocationCode' + field: 'fgLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2802,7 +4066,19 @@ export const Productionline = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -2811,7 +4087,17 @@ export const Productionline = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -2820,19 +4106,56 @@ export const Productionline = 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: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, - { label: '备注', field: 'remark' }, - { label: '创建者', field: 'creator' }, { label: '操作', field: 'action', @@ -2863,11 +4186,21 @@ export const ProductionlineRules = reactive({ export const Workstation = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '类型', @@ -2875,23 +4208,43 @@ export const Workstation = useCrudSchemas(reactive([ dictType: DICT_TYPE.WORK_STATION_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '车间代码', - field: 'workshopCode' + field: 'workshopCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生产线代码', - field: 'productionLineCode' + field: 'productionLineCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '原料库位', - field: 'rawLocationCode' + field: 'rawLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '成品库位', - field: 'fgLocationCode' + field: 'fgLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2899,7 +4252,19 @@ export const Workstation = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -2908,7 +4273,17 @@ export const Workstation = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -2917,19 +4292,56 @@ export const Workstation = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + sort: 'custom', + table: { + width: 180 + }, }, { 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', + } + }, + isForm: false, + isTable: false, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false, }, - { label: '备注', field: 'remark' }, - { label: '创建者', field: 'creator' }, { label: '操作', field: 'action', @@ -2963,11 +4375,21 @@ export const WorkstationRules = reactive({ export const Process = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '类型', @@ -2975,15 +4397,27 @@ export const Process = useCrudSchemas(reactive([ dictType: DICT_TYPE.PROCESS_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '车间代码', - field: 'workshopCode' + field: 'workshopCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生产线代码', - field: 'productionLineCode' + field: 'productionLineCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -2991,7 +4425,19 @@ export const Process = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3000,7 +4446,17 @@ export const Process = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -3009,19 +4465,56 @@ export const Process = 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: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, - { label: '备注', field: 'remark' }, - { label: '创建者', field: 'creator' }, { label: '操作', field: 'action', @@ -3055,7 +4548,12 @@ export const ProcessRules = reactive({ export const Systemcalendar = useCrudSchemas(reactive([ { label: '模块', - field: 'module' + field: 'module', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '开始时间', @@ -3064,7 +4562,18 @@ export const Systemcalendar = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isSearch: true, }, { label: '结束时间', @@ -3073,7 +4582,18 @@ export const Systemcalendar = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isSearch: true, }, { label: '是否可用', @@ -3081,7 +4601,19 @@ export const Systemcalendar = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3090,7 +4622,17 @@ export const Systemcalendar = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -3099,19 +4641,56 @@ export const Systemcalendar = 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: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, - { label: '备注', field: 'remark' }, - { label: '创建者', field: 'creator' }, { label: '操作', field: 'action', @@ -3139,15 +4718,27 @@ export const SystemcalendarRules = reactive({ export const Accountcalendar = useCrudSchemas(reactive([ { label: '年', - field: 'year' + field: 'year', + sort: 'custom', + table: { + width: 150 + }, }, { label: '月', - field: 'month' + field: 'month', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'descriiption' + field: 'descriiption', + sort: 'custom', + table: { + width: 150 + }, }, { label: '开始时间', @@ -3156,7 +4747,18 @@ export const Accountcalendar = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isSearch: true, }, { label: '结束时间', @@ -3165,7 +4767,18 @@ export const Accountcalendar = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isSearch: true, }, { label: '转换生效时间', @@ -3174,7 +4787,18 @@ export const Accountcalendar = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isSearch: true, }, { label: '是否可用', @@ -3182,7 +4806,19 @@ export const Accountcalendar = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3191,7 +4827,17 @@ export const Accountcalendar = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -3200,32 +4846,69 @@ export const Accountcalendar = 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: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false }, - { label: '备注', field: 'remark', }, - { label: '创建者', field: 'creator' }, - { - label: '操作', - field: 'action', - isDetail: false, - isForm: false , + { + label: '备注', + field: 'remark', + sort: 'custom', table: { width: 150 - } - } -])) - -//表单校验 -export const AccountcalendarRules = reactive({ + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } +])) + +//表单校验 +export const AccountcalendarRules = reactive({ year: [ { required: true, message: '请输入年', trigger: 'blur' } ], @@ -3256,7 +4939,11 @@ export const Currencyexchange = useCrudSchemas(reactive([ dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '基础货币', @@ -3264,11 +4951,22 @@ export const Currencyexchange = useCrudSchemas(reactive([ dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '比率', - field: 'rate' + field: 'rate', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '是否可用', @@ -3276,7 +4974,19 @@ export const Currencyexchange = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3285,7 +4995,18 @@ export const Currencyexchange = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isSearch: true }, { label: '失效时间', @@ -3294,19 +5015,56 @@ export const Currencyexchange = 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: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isForm: false, + isTable: false, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false, }, - { label: '备注', field: 'remark' }, - { label: '创建者', field: 'creator' }, { label: '操作', field: 'action', @@ -3340,47 +5098,92 @@ export const CurrencyexchangeRules = reactive({ export const Owner = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '简称', - field: 'shortName' + field: 'shortName', + sort: 'custom', + table: { + width: 150 + }, }, { label: '地址', - field: 'address' + field: 'address', + sort: 'custom', + table: { + width: 150 + }, }, { label: '国家', - field: 'country' + field: 'country', + sort: 'custom', + table: { + width: 150 + }, }, { label: '城市', - field: 'city' + field: 'city', + sort: 'custom', + table: { + width: 150 + }, }, { label: '电话', - field: 'phone' + field: 'phone', + sort: 'custom', + table: { + width: 150 + }, }, { label: '传真', - field: 'fax' + field: 'fax', + sort: 'custom', + table: { + width: 150 + }, }, { label: '邮编', - field: 'postId' + field: 'postId', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人', - field: 'contacts' + field: 'contacts', + sort: 'custom', + table: { + width: 150 + }, }, { label: '银行', - field: 'bank' + field: 'bank', + sort: 'custom', + table: { + width: 150 + }, }, { label: '币种', @@ -3388,11 +5191,22 @@ export const Owner = useCrudSchemas(reactive([ dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '税率', - field: 'taxRate' + field: 'taxRate', + form: { + component: 'InputNumber', + }, + sort: 'custom', + table: { + width: 150 + }, }, { label: '类型', @@ -3400,7 +5214,11 @@ export const Owner = useCrudSchemas(reactive([ dictType: DICT_TYPE.OWNER_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -3408,7 +5226,19 @@ export const Owner = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3417,33 +5247,73 @@ export const Owner = 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: 'expireTime', - 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isForm: false, + isTable: false, }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false, }, { label: '操作', @@ -3475,47 +5345,93 @@ export const OwnerRules = reactive({ export const Carrier = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '简称', - field: 'shortName' + field: 'shortName', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '地址', - field: 'address' + field: 'address', + sort: 'custom', + table: { + width: 150 + }, }, { label: '国家', - field: 'country' + field: 'country', + sort: 'custom', + table: { + width: 150 + }, }, { label: '城市', - field: 'city' + field: 'city', + sort: 'custom', + table: { + width: 150 + }, }, { label: '电话', - field: 'phone' + field: 'phone', + sort: 'custom', + table: { + width: 150 + }, }, { label: '传真', - field: 'fax' + field: 'fax', + sort: 'custom', + table: { + width: 150 + }, }, { label: '邮编', - field: 'postId' + field: 'postId', + sort: 'custom', + table: { + width: 150 + }, }, { label: '联系人', - field: 'contacts' + field: 'contacts', + sort: 'custom', + table: { + width: 150 + }, }, { label: '银行', - field: 'bank' + field: 'bank', + sort: 'custom', + table: { + width: 150 + }, }, { label: '币种', @@ -3523,11 +5439,22 @@ export const Carrier = useCrudSchemas(reactive([ dictType: DICT_TYPE.CURRENCY, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '税率', - field: 'taxRate' + field: 'taxRate', + form: { + component: 'InputNumber', + }, + sort: 'custom', + table: { + width: 150 + }, }, { label: '类型', @@ -3535,7 +5462,11 @@ export const Carrier = useCrudSchemas(reactive([ dictType: DICT_TYPE.CARRIER_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -3543,7 +5474,19 @@ export const Carrier = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3552,7 +5495,17 @@ export const Carrier = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -3561,24 +5514,55 @@ export const Carrier = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', field: 'createTime', - isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isForm: false, + isTable: false, }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false, }, { label: '操作', @@ -3610,11 +5594,20 @@ export const CarrierRules = reactive({ export const Shift = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '开始时间', @@ -3623,7 +5616,17 @@ export const Shift = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '结束时间', @@ -3632,7 +5635,18 @@ export const Shift = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isSearch: true, }, { label: '是否跨天', @@ -3640,7 +5654,19 @@ export const Shift = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否可用', @@ -3648,7 +5674,19 @@ export const Shift = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3657,7 +5695,17 @@ export const Shift = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -3666,29 +5714,60 @@ export const Shift = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isForm: false, + isTable: false, }, { label: '创建者', - field: 'creator' - }, - { - label: '操作', - field: 'action', - isDetail: false, + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false, + }, + { + label: '操作', + field: 'action', + isDetail: false, isForm: false , table: { width: 150 @@ -3721,15 +5800,30 @@ export const ShiftRules = reactive({ export const Team = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '成员', - field: 'members' + field: 'members', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '是否可用', @@ -3737,7 +5831,19 @@ export const Team = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -3746,7 +5852,17 @@ export const Team = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -3755,24 +5871,55 @@ export const Team = 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: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { 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', + } + }, + isForm: false, + isTable: false, }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isForm: false, + isTable: false, }, { label: '操作', @@ -3801,15 +5948,27 @@ export const TeamRules = reactive({ export const Strategy = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '类型', @@ -3817,11 +5976,22 @@ export const Strategy = useCrudSchemas(reactive([ dictType: DICT_TYPE.STRATEGY_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '优先级', - field: 'priority' + field: 'priority', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '是否生效', @@ -3829,11 +5999,27 @@ export const Strategy = useCrudSchemas(reactive([ dictType: DICT_TYPE.STRATEGY_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '备注', - field: 'remark' + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', @@ -3841,11 +6027,29 @@ export const Strategy = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false }, { label: '创建者', - field: 'creator' + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false }, { label: '操作', @@ -3877,27 +6081,54 @@ export const StrategyRules = reactive({ export const Rule = useCrudSchemas(reactive([ { label: '策略代码', - field: 'strategyCode' + field: 'strategyCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '优先级', - field: 'priority' + field: 'priority', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '条件', - field: 'condition' + field: 'condition', + sort: 'custom', + table: { + width: 150 + }, }, { label: '配置', - field: 'configuration' + field: 'configuration', + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作', @@ -3932,15 +6163,27 @@ export const RuleRules = reactive({ export const Condition = useCrudSchemas(reactive([ { label: '策略代码', - field: 'strategyCode' + field: 'strategyCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '规则代码', - field: 'ruleCode' + field: 'ruleCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '参数', - field: 'paramCode' + field: 'paramCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作符', @@ -3948,15 +6191,27 @@ export const Condition = useCrudSchemas(reactive([ dictType: DICT_TYPE.STRATEGY_PARAM_OPEARTOR, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '值', - field: 'value' + field: 'value', + sort: 'custom', + table: { + width: 150 + }, }, { label: '条件分组', - field: 'groupCode' + field: 'groupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作', @@ -3994,27 +6249,51 @@ export const ConditionRules = reactive({ export const Configuration = useCrudSchemas(reactive([ { label: '策略代码', - field: 'strategyCode' + field: 'strategyCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '规则代码', - field: 'ruleCode' + field: 'ruleCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '配置名称', - field: 'configurationCode' + field: 'configurationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '配置值', - field: 'configurationValue' + field: 'configurationValue', + sort: 'custom', + table: { + width: 150 + }, }, { label: '配置分组', - field: 'groupCode' + field: 'groupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作', @@ -4053,15 +6332,27 @@ export const Configurationsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.STRATEGY_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '配置代码', - field: 'configurationCode' + field: 'configurationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '配置名称', - field: 'configurationName' + field: 'configurationName', + sort: 'custom', + table: { + width: 150 + }, }, { label: '数据类型', @@ -4069,19 +6360,35 @@ export const Configurationsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.DATA_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '值范围', - field: 'valueScope' + field: 'valueScope', + sort: 'custom', + table: { + width: 150 + }, }, { label: '关联到', - field: 'relatedTo' + field: 'relatedTo', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '必填', @@ -4089,7 +6396,19 @@ export const Configurationsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '操作', @@ -4134,15 +6453,27 @@ export const Paramsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.STRATEGY_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '参数代码', - field: 'paramCode' + field: 'paramCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '参数名称', - field: 'paramName' + field: 'paramName', + sort: 'custom', + table: { + width: 150 + }, }, { label: '可用操作符', @@ -4150,7 +6481,11 @@ export const Paramsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.STRATEGY_PARAM_OPEARTOR, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '数据类型', @@ -4158,19 +6493,35 @@ export const Paramsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.DATA_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '值范围', - field: 'valueScope' + field: 'valueScope', + sort: 'custom', + table: { + width: 150 + }, }, { label: '关联到', - field: 'relatedTo' + field: 'relatedTo', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '必填', @@ -4178,7 +6529,19 @@ export const Paramsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '操作', @@ -4219,15 +6582,28 @@ export const ParamsettingRules = reactive({ export const Transactiontype = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库存动作', @@ -4235,7 +6611,11 @@ export const Transactiontype = useCrudSchemas(reactive([ dictType: DICT_TYPE.INVENTORY_ACTION, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '允许负数', @@ -4243,7 +6623,19 @@ export const Transactiontype = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否可用', @@ -4251,15 +6643,38 @@ export const Transactiontype = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否软删除', field: 'isSoftDeleted', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -4268,7 +6683,17 @@ export const Transactiontype = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -4277,28 +6702,55 @@ export const Transactiontype = 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: 'createTime', - isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, + isTable: false, + isForm: false, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '备注', field: 'remark', - isTable: false + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建者', field: 'creator', isTable: false, - isForm: false + isForm: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作', @@ -4333,91 +6785,153 @@ export const TransactiontypeRules = reactive({ export const Businesstype = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '可用物品类型范围', field: 'itemTypes', dictType: DICT_TYPE.ITEM_TYPE, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '可用物品状态范围', field: 'itemStatuses', dictType: DICT_TYPE.ITEM_STATUS, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '出库库位类型范围', field: 'outLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '入库库位类型范围', field: 'inLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '出库库区范围', - field: 'outAreaCodes' + field: 'outAreaCodes', + sort: 'custom', + table: { + width: 150 + }, }, { label: '入库库区范围', - field: 'inAreaCodes' + field: 'inAreaCodes', + sort: 'custom', + table: { + width: 150 + }, }, { label: '出库库存状态范围', field: 'outInventoryStatuses', dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', - isSearch: true, - isTable: true - }, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, { label: '入库库存状态范围', field: 'inInventoryStatuses', dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '出库事务类型', - field: 'outTransactionType' + field: 'outTransactionType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '入库事务类型', - field: 'inTransactionType' + field: 'inTransactionType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否使用在途库', field: 'useOnTheWay', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '在途库区', - field: 'onTheWayArea' + field: 'onTheWayArea', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生效时间', @@ -4426,7 +6940,17 @@ export const Businesstype = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -4435,28 +6959,55 @@ export const Businesstype = 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: 'createTime', - isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, + isTable: false, + isForm: false, }, { label: '备注', field: 'remark', - isTable: false + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建者', field: 'creator', isTable: false, - isForm: false + isForm: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -4464,7 +7015,19 @@ export const Businesstype = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否软删除', @@ -4472,7 +7035,19 @@ export const Businesstype = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '操作', @@ -4516,15 +7091,28 @@ export const BusinesstypeRules = reactive({ export const Documentsetting = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '单据类型', @@ -4532,27 +7120,51 @@ export const Documentsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.DOCUMENT_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '业务类型', - field: 'businessType' + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '号码前缀', - field: 'numberPrefix' + field: 'numberPrefix', + sort: 'custom', + table: { + width: 150 + }, }, { label: '号码时间格式', - field: 'dateFormat' + field: 'dateFormat', + sort: 'custom', + table: { + width: 150 + }, }, { label: '号码流水长度', - field: 'serialLength' + field: 'serialLength', + sort: 'custom', + table: { + width: 150 + }, }, { label: '号码分隔符', - field: 'separatorStr' + field: 'separatorStr', + sort: 'custom', + table: { + width: 150 + }, }, { label: '流水重置周期', @@ -4560,7 +7172,11 @@ export const Documentsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.RESET_PERIOD, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '生效时间', @@ -4569,7 +7185,17 @@ export const Documentsetting = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -4578,7 +7204,17 @@ export const Documentsetting = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '创建时间', @@ -4588,18 +7224,35 @@ export const Documentsetting = useCrudSchemas(reactive([ isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '备注', field: 'remark', - isTable: false + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建者', field: 'creator', isTable: false, - isForm: false + isForm: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -4607,7 +7260,19 @@ export const Documentsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否软删除', @@ -4615,7 +7280,19 @@ export const Documentsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '操作', @@ -4662,7 +7339,12 @@ export const DocumentsettingRules = reactive({ export const Requestsetting = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '申请模式', @@ -4670,7 +7352,11 @@ export const Requestsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.REQEUST_MODE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '自动提交', @@ -4678,7 +7364,19 @@ export const Requestsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '自动通过', @@ -4686,7 +7384,19 @@ export const Requestsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '自动执行', @@ -4694,7 +7404,19 @@ export const Requestsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '跳过任务直接删生成记录', @@ -4702,7 +7424,19 @@ export const Requestsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否可用', @@ -4710,7 +7444,19 @@ export const Requestsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否软删除', @@ -4718,7 +7464,19 @@ export const Requestsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -4727,7 +7485,17 @@ export const Requestsetting = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -4736,28 +7504,56 @@ export const Requestsetting = 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: 'createTime', - isTable: true, formatter: dateFormatter, + isTable: false, isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '备注', field: 'remark', - isTable: false + isTable: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建者', field: 'creator', isTable: false, - isForm: false + isForm: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作', @@ -4798,11 +7594,23 @@ export const RequestsettingRules = reactive({ export const Jobsetting = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '有效分钟', - field: 'validMinutes' + field: 'validMinutes', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + }, }, { label: '自动完成', @@ -4810,7 +7618,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改库位', @@ -4818,7 +7638,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改数量', @@ -4826,7 +7658,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许大于推荐数量', @@ -4834,7 +7678,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许小于推荐数量', @@ -4842,7 +7698,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改库存状态', @@ -4850,7 +7718,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许连续扫描', @@ -4858,7 +7738,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许部分完成', @@ -4866,7 +7758,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改批次', @@ -4874,7 +7778,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '允许修改包装号', @@ -4882,7 +7798,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否可用', @@ -4890,7 +7818,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否软删除', @@ -4898,7 +7838,19 @@ export const Jobsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '生效时间', @@ -4907,7 +7859,17 @@ export const Jobsetting = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -4916,34 +7878,61 @@ export const Jobsetting = 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: 'createTime', - isTable: true, formatter: dateFormatter, isForm: false, + isTable: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '备注', field: 'remark', - isTable: false + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建者', field: 'creator', isTable: false, - isForm: false + isForm: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作', field: 'action', isDetail: false, - isForm: false , + isForm: false, table: { width: 150 } @@ -4996,7 +7985,12 @@ export const JobsettingRules = reactive({ export const Recordsetting = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, }, { label: '接口类型', @@ -5004,7 +7998,11 @@ export const Recordsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '生效时间', @@ -5013,7 +8011,17 @@ export const Recordsetting = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '失效时间', @@ -5022,28 +8030,55 @@ export const Recordsetting = 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: 'createTime', - isTable: true, + isTable: false, formatter: dateFormatter, isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } + }, }, { label: '备注', field: 'remark', - isTable: false + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建者', field: 'creator', isTable: false, - isForm: false + isForm: false, + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -5051,7 +8086,19 @@ export const Recordsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否软删除', @@ -5059,7 +8106,19 @@ export const Recordsetting = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '操作', @@ -5088,23 +8147,43 @@ export const RecordsettingRules = reactive({ export const Locationcapacity = useCrudSchemas(reactive([ { label: '库位代码', - field: 'locationCode' + field: 'locationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '已用容量百分比', - field: 'usedCapacity' + field: 'usedCapacity', + sort: 'custom', + table: { + width: 150 + }, }, { label: '可用容量百分比', - field: 'availableCapacity' + field: 'availableCapacity', + sort: 'custom', + table: { + width: 150 + }, }, { label: '可承受过载容量百分比', - field: 'bearableOverloadCapacity' + field: 'bearableOverloadCapacity', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否无限容量', @@ -5112,7 +8191,19 @@ export const Locationcapacity = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -5122,31 +8213,59 @@ export const Locationcapacity = useCrudSchemas(reactive([ export const Package = useCrudSchemas(reactive([ { label: '包装号', - field: 'number' + field: 'number', + sort: 'custom', + table: { + width: 150 + }, }, { label: '物料代码', - field: 'itemCode' + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '物品名称', - field: 'itemName' + field: 'itemName', + sort: 'custom', + table: { + width: 150 + }, }, { label: '物品描述1', - field: 'itemDesc1' + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150 + }, }, { label: '物品描述2', - field: 'itemDesc2' + field: 'itemDesc2', + 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: '生产日期', @@ -5155,11 +8274,25 @@ export const Package = 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: 'validityDays' + field: 'validityDays', + sort: 'custom', + table: { + width: 150 + }, }, { label: '失效日期', @@ -5168,6 +8301,16 @@ export const Package = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5177,10 +8320,21 @@ export const Package = useCrudSchemas(reactive([ dictClass: 'string', isSearch: true, isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '数量', - field: 'qty' + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '替代计量单位', @@ -5189,18 +8343,40 @@ export const Package = useCrudSchemas(reactive([ dictClass: 'string', isSearch: true, isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '替代计量数量', - field: 'altQty' + field: 'altQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '转换率', - field: 'convertRate' + field: 'convertRate', + sort: 'custom', + table: { + width: 150 + }, }, { label: '标包数量', - field: 'stdPackQty' + field: 'stdPackQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '标包单位', @@ -5209,160 +8385,446 @@ export const Package = useCrudSchemas(reactive([ dictClass: 'string', isSearch: true, isTable: true, + 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: 'toLocationCode' + field: 'toLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '供应商代码', - field: 'supplierCode' + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '供应商物品代码', - field: 'supplierItemCode' + field: 'supplierItemCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '采购订单号', - field: 'poNumber' + field: 'poNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '采购订单行', - field: 'poLine' + field: 'poLine', + sort: 'custom', + table: { + width: 150 + }, }, { label: '采购计划单号', - field: 'rpNumber' + field: 'rpNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '发货单号', - field: 'asnNumber' + field: 'asnNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生产订单号', - field: 'woNumber' + field: 'woNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生产订单行', - field: 'woLine' + field: 'woLine', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生产线代码', - field: 'productionLineCode' + field: 'productionLineCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '班组代码', - field: 'teamCode' + field: 'teamCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '班次代码', - field: 'shiftCode' + field: 'shiftCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '客户代码', - field: 'customerCode' + field: 'customerCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '客户月台代码', - field: 'customerDockCode' + field: 'customerDockCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '客户物品代码', - field: 'customerItemCode' + field: 'customerItemCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '销售订单号', - field: 'soNumber' + field: 'soNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '销售订单行', - field: 'soLine' + field: 'soLine', + sort: 'custom', + table: { + width: 150 + }, }, { label: '质量等级', - field: 'eqLevel' + field: 'eqLevel', + sort: 'custom', + table: { + width: 150 + }, }, { label: '货主', - field: 'ownerCode' + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '重量', - field: 'weight' + field: 'weight', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '面积', - field: 'area' + field: 'area', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '体积', - field: 'volume' + field: 'volume', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, ])) /** - * @returns {Array} 预计出库存 + * @returns {Array} 器具主表 */ -export const Expectout = useCrudSchemas(reactive([ +export const ContainerMain = useCrudSchemas(reactive([ { - label: '任务号', - field: 'jobNumber' + label: '号码', + field: 'number', + sort: 'custom', + table: { + width: 150 + }, }, { - label: '业务类型', - field: 'businessType' + label: '类型', + field: 'type', + dictType: DICT_TYPE.CONTAINER_TYPE, + dictClass: 'string', + isTable: true, + isForm: true, + sort: 'custom', + table: { + width: 150 + }, }, { - label: '包装号', - field: 'packingNumber' + label: '总容量', + field: 'capacity', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { - label: '物料代码', - field: 'itemCode' + label: '状态', + field: 'status', + sort: 'custom', + table: { + width: 150 + }, }, { - label: '批次', - field: 'batch' - }, + label: '货主代码', + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, + } +])) + +/** + * @returns {Array} 器具子表 + */ +export const ContainerDetail = useCrudSchemas(reactive([ { - label: '库存状态', - field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, + label: '内容物类型', + field: 'containerContentType', + dictType: DICT_TYPE.CONTAINER_CONTENT_TYPE, dictClass: 'string', - isSearch: true, - isTable: true - }, - { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, + isTable: true, + isForm: true, + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '内容物号', + field: 'contentNumber', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isTable: true, + isForm: true, + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '数量', + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + isForm: true, + sort: 'custom', + table: { + width: 150 + }, + }, +])) + +/** + * @returns {Array} 预计出库存 + */ +export const Expectout = useCrudSchemas(reactive([ + { + label: '任务号', + field: 'jobNumber', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '业务类型', + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '包装号', + field: 'packingNumber', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '数量', - field: 'qty' + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '库位代码', - field: 'locationCode' + field: 'locationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '货主代码', - field: 'ownerCode' + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, }, ])) @@ -5372,19 +8834,35 @@ export const Expectout = useCrudSchemas(reactive([ export const Expectin = useCrudSchemas(reactive([ { label: '任务号', - field: 'jobNumber' + field: 'jobNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '业务类型', - field: 'businessType' + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '物料代码', - field: 'itemCode' + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '批次', - field: 'batch' + field: 'batch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库存状态', @@ -5392,7 +8870,11 @@ export const Expectin = useCrudSchemas(reactive([ dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '计量单位', @@ -5400,23 +8882,46 @@ export const Expectin = useCrudSchemas(reactive([ dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '数量', - field: 'qty' + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '库位代码', - field: 'locationCode' + field: 'locationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '货主代码', - field: 'ownerCode' + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, }, ])) @@ -5426,23 +8931,43 @@ export const Expectin = useCrudSchemas(reactive([ export const Balance = useCrudSchemas(reactive([ { label: '包装号', - field: 'packingNumber' + field: 'packingNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '器具代码', - field: 'containerNumber' + field: 'containerNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '物料代码', - field: 'itemCode' + field: 'itemCode', + 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: '到货日期', @@ -5451,6 +8976,16 @@ export const Balance = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5460,6 +8995,16 @@ export const Balance = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5469,6 +9014,16 @@ export const Balance = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5477,23 +9032,43 @@ export const Balance = useCrudSchemas(reactive([ dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '库位代码', - field: 'locationCode' + field: 'locationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库位组代码', - field: 'locationGroupCode' + field: 'locationGroupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库区代码', - field: 'areaCode' + field: 'areaCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: 'ERP库位代码', @@ -5501,11 +9076,19 @@ export const Balance = useCrudSchemas(reactive([ dictType: DICT_TYPE.ERP_LOCATION, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '货主代码', - field: 'ownerCode' + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '计量单位', @@ -5513,27 +9096,66 @@ export const Balance = useCrudSchemas(reactive([ dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '数量', - field: 'qty' + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '锁定数量', - field: 'lockedQty' + field: 'lockedQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '可用数量', - field: 'usableQty' + field: 'usableQty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '单价', - field: 'singlePrice' + field: 'singlePrice', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '金额', - field: 'amount' + field: 'amount', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '入库时间', @@ -5542,6 +9164,16 @@ export const Balance = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5550,7 +9182,19 @@ export const Balance = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '冻结原因', @@ -5558,23 +9202,52 @@ export const Balance = useCrudSchemas(reactive([ dictType: DICT_TYPE.FROZEN_REASON, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '最后事务号', - field: 'lastTransNumber' + field: 'lastTransNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '重量', - field: 'weight' + field: 'weight', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '面积', - field: 'area' + field: 'area', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '体积', - field: 'volume' + field: 'volume', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, ])) @@ -5584,11 +9257,19 @@ export const Balance = useCrudSchemas(reactive([ export const Transaction = useCrudSchemas(reactive([ { label: '事务号', - field: 'number' + field: 'number', + sort: 'custom', + table: { + width: 150 + }, }, { label: '事务类型', - field: 'transactionType' + field: 'transactionType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库存动作', @@ -5596,19 +9277,35 @@ export const Transaction = useCrudSchemas(reactive([ dictType: DICT_TYPE.INVENTORY_ACTION, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作员', - field: 'worker' + field: 'worker', + sort: 'custom', + table: { + width: 150 + }, }, { label: '业务类型', - field: 'businessType' + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '记录号', - field: 'recordNumber' + field: 'recordNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生效时间', @@ -5617,15 +9314,33 @@ export const Transaction = 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: 'itemCode' + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '批次', - field: 'batch' + field: 'batch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库存状态', @@ -5633,7 +9348,11 @@ export const Transaction = useCrudSchemas(reactive([ dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '计量单位', @@ -5641,23 +9360,46 @@ export const Transaction = useCrudSchemas(reactive([ dictType: DICT_TYPE.UOM, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '数量', - field: 'qty' + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '单价', - field: 'singlePrice' + field: 'singlePrice', + sort: 'custom', + table: { + width: 150 + }, }, { label: '金额', - field: 'amount' + field: 'amount', + sort: 'custom', + table: { + width: 150 + }, }, { label: '替代批次', - field: 'altBatch' + field: 'altBatch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到货日期', @@ -5666,6 +9408,16 @@ export const Transaction = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5675,6 +9427,16 @@ export const Transaction = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5684,31 +9446,65 @@ export const Transaction = 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: 'packingNumber' + field: 'packingNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '器具号', - field: 'containerNumber' + field: 'containerNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库位代码', - field: 'locationCode' + field: 'locationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '仓库代码', - field: 'warehouseCode' + field: 'warehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库区代码', - field: 'areaCode' + field: 'areaCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '库位组代码', - field: 'locationGroupCode' + field: 'locationGroupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: 'ERP库位代码', @@ -5716,11 +9512,19 @@ export const Transaction = useCrudSchemas(reactive([ dictType: DICT_TYPE.ERP_LOCATION, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '货主代码', - field: 'ownerCode' + field: 'ownerCode', + sort: 'custom', + table: { + width: 150 + }, }, ])) @@ -5730,23 +9534,43 @@ export const Transaction = useCrudSchemas(reactive([ export const Transferlog = useCrudSchemas(reactive([ { label: '日志号', - field: 'number' + field: 'number', + sort: 'custom', + table: { + width: 150 + }, }, { label: '事务类型', - field: 'transactionType' + field: 'transactionType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '操作员', - field: 'worker' + field: 'worker', + sort: 'custom', + table: { + width: 150 + }, }, { label: '业务类型', - field: 'businessType' + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '单据号', - field: 'recordNumber' + field: 'recordNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '生效时间', @@ -5755,11 +9579,19 @@ export const Transferlog = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + }, + sort: 'custom', + table: { + width: 150 + }, }, { label: '物料代码', - field: 'itemCode' + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '计量单位', @@ -5767,15 +9599,30 @@ export const Transferlog = useCrudSchemas(reactive([ dictType: DICT_TYPE.UOM, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '数量', - field: 'qty' + field: 'qty', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '替代批次', - field: 'altBatch' + field: 'altBatch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到货日期', @@ -5784,6 +9631,16 @@ export const Transferlog = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5793,6 +9650,16 @@ export const Transferlog = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -5802,19 +9669,41 @@ export const Transferlog = 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: 'fomTransactionNumber' + field: 'fomTransactionNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从包装号', - field: 'fromPackingNumber' + field: 'fromPackingNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从批次', - field: 'fromBatch' + field: 'fromBatch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从库存状态', @@ -5822,27 +9711,51 @@ export const Transferlog = useCrudSchemas(reactive([ dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '从器具号', - field: 'fromContainerNumber' + field: 'fromContainerNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从库位代码', - field: 'fromLocationCode' + field: 'fromLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从仓库代码', - field: 'fromWarehouseCode' + field: 'fromWarehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从库区代码', - field: 'fromAreaCode' + field: 'fromAreaCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从库位组代码', - field: 'fromLocationGroupCode' + field: 'fromLocationGroupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '从ERP库位代码', @@ -5850,23 +9763,43 @@ export const Transferlog = useCrudSchemas(reactive([ dictType: DICT_TYPE.ERP_LOCATION, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '从货主代码', - field: 'fromOwnerCode' + field: 'fromOwnerCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到事务号', - field: 'toTransactionNumber' + field: 'toTransactionNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到包装号', - field: 'toPackingNumber' + field: 'toPackingNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到批次', - field: 'toBatch' + field: 'toBatch', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到库存状态', @@ -5874,27 +9807,51 @@ export const Transferlog = useCrudSchemas(reactive([ dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '到器具号', - field: 'toContainerNumber' + field: 'toContainerNumber', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到库位代码', - field: 'toLocationCode' + field: 'toLocationCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到仓库代码', - field: 'toWarehouseCode' + field: 'toWarehouseCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到库区代码', - field: 'toAreaCode' + field: 'toAreaCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到库位组代码', - field: 'toLocationGroupCode' + field: 'toLocationGroupCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '到ERP库位代码', @@ -5902,11 +9859,19 @@ export const Transferlog = useCrudSchemas(reactive([ dictType: DICT_TYPE.ERP_LOCATION, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '到货主代码', - field: 'toOwnerCode' + field: 'toOwnerCode', + sort: 'custom', + table: { + width: 150 + }, }, ])) @@ -5916,59 +9881,118 @@ export const Transferlog = useCrudSchemas(reactive([ export const Labeltype = useCrudSchemas(reactive([ { label: '标签类型', - field: 'labelType' + field: 'labelType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '数据协议', - field: 'dataProtocol' + field: 'dataProtocol', + sort: 'custom', + table: { + width: 150 + }, }, { label: '拆分方法', - field: 'splitMehod' + field: 'splitMehod', + sort: 'custom', + table: { + width: 150 + }, }, { label: '数据头', - field: 'header' + field: 'header', + sort: 'custom', + table: { + width: 150 + }, }, { label: '版本号', - field: 'version' + field: 'version', + sort: 'custom', + table: { + width: 150 + }, }, { label: '分隔符', - field: 'separators' + field: 'separators', + sort: 'custom', + table: { + width: 150 + }, }, { label: '校验方法', - field: 'validateMethod' + field: 'validateMethod', + sort: 'custom', + table: { + width: 150 + }, }, { label: '校验数', - field: 'validateNumber' + field: 'validateNumber', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '加密方法', - field: 'encyptEthod' + field: 'encyptEthod', + sort: 'custom', + table: { + width: 150 + }, }, { label: '压缩方法', - field: 'compressMethod' + field: 'compressMethod', + sort: 'custom', + table: { + width: 150 + }, }, { label: '模板名称', - field: 'templateName' + field: 'templateName', + sort: 'custom', + table: { + width: 150 + }, }, { label: '模板文件', - field: 'templateFile' + field: 'templateFile', + sort: 'custom', + table: { + width: 150 + }, }, { label: '标签代码', - field: 'labelCode' + field: 'labelCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否加密', @@ -5976,7 +10000,19 @@ export const Labeltype = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否压缩', @@ -5984,7 +10020,19 @@ export const Labeltype = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -5994,27 +10042,60 @@ export const Labeltype = useCrudSchemas(reactive([ export const Barcode = useCrudSchemas(reactive([ { label: '代码', - field: 'code' + field: 'code', + sort: 'custom', + table: { + width: 150 + }, }, { label: '名称', - field: 'name' + field: 'name', + sort: 'custom', + table: { + width: 150 + }, }, { label: '描述', - field: 'description' + field: 'description', + sort: 'custom', + table: { + width: 150 + }, }, { label: '顺序', - field: 'order' + field: 'order', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '长度', - field: 'length' + field: 'length', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '前缀长度', - field: 'prefixLenght' + field: 'prefixLenght', + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'InputNumber', + } }, { label: '前缀字符', @@ -6022,19 +10103,35 @@ export const Barcode = useCrudSchemas(reactive([ dictType: DICT_TYPE.BARCODE_PREFIX, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '实体属性', - field: 'entityProperties' + field: 'entityProperties', + sort: 'custom', + table: { + width: 150 + }, }, { label: '加密方法', - field: 'encyptMethod' + field: 'encyptMethod', + sort: 'custom', + table: { + width: 150 + }, }, { label: '主表ID', - field: 'masterId' + field: 'masterId', + sort: 'custom', + table: { + width: 150 + }, }, { label: '截断尾部空格', @@ -6042,7 +10139,19 @@ export const Barcode = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '是否加密', @@ -6050,7 +10159,19 @@ export const Barcode = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, ])) @@ -6060,11 +10181,19 @@ export const Barcode = useCrudSchemas(reactive([ export const PurchaseMain = useCrudSchemas(reactive([ { label: '供应商代码', - field: 'supplierCode' + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, }, { label: '单据号', - field: 'number' + field: 'number', + sort: 'custom', + table: { + width: 150 + }, }, { label: '订单类型', @@ -6072,7 +10201,11 @@ export const PurchaseMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '状态', @@ -6080,7 +10213,11 @@ export const PurchaseMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.PURCHASE_ORDER_STATUS, dictClass: 'string', isTable: true, - isSearch: true + isSearch: true, + sort: 'custom', + table: { + width: 150 + }, }, { label: '订单日期', @@ -6089,6 +10226,16 @@ export const PurchaseMain = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } }, { @@ -6098,27 +10245,57 @@ export const PurchaseMain = 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: 'version' + field: 'version', + sort: 'custom', + table: { + width: 150 + }, }, { label: '税率', - field: 'taxRate' + field: 'taxRate', + 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: '是否寄存订单', @@ -6126,15 +10303,35 @@ export const PurchaseMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '业务类型', - field: 'businessType' + field: 'businessType', + sort: 'custom', + table: { + width: 150 + }, }, { label: '当前阶段', - field: 'currentStage' + field: 'currentStage', + sort: 'custom', + table: { + width: 150 + }, }, { label: '是否可用', @@ -6142,11 +10339,27 @@ export const PurchaseMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, - isTable: true + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, }, { label: '创建者', field: 'creator', + sort: 'custom', + table: { + width: 150 + }, }, { label: '创建时间', @@ -6155,11 +10368,25 @@ export const PurchaseMain = 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: 'updater', + sort: 'custom', + table: { + width: 150 + }, }, { label: '最后更新时间', @@ -6168,6 +10395,16 @@ export const PurchaseMain = useCrudSchemas(reactive([ formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + } } } ])) @@ -25075,20 +29312,520 @@ export const CustomersettleRecordDetail = useCrudSchemas(reactive( field: 'soNumber' }, { - label: '销售订单行', - field: 'soLine' + label: '销售订单行', + field: 'soLine' + }, + { + label: '货主代码', + field: 'ownerCode' + }, + { + label: '包装号', + field: 'packingNumber' + }, + { + label: '批次', + field: 'batch' + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '从库位代码', + field: 'fromLocationCode' + }, + { + label: '从库位组代码', + field: 'fromLocationCode' + }, + { + label: '从库区代码', + field: 'fromLocationCode' + }, + { + label: '单价', + field: 'singlePrice' + }, + { + label: '金额', + field: 'amount' + }, + { + label: '单据号', + field: 'number' + }, + { + label: '物品代码', + field: 'itemCode' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '任务明细ID', + field: 'jobDetailId' + }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '物品名称', + field: 'itemName' + }, + { + label: '物品描述1', + field: 'itemDesc1' + }, + { + label: '物品描述2', + field: 'itemDesc2' + }, + { + label: '项目代码', + field: 'projectCode' + }, + { + label: '数量', + field: 'qty' + }, + { + 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' + }, +])) + +/** + * @returns {Array} 库存初始化申请主表 + */ +export const InventoryinitRequestMain = useCrudSchemas(reactive([ + { + label: '仓库代码', + field: 'warehouseCode' + }, + { + label: '单据号', + field: 'number' + }, + { + label: '业务类型', + field: 'businessType' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '申请时间', + field: 'requestTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '截止时间', + field: 'dueTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '部门', + field: 'departmentCode' + }, + { + label: '状态', + field: 'status', + dictType: DICT_TYPE.REQUEST_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '最后更新时间', + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '最后更新者', + field: 'updater' + }, + { + label: '自动提交', + field: 'autoCommit', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '自动通过', + field: 'autoAgree', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '自动执行', + field: 'autoAgree', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '直接生成记录', + field: 'directCreateRecord', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, +])) + +/** + * @returns {Array} 库存初始化申请子表 + */ +export const InventoryinitRequestDetail = useCrudSchemas(reactive([ + { + label: '货主代码', + field: 'ownerCode' + }, + { + label: '包装号', + field: 'packingNumber' + }, + { + label: '器具号', + field: 'containerNumber' + }, + { + label: '批次', + field: 'batch' + }, + { + label: '替代批次', + field: 'altBatch' + }, + { + 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' + } + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '库位代码', + field: 'locationCode' + }, + { + label: '库位组代码', + field: 'locationGroupCode' + }, + { + label: '库区代码', + field: 'areaCode' + }, + { + label: '标包数量', + field: 'stdPackQty' + }, + { + label: '标包单位', + field: 'stdPackUnit', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '单据号', + field: 'number' + }, + { + label: '物品代码', + field: 'itemCode' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '物品名称', + field: 'itemName' + }, + { + label: '物品描述1', + field: 'itemDesc1' + }, + { + label: '物品描述2', + field: 'itemDesc2' + }, + { + label: '项目代码', + field: 'projectCode' + }, + { + label: '数量', + field: 'qty' + }, + { + 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' + }, +])) + +/** + * @returns {Array} 库存初始化记录主表 + */ +export const InventoryinitRecordMain = useCrudSchemas(reactive([ + { + label: '申请单号', + field: 'requestNumber' + }, + { + label: '仓库代码', + field: 'warehouseCode' + }, + { + label: '出库事务类型', + field: 'outTransactionType' + }, + { + label: '入库事务类型', + field: 'inTransactionType' + }, + { + label: '执行时间', + field: 'executeTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '生效日期', + field: 'activeDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '申请时间', + field: 'requestTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '截止时间', + field: 'dueTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '部门', + field: 'departmentCode' + }, + { + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '单据号', + field: 'number' + }, + { + label: '业务类型', + field: 'businessType' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '代码', + field: 'code' + }, + { + label: '是否可用', + field: 'available', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, +])) + +/** + * @returns {Array} 库存初始化记录子表 + */ +export const InventoryinitRecordDetail = useCrudSchemas(reactive([ + { + label: '货主代码', + field: 'ownerCode' + }, + { + label: '包装号', + field: 'packingNumber' + }, + { + label: '器具号', + field: 'containerNumber' + }, + { + label: '批次', + field: 'batch' + }, + { + label: '替代批次', + field: 'altBatch' }, { - label: '货主代码', - field: 'ownerCode' + label: '到货日期', + field: 'arriveDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '包装号', - field: 'packingNumber' + label: '生产日期', + field: 'produceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '批次', - field: 'batch' + label: '过期日期', + field: 'expireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '库存状态', @@ -25099,16 +29836,28 @@ export const CustomersettleRecordDetail = useCrudSchemas(reactive( isTable: true }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '库位代码', + field: 'locationCode' }, { - label: '从库位组代码', - field: 'fromLocationCode' + label: '库位组代码', + field: 'locationGroupCode' }, { - label: '从库区代码', - field: 'fromLocationCode' + label: '库区代码', + field: 'areaCode' + }, + { + label: '标包数量', + field: 'stdPackQty' + }, + { + label: '标包单位', + field: 'stdPackUnit', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '单价', @@ -25189,12 +29938,40 @@ export const CustomersettleRecordDetail = useCrudSchemas(reactive( ])) /** - * @returns {Array} 库存初始化申请主表 + * @returns {Array} 库存转移申请主表 */ -export const InventoryinitRequestMain = useCrudSchemas(reactive([ +export const InventorymoveRequestMain = useCrudSchemas(reactive([ { - label: '仓库代码', - field: 'warehouseCode' + label: '从仓库代码', + field: 'fromWarehouseOde' + }, + { + label: '从库位类型范围', + field: 'fromLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '从库区代码范围', + field: 'fromAreaCodes' + }, + { + label: '到仓库代码', + field: 'toWarehouseCode' + }, + { + label: '到库位类型范围', + field: 'toLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '到库区代码范围', + field: 'toAreaCodes' }, { label: '单据号', @@ -25292,84 +30069,72 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive([ isSearch: true, isTable: true }, + { + label: '使用在途库', + field: 'useOnTheWayLocation', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, ])) /** - * @returns {Array} 库存初始化申请子表 + * @returns {Array} 库存转移申请子表 */ -export const InventoryinitRequestDetail = useCrudSchemas(reactive([ - { - label: '货主代码', - field: 'ownerCode' - }, - { - label: '包装号', - field: 'packingNumber' - }, - { - label: '器具号', - field: 'containerNumber' - }, +export const InventorymoveRequestDetail = useCrudSchemas(reactive([ { - label: '批次', - field: 'batch' + label: '从货主代码', + field: 'fromOwnerCode' }, { - label: '替代批次', - field: 'altBatch' + label: '从包装号', + field: 'fromPackingNumber' }, { - label: '到货日期', - field: 'arriveDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '从器具号', + field: 'fromContainerNumber' }, { - label: '生产日期', - field: 'produceDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '从批次', + field: 'fromBatch' }, { - label: '过期日期', - field: 'expireDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '从库位代码', + field: 'fromLocationCode' }, { - label: '库存状态', - field: 'inventoryStatus', + label: '从库存状态', + field: 'fromInventoryStatus', dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, isTable: true }, { - label: '库位代码', - field: 'locationCode' + label: '到货主代码', + field: 'toOwnerCode' }, { - label: '库位组代码', - field: 'locationGroupCode' + label: '到包装号', + field: 'toPackingNumber' }, { - label: '库区代码', - field: 'areaCode' + label: '到器具号', + field: 'toContainerNumber' }, { - label: '标包数量', - field: 'stdPackQty' + label: '到批次', + field: 'toBatch' }, { - label: '标包单位', - field: 'stdPackUnit', - dictType: DICT_TYPE.PACK_UNIT, + label: '到库位代码', + field: 'toLocationCode' + }, + { + label: '到库存状态', + field: 'toInventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -25378,14 +30143,14 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( label: '单据号', field: 'number' }, - { - label: '物品代码', - field: 'itemCode' - }, { label: '备注', field: 'remark' }, + { + label: '创建者', + field: 'creator' + }, { label: '创建时间', field: 'createTime', @@ -25395,8 +30160,8 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( } }, { - label: '创建者', - field: 'creator' + label: '物品代码', + field: 'itemCode' }, { label: '物品名称', @@ -25421,11 +30186,15 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.UOM, + dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, isTable: true }, + { + label: '最后更新者', + field: 'updater' + }, { label: '最后更新时间', field: 'updateTime', @@ -25434,72 +30203,124 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { - label: '最后更新者', - field: 'updater' - }, ])) /** - * @returns {Array} 库存初始化记录主表 + * @returns {Array} 库存转移任务主表 */ -export const InventoryinitRecordMain = useCrudSchemas(reactive([ +export const InventorymoveJobMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' }, { - label: '仓库代码', - field: 'warehouseCode' - }, - { - label: '出库事务类型', - field: 'outTransactionType' + label: '使用在途库', + field: 'useOnTheWayLocation', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '入库事务类型', - field: 'inTransactionType' + label: '从仓库代码', + field: 'fromWarehouseCode' }, { - label: '执行时间', - field: 'executeTime', + label: '申请时间', + field: 'requestTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '生效日期', - field: 'activeDate', + label: '要求截止时间', + field: 'requestDueTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '申请时间', - field: 'requestTime', + label: '状态', + field: 'status', + dictType: DICT_TYPE.JOB_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '过期时间', + field: 'expiredTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '截止时间', - field: 'dueTime', + label: '最后更新时间', + field: 'updateTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, + { + label: '最后更新者', + field: 'updater' + }, + { + label: '状态', + field: 'jobStageStatus' + }, + { + label: '优先级', + field: 'priority' + }, + { + label: '优先级增量', + field: 'priorityIncrement' + }, { label: '部门', field: 'departmentCode' }, { - label: '接口类型', - field: 'interfaceType', - dictType: DICT_TYPE.INTERFACE_TYPE, + label: '承接人', + field: 'acceptUserId' + }, + { + label: '承接时间', + field: 'acceptTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '完成人', + field: 'completeUserId' + }, + { + label: '完成时间', + field: 'completeTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '从库位类型范围', + field: 'fromLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '到库位类型范围', + field: 'toLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, isTable: true @@ -25516,10 +30337,6 @@ export const InventoryinitRecordMain = useCrudSchemas(reactive([ label: '备注', field: 'remark' }, - { - label: '创建者', - field: 'creator' - }, { label: '创建时间', field: 'createTime', @@ -25529,134 +30346,154 @@ export const InventoryinitRecordMain = useCrudSchemas(reactive([ } }, { - label: '代码', - field: 'code' + label: '创建者', + field: 'creator' }, { - label: '是否可用', - field: 'available', + label: '从库区代码范围', + field: 'fromAreaCodes' + }, + { + label: '到库区代码范围', + field: 'toAreaCodes' + }, + { + label: '到仓库代码', + field: 'toWarehouseCode' + }, + { + label: '自动完成', + field: 'autoComplete', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, -])) - -/** - * @returns {Array} 库存初始化记录子表 - */ -export const InventoryinitRecordDetail = useCrudSchemas(reactive([ - { - label: '货主代码', - field: 'ownerCode' - }, { - label: '包装号', - field: 'packingNumber' + label: '允许修改库位', + field: 'allowModifyLocation', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '器具号', - field: 'containerNumber' + label: '允许修改数量', + field: 'allowModifyQty', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '批次', - field: 'batch' + label: '允许大于推荐数量', + field: 'allowBiggerQty', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '替代批次', - field: 'altBatch' + label: '允许小于推荐数量', + field: 'allowSmallerQty', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '到货日期', - field: 'arriveDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '允许修改库存状态', + field: 'allowModifyInventoryStatus', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '生产日期', - field: 'produceDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '允许连续扫描', + field: 'allowContinuousScanning', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '过期日期', - field: 'expireDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '允许部分完成', + field: 'allowPartialComplete', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '库存状态', - field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, + label: '允许修改批次', + field: 'allowModifyBatch', + dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '库位代码', - field: 'locationCode' + label: '允许修改箱码', + field: 'allowModifyPackingNumber', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true }, +])) + +/** + * @returns {Array} 库存转移任务子表 + */ +export const InventorymoveJobDetail = useCrudSchemas(reactive([ { - label: '库位组代码', - field: 'locationGroupCode' + label: '包装号', + field: 'packingNumber' }, { - label: '库区代码', - field: 'areaCode' + label: '器具号', + field: 'containerNumber' }, { - label: '标包数量', - field: 'stdPackQty' + label: '批次', + field: 'batch' }, { - label: '标包单位', - field: 'stdPackUnit', - dictType: DICT_TYPE.UOM, + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, isTable: true }, { - label: '单价', - field: 'singlePrice' - }, - { - label: '金额', - field: 'amount' + label: '订单号', + field: 'poNumber' }, { - label: '单据号', - field: 'number' + label: '订单行', + field: 'poLine' }, { - label: '物品代码', - field: 'itemCode' + label: '从库位代码', + field: 'fromLocationCode' }, { - label: '备注', - field: 'remark' + label: '到库位代码', + field: 'toLocationCode' }, { - label: '任务明细ID', - field: 'jobDetailId' + label: '从货主代码', + field: 'fromOwnerCode' }, { - label: '创建时间', - field: 'createTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '到货主代码', + field: 'toOwnerCode' }, { - label: '创建者', - field: 'creator' + label: '物品代码', + field: 'itemCode' }, { label: '物品名称', @@ -25687,26 +30524,54 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive([ isTable: true }, { - label: '最后更新时间', - field: 'updateTime', + label: '单据号', + field: 'number' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建时间', + field: 'createtime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '最后更新者', - field: 'updater' + label: '创建者', + field: 'creator' }, ])) /** - * @returns {Array} 库存转移申请主表 + * @returns {Array} 库存转移记录主表 */ -export const InventorymoveRequestMain = useCrudSchemas(reactive([ +export const InventorymoveRecordMain = useCrudSchemas(reactive([ + { + label: '申请单号', + field: 'requestNumber' + }, + { + label: '任务单号', + field: 'jobNumber' + }, + { + label: '使用在途库', + field: 'useOnTheWayLocation', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, { label: '从仓库代码', - field: 'fromWarehouseOde' + field: 'fromWarehouseCode' + }, + { + label: '到仓库代码', + field: 'toWarehouseCode' }, { label: '从库位类型范围', @@ -25716,14 +30581,6 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive([ isSearch: true, isTable: true }, - { - label: '从库区代码范围', - field: 'fromAreaCodes' - }, - { - label: '到仓库代码', - field: 'toWarehouseCode' - }, { label: '到库位类型范围', field: 'toLocationTypes', @@ -25732,33 +30589,41 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive([ isSearch: true, isTable: true }, + { + label: '从库区代码范围', + field: 'fromAreaCodes' + }, { label: '到库区代码范围', field: 'toAreaCodes' }, { - label: '单据号', - field: 'number' + label: '出库事务类型', + field: 'outTransactionType' }, { - label: '业务类型', - field: 'businessType' + label: '出库事务类型', + field: 'outTransactionType' }, { - label: '备注', - field: 'remark' + label: '入库事务类型', + field: 'inTransactionType' }, { - label: '创建时间', - field: 'createTime', + label: '执行时间', + field: 'executeTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '创建者', - field: 'creator' + label: '生效日期', + field: 'activeDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '申请时间', @@ -25781,60 +30646,44 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive([ field: 'departmentCode' }, { - label: '状态', - field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '最后更新时间', - field: 'updateTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '单据号', + field: 'number' }, { - label: '最后更新者', - field: 'updater' + label: '业务类型', + field: 'businessType' }, { - label: '自动提交', - field: 'autoCommit', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '备注', + field: 'remark' }, { - label: '自动通过', - field: 'autoAgree', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '创建者', + field: 'creator' }, { - label: '自动执行', - field: 'autoAgree', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '直接生成记录', - field: 'directCreateRecord', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '代码', + field: 'code' }, { - label: '使用在途库', - field: 'useOnTheWayLocation', + label: '是否可用', + field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, @@ -25843,9 +30692,13 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 库存转移申请子表 + * @returns {Array} 库存转移记录子表 */ -export const InventorymoveRequestDetail = useCrudSchemas(reactive([ +export const InventorymoveRecordDetail = useCrudSchemas(reactive([ + { + label: '在途库库位', + field: 'onTheWayLocationCode' + }, { label: '从货主代码', field: 'fromOwnerCode' @@ -25866,6 +30719,14 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( label: '从库位代码', field: 'fromLocationCode' }, + { + label: '从库位组代码', + field: 'fromLocationGroupCode' + }, + { + label: '从库区代码', + field: 'fromAreaCode' + }, { label: '从库存状态', field: 'fromInventoryStatus', @@ -25894,6 +30755,14 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( label: '到库位代码', field: 'toLocationCode' }, + { + label: '到库位组代码', + field: 'toLocationGroupCode' + }, + { + label: '到库区代码', + field: 'toAreaCode' + }, { label: '到库存状态', field: 'toInventoryStatus', @@ -25906,13 +30775,17 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( label: '单据号', field: 'number' }, + { + label: '物品代码', + field: 'itemCode' + }, { label: '备注', field: 'remark' }, { - label: '创建者', - field: 'creator' + label: '任务明细ID', + field: 'jobDetailId' }, { label: '创建时间', @@ -25923,8 +30796,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( } }, { - label: '物品代码', - field: 'itemCode' + label: '创建者', + field: 'creator' }, { label: '物品名称', @@ -25949,339 +30822,255 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.LOCATION_TYPE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true }, { - label: '最后更新者', - field: 'updater' + label: '代码', + field: 'code' }, { - label: '最后更新时间', - field: 'updateTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true }, ])) /** - * @returns {Array} 库存转移任务主表 + * @returns {Array} 库存修改申请主表 */ -export const InventorymoveJobMain = useCrudSchemas(reactive([ +export const InventorychangeRequestMain = useCrudSchemas(reactive([ { - label: '申请单号', - field: 'requestNumber' + label: '仓库代码', + field: 'warehouseCode' }, { - label: '使用在途库', - field: 'useOnTheWayLocation', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '单据号', + field: 'number' }, { - label: '从仓库代码', - field: 'fromWarehouseCode' + label: '业务类型', + field: 'businessType' }, { - label: '申请时间', - field: 'requestTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '备注', + field: 'remark' }, { - label: '要求截止时间', - field: 'requestDueTime', + label: '创建时间', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '状态', - field: 'status', - dictType: DICT_TYPE.JOB_STATUS, - dictClass: 'string', - isSearch: true, - isTable: true + label: '创建者', + field: 'creator' }, { - label: '过期时间', - field: 'expiredTime', + label: '申请时间', + field: 'requestTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '最后更新时间', - field: 'updateTime', + label: '截止时间', + field: 'dueTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { - label: '最后更新者', - field: 'updater' - }, - { - label: '状态', - field: 'jobStageStatus' - }, - { - label: '优先级', - field: 'priority' - }, - { - label: '优先级增量', - field: 'priorityIncrement' - }, { label: '部门', field: 'departmentCode' }, { - label: '承接人', - field: 'acceptUserId' - }, - { - label: '承接时间', - field: 'acceptTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } - }, - { - label: '完成人', - field: 'completeUserId' - }, - { - label: '完成时间', - field: 'completeTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } - }, - { - label: '从库位类型范围', - field: 'fromLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true - }, - { - label: '到库位类型范围', - field: 'toLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, + label: '状态', + field: 'status', + dictType: DICT_TYPE.REQUEST_STATUS, dictClass: 'string', isSearch: true, isTable: true }, { - label: '单据号', - field: 'number' - }, - { - label: '业务类型', - field: 'businessType' - }, - { - label: '备注', - field: 'remark' - }, - { - label: '创建时间', - field: 'createTime', + label: '最后更新时间', + field: 'updateTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '创建者', - field: 'creator' - }, - { - label: '从库区代码范围', - field: 'fromAreaCodes' - }, - { - label: '到库区代码范围', - field: 'toAreaCodes' - }, - { - label: '到仓库代码', - field: 'toWarehouseCode' - }, - { - label: '自动完成', - field: 'autoComplete', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '最后更新者', + field: 'updater' }, { - label: '允许修改库位', - field: 'allowModifyLocation', + label: '自动提交', + field: 'autoCommit', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '允许修改数量', - field: 'allowModifyQty', + label: '自动通过', + field: 'autoAgree', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '允许大于推荐数量', - field: 'allowBiggerQty', + label: '自动执行', + field: 'autoAgree', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '允许小于推荐数量', - field: 'allowSmallerQty', + label: '直接生成记录', + field: 'directCreateRecord', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, +])) + +/** + * @returns {Array} 库存修改申请子表 + */ +export const InventorychangeRequestDetail = useCrudSchemas(reactive([ { - label: '允许修改库存状态', - field: 'allowModifyInventoryStatus', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '库位代码', + field: 'locationCode' }, { - label: '允许连续扫描', - field: 'allowContinuousScanning', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '库位组代码', + field: 'locationGroupCode' }, { - label: '允许部分完成', - field: 'allowPartialComplete', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '库区代码', + field: 'areaCode' }, { - label: '允许修改批次', - field: 'allowModifyBatch', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '从数量', + field: 'fromQty' }, { - label: '允许修改箱码', - field: 'allowModifyPackingNumber', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '从货主代码', + field: 'fromOwnerCode' }, -])) - -/** - * @returns {Array} 库存转移任务子表 - */ -export const InventorymoveJobDetail = useCrudSchemas(reactive([ { - label: '包装号', - field: 'packingNumber' + label: '从包装号', + field: 'fromPackingNumber' }, { - label: '器具号', - field: 'containerNumber' + label: '从器具号', + field: 'fromContainerNumber' }, { - label: '批次', - field: 'batch' + label: '从批次', + field: 'fromBatch' }, { - label: '库存状态', - field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', - isSearch: true, - isTable: true + label: '从替代批次', + field: 'fromAltbatch' }, { - label: '订单号', - field: 'poNumber' + label: '从到货日期', + field: 'fromArriveDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '订单行', - field: 'poLine' + label: '从生产日期', + field: 'fromProduceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '从过期日期', + field: 'fromExpireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '到库位代码', - field: 'toLocationCode' + label: '从库存状态', + field: 'frominventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '从货主代码', - field: 'fromOwnerCode' + label: '到数量', + field: 'toQty' }, { label: '到货主代码', field: 'toOwnerCode' }, { - label: '物品代码', - field: 'itemCode' + label: '到包装号', + field: 'toPackingNumber' }, { - label: '物品名称', - field: 'itemName' + label: '到器具号', + field: 'toContainerNumber' }, { - label: '物品描述1', - field: 'itemDesc1' + label: '到批次', + field: 'toBatch' }, { - label: '物品描述2', - field: 'itemDesc2' + label: '到替代批次', + field: 'toAltBatch' }, { - label: '项目代码', - field: 'projectCode' + label: '到到货日期', + field: 'toArrivdAte', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '数量', - field: 'qty' + label: '到生产日期', + field: 'toProduceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, + label: '到过期日期', + field: 'toExpireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '到库存状态', + field: 'toInventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, isTable: true @@ -26294,75 +31083,75 @@ export const InventorymoveJobDetail = useCrudSchemas(reactive([ label: '备注', field: 'remark' }, + { + label: '创建者', + field: 'creator' + }, { label: '创建时间', - field: 'createtime', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '创建者', - field: 'creator' + label: '物品代码', + field: 'itemCode' }, -])) - -/** - * @returns {Array} 库存转移记录主表 - */ -export const InventorymoveRecordMain = useCrudSchemas(reactive([ { - label: '申请单号', - field: 'requestNumber' + label: '物品名称', + field: 'itemName' }, { - label: '任务单号', - field: 'jobNumber' + label: '物品描述1', + field: 'itemDesc1' }, { - label: '使用在途库', - field: 'useOnTheWayLocation', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '物品描述2', + field: 'itemDesc2' }, { - label: '从仓库代码', - field: 'fromWarehouseCode' + label: '项目代码', + field: 'projectCode' }, { - label: '到仓库代码', - field: 'toWarehouseCode' + label: '数量', + field: 'qty' }, { - label: '从库位类型范围', - field: 'fromLocationTypes', + label: '计量单位', + field: 'uom', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '到库位类型范围', - field: 'toLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '最后更新者', + field: 'updater' }, { - label: '从库区代码范围', - field: 'fromAreaCodes' + label: '最后更新时间', + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, +])) + +/** + * @returns {Array} 库存修改记录主表 + */ +export const InventorychangeRecordMain = useCrudSchemas(reactive([ { - label: '到库区代码范围', - field: 'toAreaCodes' + label: '申请单号', + field: 'requestNumber' }, { - label: '出库事务类型', - field: 'outTransactionType' + label: '仓库代码', + field: 'warehouseCode' }, { label: '出库事务类型', @@ -26455,12 +31244,24 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 库存转移记录子表 + * @returns {Array} 库存修改记录子表 */ -export const InventorymoveRecordDetail = useCrudSchemas(reactive([ +export const InventorychangeRecordDetail = useCrudSchemas(reactive([ { - label: '在途库库位', - field: 'onTheWayLocationCode' + label: '库位代码', + field: 'locationCode' + }, + { + label: '库位组代码', + field: 'locationGroupCode' + }, + { + label: '库区代码', + field: 'areaCode' + }, + { + label: '从数量', + field: 'fromQty' }, { label: '从货主代码', @@ -26479,25 +31280,45 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive([ field: 'fromBatch' }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '从替代批次', + field: 'fromAltbatch' }, { - label: '从库位组代码', - field: 'fromLocationGroupCode' + label: '从到货日期', + field: 'fromArriveDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '从库区代码', - field: 'fromAreaCode' + label: '从生产日期', + field: 'fromProduceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '从过期日期', + field: 'fromExpireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '从库存状态', - field: 'fromInventoryStatus', + field: 'frominventoryStatus', dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, isTable: true }, + { + label: '到数量', + field: 'toQty' + }, { label: '到货主代码', field: 'toOwnerCode' @@ -26515,16 +31336,32 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive([ field: 'toBatch' }, { - label: '到库位代码', - field: 'toLocationCode' + label: '到替代批次', + field: 'toAltBatch' }, { - label: '到库位组代码', - field: 'toLocationGroupCode' + label: '到到货日期', + field: 'toArrivdAte', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '到库区代码', - field: 'toAreaCode' + label: '到生产日期', + field: 'toProduceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '到过期日期', + field: 'toExpireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '到库存状态', @@ -26605,12 +31442,56 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 库存修改申请主表 + * @returns {Array} 调拨出库申请主表 */ -export const InventorychangeRequestMain = useCrudSchemas(reactive([ +export const TransferissueRequestMain = useCrudSchemas(reactive([ { - label: '仓库代码', - field: 'warehouseCode' + label: '承运商', + field: 'carrierCode' + }, + { + label: '运输方式', + field: 'transferMode' + }, + { + label: '车牌号', + field: 'vehiclePlateNumber' + }, + { + label: '从仓库代码', + field: 'fromWarehouseCode' + }, + { + label: '到仓库代码', + field: 'toWarehouseCode' + }, + { + label: '从库位类型范围', + field: 'fromLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '到库位类型范围', + field: 'toLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '从库区代码范围', + field: 'fromDockCode' + }, + { + label: '到库区代码范围', + field: 'toAreaCodes' + }, + { + label: '从月台代码', + field: 'fromDockCode' }, { label: '单据号', @@ -26711,129 +31592,247 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive( ])) /** - * @returns {Array} 库存修改申请子表 + * @returns {Array} 调拨出库申请子表 */ -export const InventorychangeRequestDetail = useCrudSchemas(reactive([ +export const TransferissueRequestDetail = useCrudSchemas(reactive([ { - label: '库位代码', - field: 'locationCode' + label: '包装号', + field: 'packingNumber' }, { - label: '库位组代码', - field: 'locationGroupCode' + label: '器具号', + field: 'containerNumber' }, { - label: '库区代码', - field: 'areaCode' + label: '批次', + field: 'batch' }, { - label: '从数量', - field: 'fromQty' + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '从货主代码', field: 'fromOwnerCode' }, { - label: '从包装号', - field: 'fromPackingNumber' + label: '到货主代码', + field: 'toOwnerCode' }, { - label: '从器具号', - field: 'fromContainerNumber' + label: '到库位代码', + field: 'toLocationCode' }, { - label: '从批次', - field: 'fromBatch' + label: '单据号', + field: 'number' }, { - label: '从替代批次', - field: 'fromAltbatch' + label: '备注', + field: 'remark' }, { - label: '从到货日期', - field: 'fromArriveDate', + label: '创建者', + field: 'creator' + }, + { + label: '创建时间', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '从生产日期', - field: 'fromProduceDate', + label: '物品代码', + field: 'itemCode' + }, + { + label: '物品名称', + field: 'itemName' + }, + { + label: '物品描述1', + field: 'itemDesc1' + }, + { + label: '物品描述2', + field: 'itemDesc2' + }, + { + label: '项目代码', + field: 'projectCode' + }, + { + label: '数量', + field: 'qty' + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '最后更新者', + field: 'updater' + }, + { + label: '最后更新时间', + field: 'updateTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, +])) + +/** + * @returns {Array} 调拨出库任务主表 + */ +export const TransferissueJobMain = useCrudSchemas(reactive([ + { + label: '申请单号', + field: 'requestNumber' + }, { - label: '从过期日期', - field: 'fromExpireDate', + label: '发货月台', + field: 'deliverDock' + }, + { + label: '承运商', + field: 'carrierCode' + }, + { + label: '运输方式', + field: 'transferMode' + }, + { + label: '车牌号', + field: 'vehiclePlateNumber' + }, + { + label: '从仓库代码', + field: 'fromWarehouseCode' + }, + { + label: '到仓库代码', + field: 'toWarehouseCode' + }, + { + label: '从库区代码范围', + field: 'fromAreaCodes' + }, + { + label: '到库区代码范围', + field: 'toAreaCodes' + }, + { + label: '从月台代码', + field: 'fromDockCode' + }, + { + label: '申请时间', + field: 'requestTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '从库存状态', - field: 'frominventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, + label: '要求截止时间', + field: 'requestDueTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '状态', + field: 'status', + dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', isSearch: true, isTable: true }, { - label: '到数量', - field: 'toQty' + label: '过期时间', + field: 'expiredTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '到货主代码', - field: 'toOwnerCode' + label: '最后更新时间', + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '到包装号', - field: 'toPackingNumber' + label: '最后更新者', + field: 'updater' }, { - label: '到器具号', - field: 'toContainerNumber' + label: '状态', + field: 'jobStageStatus' }, { - label: '到批次', - field: 'toBatch' + label: '优先级', + field: 'priority' }, { - label: '到替代批次', - field: 'toAltBatch' + label: '优先级增量', + field: 'priorityIncrement' }, { - label: '到到货日期', - field: 'toArrivdAte', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '部门', + field: 'departmentCode' }, { - label: '到生产日期', - field: 'toProduceDate', + label: '承接人', + field: 'acceptUserId' + }, + { + label: '承接时间', + field: 'acceptTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '到过期日期', - field: 'toExpireDate', + label: '完成人', + field: 'completeUserId' + }, + { + label: '完成时间', + field: 'completeTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '到库存状态', - field: 'toInventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, + label: '从库位类型范围', + field: 'fromLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '到库位类型范围', + field: 'toLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, isTable: true @@ -26843,12 +31842,12 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive([ + { + label: '包装号', + field: 'packingNumber' + }, + { + label: '器具号', + field: 'containerNumber' + }, + { + label: '批次', + field: 'batch' + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '从库位代码', + field: 'fromLocationCode' + }, + { + label: '到库位代码', + field: 'toLocationCode' + }, + { + label: '从货主代码', + field: 'fromOwnerCode' + }, + { + label: '到货主代码', + field: 'toOwnerCode' + }, { label: '物品代码', field: 'itemCode' @@ -26885,36 +32010,92 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive([ +export const TransferissueRecordMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' }, { - label: '仓库代码', - field: 'warehouseCode' + label: '任务单号', + field: 'jobNumber' + }, + { + label: '承运商', + field: 'carrierCode' + }, + { + label: '运输方式', + field: 'transferMode' + }, + { + label: '车牌号', + field: 'vehiclePlateNumber' + }, + { + label: '从仓库代码', + field: 'fromWarehouseCode' + }, + { + label: '到仓库代码', + field: 'toWarehouseCode' + }, + { + label: '从库位类型范围', + field: 'fromLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '到库位类型范围', + field: 'toLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '从库区代码范围', + field: 'fromAreaCodes' + }, + { + label: '到库区代码范围', + field: 'toAreaCodes' + }, + { + label: '从月台代码', + field: 'fromDockCode' }, { label: '出库事务类型', @@ -27007,132 +32188,72 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 库存修改记录子表 + * @returns {Array} 调拨出库记录子表 */ -export const InventorychangeRecordDetail = useCrudSchemas(reactive([ - { - label: '库位代码', - field: 'locationCode' - }, - { - label: '库位组代码', - field: 'locationGroupCode' - }, - { - label: '库区代码', - field: 'areaCode' - }, - { - label: '从数量', - field: 'fromQty' - }, - { - label: '从货主代码', - field: 'fromOwnerCode' - }, +export const TransferissueRecordDetail = useCrudSchemas(reactive([ { label: '从包装号', field: 'fromPackingNumber' }, { - label: '从器具号', - field: 'fromContainerNumber' - }, - { - label: '从批次', - field: 'fromBatch' + label: '到包装号', + field: 'toPackingNumber' }, { - label: '从替代批次', - field: 'fromAltbatch' + label: '从器具号', + field: 'fromContainerNumber' }, { - label: '从到货日期', - field: 'fromArriveDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '到器具号', + field: 'toContainerNumber' }, { - label: '从生产日期', - field: 'fromProduceDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '从批次', + field: 'fromBatch' }, { - label: '从过期日期', - field: 'fromExpireDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '到批次', + field: 'toBatch' }, { - label: '从库存状态', - field: 'frominventoryStatus', + label: '库存状态', + field: 'inventoryStatus', dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, isTable: true }, { - label: '到数量', - field: 'toQty' - }, - { - label: '到货主代码', - field: 'toOwnerCode' - }, - { - label: '到包装号', - field: 'toPackingNumber' + label: '从货主代码', + field: 'fromOwnerCode' }, { - label: '到器具号', - field: 'toContainerNumber' + label: '从库位代码', + field: 'fromLocationCode' }, { - label: '到批次', - field: 'toBatch' + label: '从库位组代码', + field: 'fromLocationGroupCode' }, { - label: '到替代批次', - field: 'toAltBatch' + label: '从库区代码', + field: 'fromAreaCode' }, { - label: '到到货日期', - field: 'toArrivdAte', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '到货主代码', + field: 'toOwnerCode' }, { - label: '到生产日期', - field: 'toProduceDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '到库位代码', + field: 'toLocationCode' }, { - label: '到过期日期', - field: 'toExpireDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '到库位组代码', + field: 'toLocationGroupCode' }, { - label: '到库存状态', - field: 'toInventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', - isSearch: true, - isTable: true + label: '到库区代码', + field: 'toAreaCode' }, { label: '单据号', @@ -27205,9 +32326,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive ])) /** - * @returns {Array} 调拨出库申请主表 + * @returns {Array} 调拨入库申请主表 */ -export const TransferissueRequestMain = useCrudSchemas(reactive([ +export const TransferreceiptRequestMain = useCrudSchemas(reactive([ { label: '承运商', field: 'carrierCode' @@ -27253,8 +32374,8 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ field: 'toAreaCodes' }, { - label: '从月台代码', - field: 'fromDockCode' + label: '到月台代码', + field: 'toDockCode' }, { label: '单据号', @@ -27355,9 +32476,9 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨出库申请子表 + * @returns {Array} 调拨入库申请子表 */ -export const TransferissueRequestDetail = useCrudSchemas(reactive([ +export const TransferreceiptRequestDetail = useCrudSchemas(reactive([ { label: '包装号', field: 'packingNumber' @@ -27387,8 +32508,8 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( field: 'toOwnerCode' }, { - label: '到库位代码', - field: 'toLocationCode' + label: '从库位代码', + field: 'fromLocationCode' }, { label: '单据号', @@ -27437,7 +32558,7 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.LOCATION_TYPE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true @@ -27457,17 +32578,13 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( ])) /** - * @returns {Array} 调拨出库任务主表 + * @returns {Array} 调拨入库任务主表 */ -export const TransferissueJobMain = useCrudSchemas(reactive([ +export const TransferreceiptJobMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' }, - { - label: '发货月台', - field: 'deliverDock' - }, { label: '承运商', field: 'carrierCode' @@ -27497,8 +32614,8 @@ export const TransferissueJobMain = useCrudSchemas(reactive([ field: 'toAreaCodes' }, { - label: '从月台代码', - field: 'fromDockCode' + label: '到月台代码', + field: 'toDockCode' }, { label: '申请时间', @@ -27707,9 +32824,9 @@ export const TransferissueJobMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨出库任务子表 + * @returns {Array} 调拨入库任务子表 */ -export const TransferissueJobDetail = useCrudSchemas(reactive([ +export const TransferreceiptJobDetail = useCrudSchemas(reactive([ { label: '包装号', field: 'packingNumber' @@ -27801,9 +32918,9 @@ export const TransferissueJobDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨出库记录主表 + * @returns {Array} 调拨入库记录主表 */ -export const TransferissueRecordMain = useCrudSchemas(reactive([ +export const TransferreceiptRecordMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' @@ -27812,6 +32929,10 @@ export const TransferissueRecordMain = useCrudSchemas(reactive([ label: '任务单号', field: 'jobNumber' }, + { + label: '收货月台', + field: 'receiptDock' + }, { label: '承运商', field: 'carrierCode' @@ -27857,8 +32978,8 @@ export const TransferissueRecordMain = useCrudSchemas(reactive([ field: 'toAreaCodes' }, { - label: '从月台代码', - field: 'fromDockCode' + label: '到月台代码', + field: 'toDockCode' }, { label: '出库事务类型', @@ -27951,9 +33072,9 @@ export const TransferissueRecordMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨出库记录子表 + * @returns {Array} 调拨入库记录子表 */ -export const TransferissueRecordDetail = useCrudSchemas(reactive([ +export const TransferreceiptRecordDetail = useCrudSchemas(reactive([ { label: '从包装号', field: 'fromPackingNumber' @@ -28089,29 +33210,13 @@ export const TransferissueRecordDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨入库申请主表 + * @returns {Array} 计划外出库申请主表 */ -export const TransferreceiptRequestMain = useCrudSchemas(reactive([ - { - label: '承运商', - field: 'carrierCode' - }, - { - label: '运输方式', - field: 'transferMode' - }, - { - label: '车牌号', - field: 'vehiclePlateNumber' - }, +export const UnplannedissueRequestMain = useCrudSchemas(reactive([ { label: '从仓库代码', field: 'fromWarehouseCode' }, - { - label: '到仓库代码', - field: 'toWarehouseCode' - }, { label: '从库位类型范围', field: 'fromLocationTypes', @@ -28120,26 +33225,10 @@ export const TransferreceiptRequestMain = useCrudSchemas(reactive( isSearch: true, isTable: true }, - { - label: '到库位类型范围', - field: 'toLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true - }, { label: '从库区代码范围', field: 'fromDockCode' }, - { - label: '到库区代码范围', - field: 'toAreaCodes' - }, - { - label: '到月台代码', - field: 'toDockCode' - }, { label: '单据号', field: 'number' @@ -28239,9 +33328,9 @@ export const TransferreceiptRequestMain = useCrudSchemas(reactive( ])) /** - * @returns {Array} 调拨入库申请子表 + * @returns {Array} 计划外出库申请子表 */ -export const TransferreceiptRequestDetail = useCrudSchemas(reactive([ +export const UnplannedissueRequestDetail = useCrudSchemas(reactive([ { label: '包装号', field: 'packingNumber' @@ -28267,8 +33356,12 @@ export const TransferreceiptRequestDetail = useCrudSchemas(reactive([ +export const UnplannedissueJobMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' }, - { - label: '承运商', - field: 'carrierCode' - }, - { - label: '运输方式', - field: 'transferMode' - }, - { - label: '车牌号', - field: 'vehiclePlateNumber' - }, { label: '从仓库代码', field: 'fromWarehouseCode' }, - { - label: '到仓库代码', - field: 'toWarehouseCode' - }, { label: '从库区代码范围', field: 'fromAreaCodes' }, - { - label: '到库区代码范围', - field: 'toAreaCodes' - }, - { - label: '到月台代码', - field: 'toDockCode' - }, { label: '申请时间', field: 'requestTime', @@ -28587,9 +33656,9 @@ export const TransferreceiptJobMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨入库任务子表 + * @returns {Array} 计划外出库任务子表 */ -export const TransferreceiptJobDetail = useCrudSchemas(reactive([ +export const UnplannedissueJobDetail = useCrudSchemas(reactive([ { label: '包装号', field: 'packingNumber' @@ -28611,20 +33680,20 @@ export const TransferreceiptJobDetail = useCrudSchemas(reactive([ isTable: true }, { - label: '从库位代码', - field: 'fromLocationCode' - }, - { - label: '到库位代码', - field: 'toLocationCode' + label: '原因', + field: 'reason', + dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, + dictClass: 'string', + isSearch: true, + isTable: true }, { - label: '从货主代码', - field: 'fromOwnerCode' + label: '从库位代码', + field: 'fromLocationCode' }, { - label: '到货主代码', - field: 'toOwnerCode' + label: '货主代码', + field: 'ownerCode' }, { label: '物品代码', @@ -28681,9 +33750,9 @@ export const TransferreceiptJobDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨入库记录主表 + * @returns {Array} 计划外出库记录主表 */ -export const TransferreceiptRecordMain = useCrudSchemas(reactive([ +export const UnplannedissueRecordMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' @@ -28692,30 +33761,10 @@ export const TransferreceiptRecordMain = useCrudSchemas(reactive([ label: '任务单号', field: 'jobNumber' }, - { - label: '收货月台', - field: 'receiptDock' - }, - { - label: '承运商', - field: 'carrierCode' - }, - { - label: '运输方式', - field: 'transferMode' - }, - { - label: '车牌号', - field: 'vehiclePlateNumber' - }, { label: '从仓库代码', field: 'fromWarehouseCode' }, - { - label: '到仓库代码', - field: 'toWarehouseCode' - }, { label: '从库位类型范围', field: 'fromLocationTypes', @@ -28724,25 +33773,13 @@ export const TransferreceiptRecordMain = useCrudSchemas(reactive([ isSearch: true, isTable: true }, - { - label: '到库位类型范围', - field: 'toLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true - }, { label: '从库区代码范围', field: 'fromAreaCodes' }, { - label: '到库区代码范围', - field: 'toAreaCodes' - }, - { - label: '到月台代码', - field: 'toDockCode' + label: '从月台代码', + field: 'fromDockCode' }, { label: '出库事务类型', @@ -28835,32 +33872,20 @@ export const TransferreceiptRecordMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 调拨入库记录子表 + * @returns {Array} 计划外出库记录子表 */ -export const TransferreceiptRecordDetail = useCrudSchemas(reactive([ - { - label: '从包装号', - field: 'fromPackingNumber' - }, - { - label: '到包装号', - field: 'toPackingNumber' - }, - { - label: '从器具号', - field: 'fromContainerNumber' - }, +export const UnplannedissueRecordDetail = useCrudSchemas(reactive([ { - label: '到器具号', - field: 'toContainerNumber' + label: '包装号', + field: 'packingNumber' }, { - label: '从批次', - field: 'fromBatch' + label: '器具号', + field: 'containerNumber' }, { - label: '到批次', - field: 'toBatch' + label: '批次', + field: 'batch' }, { label: '库存状态', @@ -28871,8 +33896,8 @@ export const TransferreceiptRecordDetail = useCrudSchemas(reactive isTable: true }, { - label: '从货主代码', - field: 'fromOwnerCode' + label: '货主代码', + field: 'ownerCode' }, { label: '从库位代码', @@ -28887,20 +33912,12 @@ export const TransferreceiptRecordDetail = useCrudSchemas(reactive field: 'fromAreaCode' }, { - label: '到货主代码', - field: 'toOwnerCode' - }, - { - label: '到库位代码', - field: 'toLocationCode' - }, - { - label: '到库位组代码', - field: 'toLocationGroupCode' - }, - { - label: '到库区代码', - field: 'toAreaCode' + label: '原因', + field: 'reason', + dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, + dictClass: 'string', + isSearch: true, + isTable: true }, { label: '单据号', @@ -28973,24 +33990,24 @@ export const TransferreceiptRecordDetail = useCrudSchemas(reactive ])) /** - * @returns {Array} 计划外出库申请主表 + * @returns {Array} 计划外入库申请主表 */ -export const UnplannedissueRequestMain = useCrudSchemas(reactive([ +export const UnplannedreceiptRequestMain = useCrudSchemas(reactive([ { - label: '从仓库代码', - field: 'fromWarehouseCode' + label: '到仓库代码', + field: 'toWarehouseCode' }, { - label: '从库位类型范围', - field: 'fromLocationTypes', + label: '到库位类型范围', + field: 'toLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '从库区代码范围', - field: 'fromDockCode' + label: '到库区代码范围', + field: 'toAreaCodes' }, { label: '单据号', @@ -29091,9 +34108,9 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 计划外出库申请子表 + * @returns {Array} 计划外入库申请子表 */ -export const UnplannedissueRequestDetail = useCrudSchemas(reactive([ +export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive([ { label: '包装号', field: 'packingNumber' @@ -29106,6 +34123,22 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive label: '批次', field: 'batch' }, + { + label: '替代批次', + field: 'altBatch' + }, + { + label: '到货日期', + field: 'arriveDate' + }, + { + label: '生产日期', + field: 'produceDate' + }, + { + label: '过期日期', + field: 'expireDate' + }, { label: '库存状态', field: 'inventoryStatus', @@ -29115,20 +34148,20 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive isTable: true }, { - label: '从货主代码', - field: 'fromOwnerCode' + label: '到货主代码', + field: 'toOwnerCode' }, { label: '原因', field: 'reason', - dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, + dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON, dictClass: 'string', isSearch: true, isTable: true }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '到库位代码', + field: 'toLocationCode' }, { label: '单据号', @@ -29177,7 +34210,7 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.LOCATION_TYPE, + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true @@ -29197,20 +34230,20 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive ])) /** - * @returns {Array} 计划外出库任务主表 + * @returns {Array} 计划外入库任务主表 */ -export const UnplannedissueJobMain = useCrudSchemas(reactive([ +export const UnplannedreceiptJobMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' }, { - label: '从仓库代码', - field: 'fromWarehouseCode' + label: '到仓库代码', + field: 'toWarehouseCode' }, { - label: '从库区代码范围', - field: 'fromAreaCodes' + label: '到库区代码范围', + field: 'toAreaCodes' }, { label: '申请时间', @@ -29419,9 +34452,9 @@ export const UnplannedissueJobMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 计划外出库任务子表 + * @returns {Array} 计划外入库任务子表 */ -export const UnplannedissueJobDetail = useCrudSchemas(reactive([ +export const UnplannedreceiptJobDetail = useCrudSchemas(reactive([ { label: '包装号', field: 'packingNumber' @@ -29445,14 +34478,14 @@ export const UnplannedissueJobDetail = useCrudSchemas(reactive([ { label: '原因', field: 'reason', - dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, + dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON, dictClass: 'string', isSearch: true, isTable: true }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '到库位代码', + field: 'toLocationCode' }, { label: '货主代码', @@ -29513,9 +34546,9 @@ export const UnplannedissueJobDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 计划外出库记录主表 + * @returns {Array} 计划外入库记录主表 */ -export const UnplannedissueRecordMain = useCrudSchemas(reactive([ +export const UnplannedreceiptRecordMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' @@ -29525,24 +34558,20 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive([ field: 'jobNumber' }, { - label: '从仓库代码', - field: 'fromWarehouseCode' + label: '到仓库代码', + field: 'toWarehouseCode' }, { - label: '从库位类型范围', - field: 'fromLocationTypes', + label: '到库位类型范围', + field: 'toLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '从库区代码范围', - field: 'fromAreaCodes' - }, - { - label: '从月台代码', - field: 'fromDockCode' + label: '到库区代码范围', + field: 'toAreaCodes' }, { label: '出库事务类型', @@ -29635,9 +34664,9 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 计划外出库记录子表 + * @returns {Array} 计划外入库记录子表 */ -export const UnplannedissueRecordDetail = useCrudSchemas(reactive([ +export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive([ { label: '包装号', field: 'packingNumber' @@ -29658,30 +34687,62 @@ export const UnplannedissueRecordDetail = useCrudSchemas(reactive( isSearch: true, isTable: true }, + { + 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' + } + }, { label: '货主代码', field: 'ownerCode' }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '到库位代码', + field: 'toLocationCode' }, { - label: '从库位组代码', - field: 'fromLocationGroupCode' + label: '到库位组代码', + field: 'toLocationGroupCode' }, { - label: '从库区代码', - field: 'fromAreaCode' + label: '到库区代码', + field: 'toAreaCode' }, { label: '原因', field: 'reason', - dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, + dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON, dictClass: 'string', isSearch: true, isTable: true }, + { + label: '单价', + field: 'singlePrice' + }, + { + label: '金额', + field: 'amount' + }, { label: '单据号', field: 'number' @@ -29753,24 +34814,24 @@ export const UnplannedissueRecordDetail = useCrudSchemas(reactive( ])) /** - * @returns {Array} 计划外入库申请主表 + * @returns {Array} 报废出库申请主表 */ -export const UnplannedreceiptRequestMain = useCrudSchemas(reactive([ +export const ScrapRequestMain = useCrudSchemas(reactive([ { - label: '到仓库代码', - field: 'toWarehouseCode' + label: '从仓库代码', + field: 'fromWarehouseCode' }, { - label: '到库位类型范围', - field: 'toLocationTypes', + label: '从库位类型范围', + field: 'fromLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '到库区代码范围', - field: 'toAreaCodes' + label: '从库区代码范围', + field: 'fromAreaCodes' }, { label: '单据号', @@ -29871,9 +34932,13 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive ])) /** - * @returns {Array} 计划外入库申请子表 + * @returns {Array} 报废出库申请子表 */ -export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive([ +export const ScrapRequestDetail = useCrudSchemas(reactive([ + { + label: '从货主代码', + field: 'fromOwnerCode' + }, { label: '包装号', field: 'packingNumber' @@ -29887,20 +34952,8 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive([ +export const ScrapJobMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' }, { - label: '到仓库代码', - field: 'toWarehouseCode' - }, - { - label: '到库区代码范围', - field: 'toAreaCodes' + label: '从仓库代码', + field: 'fromWarehouseCode' }, { label: '申请时间', @@ -30132,6 +35173,10 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive([ label: '创建者', field: 'creator' }, + { + label: '从库区代码范围', + field: 'fromAreaCodes' + }, { label: '自动完成', field: 'autoComplete', @@ -30215,9 +35260,13 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 计划外入库任务子表 + * @returns {Array} 报废出库任务子表 */ -export const UnplannedreceiptJobDetail = useCrudSchemas(reactive([ +export const ScrapJobDetail = useCrudSchemas(reactive([ + { + label: '货主代码', + field: 'ownerCode' + }, { label: '包装号', field: 'packingNumber' @@ -30230,6 +35279,10 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive([ label: '批次', field: 'batch' }, + { + label: '从库位代码', + field: 'fromLocationCode' + }, { label: '库存状态', field: 'inventoryStatus', @@ -30241,19 +35294,11 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive([ { label: '原因', field: 'reason', - dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, + dictType: DICT_TYPE.SCRAP_REASON, dictClass: 'string', isSearch: true, isTable: true }, - { - label: '到库位代码', - field: 'toLocationCode' - }, - { - label: '货主代码', - field: 'ownerCode' - }, { label: '物品代码', field: 'itemCode' @@ -30294,24 +35339,24 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive([ label: '备注', field: 'remark' }, + { + label: '创建者', + field: 'creator' + }, { label: '创建时间', - field: 'createtime', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { - label: '创建者', - field: 'creator' - }, ])) /** - * @returns {Array} 计划外入库记录主表 + * @returns {Array} 报废出库记录主表 */ -export const UnplannedreceiptRecordMain = useCrudSchemas(reactive([ +export const ScrapRecordMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' @@ -30320,22 +35365,6 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive( label: '任务单号', field: 'jobNumber' }, - { - label: '到仓库代码', - field: 'toWarehouseCode' - }, - { - label: '到库位类型范围', - field: 'toLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true - }, - { - label: '到库区代码范围', - field: 'toAreaCodes' - }, { label: '出库事务类型', field: 'outTransactionType' @@ -30416,6 +35445,22 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive( label: '代码', field: 'code' }, + { + label: '从仓库代码', + field: 'fromWarehouseCode' + }, + { + label: '从库位类型范围', + field: 'fromLocationTypes', + dictType: DICT_TYPE.LOCATION_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '从库区代码范围', + field: 'fromAreaCodes' + }, { label: '是否可用', field: 'available', @@ -30427,9 +35472,13 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive( ])) /** - * @returns {Array} 计划外入库记录子表 + * @returns {Array} 报废出库记录子表 */ -export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive([ +export const ScrapRecordDetail = useCrudSchemas(reactive([ + { + label: '从货主代码', + field: 'fromOwnerCode' + }, { label: '包装号', field: 'packingNumber' @@ -30443,45 +35492,29 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive([ + { + label: '盘点类型', + field: 'type', + dictType: DICT_TYPE.COUNT_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '执行周期', + field: 'crontab' + }, + { + label: '维度', + field: 'dimension', + dictType: DICT_TYPE.COUNT_DIMENSION, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '限值', + field: 'limitedValue' + }, + { + label: '物品忽略名单', + field: 'ignoreListOfItem' + }, + { + label: '库位忽略名单', + field: 'ignoreListOfLocation' + }, + { + label: '盘点范围列表', + field: 'scopeList' + }, + { + label: '快照盘点', + field: 'isSnapshot', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '冻结盘点', + field: 'isFreeze', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '盘点空库位', + field: 'isCountEmptyLocation', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '盘点零库存', + field: 'isCountZeroInventory', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '盘点负库存', + field: 'isCountNegativeInventory', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '明盘', + field: 'isOpenCount', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '单据号', + field: 'number' + }, + { + label: '业务类型', + field: 'businessType' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '开始时间', + field: 'beginTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '结束时间', + field: 'endTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '状态', + field: 'status', + dictType: DICT_TYPE.COUNT_PLAN_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '最后更新时间', + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '最后更新者', + field: 'updater' + }, + { + label: '是否可用', + field: 'available', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: true, + isTable: true + }, +])) + +/** + * @returns {Array} 盘点计划子表 + */ +export const CountPlanDetail = useCrudSchemas(([ + { + label: '盘点范围类型', + field: 'type', + dictType: DICT_TYPE.COUNT_STAGE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '盘点范围值', + field: 'value' + }, + { + label: '单据号', + field: 'number' + }, + { + label: '物品代码', + field: 'itemCode' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '最后更新时间', + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '最后更新者', + field: 'updater' + }, + { + label: '计划数量', + field: 'planQty' + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '是否可用', + field: 'available', + dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true @@ -30565,24 +35830,28 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive([ +export const CountRequestMain = useCrudSchemas(([ { - label: '从仓库代码', - field: 'fromWarehouseCode' + label: '申请单号', + field: 'requestNumber' }, { - label: '从库位类型范围', - field: 'fromLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, + label: '计划单号', + field: 'planNumber' + }, + { + label: '阶段', + field: 'stage', + dictType: DICT_TYPE.COUNT_STAGE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '从库区代码范围', - field: 'fromAreaCodes' + label: '仓库代码', + field: 'warehouseCode' }, { label: '单据号', @@ -30683,28 +35952,36 @@ export const ScrapRequestMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 报废出库申请子表 + * @returns {Array} 盘点申请子表 */ -export const ScrapRequestDetail = useCrudSchemas(reactive([ +export const CountRequestDetail = useCrudSchemas(reactive([ { - label: '从货主代码', - field: 'fromOwnerCode' + label: '货主代码', + field: 'ownerCode' }, { - label: '包装号', - field: 'packingNumber' + label: '从包装号', + field: 'fromPackingNumber' }, { - label: '器具号', - field: 'containerNumber' + label: '从器具号', + field: 'fromContainerNumber' + }, + { + label: '到包装号', + field: 'toPackingNumber' + }, + { + label: '到器具号', + field: 'toContainerNumber' }, { label: '批次', field: 'batch' }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '库位代码', + field: 'locationCode' }, { label: '库存状态', @@ -30715,12 +35992,8 @@ export const ScrapRequestDetail = useCrudSchemas(reactive([ isTable: true }, { - label: '原因', - field: 'reason', - dictType: DICT_TYPE.SCRAP_REASON, - dictClass: 'string', - isSearch: true, - isTable: true + label: '盘点明细号', + field: 'countDetailNumber' }, { label: '物品名称', @@ -30789,16 +36062,32 @@ export const ScrapRequestDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 报废出库任务主表 + * @returns {Array} 盘点任务主表 */ -export const ScrapJobMain = useCrudSchemas(reactive([ +export const CountJobMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' }, { - label: '从仓库代码', - field: 'fromWarehouseCode' + label: '计划单号', + field: 'planNumber' + }, + { + label: '阶段', + field: 'stage', + dictType: DICT_TYPE.COUNT_STAGE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '仓库代码', + field: 'warehouseCode' + }, + { + label: '库位代码', + field: 'locationCode' }, { label: '申请时间', @@ -31011,9 +36300,13 @@ export const ScrapJobMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 报废出库任务子表 + * @returns {Array} 盘点任务子表 */ -export const ScrapJobDetail = useCrudSchemas(reactive([ +export const CountJobDetail = useCrudSchemas(reactive([ + { + label: '盘点明细号', + field: 'countDetailNumber' + }, { label: '货主代码', field: 'ownerCode' @@ -31030,10 +36323,6 @@ export const ScrapJobDetail = useCrudSchemas(reactive([ label: '批次', field: 'batch' }, - { - label: '从库位代码', - field: 'fromLocationCode' - }, { label: '库存状态', field: 'inventoryStatus', @@ -31042,14 +36331,6 @@ export const ScrapJobDetail = useCrudSchemas(reactive([ isSearch: true, isTable: true }, - { - label: '原因', - field: 'reason', - dictType: DICT_TYPE.SCRAP_REASON, - dictClass: 'string', - isSearch: true, - isTable: true - }, { label: '物品代码', field: 'itemCode' @@ -31105,9 +36386,9 @@ export const ScrapJobDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 报废出库记录主表 + * @returns {Array} 盘点记录主表 */ -export const ScrapRecordMain = useCrudSchemas(reactive([ +export const CountRecordMain = useCrudSchemas(reactive([ { label: '申请单号', field: 'requestNumber' @@ -31116,6 +36397,22 @@ export const ScrapRecordMain = useCrudSchemas(reactive([ label: '任务单号', field: 'jobNumber' }, + { + label: '计划单号', + field: 'planNumber' + }, + { + label: '阶段', + field: 'stage', + dictType: DICT_TYPE.COUNT_STAGE, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '仓库代码', + field: 'warehouseCode' + }, { label: '出库事务类型', field: 'outTransactionType' @@ -31196,22 +36493,6 @@ export const ScrapRecordMain = useCrudSchemas(reactive([ label: '代码', field: 'code' }, - { - label: '从仓库代码', - field: 'fromWarehouseCode' - }, - { - label: '从库位类型范围', - field: 'fromLocationTypes', - dictType: DICT_TYPE.LOCATION_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true - }, - { - label: '从库区代码范围', - field: 'fromAreaCodes' - }, { label: '是否可用', field: 'available', @@ -31223,12 +36504,16 @@ export const ScrapRecordMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 报废出库记录子表 + * @returns {Array} 盘点记录子表 */ -export const ScrapRecordDetail = useCrudSchemas(reactive([ +export const CountRecordDetail = useCrudSchemas(reactive([ { - label: '从货主代码', - field: 'fromOwnerCode' + label: '盘点明细号', + field: 'countDetailNumber' + }, + { + label: '货主代码', + field: 'ownerCode' }, { label: '包装号', @@ -31243,16 +36528,16 @@ export const ScrapRecordDetail = useCrudSchemas(reactive([ field: 'batch' }, { - label: '从库位代码', - field: 'fromLocationCode' + label: '库位代码', + field: 'locationCode' }, { - label: '从库位组代码', - field: 'fromLocationGroupCode' + label: '库位组代码', + field: 'locationGroupCode' }, { - label: '从库区代码', - field: 'fromAreaCode' + label: '库区代码', + field: 'areaCode' }, { label: '库存状态', @@ -31263,20 +36548,24 @@ export const ScrapRecordDetail = useCrudSchemas(reactive([ isTable: true }, { - label: '原因', - field: 'reason', - dictType: DICT_TYPE.SCRAP_REASON, - dictClass: 'string', - isSearch: true, - isTable: true + label: '盘点数量', + field: 'countQty' }, { - label: '单价', - field: 'singlePrice' + label: '盘点时间', + field: 'countTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '金额', - field: 'amount' + label: '盘点人', + field: 'countUser' + }, + { + label: '盘点描述', + field: 'countDescription' }, { label: '单据号', @@ -31349,152 +36638,328 @@ export const ScrapRecordDetail = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 盘点计划主表 + * @returns {Array} 盘点调整申请主表 */ -export const CountPlanMain = useCrudSchemas(reactive([ +export const CountadjustRequestMain = useCrudSchemas(([ { - label: '盘点类型', - field: 'type', - dictType: DICT_TYPE.COUNT_TYPE, - dictClass: 'string', - isSearch: true, - isTable: true + label: '申请单号', + field: 'requestNumber' }, { - label: '执行周期', - field: 'crontab' + label: '盘点记录单号', + field: 'countRecordNumber' }, { - label: '维度', - field: 'dimension', - dictType: DICT_TYPE.COUNT_DIMENSION, - dictClass: 'string', - isSearch: true, - isTable: true + label: '仓库代码', + field: 'warehouseCode' }, { - label: '限值', - field: 'limitedValue' + label: '单据号', + field: 'number' }, { - label: '物品忽略名单', - field: 'ignoreListOfItem' + label: '业务类型', + field: 'businessType' }, { - label: '库位忽略名单', - field: 'ignoreListOfLocation' + label: '备注', + field: 'remark' }, { - label: '盘点范围列表', - field: 'scopeList' + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { - label: '快照盘点', - field: 'isSnapshot', - dictType: DICT_TYPE.TRUE_FALSE, + label: '创建者', + field: 'creator' + }, + { + label: '申请时间', + field: 'requestTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '截止时间', + field: 'dueTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '部门', + field: 'departmentCode' + }, + { + label: '状态', + field: 'status', + dictType: DICT_TYPE.REQUEST_STATUS, dictClass: 'string', isSearch: true, isTable: true }, { - label: '冻结盘点', - field: 'isFreeze', + label: '最后更新时间', + field: 'updateTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '最后更新者', + field: 'updater' + }, + { + label: '自动提交', + field: 'autoCommit', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '盘点空库位', - field: 'isCountEmptyLocation', + label: '自动通过', + field: 'autoAgree', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '盘点零库存', - field: 'isCountZeroInventory', + label: '自动执行', + field: 'autoAgree', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '盘点负库存', - field: 'isCountNegativeInventory', + label: '直接生成记录', + field: 'directCreateRecord', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, isTable: true }, +])) + +/** + * @returns {Array} 盘点调整申请子表 + */ +export const CountadjustRequestDetail = useCrudSchemas(reactive([ + { + label: '盘点明细号', + field: 'countDetailNumber' + }, + { + label: '货主代码', + field: 'ownerCode' + }, + { + label: '包装号', + field: 'packingNumber' + }, + { + label: '器具号', + field: 'containerNumber' + }, + { + label: '批次', + field: 'batch' + }, + { + label: '库位代码', + field: 'locationCode' + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true + }, { - label: '明盘', - field: 'isOpenCount', - dictType: DICT_TYPE.TRUE_FALSE, + label: '库存数量', + field: 'inventoryQty' + }, + { + label: '盘点数量', + field: 'countQty' + }, + { + label: '调整数量', + field: 'adjustQty' + }, + { + label: '物品名称', + field: 'itemName' + }, + { + label: '物品描述1', + field: 'itemDesc1' + }, + { + label: '物品描述2', + field: 'itemDesc2' + }, + { + label: '数量', + field: 'qty' + }, + { + label: '项目代码', + field: 'projectCode' + }, + { + 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' + }, { label: '单据号', field: 'number' }, { - label: '业务类型', - field: 'businessType' + label: '物品代码', + field: 'itemCode' }, { label: '备注', field: 'remark' }, + { + label: '创建时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, { label: '创建者', field: 'creator' }, +])) + +/** + * @returns {Array} 盘点调整记录主表 + */ +export const CountadjustRecordMain = useCrudSchemas(reactive([ { - label: '创建时间', - field: 'createTime', + label: '申请单号', + field: 'requestNumber' + }, + { + label: '盘点记录单号', + field: 'countRecordNumber' + }, + { + label: '仓库代码', + field: 'warehouseCode' + }, + { + label: '出库事务类型', + field: 'outTransactionType' + }, + { + label: '入库事务类型', + field: 'inTransactionType' + }, + { + label: '执行时间', + field: 'executeTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '开始时间', - field: 'beginTime', + label: '生效日期', + field: 'activeDate', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '结束时间', - field: 'endTime', + label: '申请时间', + field: 'requestTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '状态', - field: 'status', - dictType: DICT_TYPE.COUNT_PLAN_STATUS, + label: '截止时间', + field: 'dueTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + { + label: '部门', + field: 'departmentCode' + }, + { + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', isSearch: true, isTable: true }, { - label: '最后更新时间', - field: 'updateTime', + label: '单据号', + field: 'number' + }, + { + label: '业务类型', + field: 'businessType' + }, + { + label: '备注', + field: 'remark' + }, + { + label: '创建者', + field: 'creator' + }, + { + label: '创建时间', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, { - label: '最后更新者', - field: 'updater' + label: '代码', + field: 'code' }, { label: '是否可用', @@ -31507,20 +36972,52 @@ export const CountPlanMain = useCrudSchemas(reactive([ ])) /** - * @returns {Array} 盘点计划子表 + * @returns {Array} 盘点调整记录子表 */ -export const CountPlanDetail = useCrudSchemas(([ +export const CountadjustRecordDetail = useCrudSchemas(reactive([ { - label: '盘点范围类型', - field: 'type', - dictType: DICT_TYPE.COUNT_STAGE, + label: '盘点明细号', + field: 'countDetailNumber' + }, + { + label: '货主代码', + field: 'ownerCode' + }, + { + label: '包装号', + field: 'packingNumber' + }, + { + label: '器具号', + field: 'containerNumber' + }, + { + label: '批次', + field: 'batch' + }, + { + label: '库位代码', + field: 'locationCode' + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isSearch: true, isTable: true }, { - label: '盘点范围值', - field: 'value' + label: '盘点数量', + field: 'countQty' + }, + { + label: '库存数量', + field: 'inventoryQty' + }, + { + label: '调整数量', + field: 'adjustQty' }, { label: '单据号', @@ -31534,10 +37031,6 @@ export const CountPlanDetail = useCrudSchemas(([ label: '备注', field: 'remark' }, - { - label: '创建者', - field: 'creator' - }, { label: '创建时间', field: 'createTime', @@ -31547,15 +37040,51 @@ export const CountPlanDetail = useCrudSchemas(([ } }, { - label: '最后更新时间', - field: 'updateTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - } + label: '创建者', + field: 'creator' }, { - label: '最后更新者', - field: 'updater' + label: '物品名称', + field: 'itemName' + }, + { + label: '物品描述1', + field: 'itemDesc1' + }, + { + label: '物品描述2', + field: 'itemDesc2' + }, + { + label: '项目代码', + field: 'projectCode' + }, + { + label: '数量', + field: 'qty' + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true + }, + { + label: '任务明细ID', + field: 'jobDetailId' + }, + { + label: '代码', + field: 'code' + }, + { + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true }, ])) \ No newline at end of file