diff --git a/config/routers/pms.ts b/config/routers/pms.ts index d7df951..e71c830 100644 --- a/config/routers/pms.ts +++ b/config/routers/pms.ts @@ -47,10 +47,10 @@ export default [ path: '/pms/storage/areaStorage', // 区域库设置 component: './pms/storage/areaStorageSetting' }, - { - path: '/pms/partPlan/partSetting', // 配件设置 - component: './pms/partPlan/Setting' - }, + // { + // path: '/pms/partPlan/partSetting', // 配件设置 + // component: './pms/partPlan/Setting' + // }, { path: '/pms/partPlan/amountPlan', // 指定金额计划 component: './pms/partPlan/AmountPlan' @@ -175,4 +175,28 @@ export default [ path: '/pms/storage/partStock', // 配件锁库时长 component: './pms/storage/partStock' }, + { + path: '/pms/setting/planSetting', // 计划设置 + component: './pms/setting/PlanSetting' + }, + { + path: '/pms/setting/transferSetting', // 调拨设置 + component: './pms/setting/TransferSetting' + }, + { + path: '/pms/setting/prepareSetting', // 备料设置 + component: './pms/setting/PrepareSetting' + }, + { + path: '/pms/setting/performanceSetting', // 绩效设置 + component: './pms/setting/PerformanceSetting' + }, + { + path: '/pms/setting/perTarget', // 绩效目标设置 + component: './pms/setting/PerTarget' + }, + { + path: '/pms/setting/freightTarget', // 运费目标设置 + component: './pms/setting/FreightTarget' + }, ]; diff --git a/src/pages/pms/entity.ts b/src/pages/pms/entity.ts index aed7196..66150d7 100644 --- a/src/pages/pms/entity.ts +++ b/src/pages/pms/entity.ts @@ -201,3 +201,20 @@ export const typeSenderObj: {[key: string]: string} = { '调出锁定': '', '': '', }; + +export function getUrl(url: string, obj: object): string { + if (!Object.keys(obj).length) { + return url; + } + const pa: string[] = []; + for (let k in obj) { + if (obj[k]) { + pa.push(`${k}=${obj[k]}`); + } + } + const st = pa.join("&"); + if (st) { + return `${url}?${st}`; + } + return ''; +} diff --git a/src/pages/pms/partPlan/CustBuyPlanProcess/api.ts b/src/pages/pms/partPlan/CustBuyPlanProcess/api.ts index 56df72b..d48b4f2 100644 --- a/src/pages/pms/partPlan/CustBuyPlanProcess/api.ts +++ b/src/pages/pms/partPlan/CustBuyPlanProcess/api.ts @@ -32,6 +32,9 @@ export interface Params{ status?:number shopId?:number keywords?:string + serviceName?:string + plateNo?:string + vin?:string } export interface ProgressVO { diff --git a/src/pages/pms/partPlan/CustBuyPlanProcess/index.tsx b/src/pages/pms/partPlan/CustBuyPlanProcess/index.tsx index 3c5fcf4..7e6dbd0 100644 --- a/src/pages/pms/partPlan/CustBuyPlanProcess/index.tsx +++ b/src/pages/pms/partPlan/CustBuyPlanProcess/index.tsx @@ -35,14 +35,31 @@ export default function Index() {
setParams({keywords: e}, true)} /> + setParams({ serviceName: e}, true)} + /> + setParams({ plateNo: e}, true)} + /> + setParams({ vin: e}, true)} + />