diff --git a/src/api/business.js b/src/api/business.js index 56643b0..fa056e9 100644 --- a/src/api/business.js +++ b/src/api/business.js @@ -1,9 +1,4 @@ -/* - * @Descripttion: - * @version: - * @Author: kBank - * @Date: 2023-03-21 09:00:28 - */ + import request from '@/utils/request' // 统计 export function getstaAmountBox(params) { diff --git a/src/api/enums.js b/src/api/enums.js new file mode 100644 index 0000000..0f02f8f --- /dev/null +++ b/src/api/enums.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' + +export function getVertexAwardBonusOptions() { + return request({ + url: `/system/pub/enums/vertex-bonus-items`, + method: 'get' + }) +} diff --git a/src/api/financialCase.js b/src/api/financialCase.js index 19341a4..b6a7c61 100644 --- a/src/api/financialCase.js +++ b/src/api/financialCase.js @@ -271,3 +271,11 @@ export function getTreeType(params) { }) } +// 批量驳回 +export function batchReject(data) { + return request({ + url: '/member/manager/withdraw/reject', + method: 'post', + data + }) +} diff --git a/src/api/vertex.js b/src/api/vertex.js new file mode 100644 index 0000000..9854be8 --- /dev/null +++ b/src/api/vertex.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +export function getVertexAwardConfiguration() { + return request({ + url: '/system/manage/vertex-bonus/list', + method: 'get' + }) +} + +export function saveVertexAwardConfiguration(data) { + return request({ + url: '/system/manage/vertex-bonus/save', + method: 'post', + data + }) +} + +export function delVertexAwardConfiguration(pkId) { + return request({ + url: `/system/manage/vertex-bonus/${pkId}`, + method: 'delete' + }) +} + diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index d459c85..793bffe 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -96,7 +96,7 @@ export default { that.getJScountry() // 获取语言列表 that.getLanguages() - that.getSystem() + // that.getSystem() }, 10) this.systemItem = localStorage.getItem('systemItem') || 2 diff --git a/src/router/index.js b/src/router/index.js index 165d6ec..152adc1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -939,37 +939,37 @@ export const constantRoutes = [ meta: { title: '邮费配置' } } ] - }, - { - path: 'productBasicInfo', - name: 'productBasicInfo', - meta: { title: '产品基本信息' }, - component: ParentView, - redirect: 'productBasicInfo/cpfl', - children: [ - { - path: 'productBasicList', - name: 'productBasicList', - component: () => import('@/views/goodsManage/productBasicInfo/productBasicList/index.vue'), - meta: { title: '产品列表' }, - hidden: true - }, - { - path: 'productBasicAdd', - name: 'productBasicAdd', - component: () => import('@/views/goodsManage/productBasicInfo/productBasicAdd/jcsz.vue'), - meta: { title: '产品新增' }, - hidden: true - }, - { - path: 'productBasicDetail', - name: 'productBasicDetail', - component: () => import('@/views/goodsManage/productBasicInfo/productBasicAdd/productDetail.vue'), - // meta: { title: '产品列表'}, - hidden: true - } - ] } + // { + // path: 'productBasicInfo', + // name: 'productBasicInfo', + // meta: { title: '产品基本信息' }, + // component: ParentView, + // redirect: 'productBasicInfo/cpfl', + // children: [ + // { + // path: 'productBasicList', + // name: 'productBasicList', + // component: () => import('@/views/goodsManage/productBasicInfo/productBasicList/index.vue'), + // meta: { title: '产品列表' }, + // hidden: true + // }, + // { + // path: 'productBasicAdd', + // name: 'productBasicAdd', + // component: () => import('@/views/goodsManage/productBasicInfo/productBasicAdd/jcsz.vue'), + // meta: { title: '产品新增' }, + // hidden: true + // }, + // { + // path: 'productBasicDetail', + // name: 'productBasicDetail', + // component: () => import('@/views/goodsManage/productBasicInfo/productBasicAdd/productDetail.vue'), + // // meta: { title: '产品列表'}, + // hidden: true + // } + // ] + // } ] }, @@ -1681,6 +1681,12 @@ export const constantRoutes = [ name: 'GroupConfigurationList', component: () => import('@/views/configManage/systemconfiguration/groupConfiguration'), meta: { title: '区域体系分组' } + }, + { + path: 'vertexAwardConfiguration', + name: 'VertexAwardConfiguration', + component: () => import('@/views/configManage/systemconfiguration/VertexAwardConfiguration'), + meta: { title: '体系奖项配置' } } ] }, diff --git a/src/views/configManage/systemconfiguration/VertexAwardConfiguration.vue b/src/views/configManage/systemconfiguration/VertexAwardConfiguration.vue new file mode 100644 index 0000000..4a3d434 --- /dev/null +++ b/src/views/configManage/systemconfiguration/VertexAwardConfiguration.vue @@ -0,0 +1,330 @@ + + + + + diff --git a/src/views/configManage/systemconfiguration/mixins.js b/src/views/configManage/systemconfiguration/mixins.js index db82f2a..b3e32fa 100644 --- a/src/views/configManage/systemconfiguration/mixins.js +++ b/src/views/configManage/systemconfiguration/mixins.js @@ -8,5 +8,10 @@ export const topList = [ name: '区域体系分组', path: 'groupConfiguration', url: 'GroupConfigurationList' + }, + { + name: '体系奖项配置', + path: 'vertexAwardConfiguration', + url: 'VertexAwardConfiguration' } ] diff --git a/src/views/financial/cashDetails/index.vue b/src/views/financial/cashDetails/index.vue index 3a93d75..112fee9 100644 --- a/src/views/financial/cashDetails/index.vue +++ b/src/views/financial/cashDetails/index.vue @@ -221,7 +221,17 @@ @click="handleExport" > {{ '导出' }} + + 驳回 + +
@@ -457,12 +467,7 @@ prop="payerRemarks" :label="'打款备注'" /> - + + + + + + + + + + 取消 + 确认 + +
@@ -584,6 +618,10 @@ export default { // 折叠搜索框 isActive: false, moren: 'cashDetails', + rejectDialogVisible: false, + rejectForm: { + rejectRemark: '' + }, topList: [ { name: '提现明细', @@ -772,6 +810,35 @@ export default { methods: { isLocals, isLocalSymbol, + saveRejectForm() { + const data = { + idList: this.checkArr, + rejectRemark: this.rejectForm.rejectRemark + } + api.batchReject(data).then((res) => { + if (res.code == 200) { + this.$message({ + message: res.msg, + type: 'success' + }) + this.rejectDialogVisible = false + this.rejectForm.rejectRemark = '' + this.getDataList() + } + }) + }, + batchRejectHandle() { + const canReject = this.checkArrAll.every((item) => item.approveState == 1) + console.log(canReject) + if (!canReject) { + this.$message({ + message: '存在已审核单据,请重新选择', + type: 'warning' + }) + return false + } + this.rejectDialogVisible = true + }, getUserRole() { getRoleMenu('CashDetails').then((res) => { const obj = {} diff --git a/src/views/goodsManage/productBasicInfo/productBasicAdd/jcsz.vue b/src/views/goodsManage/productBasicInfo/productBasicAdd/jcsz.vue deleted file mode 100644 index e18491c..0000000 --- a/src/views/goodsManage/productBasicInfo/productBasicAdd/jcsz.vue +++ /dev/null @@ -1,802 +0,0 @@ - - - - diff --git a/src/views/goodsManage/productBasicInfo/productBasicAdd/productDetail.vue b/src/views/goodsManage/productBasicInfo/productBasicAdd/productDetail.vue deleted file mode 100644 index 2df6f9f..0000000 --- a/src/views/goodsManage/productBasicInfo/productBasicAdd/productDetail.vue +++ /dev/null @@ -1,805 +0,0 @@ - - - - diff --git a/src/views/goodsManage/productBasicInfo/productBasicList/index.vue b/src/views/goodsManage/productBasicInfo/productBasicList/index.vue deleted file mode 100644 index 5d4b544..0000000 --- a/src/views/goodsManage/productBasicInfo/productBasicList/index.vue +++ /dev/null @@ -1,531 +0,0 @@ - - - - - diff --git a/src/views/settlementCenter/bonusDetail/index.vue b/src/views/settlementCenter/bonusDetail/index.vue index 529346b..2433a1e 100644 --- a/src/views/settlementCenter/bonusDetail/index.vue +++ b/src/views/settlementCenter/bonusDetail/index.vue @@ -211,11 +211,18 @@ /> + +