diff --git a/src/http/api/usercenter/goodsmang.ts b/src/http/api/usercenter/goodsmang.ts index b81117e..26ce63f 100644 --- a/src/http/api/usercenter/goodsmang.ts +++ b/src/http/api/usercenter/goodsmang.ts @@ -5,7 +5,7 @@ import { get, post, put } from '../../index' // 获取装备列表 export const getEquipmentListApi = (data: any) => { return get('/material-mall/dev/devList', data) -} +} //获取装备详情 export const getDetailApi = (id: any) => { @@ -48,4 +48,37 @@ export const downLoadTemplate = () => { return post('/material-mall/dev/downLoadDev', {}) } +// 获取装备申请列表接口 +export const getEquipmentApplyListApi = (data: any) => { + return get('/material-mall/order/orderList', data) +} +// 获取装备新增时的id +export const getEquipmentAddIdApi = () => { + return post('/material-mall/order/addOrder', {}) +} + +// 新增装备 新接口 +export const equipmentAddApiNew = (data: any) => { + return post('/material-mall/order/addDevice', data) +} +// 修改装备 新接口 +export const equipmentEditApiNew = (data: any) => { + return post('/material-mall/order/editDevice', data) +} +// 获取草稿订单列表 +export const equipmentDraftListApiNew = (data: any) => { + return get('/material-mall/order/devList', data) +} +// 提交申请接口 +export const equipmentSubmitApiNew = (data: any) => { + return post('/material-mall/order/submitOrder', data) +} +// 删除接口 外侧 +export const equipmentDelApiNew = (data: any) => { + return post('/material-mall/order/delOrder', data) +} +// 通过或驳回接口 +export const equipmentPassAndRejectApiNew = (data: any) => { + return post('/material-mall/order/checkDevice', data) +} diff --git a/src/router/index.ts b/src/router/index.ts index 2c2c62d..8380af4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,12 +4,9 @@ import myInfo from './module/myInfo' // import login from '../hooks/login' // const { getLoginIwsInfo } = login() - import { mainStore } from 'store/main' // import { el } from 'element-plus/es/locale' - - const routes: Array = [ { path: '/index', @@ -18,8 +15,8 @@ const routes: Array = [ meta: { title: '目录页', keepAlive: true, - AuthFlag: false - } + AuthFlag: false, + }, }, /* 登录页 */ { @@ -29,8 +26,8 @@ const routes: Array = [ meta: { title: '登录页', keepAlive: true, - AuthFlag: false - } + AuthFlag: false, + }, }, /* 注册页 */ { @@ -41,7 +38,7 @@ const routes: Array = [ title: '注册页', keepAlive: true, AuthFlag: true, - } + }, }, { path: '/test', // 主路由地址 @@ -50,9 +47,9 @@ const routes: Array = [ meta: { title: '测试', keepAlive: true, - AuthFlag: false + AuthFlag: false, }, - children: [...test] + children: [...test], }, { path: '/myInfo', // 主路由地址 @@ -61,14 +58,11 @@ const routes: Array = [ meta: { title: '我的', keepAlive: true, - AuthFlag: false + AuthFlag: false, }, - children: [...myInfo] + children: [...myInfo], }, - - - // 首页 { path: '/', @@ -77,7 +71,7 @@ const routes: Array = [ meta: { title: '首页', keepAlive: false, - AuthFlag: false + AuthFlag: false, }, children: [ @@ -101,7 +95,7 @@ const routes: Array = [ meta: { title: '装备共享大厅', activeName: 'equipList', - } + }, }, // 专区设备 { @@ -111,7 +105,7 @@ const routes: Array = [ meta: { title: '装备共享大厅', activeName: 'zoneEquipment', - } + }, }, //装备详情 { @@ -122,13 +116,13 @@ const routes: Array = [ title: '装备详情', keepAlive: false, AuthFlag: false, - } + }, }, // 资讯详情 { path: '/consultationDetails/:id', name: 'consultationDetails', - component: () => (import('views/consultationDetails/index.vue')) + component: () => import('views/consultationDetails/index.vue'), }, // 收藏夹页面 { @@ -136,9 +130,9 @@ const routes: Array = [ name: 'collect', meta: { title: '我的收藏', - isLogin: true + isLogin: true, }, - component: () => import('views/collect/index.vue') + component: () => import('views/collect/index.vue'), }, // 寻源比价页面 { @@ -174,8 +168,8 @@ const routes: Array = [ activeName: 'parity', }, component: () => import('views/parity/parityCom/notice.vue'), - } - ] + }, + ], }, // 寻源比价 (报价) { @@ -185,9 +179,8 @@ const routes: Array = [ title: '企业专区', isLogin: true, AuthFlag: false, - }, - component: () => import('views/parity/parityCom/quotation.vue') + component: () => import('views/parity/parityCom/quotation.vue'), }, // 企业专区页面 { @@ -199,7 +192,7 @@ const routes: Array = [ AuthFlag: false, activeName: 'enterpriseZone', }, - component: () => import('views/enterpriseZone/index.vue') + component: () => import('views/enterpriseZone/index.vue'), }, ], }, @@ -212,7 +205,7 @@ const routes: Array = [ title: '标签管理-详情', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -223,7 +216,7 @@ const routes: Array = [ title: '数据大屏', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -234,7 +227,7 @@ const routes: Array = [ title: '数据大屏', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -245,7 +238,7 @@ const routes: Array = [ title: '数据大屏', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -256,7 +249,7 @@ const routes: Array = [ title: '数据大屏', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, // 消息 @@ -268,7 +261,7 @@ const routes: Array = [ title: '消息', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, @@ -280,10 +273,9 @@ const routes: Array = [ meta: { title: '个人中心', keepAlive: false, - AuthFlag: false + AuthFlag: false, }, children: [ - { path: '/orderManagementCz', name: 'orderManagementCz', @@ -292,20 +284,55 @@ const routes: Array = [ title: '订单管理(出租方)', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { path: '/goodsManagement', name: 'goodsManagement', - component: () => import('views/user/goodsManagement/index.vue'), + component: () => import('views/user/goodsManagement/index_new.vue'), meta: { title: '商品管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, + { + path: '/equipmentInput', + name: 'equipmentInput', + component: () => import('views/user/goodsManagement/equipmentInput/index.vue'), + meta: { + title: '装备录入', + keepAlive: true, + AuthFlag: false, + isLogin: true, + }, + }, + { + path: '/goodsAuditing', + name: 'goodsAuditing', + component: () => import('views/user/goodsAuditing/index_new.vue'), + meta: { + title: '装备审核', + keepAlive: true, + AuthFlag: false, + isLogin: true, + }, + }, + + // 9.15 新增修改版本 原装备管理隐藏 + // { + // path: '/goodsManagement', + // name: 'goodsManagement', + // component: () => import('views/user/goodsManagement/index.vue'), + // meta: { + // title: '商品管理', + // keepAlive: true, + // AuthFlag: false, + // isLogin: true + // }, + // }, { path: '/accept-orders', name: 'accept-orders', @@ -314,7 +341,7 @@ const routes: Array = [ title: '接单管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -325,42 +352,42 @@ const routes: Array = [ title: '合同管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, + }, + }, + { + path: '/owned-manage', + name: 'owned-manage', + component: () => import('views/user/owned-manage/index.vue'), + meta: { + title: '自有装备管理', + keepAlive: true, + AuthFlag: false, + isLogin: true, + }, + }, + { + path: '/rent-facility', + name: 'rent-facility', + component: () => import('views/user/rent-facility/index.vue'), + meta: { + title: '自有装备管理', + keepAlive: true, + AuthFlag: false, + isLogin: true, + }, + }, + { + path: '/rent-manage', + name: 'rent-manage', + component: () => import('views/user/rent-manage/index.vue'), + meta: { + title: '自有装备管理', + keepAlive: true, + AuthFlag: false, + isLogin: true, }, }, - { - path: '/owned-manage', - name: 'owned-manage', - component: () => import('views/user/owned-manage/index.vue'), - meta: { - title: '自有装备管理', - keepAlive: true, - AuthFlag: false, - isLogin: true - }, - }, - { - path: '/rent-facility', - name: 'rent-facility', - component: () => import('views/user/rent-facility/index.vue'), - meta: { - title: '自有装备管理', - keepAlive: true, - AuthFlag: false, - isLogin: true - }, - }, - { - path: '/rent-manage', - name: 'rent-manage', - component: () => import('views/user/rent-manage/index.vue'), - meta: { - title: '自有装备管理', - keepAlive: true, - AuthFlag: false, - isLogin: true - }, - }, { path: '/quickMessage', name: 'quickMessage', @@ -369,7 +396,7 @@ const routes: Array = [ title: '快捷消息设置', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -380,7 +407,7 @@ const routes: Array = [ title: '个人中心', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -391,7 +418,7 @@ const routes: Array = [ title: '退租管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, @@ -403,7 +430,7 @@ const routes: Array = [ title: '结算管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -414,7 +441,7 @@ const routes: Array = [ title: '装备维保', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -425,7 +452,7 @@ const routes: Array = [ title: '安全证书管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -436,7 +463,7 @@ const routes: Array = [ title: '标签管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -447,7 +474,7 @@ const routes: Array = [ title: '维修保养管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -458,7 +485,7 @@ const routes: Array = [ title: '需求管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -469,7 +496,7 @@ const routes: Array = [ title: '订单管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, { @@ -480,7 +507,7 @@ const routes: Array = [ title: '收货地址管理', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, @@ -530,7 +557,7 @@ const routes: Array = [ title: '订单详情', keepAlive: true, AuthFlag: false, - isLogin: false + isLogin: false, }, }, // /* 订单管理(订单详情承租) */ @@ -542,19 +569,20 @@ const routes: Array = [ title: '订单详情', keepAlive: true, AuthFlag: false, - isLogin: false + isLogin: false, }, }, // /* 订单管理(退租) */ { path: '/rentinTermination', name: 'rentinTermination', - component: () => import('views/user/orderManagement/orderCom/rentinTermination.vue'), + component: () => + import('views/user/orderManagement/orderCom/rentinTermination.vue'), meta: { title: '订单管理(退租)', keepAlive: true, AuthFlag: false, - isLogin: true + isLogin: true, }, }, // /* 订单管理(续租) */ @@ -716,9 +744,9 @@ const routes: Array = [ // isLogin: true // }, // }, - ] + ], }, - // 预约车页面 + // 预约车页面 { path: '/cart', name: 'cart', @@ -726,7 +754,7 @@ const routes: Array = [ meta: { title: '预约车', keepAlive: false, - AuthFlag: false + AuthFlag: false, }, }, // 订单确认页面 @@ -737,10 +765,10 @@ const routes: Array = [ meta: { title: '订单提交', keepAlive: false, - AuthFlag: false + AuthFlag: false, }, }, - // 需求详情页面 + // 需求详情页面 { path: '/demand-details', name: 'demand-details', @@ -748,7 +776,7 @@ const routes: Array = [ meta: { title: '需求详情', keepAlive: false, - AuthFlag: false + AuthFlag: false, }, }, @@ -801,8 +829,6 @@ const routes: Array = [ // }, // }, - - // ] // }, // /** @@ -843,24 +869,21 @@ const routes: Array = [ // }, // ] // } - - - ] - const router = createRouter({ // 路由模式 // history: createWebHistory('/iws/mall-view/'), - history: import.meta.env.VITE_ENV === 'production' ? createWebHashHistory() : createWebHistory('/iws/mall-view/'), - routes + history: + import.meta.env.VITE_ENV === 'production' + ? createWebHashHistory() + : createWebHistory('/iws/mall-view/'), + routes, }) - const white = ['/qr-code', '/big-screen'] // 使页面跳转后滚动条恢复至顶部 router.beforeEach((to, from, next) => { - const store = mainStore() if (to.meta.isLogin && !to.meta.AuthFlag) { if (store.token) { @@ -876,15 +899,14 @@ router.beforeEach((to, from, next) => { next() } - // if (store.token || to.path == '/login' || to.path == '/' || to.path == '/home' || to.path == '/register' || to.path == '/equipList' || to.path == '/equipDetail') { // } else { // next('/login') // } // chrome - document.body.scrollTop = 0; + document.body.scrollTop = 0 // firefox 兼容火狐 - document.documentElement.scrollTop = 0; + document.documentElement.scrollTop = 0 }) export default router diff --git a/src/views/user/goodsAuditing/equipmentInput/index.vue b/src/views/user/goodsAuditing/equipmentInput/index.vue new file mode 100644 index 0000000..a508422 --- /dev/null +++ b/src/views/user/goodsAuditing/equipmentInput/index.vue @@ -0,0 +1,2999 @@ + + + + + diff --git a/src/views/user/goodsAuditing/index_new.vue b/src/views/user/goodsAuditing/index_new.vue new file mode 100644 index 0000000..de1cd28 --- /dev/null +++ b/src/views/user/goodsAuditing/index_new.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/src/views/user/goodsManagement/equipmentInput/index.vue b/src/views/user/goodsManagement/equipmentInput/index.vue new file mode 100644 index 0000000..e97986b --- /dev/null +++ b/src/views/user/goodsManagement/equipmentInput/index.vue @@ -0,0 +1,2917 @@ + + + + + diff --git a/src/views/user/goodsManagement/index_new.vue b/src/views/user/goodsManagement/index_new.vue new file mode 100644 index 0000000..dbc7832 --- /dev/null +++ b/src/views/user/goodsManagement/index_new.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/src/views/user/index.vue b/src/views/user/index.vue index b558dae..c0f1365 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -55,14 +55,15 @@ interface MenuItem { // 按角色分组定义菜单---出租方 const lessorMenus: MenuItem[] = [ { title: '装备管理', name: 'goodsManagement', permission: ['1'] }, + { title: '装备审核', name: 'goodsAuditing', permission: ['1'] }, { title: '出租订单', name: 'orderManagementCz', permission: ['1'] }, { title: '接单管理', name: 'accept-orders', permission: ['1'] }, { title: '装备维保', name: 'quality-manage', permission: ['1'] }, { title: '合同管理', name: 'contract-manage', permission: ['1'] }, - /* { title: '自有装备管理', name: 'owned-manage', permission: ['1'] }, */ - { title: '外租装备管理', name: 'rent-manage', permission: ['1'] }, + /* { title: '自有装备管理', name: 'owned-manage', permission: ['1'] }, */ + { title: '外租装备管理', name: 'rent-manage', permission: ['1'] }, { title: '机械化施工装备配置率', name: 'rent-facility', permission: ['1'] }, - { title: '后台管理', name: 'admin', permission: ['1'] }, + { title: '后台管理', name: 'admin', permission: ['1'] }, ] // 按角色分组定义菜单---承租方 const lesseeMenus: MenuItem[] = [