diff --git a/src/api/wms/barcode/index.ts b/src/api/wms/barcode/index.ts new file mode 100644 index 000000000..74b03a09c --- /dev/null +++ b/src/api/wms/barcode/index.ts @@ -0,0 +1,58 @@ +import request from '@/config/axios' + +export interface BarcodeVO { + id: number + code: string + name: string + description: string + order: number + length: number + prefixLenght: number + prefixChar: string + entityProperties: string + encyptMethod: string + masterId: number + trimEnd: string + isEncypt: string +} + +// 查询条码片段列表 +export const getBarcodePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/barcode/senior', data }) + } else { + return await request.get({ url: `/wms/barcode/page`, params }) + } +} + +// 查询条码片段详情 +export const getBarcode = async (id: number) => { + return await request.get({ url: `/wms/barcode/get?id=` + id }) +} + +// 新增条码片段 +export const createBarcode = async (data: BarcodeVO) => { + return await request.post({ url: `/wms/barcode/create`, data }) +} + +// 修改条码片段 +export const updateBarcode = async (data: BarcodeVO) => { + return await request.put({ url: `/wms/barcode/update`, data }) +} + +// 删除条码片段 +export const deleteBarcode = async (id: number) => { + return await request.delete({ url: `/wms/barcode/delete?id=` + id }) +} + +// 导出条码片段 Excel +export const exportBarcode = async (params) => { + return await request.download({ url: `/wms/barcode/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/barcode/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/countPlanMain/index.ts b/src/api/wms/countPlanMain/index.ts index 9bc3c7b94..58d45ba32 100644 --- a/src/api/wms/countPlanMain/index.ts +++ b/src/api/wms/countPlanMain/index.ts @@ -29,7 +29,13 @@ export interface CountPlanMainVO { // 查询盘点计划主列表 export const getCountPlanMainPage = async (params) => { - return await request.get({ url: `/wms/count-plan-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/count-plan-main/senior', data }) + } else { + return await request.get({ url: `/wms/count-plan-main/page`, params }) + } } // 查询盘点计划主详情 @@ -56,3 +62,8 @@ export const deleteCountPlanMain = async (id: number) => { export const exportCountPlanMain = async (params) => { return await request.download({ url: `/wms/count-plan-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/count-plan-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/deliverPlanMain/index.ts b/src/api/wms/deliverPlanMain/index.ts index 9b0a90c38..2bf9d0e23 100644 --- a/src/api/wms/deliverPlanMain/index.ts +++ b/src/api/wms/deliverPlanMain/index.ts @@ -18,7 +18,13 @@ export interface DeliverPlanMainVO { // 查询发货计划主列表 export const getDeliverPlanMainPage = async (params) => { - return await request.get({ url: `/wms/deliver-plan-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/deliver-plan-main/senior', data }) + } else { + return await request.get({ url: `/wms/deliver-plan-main/page`, params }) + } } // 查询发货计划主详情 @@ -45,3 +51,8 @@ export const deleteDeliverPlanMain = async (id: number) => { export const exportDeliverPlanMain = async (params) => { return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/deliver-plan-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/demandforecastingMain/index.ts b/src/api/wms/demandforecastingMain/index.ts index c091dd290..16cda3e7a 100644 --- a/src/api/wms/demandforecastingMain/index.ts +++ b/src/api/wms/demandforecastingMain/index.ts @@ -19,7 +19,13 @@ export interface DemandforecastingMainVO { // 查询要货预测主列表 export const getDemandforecastingMainPage = async (params) => { - return await request.get({ url: `/wms/demandforecasting-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/demandforecasting-main/senior', data }) + } else { + return await request.get({ url: `/wms/demandforecasting-main/page`, params }) + } } // 查询要货预测主详情 @@ -46,3 +52,8 @@ export const deleteDemandforecastingMain = async (id: number) => { export const exportDemandforecastingMain = async (params) => { return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/demandforecasting-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/enterprise/index.ts b/src/api/wms/enterprise/index.ts new file mode 100644 index 000000000..f9fa8ebd2 --- /dev/null +++ b/src/api/wms/enterprise/index.ts @@ -0,0 +1,59 @@ +import request from '@/config/axios' + +export interface EnterpriseVO { + id: number + code: string + name: string + shortName: string + address: string + available: string + activeTime: Date + expireTime: Date + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: string + siteId: string +} + +// 查询企业列表 +export const getEnterprisePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/enterprise/senior', data }) + } else { + return await request.get({ url: `/wms/enterprise/page`, params }) + } +} + +// 查询企业详情 +export const getEnterprise = async (id: number) => { + return await request.get({ url: `/wms/enterprise/get?id=` + id }) +} + +// 新增企业 +export const createEnterprise = async (data: EnterpriseVO) => { + return await request.post({ url: `/wms/enterprise/create`, data }) +} + +// 修改企业 +export const updateEnterprise = async (data: EnterpriseVO) => { + return await request.put({ url: `/wms/enterprise/update`, data }) +} + +// 删除企业 +export const deleteEnterprise = async (id: number) => { + return await request.delete({ url: `/wms/enterprise/delete?id=` + id }) +} + +// 导出企业 Excel +export const exportEnterprise = async (params) => { + return await request.download({ url: `/wms/enterprise/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/enterprise/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/package/index.ts b/src/api/wms/package/index.ts new file mode 100644 index 000000000..dc46da4ea --- /dev/null +++ b/src/api/wms/package/index.ts @@ -0,0 +1,86 @@ +import request from '@/config/axios' + +export interface PackageVO { + number: string + itemCode: string + itemName: string + itemDesc1: string + itemDesc2: string + batch: string + altBatch: string + produceDate: Date + validityDays: number + expireDate: Date + uom: string + qty: number + altUom: string + altQty: number + convertRate: number + stdPackQty: number + stdPackUnit: string + toWarehouseCode: string + toDockCode: string + toLocationCode: string + supplierCode: string + supplierItemCode: string + poNumber: string + poLine: string + rpNumber: string + asnNumber: string + woNumber: string + woLine: string + productionLineCode: string + teamCode: string + shiftCode: string + customerCode: string + customerDockCode: string + customerItemCode: string + soNumber: string + soLine: string + eqLevel: string + ownerCode: string + weight: string + area: string + volume: string +} + +// 查询包装列表 +export const getPackagePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/package/senior', data }) + } else { + return await request.get({ url: `/wms/package/page`, params }) + } +} + +// 查询包装详情 +export const getPackage = async (id: number) => { + return await request.get({ url: `/wms/package/get?id=` + id }) +} + +// 新增包装 +export const createPackage = async (data: PackageVO) => { + return await request.post({ url: `/wms/package/create`, data }) +} + +// 修改包装 +export const updatePackage = async (data: PackageVO) => { + return await request.put({ url: `/wms/package/update`, data }) +} + +// 删除包装 +export const deletePackage = async (id: number) => { + return await request.delete({ url: `/wms/package/delete?id=` + id }) +} + +// 导出包装 Excel +export const exportPackage = async (params) => { + return await request.download({ url: `/wms/package/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/package/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/preparetoissueMain/index.ts b/src/api/wms/preparetoissueMain/index.ts index e0b5ffa50..8febec008 100644 --- a/src/api/wms/preparetoissueMain/index.ts +++ b/src/api/wms/preparetoissueMain/index.ts @@ -22,7 +22,13 @@ export interface PreparetoissueMainVO { // 查询备料计划主列表 export const getPreparetoissueMainPage = async (params) => { - return await request.get({ url: `/wms/preparetoissue-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/preparetoissue-main/senior', data }) + } else { + return await request.get({ url: `/wms/preparetoissue-main/page`, params }) + } } // 查询备料计划主详情 @@ -49,3 +55,8 @@ export const deletePreparetoissueMain = async (id: number) => { export const exportPreparetoissueMain = async (params) => { return await request.download({ url: `/wms/preparetoissue-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/preparetoissue-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/productionMain/index.ts b/src/api/wms/productionMain/index.ts index 817228095..1e82629ac 100644 --- a/src/api/wms/productionMain/index.ts +++ b/src/api/wms/productionMain/index.ts @@ -22,7 +22,13 @@ export interface ProductionMainVO { // 查询生产计划主列表 export const getProductionMainPage = async (params) => { - return await request.get({ url: `/wms/production-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/production-main/senior', data }) + } else { + return await request.get({ url: `/wms/production-main/page`, params }) + } } // 查询生产计划主详情 @@ -49,3 +55,8 @@ export const deleteProductionMain = async (id: number) => { export const exportProductionMain = async (params) => { return await request.download({ url: `/wms/production-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/production-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/purchaseDetail/index.ts b/src/api/wms/purchaseDetail/index.ts index 02cadf133..bf16cece3 100644 --- a/src/api/wms/purchaseDetail/index.ts +++ b/src/api/wms/purchaseDetail/index.ts @@ -32,7 +32,13 @@ export interface PurchaseDetailVO { // 查询采购订单子列表 export const getPurchaseDetailPage = async (params) => { - return await request.get({ url: `/wms/purchase-detail/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchase-detail/senior', data }) + } else { + return await request.get({ url: `/wms/purchase-detail/page`, params }) + } } // 查询采购订单子详情 @@ -59,3 +65,8 @@ export const deletePurchaseDetail = async (id: number) => { export const exportPurchaseDetail = async (params) => { return await request.download({ url: `/wms/purchase-detail/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/purchase-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/purchaseMain/index.ts b/src/api/wms/purchaseMain/index.ts index 61a7e455f..62648ea7a 100644 --- a/src/api/wms/purchaseMain/index.ts +++ b/src/api/wms/purchaseMain/index.ts @@ -25,7 +25,13 @@ export interface PurchaseMainVO { // 查询采购订单主列表 export const getPurchaseMainPage = async (params) => { - return await request.get({ url: `/wms/purchase-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchase-main/senior', data }) + } else { + return await request.get({ url: `/wms/purchase-main/page`, params }) + } } // 查询采购订单主详情 @@ -52,3 +58,8 @@ export const deletePurchaseMain = async (id: number) => { export const exportPurchaseMain = async (params) => { return await request.download({ url: `/wms/purchase-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/purchase-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/purchasePlanMain/index.ts b/src/api/wms/purchasePlanMain/index.ts index 87b9cc32a..03e16f972 100644 --- a/src/api/wms/purchasePlanMain/index.ts +++ b/src/api/wms/purchasePlanMain/index.ts @@ -20,7 +20,13 @@ export interface PurchasePlanMainVO { // 查询要货计划主列表 export const getPurchasePlanMainPage = async (params) => { - return await request.get({ url: `/wms/purchase-plan-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchase-plan-main/senior', data }) + } else { + return await request.get({ url: `/wms/purchase-plan-main/page`, params }) + } } // 查询要货计划主详情 @@ -47,3 +53,8 @@ export const deletePurchasePlanMain = async (id: number) => { export const exportPurchasePlanMain = async (params) => { return await request.download({ url: `/wms/purchase-plan-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/purchase-plan-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/saleMain/index.ts b/src/api/wms/saleMain/index.ts index f3c7c322d..75b3ca168 100644 --- a/src/api/wms/saleMain/index.ts +++ b/src/api/wms/saleMain/index.ts @@ -23,7 +23,13 @@ export interface SaleMainVO { // 查询销售订单主列表 export const getSaleMainPage = async (params) => { - return await request.get({ url: `/wms/sale-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/sale-main/senior', data }) + } else { + return await request.get({ url: `/wms/sale-main/page`, params }) + } } // 查询销售订单主详情 @@ -50,3 +56,8 @@ export const deleteSaleMain = async (id: number) => { export const exportSaleMain = async (params) => { return await request.download({ url: `/wms/sale-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/sale-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/workMain/index.ts b/src/api/wms/workMain/index.ts index 7ad587f95..6465bc701 100644 --- a/src/api/wms/workMain/index.ts +++ b/src/api/wms/workMain/index.ts @@ -19,7 +19,13 @@ export interface WorkMainVO { // 查询生产订单主列表 export const getWorkMainPage = async (params) => { - return await request.get({ url: `/wms/work-main/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/work-main/senior', data }) + } else { + return await request.get({ url: `/wms/work-main/page`, params }) + } } // 查询生产订单主详情 @@ -46,3 +52,8 @@ export const deleteWorkMain = async (id: number) => { export const exportWorkMain = async (params) => { return await request.download({ url: `/wms/work-main/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/work-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index ee766091b..51eebe51d 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -316,6 +316,253 @@ export function mainListApproveBtn(option:any) { }) } +// 主列表-订单流程-发布按钮 +export function mainListOrderPubBtn(option:any) { + return __defaultBtnOption(option,{ + label: '发布', + name: 'mainOrderPub', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-订单流程-关闭按钮 +export function mainListOrderCloBtn(option:any) { + return __defaultBtnOption(option,{ + label: '关闭', + name: 'mainOrderClo', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-订单流程-打开按钮 +export function mainListOrderOpeBtn(option:any) { + return __defaultBtnOption(option,{ + label: '打开', + name: 'mainOrderOpe', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-订单流程-下架按钮 +export function mainListOrderWitBtn(option:any) { + return __defaultBtnOption(option,{ + label: '下架', + name: 'mainOrderWit', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-打开按钮 +export function mainListPlanOpeBtn(option:any) { + return __defaultBtnOption(option,{ + label: '打开', + name: 'mainPlanOpe', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-关闭按钮 +export function mainListPlanCloBtn(option:any) { + return __defaultBtnOption(option,{ + label: '关闭', + name: 'mainPlanClo', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-提交审批按钮 +export function mainListPlanSubBtn(option:any) { + return __defaultBtnOption(option,{ + label: '提交审批', + name: 'mainPlanSub', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-驳回按钮 +export function mainListPlanTurBtn(option:any) { + return __defaultBtnOption(option,{ + label: '驳回', + name: 'mainPlanTur', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-重置按钮 +export function mainListPlanResBtn(option:any) { + return __defaultBtnOption(option,{ + label: '重置', + name: 'mainPlanRes', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-审批通过按钮 +export function mainListPlanAppBtn(option:any) { + return __defaultBtnOption(option,{ + label: '审批通过', + name: 'mainPlanApp', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-发布按钮 +export function mainListPlanPubBtn(option:any) { + return __defaultBtnOption(option,{ + label: '发布', + name: 'mainPlanPub', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-计划流程-执行按钮 +export function mainListPlanComBtn(option:any) { + return __defaultBtnOption(option,{ + label: '执行', + name: 'mainPlanCom', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-要货计划流程-修改按钮 +export function mainListPurchasePlanModBtn(option:any) { + return __defaultBtnOption(option,{ + label: '修改', + name: 'mainPurPlanMod', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-要货计划流程-下架按钮 +export function mainListPurchasePlanWitBtn(option:any) { + return __defaultBtnOption(option,{ + label: '下架', + name: 'mainPurPlanWit', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-要货计划流程-不接受按钮 +export function mainListPurchasePlanRejBtn(option:any) { + return __defaultBtnOption(option,{ + label: '不接受', + name: 'mainPurPlanRej', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-要货计划流程-接受按钮 +export function mainListPurchasePlanAccBtn(option:any) { + return __defaultBtnOption(option,{ + label: '接受', + name: 'mainPurPlanAcc', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-要货计划流程-发布按钮 +export function mainListPurchasePlanPubBtn(option:any) { + return __defaultBtnOption(option,{ + label: '发布', + name: 'mainPurPlanPub', + hide: false, + type: 'success', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-要货计划流程-关闭按钮 +export function mainListPurchasePlanCloBtn(option:any) { + return __defaultBtnOption(option,{ + label: '关闭', + name: 'mainPurPlanClo', + hide: false, + type: 'danger', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + +// 主列表-要货计划流程-打开按钮 +export function mainListPurchasePlanOpeBtn(option:any) { + return __defaultBtnOption(option,{ + label: '打开', + name: 'mainPurPlanOpe', + hide: false, + type: 'warning', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} + // 默认按钮规则 function __defaultBtnOption(option:any,specific:any){ return { diff --git a/src/views/wms/basicDataManage/factoryModeling/enterprise/enterprise.data.ts b/src/views/wms/basicDataManage/factoryModeling/enterprise/enterprise.data.ts new file mode 100644 index 000000000..23058e131 --- /dev/null +++ b/src/views/wms/basicDataManage/factoryModeling/enterprise/enterprise.data.ts @@ -0,0 +1,129 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EnterpriseRules = reactive({ + code: [required], + shortName: [required], + available: [required], +}) + +export const Enterprise = useCrudSchemas(reactive([ + { + label: '代码', + field: 'code', + sort: 'custom', + + }, + { + label: '名称', + field: 'name', + sort: 'custom', + + }, + { + label: '简称', + field: 'shortName', + sort: 'custom', + + }, + { + label: '地址', + field: 'address', + sort: 'custom', + + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + table: { + width: 120 + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '生效时间', + field: 'activeTime', + sort: 'custom', + formatter: dateFormatter, + + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '失效时间', + field: 'expireTime', + sort: 'custom', + formatter: dateFormatter, + + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue b/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue new file mode 100644 index 000000000..d2971a8b5 --- /dev/null +++ b/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue @@ -0,0 +1,239 @@ + + + diff --git a/src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts b/src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts new file mode 100644 index 000000000..0b0646fcd --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts @@ -0,0 +1,109 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +// 表单校验 +export const BarcodeRules = reactive({ + code: [required], + order: [required], + length: [required], + prefixLenght: [required], + entityProperties: [required], + trimEnd: [required], + isEncypt: [required], +}) + +export const Barcode = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + }, + { + label: '代码', + field: 'code', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '描述', + field: 'description', + sort: 'custom', + isSearch: true, + }, + { + label: '顺序', + field: 'order', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '长度', + field: 'length', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '前缀长度', + field: 'prefixLenght', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '前缀字符', + field: 'prefixChar', + sort: 'custom', + }, + { + label: '实体属性', + field: 'entityProperties', + sort: 'custom', + }, + { + label: '加密方法', + field: 'encyptMethod', + sort: 'custom', + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '截断尾部空格', + field: 'trimEnd', + sort: 'custom', + }, + { + label: '是否加密', + field: 'isEncypt', + sort: 'custom', + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/basicDataManage/labelManage/barcode/index.vue b/src/views/wms/basicDataManage/labelManage/barcode/index.vue new file mode 100644 index 000000000..c121ac73f --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/barcode/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/wms/basicDataManage/labelManage/package/index.vue b/src/views/wms/basicDataManage/labelManage/package/index.vue new file mode 100644 index 000000000..09b77f840 --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/package/index.vue @@ -0,0 +1,240 @@ + + + diff --git a/src/views/wms/basicDataManage/labelManage/package/package.data.ts b/src/views/wms/basicDataManage/labelManage/package/package.data.ts new file mode 100644 index 000000000..a020305bb --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/package/package.data.ts @@ -0,0 +1,280 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PackageRules = reactive({ + number: [required], + itemCode: [required], + itemName: [required], +}) + +export const Package = useCrudSchemas(reactive([ + { + label: '包装号', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '物品名称', + field: 'itemName', + sort: 'custom', + }, + { + label: '物品描述1', + field: 'itemDesc1', + sort: 'custom', + }, + { + label: '物品描述2', + field: 'itemDesc2', + sort: 'custom', + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + }, + { + label: '替代批次', + field: 'altBatch', + sort: 'custom', + }, + { + label: '生产日期', + field: 'produceDate', + sort: 'custom', + formatter: dateFormatter, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '有效期(日)', + field: 'validityDays', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '失效日期', + field: 'expireDate', + sort: 'custom', + formatter: dateFormatter, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'SelectV2' + }, + }, + { + label: '数量', + field: 'qty', + sort: 'custom', + }, + { + label: '替代计量单位', + field: 'altUom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'SelectV2' + }, + }, + { + label: '替代数量', + field: 'altQty', + sort: 'custom', + }, + { + label: '转换率', + field: 'convertRate', + sort: 'custom', + }, + { + label: '标包数量', + field: 'stdPackQty', + sort: 'custom', + }, + { + label: '标包单位', + field: 'stdPackUnit', + sort: 'custom', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + form: { + component: 'SelectV2' + }, + }, + { + label: '仓库代码', + field: 'toWarehouseCode', + sort: 'custom', + }, + { + label: '月台代码', + field: 'toDockCode', + sort: 'custom', + }, + { + label: '库位代码', + field: 'toLocationCode', + sort: 'custom', + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + }, + { + label: '供应商物品代码', + field: 'supplierItemCode', + sort: 'custom', + }, + { + label: '采购订单号', + field: 'poNumber', + sort: 'custom', + }, + { + label: '采购订单行', + field: 'poLine', + sort: 'custom', + }, + { + label: '采购计划单号', + field: 'rpNumber', + sort: 'custom', + }, + { + label: '发货单号', + field: 'asnNumber', + sort: 'custom', + }, + { + label: '生产订单号', + field: 'woNumber', + sort: 'custom', + }, + { + label: '生产订单行', + field: 'woLine', + sort: 'custom', + }, + { + label: '生产线代码', + field: 'productionLineCode', + sort: 'custom', + }, + { + label: '班组代码', + field: 'teamCode', + sort: 'custom', + }, + { + label: '班次代码', + field: 'shiftCode', + sort: 'custom', + }, + { + label: '客户代码', + field: 'customerCode', + sort: 'custom', + }, + { + label: '客户月台代码', + field: 'customerDockCode', + sort: 'custom', + }, + { + label: '客户物品代码', + field: 'customerItemCode', + sort: 'custom', + }, + { + label: '销售订单号', + field: 'soNumber', + sort: 'custom', + }, + { + label: '销售订单行', + field: 'soLine', + sort: 'custom', + }, + { + label: '质量等级', + field: 'eqLevel', + sort: 'custom', + }, + { + label: '货主代码', + field: 'ownerCode', + sort: 'custom', + }, + { + label: '重量', + field: 'weight', + sort: 'custom', + }, + { + label: '面积', + field: 'area', + sort: 'custom', + }, + { + label: '体积', + field: 'volume', + sort: 'custom', + }, + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) diff --git a/src/views/wms/countManage/count/countPlanMain/index.vue b/src/views/wms/countManage/count/countPlanMain/index.vue index 6a9786326..b500263d0 100644 --- a/src/views/wms/countManage/count/countPlanMain/index.vue +++ b/src/views/wms/countManage/count/countPlanMain/index.vue @@ -1,438 +1,238 @@ diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue index e4c3eb222..798d359b2 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue @@ -1,310 +1,238 @@ diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue index 9283f006b..b76feb41d 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue @@ -1,357 +1,237 @@ diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts index a7f92a756..5a9da451d 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts @@ -218,6 +218,16 @@ export const SaleMain = useCrudSchemas(reactive([ } } }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } ])) //表单校验 diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index eb16b16a7..089f3f642 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -1,364 +1,238 @@ diff --git a/src/views/wms/productionManage/productionplan/productionMain/index.vue b/src/views/wms/productionManage/productionplan/productionMain/index.vue index 7ca2dcc6b..cbb63ea65 100644 --- a/src/views/wms/productionManage/productionplan/productionMain/index.vue +++ b/src/views/wms/productionManage/productionplan/productionMain/index.vue @@ -1,354 +1,238 @@ diff --git a/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts b/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts index 6a7c891d7..7523d4b12 100644 --- a/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts +++ b/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts @@ -259,7 +259,7 @@ export const ProductionMainRules = reactive({ /** * @returns {Array} 生产计划子表 */ -export const ProductionDeatil = useCrudSchemas(reactive([ +export const ProductionDetail = useCrudSchemas(reactive([ { label: '订单号', field: 'woNumber', @@ -432,7 +432,7 @@ export const ProductionDeatil = useCrudSchemas(reactive([ ])) //表单校验 -export const ProductionDeatilRules = reactive({ +export const ProductionDetailRules = reactive({ woNumber: [ { required: true, message: '请选择订单号', trigger: 'change' } ], diff --git a/src/views/wms/productionManage/productionplan/workMain/index.vue b/src/views/wms/productionManage/productionplan/workMain/index.vue index c38a859d8..79387b698 100644 --- a/src/views/wms/productionManage/productionplan/workMain/index.vue +++ b/src/views/wms/productionManage/productionplan/workMain/index.vue @@ -1,313 +1,237 @@ diff --git a/src/views/wms/productionManage/productionplan/workMain/workMain.data.ts b/src/views/wms/productionManage/productionplan/workMain/workMain.data.ts index daa52dbe2..1fc30e248 100644 --- a/src/views/wms/productionManage/productionplan/workMain/workMain.data.ts +++ b/src/views/wms/productionManage/productionplan/workMain/workMain.data.ts @@ -170,6 +170,16 @@ export const WorkMain = useCrudSchemas(reactive([ isSearch: true, isTable: true }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } ])) //表单校验 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue index b39661988..c8b5391a4 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue @@ -1,326 +1,238 @@ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue index 2895fb6b9..bbff9e9c3 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue @@ -1,404 +1,237 @@ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts index bbf51886a..6f277a09e 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts @@ -555,6 +555,16 @@ export const PurchaseDetail = useCrudSchemas(reactive([ valueFormat: 'x', } }, + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + } } ])) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 82a7b2426..07651b343 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -1,334 +1,244 @@ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 9aec3e976..1a3102c9d 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -6,6 +6,16 @@ const { t } = useI18n() // 国际化 * @returns {Array} 要货计划主表 */ export const PurchasePlanMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isForm: false , + table: { + width: 150 + }, + isSearch: true + }, { label: '供应商代码', field: 'supplierCode', @@ -13,6 +23,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true }, { label: '时间窗口', @@ -38,14 +49,6 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ width: 150 }, }, - { - label: '单据号', - field: 'number', - sort: 'custom', - table: { - width: 150 - }, - }, { label: '业务类型', field: 'businessType', @@ -58,14 +61,10 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ label: '状态', field: 'status', sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '备注', - field: 'remark', - sort: 'custom', + dictType: DICT_TYPE.PURCHASE_PLAN_STATUS, + dictClass: 'string', + isTable: true, + isSearch: true, table: { width: 150 }, @@ -112,10 +111,19 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ } }, }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '创建时间', field: 'createTime', isTable: true, + isForm: false , formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -124,19 +132,12 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ table: { width: 180 }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } - }, }, { label: '创建者', field: 'creator', sort: 'custom', + isForm: false , table: { width: 150 }, @@ -145,6 +146,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ label: '最后更新时间', field: 'updateTime', isTable: true, + isForm: false , formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -152,20 +154,13 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ sort: 'custom', table: { width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } - }, + } }, { label: '最后更新者', field: 'updater', sort: 'custom', + isForm: false , table: { width: 150 }, @@ -175,7 +170,6 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isSearch: true, isTable: true, sort: 'custom', table: { @@ -189,6 +183,16 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ activeValue: 'TRUE' } }, + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 200, + fixed: 'right' + } } ])) @@ -238,6 +242,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ label: '单据号', field: 'number', sort: 'custom', + isTableForm:false, table: { width: 150 } @@ -250,14 +255,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ width: 150 } }, - { - label: '备注', - field: 'remark', - sort: 'custom', - table: { - width: 150 - } - }, { label: '创建时间', field: 'createTime', @@ -266,22 +263,16 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, sort: 'custom', + isTableForm:false, table: { width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } - }, + } }, { label: '创建者', field: 'creator', sort: 'custom', + isTableForm:false, table: { width: 150 } @@ -293,7 +284,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ table: { width: 150 }, - form: { + tableForm: { component: 'InputNumber', }, }, @@ -304,7 +295,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ table: { width: 150 }, - form: { + tableForm: { component: 'InputNumber', }, }, @@ -324,6 +315,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ label: '最后更新者', field: 'updater', sort: 'custom', + isTableForm:false, table: { width: 150 } @@ -332,21 +324,22 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ label: '最后更新时间', field: 'updateTime', sort: 'custom', + isTableForm:false, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } - }, + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + } }, { label: '是否可用', @@ -368,6 +361,17 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ } } }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150, + fixed: 'right' + }, + isTableForm:false, + } ])) //表单校验 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue index 1c410245d..9500ad026 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue @@ -441,8 +441,6 @@ /> - -