From 054258a4504552af4d88e938a6263ace2f579934 Mon Sep 17 00:00:00 2001 From: yaosen <741606767@qq.com> Date: Fri, 28 Jun 2024 17:30:56 +0800 Subject: [PATCH] a --- .idea/inspectionProfiles/Project_Default.xml | 6 + admin/src/router/index.js | 97 ++-- .../dashboard/admin/components/PanelGroup.vue | 10 +- admin/src/views/order/abandoned.vue | 535 +++++++++++++++++ admin/src/views/order/used.vue | 538 ++++++++++++++++++ admin/src/views/qa/problem.vue | 306 +++++----- admin/src/views/qa/qa.vue | 42 +- .../app/admin/controller/IndexController.php | 72 ++- .../app/admin/controller/OrderController.php | 18 +- service/app/admin/controller/QaController.php | 49 +- service/app/model/Orders.php | 8 +- service/app/model/QaQuestions.php | 8 + service/app/model/Qas.php | 5 + 13 files changed, 1448 insertions(+), 246 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 admin/src/views/order/abandoned.vue create mode 100644 admin/src/views/order/used.vue create mode 100644 service/app/model/QaQuestions.php diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..03d9549e --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/admin/src/router/index.js b/admin/src/router/index.js index 56f77af6..49102804 100644 --- a/admin/src/router/index.js +++ b/admin/src/router/index.js @@ -162,12 +162,21 @@ export const asyncRoutes = [ } }, { - path: 'product', - component: () => import('@/views/order/product'), - name: 'productNameList', + path: 'abandoned', + component: () => import('@/views/order/abandoned'), + name: 'OrderBack', meta: { - title: '产品统计', - roles: ['order_pub', 'editor'] + title: '已放弃订单', + roles: ['order_back', 'editor'] + } + }, + { + path: 'used', + component: () => import('@/views/order/used'), + name: 'OrderBack', + meta: { + title: '已使用订单', + roles: ['order_back', 'editor'] } }, ] @@ -198,7 +207,7 @@ export const asyncRoutes = [ component: () => import('@/views/qa/qa.vue'), name: 'qa', meta: { - title: 'QA列表', + title: 'QA管理列表', roles: ['admin'] } }, @@ -207,45 +216,12 @@ export const asyncRoutes = [ component: () => import('@/views/qa/city.vue'), name: 'city', meta: { - title: '城市列表', + title: '城市管理列表', roles: ['admin'] } } ] }, - { - path: '/log', - component: Layout, - redirect: '/log/index', - alwaysShow: true, - name: 'Log', - meta: { - title: '日志记录', - icon: 'nested', - roles: ['follow_index', 'log_index', 'editor'] - }, - children: [ - { - path: 'follow', - component: () => import('@/views/log/follow'), - name: 'Follow', - meta: { - title: '跟进记录', - roles: ['follow_index', 'editor'] - } - }, - { - path: 'index', - component: () => import('@/views/log/index'), - name: 'LogIndex', - meta: { - title: '日志记录', - roles: ['log_index'] - } - } - ] - }, - { path: '/data', component: Layout, @@ -258,6 +234,15 @@ export const asyncRoutes = [ roles: ['data_index'] }, children: [ + { + path: 'product', + component: () => import('@/views/order/product'), + name: 'productNameList', + meta: { + title: '产品统计', + roles: ['order_pub', 'editor'] + } + }, { path: 'index', component: () => import('@/views/data/index'), @@ -295,8 +280,38 @@ export const asyncRoutes = [ } } ] + },{ + path: '/log', + component: Layout, + redirect: '/log/index', + alwaysShow: true, + name: 'Log', + meta: { + title: '日志记录', + icon: 'nested', + roles: ['follow_index', 'log_index', 'editor'] + }, + children: [ + { + path: 'follow', + component: () => import('@/views/log/follow'), + name: 'Follow', + meta: { + title: '跟进记录', + roles: ['follow_index', 'editor'] + } + }, + { + path: 'index', + component: () => import('@/views/log/index'), + name: 'LogIndex', + meta: { + title: '日志记录', + roles: ['log_index'] + } + } + ] }, - { path: '/icon', component: Layout, diff --git a/admin/src/views/dashboard/admin/components/PanelGroup.vue b/admin/src/views/dashboard/admin/components/PanelGroup.vue index 3d99dc0e..ad3834d0 100644 --- a/admin/src/views/dashboard/admin/components/PanelGroup.vue +++ b/admin/src/views/dashboard/admin/components/PanelGroup.vue @@ -104,7 +104,7 @@ - + @@ -221,6 +221,12 @@ export default { this.asset_price = parseFloat(res.data.asset_price)/100 this.refund = parseFloat(res.data.refund) this.refund_price = parseFloat(res.data.refund_price)/100 + this.refund_30 = parseFloat(res.data.refund_30) + this.refund_price_30 = parseFloat(res.data.refund_price_30)/100 + this.refund_60 = parseFloat(res.data.refund_60) + this.refund_price_60 = parseFloat(res.data.refund_price_60)/100 + this.refund_80 = parseFloat(res.data.refund_80) + this.refund_price_80 = parseFloat(res.data.refund_price_80)/100 }).catch(err=>{ console.log(err) }) diff --git a/admin/src/views/order/abandoned.vue b/admin/src/views/order/abandoned.vue new file mode 100644 index 00000000..db50cdb7 --- /dev/null +++ b/admin/src/views/order/abandoned.vue @@ -0,0 +1,535 @@ + + + + + diff --git a/admin/src/views/order/used.vue b/admin/src/views/order/used.vue new file mode 100644 index 00000000..4b18bda3 --- /dev/null +++ b/admin/src/views/order/used.vue @@ -0,0 +1,538 @@ + + + + + diff --git a/admin/src/views/qa/problem.vue b/admin/src/views/qa/problem.vue index 59e3c8d9..0871338b 100644 --- a/admin/src/views/qa/problem.vue +++ b/admin/src/views/qa/problem.vue @@ -1,39 +1,39 @@ @@ -41,60 +41,60 @@ @@ -104,81 +104,81 @@ body{ font-family: PingFang !important; } .infinite-list{ - list-style-type: none; - height: calc(100vh - 154px); - padding: 0; - margin: 0; + list-style-type: none; + height: calc(100vh - 154px); + padding: 0; + margin: 0; } .desc_container{ - - & + .desc_container{ - margin-top: 10px; - padding-top: 10px; - // border-top: 1px solid #333333; - } - .desc_title{ - font-size: 18px; - font-weight: 500; - color: #333333; - line-height: 25px; - margin-bottom: 10px; - } - .desc_content{ - font-size: 14px; - font-weight: 300; - } + + & + .desc_container{ + margin-top: 10px; + padding-top: 10px; + // border-top: 1px solid #333333; + } + .desc_title{ + font-size: 18px; + font-weight: 500; + color: #333333; + line-height: 25px; + margin-bottom: 10px; + } + .desc_content{ + font-size: 14px; + font-weight: 300; + } } .problem{ - .problem_form{ - margin-top: 10px; - display: flex; - justify-content: center; - } - .problem_container{ - display: flex; - .problem_left{ - font-family: PingFang, sans-serif; - font-weight: 300; - width: 18%; - background: #fff; - padding: 0 20px; - border-right: 2px solid #46a6ff; - height: calc(100vh - 154px); - .btn{ - padding: 10px 20px; - cursor: pointer; - text-align: center; - background: #46a6ff; - border-radius: 10px; - & + .btn{ - margin-top: 10px; - } - } - } - .problem_right{ - width: 100%; - background: #fff; - padding: 0 20px; - .problem_right_container{ - & + .problem_right_container{ - margin-top: 20px; - } - .title{ - font-size: 20px; - font-weight: 600; - margin-bottom: 10px; - color: #46a6ff; - &>:nth-child(1){ - margin-right: 40px; - } - } - .desc{ - font-size: 14px; - color: #666; - line-height: 24px; - } - } + .problem_form{ + margin-top: 10px; + display: flex; + justify-content: center; + } + .problem_container{ + display: flex; + .problem_left{ + font-family: PingFang, sans-serif; + font-weight: 300; + width: 18%; + background: #fff; + padding: 0 20px; + border-right: 2px solid #46a6ff; + height: calc(100vh - 154px); + .btn{ + padding: 10px 20px; + cursor: pointer; + text-align: center; + background: #46a6ff; + border-radius: 10px; + & + .btn{ + margin-top: 10px; } + } } + .problem_right{ + width: 100%; + background: #fff; + padding: 0 20px; + .problem_right_container{ + & + .problem_right_container{ + margin-top: 20px; + } + .title{ + font-size: 20px; + font-weight: 600; + margin-bottom: 10px; + color: #46a6ff; + &>:nth-child(1){ + margin-right: 40px; + } + } + .desc{ + font-size: 14px; + color: #666; + line-height: 24px; + } + } + } + } } - \ No newline at end of file + diff --git a/admin/src/views/qa/qa.vue b/admin/src/views/qa/qa.vue index 5ed6228f..9b3d125a 100644 --- a/admin/src/views/qa/qa.vue +++ b/admin/src/views/qa/qa.vue @@ -79,8 +79,8 @@ > - - (请上传zip格式的文件图片) + + (请上传zip格式的文件图片) - - (本行程请上传,ppt,word,pdf格式的文件) + + (本行程请上传,ppt,word,pdf格式的文件)