From 5622b0d02d632c30049592be42e056194bfdbd3e Mon Sep 17 00:00:00 2001 From: "DESKTOP-GMUNQ1B\\k" <1154079537@qq.com> Date: Wed, 24 Apr 2024 09:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 12 + package.json | 1 + src/App.vue | 66 +-- src/api/cate_time.ts | 21 + src/api/merchant.ts | 47 +- src/api/monitor.ts | 31 ++ src/api/store_condition.ts | 26 ++ .../default/components/header/download.vue | 64 +++ .../default/components/header/index.vue | 96 ++-- .../default/components/header/notice.vue | 58 +++ src/main.ts | 4 + src/views/classify_time/edit.vue | 151 ++++++ src/views/classify_time/index.vue | 133 ++++++ src/views/merchant/edit.vue | 221 +++++---- src/views/merchant/index.vue | 430 +++++++++++++++--- src/views/monitor/edit.vue | 342 ++++++++++++++ src/views/monitor/index.vue | 259 +++++++++++ src/views/record/edit.vue | 296 +++++++----- src/views/record/index.vue | 309 ++++++++----- src/views/store_condition/edit.vue | 342 ++++++++++++++ src/views/store_condition/index.vue | 259 +++++++++++ src/views/workbench/index.vue | 213 +++++---- 22 files changed, 2823 insertions(+), 558 deletions(-) create mode 100644 src/api/cate_time.ts create mode 100644 src/api/monitor.ts create mode 100644 src/api/store_condition.ts create mode 100644 src/layout/default/components/header/download.vue create mode 100644 src/layout/default/components/header/notice.vue create mode 100644 src/views/classify_time/edit.vue create mode 100644 src/views/classify_time/index.vue create mode 100644 src/views/monitor/edit.vue create mode 100644 src/views/monitor/index.vue create mode 100644 src/views/store_condition/edit.vue create mode 100644 src/views/store_condition/index.vue diff --git a/package-lock.json b/package-lock.json index f99e3af..7c9bebd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "echarts": "^5.3.3", "element-plus": "2.2.27", "highlight.js": "^11.6.0", + "mitt": "^3.0.1", "nprogress": "^0.2.0", "pinia": "^2.0.14", "vue": "^3.2.37", @@ -5655,6 +5656,12 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://mirrors.huaweicloud.com/repository/npm/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, "node_modules/mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmmirror.com/mixin-deep/-/mixin-deep-1.3.2.tgz", @@ -13509,6 +13516,11 @@ "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", "dev": true }, + "mitt": { + "version": "3.0.1", + "resolved": "https://mirrors.huaweicloud.com/repository/npm/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==" + }, "mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmmirror.com/mixin-deep/-/mixin-deep-1.3.2.tgz", diff --git a/package.json b/package.json index 7f9f132..fc7c807 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "echarts": "^5.3.3", "element-plus": "2.2.27", "highlight.js": "^11.6.0", + "mitt": "^3.0.1", "nprogress": "^0.2.0", "pinia": "^2.0.14", "vue": "^3.2.37", diff --git a/src/App.vue b/src/App.vue index b9f6fca..86239ac 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,46 +1,46 @@ diff --git a/src/api/cate_time.ts b/src/api/cate_time.ts new file mode 100644 index 0000000..d263e35 --- /dev/null +++ b/src/api/cate_time.ts @@ -0,0 +1,21 @@ +import request from '@/utils/request'; + +// 分类定时列表 +export function cateTimeListsApi(params: any) { + return request.get({ url: '/cate.cate_time/lists', params }) +} + +// 分类定时添加 +export function cateTimeAddApi(params: any) { + return request.post({ url: '/cate.cate_time/add', params }) +} + +// 分类定时修改 +export function cateTimeEditApi(params: any) { + return request.post({ url: '/cate.cate_time/edit', params }) +} + +// 分类定时删除 +export function cateTimeDelApi(params: any) { + return request.post({ url: '/cate.cate_time/delete', params }) +} diff --git a/src/api/merchant.ts b/src/api/merchant.ts index f36a46b..a2a3114 100644 --- a/src/api/merchant.ts +++ b/src/api/merchant.ts @@ -5,6 +5,11 @@ export function merchantList(params: any) { return request.get({ url: '/merchant.merchant/lists', params }) } +// 商户列表----无分页 +export function merchantListNoPage(params: any) { + return request.get({ url: '/merchant.merchant/merchantList', params }) +} + // 修改商户相关信息 export function merchantUpdate(params: any) { return request.post({ url: '/merchant.merchant/changeMerchant', params }) @@ -15,12 +20,16 @@ export function merchantDetail(params: any) { return request.post({ url: '/merchant.merchant/detail', params }) } - // 获取记录人 子管理员 export function childManagement(params: any) { return request.get({ url: '/record.record/info', params }) } +// 获取记录人 子管理员 +export function recordManApi(params: any) { + return request.get({ url: '/merchant.merchant/recordMan', params }) +} + // 商户管理员绑定 export function merchantBind(params: any) { return request.post({ url: '/merchant.merchant/merchantPermision', params }) @@ -36,3 +45,39 @@ export function storeSuper(params: any) { return request.post({ url: '/merchant.merchant/storeSuper', params }) } + +// 保存督导 +export function saveConditionApi(params: any) { + return request.get({ url: '/store.store_condition/saveCondition', params }) +} + +// 消息列表 +export function newList(params: any) { + return request.get({ url: '/new.new/lists', params }) +} + +// excel 导出 +export function excelListApi(params: any) { + return request.get({ url: '/merchant.merchant/excelList', params }) +} + +// excel 预下载 +export function excelApi(params: any) { + return request.get({ url: '/merchant.merchant/excel', params }) +} + +// 商户分类 +export function merchantCategoryApi(params: any) { + return request.get({ url: '/merchant.merchant/merchantCategory', params }) +} + + +// 区域分类 +export function merchantAreaListApi(params: any) { + return request.get({ url: '/merchant.merchant/AreatList', params }) +} + +// 镇街道 +export function streetListApi(params: any) { + return request.get({ url: '/merchant.merchant/streetList', params }) +} diff --git a/src/api/monitor.ts b/src/api/monitor.ts new file mode 100644 index 0000000..34bd7cc --- /dev/null +++ b/src/api/monitor.ts @@ -0,0 +1,31 @@ +import request from '@/utils/request'; + +// 督导列表 +export function monitorListApi(params: any) { + return request.get({ url: '/store.store_condition/lists', params }) +} + +// 督导添加 +export function monitorAddApi(params: any) { + return request.post({ url: '/store.store_condition/add', params }) +} + +// 督导修改 +export function monitorEditApi(params: any) { + return request.post({ url: '/store.store_condition/edit', params }) +} + +// 督导删除 +export function monitorDelApi(params: any) { + return request.post({ url: '/store.store_condition/delete', params }) +} + +// 督导详情by id +export function monitorDetailApi(params: any) { + return request.get({ url: '/store.store_condition/detail', params }) +} + +// 督导详情by mer_id +export function monitorByMerIdApi(params: any) { + return request.get({ url: '/store.store_condition/merchantDetail', params }) +} diff --git a/src/api/store_condition.ts b/src/api/store_condition.ts new file mode 100644 index 0000000..2206c47 --- /dev/null +++ b/src/api/store_condition.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 店铺督促表列表 +export function apiStoreConditionLists(params: any) { + return request.get({ url: '/store.store_condition/lists', params }) +} + +// 添加店铺督促表 +export function apiStoreConditionAdd(params: any) { + return request.post({ url: '/store.store_condition/add', params }) +} + +// 编辑店铺督促表 +export function apiStoreConditionEdit(params: any) { + return request.post({ url: '/store.store_condition/edit', params }) +} + +// 删除店铺督促表 +export function apiStoreConditionDelete(params: any) { + return request.post({ url: '/store.store_condition/delete', params }) +} + +// 店铺督促表详情 +export function apiStoreConditionDetail(params: any) { + return request.get({ url: '/store.store_condition/detail', params }) +} \ No newline at end of file diff --git a/src/layout/default/components/header/download.vue b/src/layout/default/components/header/download.vue new file mode 100644 index 0000000..794db35 --- /dev/null +++ b/src/layout/default/components/header/download.vue @@ -0,0 +1,64 @@ + + + diff --git a/src/layout/default/components/header/index.vue b/src/layout/default/components/header/index.vue index 3f6d839..835fabc 100644 --- a/src/layout/default/components/header/index.vue +++ b/src/layout/default/components/header/index.vue @@ -1,55 +1,65 @@ diff --git a/src/layout/default/components/header/notice.vue b/src/layout/default/components/header/notice.vue new file mode 100644 index 0000000..5938ddb --- /dev/null +++ b/src/layout/default/components/header/notice.vue @@ -0,0 +1,58 @@ + + + diff --git a/src/main.ts b/src/main.ts index 79cae31..08ccdb2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,7 +4,11 @@ import install from './install' import './permission' import './styles/index.scss' import 'virtual:svg-icons-register' +import mitt from 'mitt'; + const app = createApp(App) +app.config.globalProperties.$mitt = mitt(); + app.use(install) app.mount('#app') diff --git a/src/views/classify_time/edit.vue b/src/views/classify_time/edit.vue new file mode 100644 index 0000000..84aef26 --- /dev/null +++ b/src/views/classify_time/edit.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/src/views/classify_time/index.vue b/src/views/classify_time/index.vue new file mode 100644 index 0000000..e517660 --- /dev/null +++ b/src/views/classify_time/index.vue @@ -0,0 +1,133 @@ + + + diff --git a/src/views/merchant/edit.vue b/src/views/merchant/edit.vue index af0845f..65f82b7 100644 --- a/src/views/merchant/edit.vue +++ b/src/views/merchant/edit.vue @@ -1,123 +1,170 @@ @@ -765,7 +1056,7 @@ getMerchantCate(); margin-bottom: 10px; } .el-row { - height: 70vh; + max-height: 70vh; overflow: auto; } @@ -775,4 +1066,11 @@ getMerchantCate(); .el-input-number { width: 100%; } +.el-dropdown { + margin-left: 12px; + vertical-align: middle; +} +.el-table__expanded-cell { + background: #efefef; +} diff --git a/src/views/monitor/edit.vue b/src/views/monitor/edit.vue new file mode 100644 index 0000000..7bada61 --- /dev/null +++ b/src/views/monitor/edit.vue @@ -0,0 +1,342 @@ + + + + + diff --git a/src/views/monitor/index.vue b/src/views/monitor/index.vue new file mode 100644 index 0000000..bd53035 --- /dev/null +++ b/src/views/monitor/index.vue @@ -0,0 +1,259 @@ + + + diff --git a/src/views/record/edit.vue b/src/views/record/edit.vue index 3a57ce7..8d15a71 100644 --- a/src/views/record/edit.vue +++ b/src/views/record/edit.vue @@ -1,159 +1,217 @@ diff --git a/src/views/record/index.vue b/src/views/record/index.vue index 559b16e..edfd793 100644 --- a/src/views/record/index.vue +++ b/src/views/record/index.vue @@ -1,151 +1,238 @@ diff --git a/src/views/store_condition/edit.vue b/src/views/store_condition/edit.vue new file mode 100644 index 0000000..7bada61 --- /dev/null +++ b/src/views/store_condition/edit.vue @@ -0,0 +1,342 @@ + + + + + diff --git a/src/views/store_condition/index.vue b/src/views/store_condition/index.vue new file mode 100644 index 0000000..bd53035 --- /dev/null +++ b/src/views/store_condition/index.vue @@ -0,0 +1,259 @@ + + + diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue index b49e083..a2f00d2 100644 --- a/src/views/workbench/index.vue +++ b/src/views/workbench/index.vue @@ -1,119 +1,136 @@