diff --git a/.env.development b/.env.development index 90748a2..060384e 100644 --- a/.env.development +++ b/.env.development @@ -8,7 +8,7 @@ VUE_APP_BASE_API = '/api' # VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi" -VUE_APP_URL = "http://192.168.2.105:7201" +VUE_APP_URL = "http://192.168.2.106:7201" VUE_APP_REPORT_URL = "http://192.168.2.106:7202" ##VUE_APP_REPORT_URL = "https://lpk.yyundong.com" ##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk" diff --git a/src/api/cardManage/cardManage.js b/src/api/cardManage/cardManage.js index ab88106..0995fce 100644 --- a/src/api/cardManage/cardManage.js +++ b/src/api/cardManage/cardManage.js @@ -39,7 +39,7 @@ export default { }) }, - // 导出提货卡报表 + // 导出企业卡报表 empCardStatisticsListExport: function(data) { return request({ url: '/empcard/empCardStatisticsListExport', @@ -53,4 +53,29 @@ export default { }, + // 查询福利卡分页列表 + empCardGiftStatisticsList: function(params) { + return request({ + url: '/empcardgift/empCardGiftStatisticsList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 导出福礼卡报表 + empCardStatisticsListExport: function(data) { + return request({ + url: '/empcard/empCardStatisticsListExport', + method: 'post', + responseType: 'blob', // 表明返回服务器返回的数据类型 + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + } \ No newline at end of file diff --git a/src/api/commodity/commodity.js b/src/api/commodity/commodity.js index 09a1be0..69419d2 100644 --- a/src/api/commodity/commodity.js +++ b/src/api/commodity/commodity.js @@ -36,6 +36,18 @@ export default { }); }, + // 修改商品是否属于小程序状态 + updateAppletUseTo: function(sid,isEnable) { + return request({ + url: '/lpkgoods/appletUseTo/'+sid+"/"+isEnable + }); + }, + // 修改上架/下架状态 + updateIsEnable: function(sid,isEnable) { + return request({ + url: '/lpkgoods/appletGrounding/'+sid+"/"+isEnable + }); + }, } diff --git a/src/api/marketingCard/marketingCard.js b/src/api/marketingCard/marketingCard.js index 4571926..04e6af3 100644 --- a/src/api/marketingCard/marketingCard.js +++ b/src/api/marketingCard/marketingCard.js @@ -130,5 +130,43 @@ export default { }); }, + + + // 小程序礼包 + // 获取礼包列表 + appletGiftBagListPage: function(data) { + return request({ + url: '/appletgiftbag/giftBagListPage', + method: 'post', + data: data + }); + }, + + + // 修改小程序礼包上架/下架状态 + updateAppletgiftbagState: function(sid,isEnable) { + return request({ + url: '/appletgiftbag/isGrounding//'+sid+"/"+isEnable + }); + }, + + // 新增、保存礼包 + saveAppletGiftBag: function(data) { + return request({ + url: '/appletgiftbag/saveGiftBag', + method: 'post', + data: data + }); + }, + + // 初始化礼包 + AppletGiftBagInit: function(data) { + return request({ + url: '/lpkgiftbag/giftBagInit/'+data, + method: 'get' + }); + }, + + } diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 8a8bc08..b479efc 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -58,6 +58,16 @@ name: "/marketingCard", path: "/marketingCard", children: [ + { + alwaysShow: true, + component: "index", + meta: { + icon: "el-icon-help", + title: "小程序礼包设置", + }, + name: "/marketingCard/applet", + path: "/marketingCard/applet", + }, { alwaysShow: true, @@ -75,7 +85,7 @@ component: "pickupCardSet", meta: { icon: "el-icon-help", - title: "提货卡设置", + title: "个人卡设置", }, name: "/marketingCard/pickupCardSet", path: "/marketingCard/pickupCardSet", @@ -122,18 +132,18 @@ name: "/cardManage", path: "/cardManage", children: [ - + { alwaysShow: true, component: "person", meta: { icon: "el-icon-help", - title: "提货卡统计", + title: "个人卡统计", }, name: "/cardManage/person", path: "/cardManage/person", }, - + { alwaysShow: true, component: "enterprise", @@ -143,6 +153,15 @@ }, name: "/cardManage/enterprise", path: "/cardManage/enterprise", + }, { + alwaysShow: true, + component: "giftCard", + meta: { + icon: "el-icon-help", + title: "福利卡统计", + }, + name: "/cardManage/giftCard", + path: "/cardManage/giftCard", }, ] }, @@ -177,127 +196,127 @@ path: "/commodity/index" }, - {alwaysShow: true, - component: "order", - meta: { - icon: "el-icon-menu", - title: "订单管理", - }, - name: "/order", - path: "/order", - children: [ - { - alwaysShow: true, - component: "index", - meta: { - icon: "el-icon-help", - title: "订单统计", - }, - name: "/order/index", - path: "/order/index", + { + alwaysShow: true, + component: "order", + meta: { + icon: "el-icon-menu", + title: "订单管理", }, - { - alwaysShow: true, - component: "distributionCount", - meta: { - icon: "el-icon-help", - title: "网点配货统计", + name: "/order", + path: "/order", + children: [{ + alwaysShow: true, + component: "index", + meta: { + icon: "el-icon-help", + title: "订单统计", + }, + name: "/order/index", + path: "/order/index", }, - name: "/order/distributionCount", - path: "/order/distributionCount", - }, - { - alwaysShow: true, - component: "subBranch", - meta: { - icon: "el-icon-help", - title: "支行配货统计", + { + alwaysShow: true, + component: "distributionCount", + meta: { + icon: "el-icon-help", + title: "网点配货统计", + }, + name: "/order/distributionCount", + path: "/order/distributionCount", }, - name: "/order/subBranch", - path: "/order/subBranch", - }, - { - alwaysShow: true, - component: "allDistributionCount", - meta: { - icon: "el-icon-help", - title: "总配货统计", + { + alwaysShow: true, + component: "subBranch", + meta: { + icon: "el-icon-help", + title: "支行配货统计", + }, + name: "/order/subBranch", + path: "/order/subBranch", + }, + { + alwaysShow: true, + component: "allDistributionCount", + meta: { + icon: "el-icon-help", + title: "总配货统计", + }, + name: "/order/allDistributionCount", + path: "/order/allDistributionCount", }, - name: "/order/allDistributionCount", - path: "/order/allDistributionCount", - }, - - ] - }, - // { - // alwaysShow: true, - // component: "order", - // meta: { - // icon: "el-icon-menu", - // title: "订单信息", - // }, - // name: "/order/index", - // path: "/order/index" - // }, - { - alwaysShow: true, - component: "print", - meta: { - icon: "el-icon-menu", - title: "打印电子卡", + ] }, - name: "/print/index", - path: "/print/index" - } - - // { - // alwaysShow: true, - // component: "statisticalReport", - // meta: { - // icon: "el-icon-menu", - // title: "统计报表", - // }, - // name: "/statisticalReport/index", - // path: "/statisticalReport/index", - // children: [ - // { - // alwaysShow: true, - // component: "index", - // meta: { - // icon: "el-icon-help", - // title: "提货卡汇总", - // }, - // name: "/statisticalReport/index", - // path: "/statisticalReport/index", - // }, - // { - // alwaysShow: true, - // component: "collectionSummary", - // meta: { - // icon: "el-icon-help", - // title: "提货汇总", - // }, - // name: "/statisticalReport/collectionSummary", - // path: "/statisticalReport/collectionSummary", - // }, - // { - // alwaysShow: true, - // component: "deliveryDetails", - // meta: { - // icon: "el-icon-help", - // title: "客户提货明细", - // }, - // name: "/statisticalReport/deliveryDetails", - // path: "/statisticalReport/deliveryDetails", - // }, - // ] - // }, - ], - }; - }, - computed: { + // { + // alwaysShow: true, + // component: "order", + // meta: { + // icon: "el-icon-menu", + // title: "订单信息", + // }, + // name: "/order/index", + // path: "/order/index" + // }, + { + alwaysShow: true, + component: "print", + meta: { + icon: "el-icon-menu", + title: "打印电子卡", + }, + name: "/print/index", + path: "/print/index" + } + + // { + // alwaysShow: true, + // component: "statisticalReport", + // meta: { + // icon: "el-icon-menu", + // title: "统计报表", + // }, + // name: "/statisticalReport/index", + // path: "/statisticalReport/index", + // children: [ + + // { + // alwaysShow: true, + // component: "index", + // meta: { + // icon: "el-icon-help", + // title: "提货卡汇总", + // }, + // name: "/statisticalReport/index", + // path: "/statisticalReport/index", + // }, + // { + // alwaysShow: true, + // component: "collectionSummary", + // meta: { + // icon: "el-icon-help", + // title: "提货汇总", + // }, + // name: "/statisticalReport/collectionSummary", + // path: "/statisticalReport/collectionSummary", + // }, + // { + // alwaysShow: true, + // component: "deliveryDetails", + // meta: { + // icon: "el-icon-help", + // title: "客户提货明细", + // }, + // name: "/statisticalReport/deliveryDetails", + // path: "/statisticalReport/deliveryDetails", + // }, + // ] + // }, + ], + }; + }, + computed: { ...mapGetters(["sidebar"]), // routes() { // f4d2e507-c4ed-451c-b364-04c08f962045 diff --git a/src/router/index.js b/src/router/index.js index 4e8abea..db2ee70 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,294 +9,313 @@ import Layout from '@/layout' import codemenu from './modules/codemenu' -export const constantRoutes = [ - { - path: '/', - redirect: 'login' - }, - { - path: '/login', - component: () => import('@/views/login/login.vue'), - name: 'login' - - }, - - - // { - // path: '/', - // redirect: 'userInfo/index' - // }, - // { - // path: '/index', - // component: () => import('@/views/userInfo/index.vue'), - // name: 'index' - - // }, - - { - path: '/index', - component: Layout, - redirect: '/index', - children: [{ - path: '/index', - component: () => - import('@/views/index.vue'), - name: 'index', - meta: { - title: '主页', - noCache: true, - affix: true - } - }] - }, - - - { - path: '/userInfo', - component: Layout, - redirect: null, - meta: { - title: '用户信息' - }, - children: [{ - path: '/userInfo/index', - component: () => - import('@/views/userInfo/index.vue'), - name: 'index', - meta: { - title: '用户信息列表' - } - }, - ] - }, { - path: '/marketingCard', - component: Layout, - redirect: '/marketingCard/index', - children: [{ - path: '/marketingCard/index', - component: () => import('@/views/marketingCard/index.vue'), - name: 'index', - meta: { - title: '礼包设置', - noCache: true - } - }, - - { - path: '/marketingCard/pickupCardSet', - component: () => import('@/views/marketingCard/pickupCardSet.vue'), - name: 'pickupCardSet', - meta: { - title: '提货卡设置', - noCache: true - } +export const constantRoutes = [{ + path: '/', + redirect: 'login' }, { - path: '/marketingCard/corporateCardSet', - component: () => import('@/views/marketingCard/corporateCardSet.vue'), - name: 'corporateCardSet', - meta: { - title: '企业卡设置', - noCache: true - } + path: '/login', + component: () => import('@/views/login/login.vue'), + name: 'login' + }, + + // { - // path: '/marketingCard/grantRecords', - // component: () => import('@/views/marketingCard/grantRecords.vue'), - // name: 'grantRecords', - // meta: { - // title: '发放记录', - // noCache: true - // } - // }, - // { - // path: '/marketingCard/carList', - // component: () => import('@/views/marketingCard/carList.vue'), - // name: 'carList', - // meta: { - // title: '提货卡列表', - // noCache: true - // } + // path: '/', + // redirect: 'userInfo/index' // }, - ] - },{ - path: '/cardManage', - component: Layout, - redirect: '/cardManage/person', - children: [{ - path: '/cardManage/person', - component: () => import('@/views/cardManage/person.vue'), - name: 'person', - meta: { - title: '提货卡统计', - noCache: true - } - }, - + // { + // path: '/index', + // component: () => import('@/views/userInfo/index.vue'), + // name: 'index' + + // }, + + { + path: '/index', + component: Layout, + redirect: '/index', + children: [{ + path: '/index', + component: () => + import('@/views/index.vue'), + name: 'index', + meta: { + title: '主页', + noCache: true, + affix: true + } + }] + }, + + + { + path: '/userInfo', + component: Layout, + redirect: null, + meta: { + title: '用户信息' + }, + children: [{ + path: '/userInfo/index', + component: () => + import('@/views/userInfo/index.vue'), + name: 'index', + meta: { + title: '用户信息列表' + } + }, ] + }, { + path: '/marketingCard', + component: Layout, + redirect: '/marketingCard/applet', + children: [ + + { + path: '/marketingCard/applet', + component: () => import('@/views/marketingCard/applet.vue'), + name: 'applet', + meta: { + title: '小程序礼包设置', + noCache: true + } + }, { + path: '/marketingCard/index', + component: () => import('@/views/marketingCard/index.vue'), + name: 'index', + meta: { + title: '礼包设置', + noCache: true + } + }, + + { + path: '/marketingCard/pickupCardSet', + component: () => import('@/views/marketingCard/pickupCardSet.vue'), + name: 'pickupCardSet', + meta: { + title: '个人卡设置', + noCache: true + } + }, + { + path: '/marketingCard/corporateCardSet', + component: () => import('@/views/marketingCard/corporateCardSet.vue'), + name: 'corporateCardSet', + meta: { + title: '企业卡设置', + noCache: true + } + }, + // { + // path: '/marketingCard/grantRecords', + // component: () => import('@/views/marketingCard/grantRecords.vue'), + // name: 'grantRecords', + // meta: { + // title: '发放记录', + // noCache: true + // } + // }, + // { + // path: '/marketingCard/carList', + // component: () => import('@/views/marketingCard/carList.vue'), + // name: 'carList', + // meta: { + // title: '提货卡列表', + // noCache: true + // } + // }, + ] + }, { + path: '/cardManage', + component: Layout, + redirect: '/cardManage/person', + children: [{ + path: '/cardManage/person', + component: () => import('@/views/cardManage/person.vue'), + name: 'person', + meta: { + title: '个人卡统计', + noCache: true + } + }, + + { + path: '/cardManage/enterprise', + component: () => import('@/views/cardManage/enterprise.vue'), + name: 'enterprise', + meta: { + title: '企业卡统计', + noCache: true + } + }, + { + path: '/cardManage/giftCard', + component: () => import('@/views/cardManage/giftCard.vue'), + name: 'giftCard', + meta: { + title: '福利卡统计', + noCache: true + } + }, + ] + }, { + path: '/pickupPoint', + component: Layout, + redirect: '/pickupPoint/index', + children: [{ + path: '/pickupPoint/index', + component: () => + import('@/views/pickupPoint/index.vue'), + name: 'index', + meta: { + title: '提货点信息' + } + }, ] + }, { - path: '/cardManage/enterprise', - component: () => import('@/views/cardManage/enterprise.vue'), - name: 'enterprise', - meta: { - title: '企业卡统计', - noCache: true - } + path: '/network', + component: Layout, + redirect: '/network/index', + children: [{ + path: '/network/index', + component: () => + import('@/views/network/index.vue'), + name: 'index', + meta: { + title: '支行管理' + } + }, ] + }, + + { + path: '/commodity', + component: Layout, + redirect: '/commodity/index', + children: [{ + path: '/commodity/index', + component: () => + import('@/views/commodity/index.vue'), + name: 'index', + meta: { + title: '商品信息' + } + }, ] }, - ] - },{ - path: '/pickupPoint', - component: Layout, - redirect: '/pickupPoint/index', - children: [{ - path: '/pickupPoint/index', - component: () => - import('@/views/pickupPoint/index.vue'), - name: 'index', - meta: { - title: '提货点信息' - } - },] - }, - { - path: '/network', - component: Layout, - redirect: '/network/index', - children: [{ - path: '/network/index', - component: () => - import('@/views/network/index.vue'), - name: 'index', - meta: { - title: '支行管理' - } - },] - }, - - { - path: '/commodity', - component: Layout, - redirect: '/commodity/index', - children: [{ - path: '/commodity/index', - component: () => - import('@/views/commodity/index.vue'), - name: 'index', - meta: { - title: '商品信息' - } - },] - }, - { - path: '/order', - component: Layout, - redirect: '/order/index', - children: [{ - path: '/order/index', - component: () => - import('@/views/order/index.vue'), - name: 'index', - meta: { - title: '订单统计' - } - },{ - path: '/order/distributionCount', - component: () => - import('@/views/order/distributionCount.vue'), - name: 'distributionCount', - meta: { - title: '网点配货统计' - } - },{ - path: '/order/subBranch', - component: () => - import('@/views/order/subBranch.vue'), - name: 'subBranch', - meta: { - title: '支行配货统计' - } - }, - { - path: '/order/allDistributionCount', - component: () => - import('@/views/order/allDistributionCount.vue'), - name: 'allDistributionCount', - meta: { - title: '总配货统计' - } - }] - },{ - path: '/statisticalReport', - component: Layout, - redirect: '/statisticalReport/index', - children: [{ - path: '/statisticalReport/index', - component: () => import('@/views/statisticalReport/index.vue'), - name: 'index', - meta: { - title: '提货卡汇总', - noCache: true - } - }, { - path: '/statisticalReport/collectionSummary', - component: () => import('@/views/statisticalReport/collectionSummary.vue'), - name: 'collectionSummary', - meta: { - title: '提货汇总', - noCache: true - } + path: '/order', + component: Layout, + redirect: '/order/index', + children: [{ + path: '/order/index', + component: () => + import('@/views/order/index.vue'), + name: 'index', + meta: { + title: '订单统计' + } + }, { + path: '/order/distributionCount', + component: () => + import('@/views/order/distributionCount.vue'), + name: 'distributionCount', + meta: { + title: '网点配货统计' + } + }, { + path: '/order/subBranch', + component: () => + import('@/views/order/subBranch.vue'), + name: 'subBranch', + meta: { + title: '支行配货统计' + } + }, + { + path: '/order/allDistributionCount', + component: () => + import('@/views/order/allDistributionCount.vue'), + name: 'allDistributionCount', + meta: { + title: '总配货统计' + } + } + ] + }, { + path: '/statisticalReport', + component: Layout, + redirect: '/statisticalReport/index', + children: [{ + path: '/statisticalReport/index', + component: () => import('@/views/statisticalReport/index.vue'), + name: 'index', + meta: { + title: '提货卡汇总', + noCache: true + } + }, + { + path: '/statisticalReport/collectionSummary', + component: () => import('@/views/statisticalReport/collectionSummary.vue'), + name: 'collectionSummary', + meta: { + title: '提货汇总', + noCache: true + } + }, + { + path: '/statisticalReport/deliveryDetails', + component: () => import('@/views/statisticalReport/deliveryDetails.vue'), + name: 'deliveryDetails', + meta: { + title: '客户提货明细', + noCache: true + } + } + ] }, { - path: '/statisticalReport/deliveryDetails', - component: () => import('@/views/statisticalReport/deliveryDetails.vue'), - name: 'deliveryDetails', - meta: { - title: '客户提货明细', - noCache: true - } - }] - }, - { - path: '/print', - component: Layout, - redirect: '/print/index', - children: [{ - path: '/print/index', - component: () => - import('@/views/print/index.vue'), - name: 'index', - meta: { - title: '打印电子卡' - } - },] - }, - + path: '/print', + component: Layout, + redirect: '/print/index', + children: [{ + path: '/print/index', + component: () => + import('@/views/print/index.vue'), + name: 'index', + meta: { + title: '打印电子卡' + } + }, ] + }, + - ...codemenu, - { - path: '/404', - component: () => - import('@/views/404'), - hidden: true - } - // 404 page must be placed at the end !!! - // { path: '*', redirect: '/404', hidden: true } + ...codemenu, + { + path: '/404', + component: () => + import('@/views/404'), + hidden: true + } + // 404 page must be placed at the end !!! + // { path: '*', redirect: '/404', hidden: true } ] const createRouter = () => new Router({ - // mode: 'history', // require service support - scrollBehavior: () => ({ - y: 0 - }), - routes: constantRoutes + // mode: 'history', // require service support + scrollBehavior: () => ({ + y: 0 + }), + routes: constantRoutes }) const router = createRouter() // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465 export function resetRouter() { - const newRouter = createRouter() - router.matcher = newRouter.matcher // reset router + const newRouter = createRouter() + router.matcher = newRouter.matcher // reset router } -export default router +export default router \ No newline at end of file diff --git a/src/views/cardManage/giftCard.vue b/src/views/cardManage/giftCard.vue new file mode 100644 index 0000000..7330b27 --- /dev/null +++ b/src/views/cardManage/giftCard.vue @@ -0,0 +1,308 @@ + + + + \ No newline at end of file diff --git a/src/views/commodity/commodityAdd.vue b/src/views/commodity/commodityAdd.vue index 8f62ac3..260b63e 100644 --- a/src/views/commodity/commodityAdd.vue +++ b/src/views/commodity/commodityAdd.vue @@ -31,18 +31,30 @@ oninput="value=value.replace(/[^0-9]/g,'')" />
- 价格: + 单价:
- 单位: - + 标准单位: +
- 备注: + 规格单位: + +
+
+ 每份数量: + +
+
+ 标准规格:
+
+ 商品介绍: + +
图片: @@ -87,7 +99,10 @@ barcode: '', price: "", unitName: "", + specificationUnit:"", + weight:"", remarks: "", + content: "", picUrl: "", appContent: '' }, @@ -136,8 +151,12 @@ barcode: '', price: "", unitName: "", + specificationUnit:"", + weight:"", remarks: "", - picUrl: "" + content: "", + picUrl: "", + appContent: '' } this.$emit('doback') }, diff --git a/src/views/commodity/index.vue b/src/views/commodity/index.vue index b696c70..78ff90a 100644 --- a/src/views/commodity/index.vue +++ b/src/views/commodity/index.vue @@ -35,9 +35,33 @@ + + + + + +