Commit 22e2686e by 前端

Merge branch 'dev_v4.35.0-0305' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into dev_v4.35.0-0305
2 parents 6cf8eb38 d950c91e
Showing 26 changed files with 1281 additions and 207 deletions
...@@ -72,3 +72,9 @@ export function getNoRelateStaffListApi(data) { ...@@ -72,3 +72,9 @@ export function getNoRelateStaffListApi(data) {
data.method = `${path}staff.mentorPerformanceConfig.listAvailableStudent` data.method = `${path}staff.mentorPerformanceConfig.listAvailableStudent`
return request(data, 'post') return request(data, 'post')
} }
// 根据园区店商户号获取不同场景下的4S店
export function getMerchantStoreApi(data) {
data.method = "dj.api.scenemerchantref.query4SRefByYqShop"
return request(data, "post")
}
import request from "./request"
// 获取店面目标列表
export function getStoreTargetListApi(data) {
data.method = 'dj.smartcarlife.api.yqPartnerMerchant.ref.page'
return request(data, 'post')
}
// 获取员工任务列表
export function getStaffTaskListApi(data) {
data.method = 'dj.smartcarlife.api.yqPartnerMerchant.ref.page'
return request(data, 'post')
}
// 获取员工任务详情
export function getStaffTaskDetailApi(data) {
data.method = 'dj.smartcarlife.api.yqPartnerMerchant.ref.page'
return request(data, 'post')
}
\ No newline at end of file \ No newline at end of file
...@@ -319,6 +319,7 @@ export default { ...@@ -319,6 +319,7 @@ export default {
} }
this.total = res.total this.total = res.total
this.loading = false this.loading = false
this.$emit('setTableFinishFun', this.data)
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })
......
...@@ -767,7 +767,7 @@ export const routerName = { ...@@ -767,7 +767,7 @@ export const routerName = {
path: "/staffManage", path: "/staffManage",
name: "staffManage", name: "staffManage",
meta: { meta: {
title: "商学院管理", title: "驻店工资绩效",
authId: "90621", authId: "90621",
parentId: "906", parentId: "906",
cache: false cache: false
...@@ -817,13 +817,13 @@ export const routerName = { ...@@ -817,13 +817,13 @@ export const routerName = {
{ {
authId: "9062105", authId: "9062105",
parentId: "90621", parentId: "90621",
label: "启用商学院", label: "启用工资绩效",
handle: "handleEnableOrDisable", handle: "handleEnableOrDisable",
ruleObj: { ruleObj: {
attr: "businessSchoolEnableFlag", attr: "businessSchoolEnableFlag",
rule: { rule: {
N: "启用商学院", N: "启用工资绩效",
Y: "禁用商学院" Y: "禁用工资绩效"
} }
} }
}, },
...@@ -911,19 +911,132 @@ export const routerName = { ...@@ -911,19 +911,132 @@ export const routerName = {
}, },
component: _import("systemConfig/ruleReview/examineDetail") component: _import("systemConfig/ruleReview/examineDetail")
}, },
90625: {
path: "/inStoreGoalsConfig",
name: "inStoreGoalsConfig",
meta: {
title: "驻店目标配置",
authId: "90625",
parentId: "906",
cache: false
},
auth: [
{
authId: "9062501",
parentId: "90625",
label: "新增",
category: "Button",
type: "primary",
handle: "handleAdd",
addRoutePath: [
{
authId: "90626",
name: "新增",
parentId: "90625"
}
]
},
{
authId: "9062502",
parentId: "90625",
label: "查看",
handle: "handleStoreView",
addRoutePath: [
{
authId: "90627",
name: "查看",
parentId: "90625"
}
]
},
{
authId: "9062503",
parentId: "90625",
label: "编辑",
handle: "handleStoreEdit",
addRoutePath: [
{
authId: "90626",
name: "编辑",
parentId: "90625"
}
]
},
{
authId: "9062504",
parentId: "90625",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9062505",
parentId: "90625",
label: "查看",
handle: "handleStaffView",
addRoutePath: [
{
authId: "90628",
name: "查看任务",
parentId: "90625"
}
]
}
],
component: _import("systemConfig/inStoreGoalsConfig/index")
},
90626: { 90626: {
path: "/addInStoreConfig",
name: "addInStoreConfig",
meta: {
title: "新增",
authId: "90626",
parentId: "90625",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/addInStoreConfig")
},
// 查看店面目标配置
90627: {
path: "/inStoreConfigView",
name: "inStoreConfigView",
meta: {
title: "查看",
authId: "90627",
parentId: "90625",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/inStoreConfigView")
},
// 查看驻店员工任务
90628: {
path: "/employeeTasksView",
name: "employeeTasksView",
meta: {
title: "查看任务",
authId: "90628",
parentId: "90625",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/employeeTasksView")
},
90629: {
path: "/inStoreManage", path: "/inStoreManage",
name: "inStoreManage", name: "inStoreManage",
meta: { meta: {
title: "驻店管理", title: "驻店管理",
authId: "90626", authId: "90629",
parentId: "906", parentId: "906",
cache: false cache: false
}, },
auth: [ auth: [
{ {
authId: "9062601", authId: "9062901",
parentId: "90626", parentId: "90629",
label: "查看标签", label: "查看标签",
handle: "handleViewLabel" handle: "handleViewLabel"
} }
......
...@@ -619,21 +619,27 @@ export default { ...@@ -619,21 +619,27 @@ export default {
this.showFormData = this.showFormData.filter( this.showFormData = this.showFormData.filter(
(item) => !itemName.includes(item.name) (item) => !itemName.includes(item.name)
) )
} } getParkStore({}).then((res) => {
if (this.userInfo.beSuper || this.specialAccout) {
getParkStore({}).then((res) => {
res.forEach((item) => { res.forEach((item) => {
item.merchantId = item.merchantNo item.merchantId = item.merchantNo
}) })
this.baseData.parkServiceList = res this.baseData.parkServiceList = res
this.getOptionsList() this.getOptionsList()
}) })
} else { // if (this.userInfo.beSuper || this.specialAccout) {
this.showFormData = this.showFormData.filter( // getParkStore({}).then((res) => {
(item) => item.name !== "yqMerchantId" // res.forEach((item) => {
) // item.merchantId = item.merchantNo
this.getServiceStore(this.userInfo.detail.merchantId) // })
} // this.baseData.parkServiceList = res
// this.getOptionsList()
// })
// } else {
// this.showFormData = this.showFormData.filter(
// (item) => item.name !== "yqMerchantId"
// )
// this.getServiceStore(this.userInfo.detail.merchantId)
// }
const $store = this.$store.getters["d2admin/auth/curBtns"] const $store = this.$store.getters["d2admin/auth/curBtns"]
const btnId = "9040103" // 待补录订单权限ID const btnId = "9040103" // 待补录订单权限ID
const signRefundBtnId = "9040105" // 标记退款权限ID const signRefundBtnId = "9040105" // 标记退款权限ID
......
<template> <template>
<d2-dialog :title="title" mode="mid" v-if="isVisible" :is-visible.sync="isVisible" width="750px" noCancel btn-ok-label="关闭" :before-close="handleClose" @confirmDialog="handleConfirm" @closeDialog="handleClose"> <d2-dialog :title="title" mode="mid" v-if="isVisible" :is-visible.sync="isVisible" width="750px" noCancel btn-ok-label="关闭" :before-close="handleClose" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<div class="explain-title">示例规则定义</div> <div class="explain-title">示例规则定义</div>
<d2-table v-if="diffExplain !== 'minimumWage'" :tableData="tableData" :table-params="tableParams" :hasPage="false"></d2-table> <div v-if="diffExplain == 'performanceConfig'">
<div v-else>开启保底工资,当员工的基本工资+绩效工资低于保底工资时,默认以保底工资作为最终工资</div> <div class="mb10">提成配置中,高产值,成交率以及均客单为联动配置,需请完整填写,无提成时填无,请将此三项全部填无。根据员工每月单店完成(升级订单) 的订单产值累计,匹配符合的奖励规则进行每单奖励计算。</div>
<template v-if="diffExplain !== 'minimumWage'"> <div v-for="(item, index) in commissionConfigArr" :key="index">
<div>{{ item.title }}</div>
<d2-table :tableData="item.tableData" :table-params="item.tableParams" :hasPage="false"></d2-table>
</div>
</div>
<d2-table v-else :tableData="tableData" :table-params="tableParams" :hasPage="false"></d2-table>
<template>
<div class="explain-title mt20">示例业务场景</div> <div class="explain-title mt20">示例业务场景</div>
<div class="business-info" v-html="infoHtml"></div> <div class="business-info" v-html="infoHtml"></div>
</template> </template>
...@@ -11,6 +17,7 @@ ...@@ -11,6 +17,7 @@
</template> </template>
<script> <script>
import { deepClone } from '@/common/util'
export default { export default {
data() { data() {
return { return {
...@@ -25,12 +32,28 @@ export default { ...@@ -25,12 +32,28 @@ export default {
prop: 'endValue' prop: 'endValue'
}, },
{ {
label: '奖励金额/元', label: '提成比例',
prop: 'calculateValue' prop: 'calculateValue'
} }
] ]
}, },
tableData: [] tableData: [],
commissionConfigArr: [{
title: '高产值比例配置',
name: 'outputBonus',
tableData: [],
tableParams: {}
}, {
title: '成交率系数配置',
name: 'upgradeRateBonus',
tableData: [],
tableParams: {}
}, {
title: '均客单系数配置',
name: 'averagePriceBonus',
tableData: [],
tableParams: {}
}]
} }
}, },
props: { props: {
...@@ -46,28 +69,15 @@ export default { ...@@ -46,28 +69,15 @@ export default {
computed: { computed: {
title() { title() {
const titleObj = { const titleObj = {
minimumWage: '保底工资示例说明', performanceConfig: '工资绩效示例说明',
averagePriceBonus: '均客单奖励示例说明',
customerUnitBonus: '高客单奖励示例说明',
outputBonus: '高产值奖励示例说明',
upgradeRateBonus: '成交率奖励示例说明',
montorAdditionalBonus: '导师附加提成示例说明' montorAdditionalBonus: '导师附加提成示例说明'
} }
return titleObj[this.diffExplain] return titleObj[this.diffExplain]
}, },
infoHtml() { infoHtml() {
const infoObj = { const infoObj = {
averagePriceBonus: `<div class='mb10'>员工A在某个月中完成升级订单5个,对应的订单产值1000.00元、1500.00元、2000.00元、2500.00元、3000.00元,</div> performanceConfig: `<div class='mb10'>员工A在某个月中单店完成产值20000元,按高产值奖励规则,奖励值落点区间在0-80000,则提成比例为产值4%;根据该员工的当月成交率为45%,均可单价为2000计算,则整体提成系数为0.8*0.8=0.64</div>
<div class='mb10'>则月度的平均客单价=升级订单总产值/升级订单数量=2000.00元,对应规则的提成比例=10.00%,按每个升级订单的产值*10%计算每单提成;</div> <div class='mb10'>汇总计算员工A在该月份获得的提成为=20000*5%*0.8*0.8=640元。</div>`,
<div class='mb10'>则员工A在该月份获得的总提成奖励=100.00+150.00+200.00+250.00+300.00=1000.00元。</div>`,
customerUnitBonus: `<div class='mb10'>员工A在某个月中完成升级订单5个,对应的订单产值1000.00元、1500.00元、2000.00元、2500.00元、3000.00元,</div>
<div class='mb10'>按高客单奖励规则,产值在0.00-2000.00元的订单每单奖励0.00元(不奖励),产值在2000.00元以上的订单每单奖励100.00元;</div>
<div class='mb10'>则员工A在该月份获得的高客单奖励=0.00+0.00+0.00+100.00+100.00=200元。</div>`,
outputBonus: `<div class='mb10'>员工A在某个月中单店完成产值15000元,按高产值奖励规则,奖励值落点区间在0-20000,则提成比例为产值5%;</div>
<div class='mb10'>则员工A在该月份获得的高产值奖励=15000*5%=750元。</div>`,
upgradeRateBonus: `<div class='mb10'>员工A在某个月中完成升级订单9个,战败订单1个</div>
<div class='mb10'>则月度的成交率=升级订单数/(升级订单数+战败订单数)=90.00%,对应规则的提成比例为10%,若该员工的订单产值为10000元,</div>
<div class='mb10'>则员工A在该月份获得的成交率奖励=1000.00元。</div>`,
montorAdditionalBonus: `<div class='mb10'>1、员工a入职时间为8月18日,对应0-3个月内的导师提成比例为20%,假如第一个月内员工a产生订单产值40000元,根据业绩配置该员工提成为4000元,则其关联导师的导师提成激励为4000*20%=800元,计入次月导师的月份最终工资</div> montorAdditionalBonus: `<div class='mb10'>1、员工a入职时间为8月18日,对应0-3个月内的导师提成比例为20%,假如第一个月内员工a产生订单产值40000元,根据业绩配置该员工提成为4000元,则其关联导师的导师提成激励为4000*20%=800元,计入次月导师的月份最终工资</div>
<div class='mb10'>2、员工a到11月18日为满三个月,12月份初计算导师提成时,按11.1-11.18的学员提成20%和11.19-11.30的学员提成10%计算为该导师的11月总导师激励提成</div> <div class='mb10'>2、员工a到11月18日为满三个月,12月份初计算导师提成时,按11.1-11.18的学员提成20%和11.19-11.30的学员提成10%计算为该导师的11月总导师激励提成</div>
<div class='mb10'>3、删除解绑学员时不影响订单提成规则,如8月18日关联导师,8月20日解绑学员时,导师在9月初将计算8.18-8.20该学员的订单提成比例,并入导师提成激励计算到9月初发放的最终工资中。</div> <div class='mb10'>3、删除解绑学员时不影响订单提成规则,如8月18日关联导师,8月20日解绑学员时,导师在9月初将计算8.18-8.20该学员的订单提成比例,并入导师提成激励计算到9月初发放的最终工资中。</div>
...@@ -81,46 +91,42 @@ export default { ...@@ -81,46 +91,42 @@ export default {
}, },
watch: { watch: {
diffExplain(newVal) { diffExplain(newVal) {
this.tableParams.tableColumns[0].label = '区间开始值/元' if (newVal == 'performanceConfig') {
this.tableParams.tableColumns[1].label = '区间结束值/元' this.commissionConfigArr.forEach(val => {
this.tableParams.tableColumns[2].label = '提成比例/%' val.tableParams = deepClone(this.tableParams)
switch (newVal) { switch (val.name) {
case 'customerUnitBonus': case 'outputBonus':
this.tableData = [ val.tableData = [
{ startValue: 0, endValue: 2000, calculateValue: 0 }, { startValue: 0, endValue: 80000, calculateValue: '4%' },
{ startValue: 2000.01, endValue: '--', calculateValue: 100 } { startValue: 80000.01, endValue: '--', calculateValue: '5%' }
] ]
this.tableParams.tableColumns[2].label = '奖励金额/元' val.tableParams.tableColumns[2].label = '提成比例'
break break
case 'upgradeRateBonus': case 'upgradeRateBonus':
this.tableData = [ val.tableData = [
{ startValue: 0, endValue: '45%', calculateValue: '5%' }, { startValue: 0, endValue: '50%', calculateValue: 0.8 },
{ startValue: '45.01%', endValue: '--', calculateValue: '10%' } { startValue: '50.01%', endValue: '55%', calculateValue: 1.0 },
{ startValue: '55.01%', endValue: '100%', calculateValue: 1.1 }
] ]
this.tableParams.tableColumns[0].label = '区间开始值/%' val.tableParams.tableColumns[2].label = '提成系数'
this.tableParams.tableColumns[1].label = '区间结束值/%'
break break
case 'averagePriceBonus': case 'averagePriceBonus':
this.tableData = [ val.tableData = [
{ startValue: 0, endValue: 2000, calculateValue: '10%' }, { startValue: 0, endValue: 3000, calculateValue: 0.8 },
{ startValue: 2000.01, endValue: '--', calculateValue: '20%' } { startValue: 3000.01, endValue: '--', calculateValue: 1.0 }
]
break
case 'outputBonus':
this.tableData = [
{ startValue: 0, endValue: 20000, calculateValue: '5%' },
{ startValue: 20000.01, endValue: '--', calculateValue: '10%' }
] ]
val.tableParams.tableColumns[2].label = '提成系数'
break break
case 'montorAdditionalBonus': }
})
} else { // 导师附加提成
this.tableData = [ this.tableData = [
{ startValue: 0, endValue: 3, calculateValue: '20%' }, { startValue: 0, endValue: 3, calculateValue: '20%' },
{ startValue: 4, endValue: 6, calculateValue: '10%' } { startValue: 4, endValue: 6, calculateValue: '10%' }
] ]
this.tableParams.tableColumns[0].label = '区间开始值/月(含当月)' this.tableParams.tableColumns[0].label = '区间开始值/月(含当月)'
this.tableParams.tableColumns[1].label = '区间结束值/月' this.tableParams.tableColumns[1].label = '区间结束值/月'
this.tableParams.tableColumns[2].label = '提成比例/%' this.tableParams.tableColumns[2].label = '提成比例'
break
} }
} }
}, },
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<template> <template>
<div class="staff-list-wrap"> <div class="staff-list-wrap">
<div class="header" slot="header" style="background: #e7eaec"> <div class="header" slot="header" style="background: #e7eaec">
<el-tabs v-model="activeName" @tab-click="handleClick"> <!-- <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList" :label="item.label" :name="item.name" :key="index"> <el-tab-pane v-for="(item, index) in tabPaneList" :label="item.label" :name="item.name" :key="index">
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs> -->
<components :is="tabName" :sceneType="activeName"></components> <components :is="tabName" :sceneType="activeName"></components>
</div> </div>
</div> </div>
......
<!-- 2.1 权益业务员工 --> <!-- 2.1 权益业务员工 -->
<template> <template>
<d2-container class="staff-list m-t-40"> <d2-container class="staff-list">
<div class="header" <div class="header"
slot="header"> slot="header">
<d2-search ref="showSearch" <d2-search ref="showSearch"
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<div slot="left"> <div slot="left">
<span class="table-header-title">商学院员工列表</span> <span class="table-header-title">工资绩效员工列表</span>
<div class="table-header-tips">共<span class="count">{{ totalNum }}</span>个员工启用商学院</div> <div class="table-header-tips">共<span class="count">{{ totalNum }}</span>个员工启用工资绩效</div>
</div> </div>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062101', '9062102']" /> <auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062101', '9062102']" />
</d2-table-header> </d2-table-header>
...@@ -31,10 +31,11 @@ ...@@ -31,10 +31,11 @@
:search-form="searchForm" :search-form="searchForm"
:table-params="tableParams" :table-params="tableParams"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn"
<div slot="partnerMerchantName" slot-scope="scope"> @setTableFinishFun="setTableFinishFun">
<div v-if="!scope.scope.partnerMerchantNameList.length">-</div> <div slot="partnerMerchantNameId" slot-scope="scope">
<div v-else v-for="(item, index) in scope.scope.partnerMerchantNameList" :key="index">{{ item }}</div> <div v-if="!scope.scope.partnerMerchantNameIdList.length">-</div>
<div v-else v-for="(item, index) in scope.scope.partnerMerchantNameIdList" :key="index">{{ item }}</div>
</div> </div>
<div slot="partnerMerchantId" slot-scope="scope"> <div slot="partnerMerchantId" slot-scope="scope">
<div v-if="!scope.scope.partnerMerchantIdList.length">-</div> <div v-if="!scope.scope.partnerMerchantIdList.length">-</div>
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062104']" /> <auth-button :data="scope.scope" :show-btn-ids="['9062104']" />
</span> </span>
<!-- 禁/启用商学院 --> <!-- 禁/启用工资绩效 -->
<auth-button :data="scope.scope" :show-btn-ids="['9062105']" /> <auth-button :data="scope.scope" :show-btn-ids="['9062105']" />
<!-- 业绩详情 --> <!-- 业绩详情 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
...@@ -189,6 +190,14 @@ export default { ...@@ -189,6 +190,14 @@ export default {
inputType: 'number', inputType: 'number',
isClear: true, isClear: true,
keyFn: this.keyDownGetList keyFn: this.keyDownGetList
}, {
label: '所属业务',
name: 'sceneType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneTypeList'
}], }],
getListApi: getListApi, getListApi: getListApi,
// 表格参数 // 表格参数
...@@ -210,7 +219,7 @@ export default { ...@@ -210,7 +219,7 @@ export default {
prop: 'staffName', prop: 'staffName',
width: '120' width: '120'
}, { }, {
label: '入职时间', label: '创建时间',
prop: 'entryDate', prop: 'entryDate',
width: '120' width: '120'
}, { }, {
...@@ -218,21 +227,24 @@ export default { ...@@ -218,21 +227,24 @@ export default {
prop: 'staffPhone', prop: 'staffPhone',
width: '110' width: '110'
}, { }, {
label: '园区店', label: '所属业务',
prop: 'merchantName' prop: 'scene',
width: '100',
formatter: (cellValue) => {
// return cellValue?.sceneType.map(v => {
// })
}
}, { }, {
label: '商户号', label: '园区店',
prop: 'merchantNo', prop: 'merchantName',
width: '120' formatter: (cellValue) => {
return `${cellValue?.merchantName} ${cellValue?.merchantNo}`
}
}, { }, {
label: '服务商', label: '服务商',
prop: 'partnerMerchantNameList', prop: 'partnerMerchantNameIdList',
addHtml: 'partnerMerchantName' addHtml: 'partnerMerchantNameId'
}, {
label: '商户号',
prop: 'partnerMerchantIdList',
width: '120',
addHtml: 'partnerMerchantId'
}, { }, {
label: '职级', label: '职级',
prop: 'title', prop: 'title',
...@@ -246,21 +258,21 @@ export default { ...@@ -246,21 +258,21 @@ export default {
prop: 'studentNumber', prop: 'studentNumber',
width: '80' width: '80'
}, { }, {
label: '商学院', label: '工资绩效',
prop: 'updatedDate', prop: 'updatedDate',
width: '80', width: '80',
className: (cellValue) => { className: (cellValue) => {
cellValue.businessSchoolEnableFlag = cellValue?.businessSchoolEnableFlag ? cellValue?.businessSchoolEnableFlag : 'N' cellValue.performanceFlag = cellValue?.performanceFlag ? cellValue?.performanceFlag : 'N'
return { return {
'Y': 'greenSpot', 'Y': 'greenSpot',
'N': 'redSpot' 'N': 'redSpot'
}[cellValue.businessSchoolEnableFlag] }[cellValue.performanceFlag]
}, },
formatter: (cellValue) => { formatter: (cellValue) => {
return { return {
'Y': '启用', 'Y': '启用',
'N': '禁用' 'N': '禁用'
}[cellValue.businessSchoolEnableFlag] }[cellValue.performanceFlag]
} }
}] }]
}, },
...@@ -268,11 +280,22 @@ export default { ...@@ -268,11 +280,22 @@ export default {
searchForm: { searchForm: {
staffName: '', staffName: '',
merchantName: '', merchantName: '',
merchantId: '' merchantId: '',
sceneType: ''
}, },
yqMerchantList: [], // 园区店下拉框数据 yqMerchantList: [], // 园区店下拉框数据
perDetailVisible: false, // 业绩详情弹窗 perDetailVisible: false, // 业绩详情弹窗
detailInfoData: {} // 员工详细信息 detailInfoData: {}, // 员工详细信息
// 基本数据
baseData: {
sceneTypeList: [{
confId: 1,
confValue: '1.1'
}, {
confId: 0,
confValue: '2.1'
}]
}
} }
}, },
computed: { computed: {
...@@ -286,6 +309,7 @@ export default { ...@@ -286,6 +309,7 @@ export default {
getYqMerchantListBySceneApi({ scene: this.sceneType }).then(res => { getYqMerchantListBySceneApi({ scene: this.sceneType }).then(res => {
this.yqMerchantList = res this.yqMerchantList = res
}) })
this.getBaseData()
}, },
methods: { methods: {
...mapActions({ ...mapActions({
...@@ -293,13 +317,29 @@ export default { ...@@ -293,13 +317,29 @@ export default {
close: 'd2admin/page/close' close: 'd2admin/page/close'
}), }),
...mapActions('d2admin/user', ['actionSetDownloadList']), ...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.baseData.sceneTypeList.unshift({
confId: '',
confValue: '全部'
})
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.getCount() this.getCount()
resolve() resolve()
}) })
}, },
// 获取已启用商学院员工数量 setTableFinishFun(data) {
data?.forEach(val => {
val.partnerMerchantNameIdList = val?.partnerMerchantNameList.map((item, index) => item + ' ' + val?.partnerMerchantIdList[index]) || []
})
},
// 获取已启用工资绩效员工数量
getCount() { getCount() {
getEnableStaffNumApi(this.searchForm).then(res => { getEnableStaffNumApi(this.searchForm).then(res => {
this.totalNum = res || 0 this.totalNum = res || 0
...@@ -434,8 +474,8 @@ export default { ...@@ -434,8 +474,8 @@ export default {
let partnerMerchantArr = row?.partnerMerchantNameList.map((item, index) => item + row?.partnerMerchantIdList[index]) || [] let partnerMerchantArr = row?.partnerMerchantNameList.map((item, index) => item + row?.partnerMerchantIdList[index]) || []
let queryObj = { let queryObj = {
staffUuid: row.staffUuid, staffUuid: row.staffUuid,
sceneType: this.sceneType,
yqMerchantObj: JSON.stringify(yqMerchantObj), yqMerchantObj: JSON.stringify(yqMerchantObj),
sceneType: this.sceneType,
partnerMerchantArr: JSON.stringify(partnerMerchantArr), partnerMerchantArr: JSON.stringify(partnerMerchantArr),
businessSchoolEnableFlag: row.businessSchoolEnableFlag businessSchoolEnableFlag: row.businessSchoolEnableFlag
} }
...@@ -449,10 +489,10 @@ export default { ...@@ -449,10 +489,10 @@ export default {
this.detailInfoData = row this.detailInfoData = row
this.perDetailVisible = !this.perDetailVisible this.perDetailVisible = !this.perDetailVisible
}, },
// 禁/启用商学院 // 禁/启用绩效配置
handleEnableOrDisable(row) { handleEnableOrDisable(row) {
if (row.businessSchoolEnableFlag == 'Y') { if (row.businessSchoolEnableFlag == 'Y') {
this.$confirm('禁用该员工后关闭商学院配置,请确认', '提示', { this.$confirm('禁用该员工后关闭驻店工资绩效,请确认', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
......
...@@ -2,16 +2,12 @@ ...@@ -2,16 +2,12 @@
<d2-Container> <d2-Container>
<div class="divece-history"> <div class="divece-history">
<div class="title"> <div class="title">
{{recordInfo.posTrmNo}} {{ recordInfo.posTrmNo }}
</div> </div>
<div class="account-detail" <div class="account-detail" ref="accountDetail">
ref="accountDetail">
<div v-if="formArray && formArray.length"> <div v-if="formArray && formArray.length">
<div v-for="(formItem, index) in formArray" <div v-for="(formItem, index) in formArray" :ref="'resize' + index" :key="index">
:ref="'resize' + index" <p class="edit-sub-title" :class="{ 'sub-border': !formItem.show }">
:key="index">
<p class="edit-sub-title"
:class="{ 'sub-border': !formItem.show }">
<span class="label"> <span class="label">
<span>{{ formItem.formatEffectStartDate }}</span> <span>{{ formItem.formatEffectStartDate }}</span>
<span v-if="formItem.formatEffectStartDate"> - </span> <span v-if="formItem.formatEffectStartDate"> - </span>
...@@ -27,10 +23,12 @@ ...@@ -27,10 +23,12 @@
操作人: {{ formItem.createdBy }} 操作时间: 操作人: {{ formItem.createdBy }} 操作时间:
{{ formItem.formatCreatedDate }} {{ formItem.formatCreatedDate }}
</span> </span>
<span class="collapse" <span class="updatedInfo">
@click="collapseItem(index)"> 审核人: {{ formItem.auditorName }} 审核时间:
<i :class="{ move: !formItem.show }" {{ formItem.formatAuditDate }}
class="arrow el-icon-arrow-down" /> </span>
<span class="collapse" @click="collapseItem(index)">
<i :class="{ move: !formItem.show }" class="arrow el-icon-arrow-down" />
{{ formItem.show ? "收起" : "展开" }} {{ formItem.show ? "收起" : "展开" }}
</span> </span>
</p> </p>
...@@ -59,19 +57,15 @@ ...@@ -59,19 +57,15 @@
</div> </div>
</div> </div>
<div v-else <div v-else class="nothingtips">
class="nothingtips"> <img style="height: 109px; width: 109px" src="../images/empty.png" />
<img style="height: 109px; width: 109px"
src="../images/empty.png" />
<p class="title">暂无历史记录</p> <p class="title">暂无历史记录</p>
<p class="tips">快去设置看看~</p> <p class="tips">快去设置看看~</p>
</div> </div>
</div> </div>
<div class="btns"> <div class="btns">
<el-button @click="handleCancel" <el-button @click="handleCancel" size="small" type="primary">
size="small"
type="primary">
返回 返回
</el-button> </el-button>
</div> </div>
...@@ -88,7 +82,7 @@ export default { ...@@ -88,7 +82,7 @@ export default {
data() { data() {
return { return {
formArray: [], formArray: [],
recordInfo: null, recordInfo: null
} }
}, },
components: { components: {
...@@ -109,7 +103,6 @@ export default { ...@@ -109,7 +103,6 @@ export default {
}), }),
collapseItem(SelectIndex) { collapseItem(SelectIndex) {
this.formArray = this.formArray.map((element, index) => { this.formArray = this.formArray.map((element, index) => {
if (SelectIndex == index) { if (SelectIndex == index) {
element.show = !element.show element.show = !element.show
...@@ -136,6 +129,7 @@ export default { ...@@ -136,6 +129,7 @@ export default {
? dayjs(item.effectStartDate).format(format) ? dayjs(item.effectStartDate).format(format)
: "" : ""
item.formatCreatedDate = dayjs(item.createdDate).format(format) item.formatCreatedDate = dayjs(item.createdDate).format(format)
item.formatAuditDate = dayjs(item.auditDate).format(format)
item.show = false item.show = false
return item return item
}) })
...@@ -150,16 +144,18 @@ export default { ...@@ -150,16 +144,18 @@ export default {
name: 'deviceManage' name: 'deviceManage'
}) })
this.close({ tagName: '/deviceHistory' }) this.close({ tagName: '/deviceHistory' })
}, }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$color: #2a58ad; $color: #2a58ad;
.divece-history { .divece-history {
padding-left: 20px; padding-left: 20px;
padding-right: 16px; padding-right: 16px;
padding-bottom: 20px; padding-bottom: 20px;
.account-detail { .account-detail {
// height: 400px; // height: 400px;
// height: calc(100vh - 200px); // height: calc(100vh - 200px);
...@@ -167,12 +163,14 @@ $color: #2a58ad; ...@@ -167,12 +163,14 @@ $color: #2a58ad;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
} }
.edit-sub-title { .edit-sub-title {
padding: 17px 0; padding: 17px 0;
margin: 0; margin: 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
&::before { &::before {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
...@@ -182,37 +180,46 @@ $color: #2a58ad; ...@@ -182,37 +180,46 @@ $color: #2a58ad;
padding-left: 8px; padding-left: 8px;
width: 37%; width: 37%;
} }
.labelColor { .labelColor {
color: #0947c6; color: #0947c6;
} }
.updatedInfo { .updatedInfo {
width: 40%; width: 40%;
text-align: left; text-align: left;
} }
.collapse { .collapse {
padding-right: 20px; padding-right: 20px;
color: #0947c6; color: #0947c6;
cursor: pointer; cursor: pointer;
.arrow { .arrow {
transition: all 1s; transition: all 1s;
} }
.move { .move {
transform: rotate(-180deg); transform: rotate(-180deg);
} }
} }
} }
.sub-border { .sub-border {
animation: border-delay 1s forwards; animation: border-delay 1s forwards;
} }
@keyframes border-delay { @keyframes border-delay {
0% { 0% {
/* opacity: 0; */ /* opacity: 0; */
/* right: -100%; */ /* right: -100%; */
} }
100% { 100% {
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
} }
// .account-detail .detail-img { // .account-detail .detail-img {
// width: 180px; // width: 180px;
// height: 104px; // height: 104px;
...@@ -318,16 +325,19 @@ $color: #2a58ad; ...@@ -318,16 +325,19 @@ $color: #2a58ad;
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
padding-top: 40px; padding-top: 40px;
.title { .title {
font-size: 20px; font-size: 20px;
color: #666; color: #666;
margin: 16px 0; margin: 16px 0;
} }
.tips { .tips {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
} }
// .title { // .title {
// } // }
// .type { // .type {
...@@ -350,18 +360,23 @@ $color: #2a58ad; ...@@ -350,18 +360,23 @@ $color: #2a58ad;
// } // }
.cont { .cont {
background-color: #fff; background-color: #fff;
&.cont-table { &.cont-table {
display: block; display: block;
} }
&.cont-table1 { &.cont-table1 {
padding: 16px 20px 20px; padding: 16px 20px 20px;
} }
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 16px 20px 32px; padding: 16px 20px 32px;
.mt16 { .mt16 {
margin-top: 16px; margin-top: 16px;
} }
.msg { .msg {
padding-bottom: 12px; padding-bottom: 12px;
flex: 1 0 auto; flex: 1 0 auto;
...@@ -369,6 +384,7 @@ $color: #2a58ad; ...@@ -369,6 +384,7 @@ $color: #2a58ad;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
line-height: 24px; line-height: 24px;
.msg-title { .msg-title {
width: 138px; width: 138px;
// height: 20px; // height: 20px;
...@@ -376,6 +392,7 @@ $color: #2a58ad; ...@@ -376,6 +392,7 @@ $color: #2a58ad;
color: #666666; color: #666666;
text-align: right; text-align: right;
} }
.msg-val { .msg-val {
// height: 20px; // height: 20px;
font-size: 14px; font-size: 14px;
...@@ -383,24 +400,29 @@ $color: #2a58ad; ...@@ -383,24 +400,29 @@ $color: #2a58ad;
text-align: left; text-align: left;
} }
} }
.compute { .compute {
&:first-child { &:first-child {
margin-top: 0px; margin-top: 0px;
} }
margin-top: 16px; margin-top: 16px;
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
.manner {
} .manner {}
.online { .online {
& + .online { &+.online {
margin-left: 44px; margin-left: 44px;
} }
color: $color; color: $color;
} }
} }
.white-table { .white-table {
margin-bottom: 16px; margin-bottom: 16px;
display: flex; display: flex;
...@@ -409,6 +431,7 @@ $color: #2a58ad; ...@@ -409,6 +431,7 @@ $color: #2a58ad;
color: #666666; color: #666666;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5;
.type1 { .type1 {
// &:first-child { // &:first-child {
// border-top: 1px solid #E5E5E5; // border-top: 1px solid #E5E5E5;
...@@ -421,66 +444,79 @@ $color: #2a58ad; ...@@ -421,66 +444,79 @@ $color: #2a58ad;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5;
box-sizing: border-box; box-sizing: border-box;
.type-name { .type-name {
text-align: right; text-align: right;
width: 90px; width: 90px;
} }
.type-val { .type-val {
flex: 1; flex: 1;
display: flex; display: flex;
color: #1d1d1d; color: #1d1d1d;
} }
.type-color { .type-color {
color: $color; color: $color;
} }
.date { .date {
margin-right: 10px; margin-right: 10px;
color: #1d1d1d; color: #1d1d1d;
} }
} }
.type2 { .type2 {
width: 66.66%; width: 66.66%;
} }
} }
.title-table { .title-table {
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
border: 1px solid #e8e8ea; border: 1px solid #e8e8ea;
.head { .head {
display: flex; display: flex;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
text-align: center; text-align: center;
background: #f2f4f7; background: #f2f4f7;
.cost { .cost {
& + .cost { &+.cost {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
flex: 1; flex: 1;
} }
} }
.detail { .detail {
display: flex; display: flex;
min-height: 40px; min-height: 40px;
color: #666666; color: #666666;
border-top: 1px solid #e8e8ea; border-top: 1px solid #e8e8ea;
.detail-i { .detail-i {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
& + .detail-i {
&+.detail-i {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
flex: 1; flex: 1;
} }
} }
} }
} }
.btns { .btns {
margin-top: 16px; margin-top: 16px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
} }</style>
</style>
<template>
</template>
<script>
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file \ No newline at end of file
<!-- 驻店员工查看任务 -->
<template>
<d2-container :loading="$store.state.d2admin.loading.value">
<div class="d2-container-content">
<p class="edit-sub-title">
查看员工任务
</p>
<glsx-combi-form class="edit-form-container"
ref="editFormRef2"
label-width="154px"
default-width="432px"
:is-block="true"
form-ref="editChildRef"
:form-obj="viewInfo"
:form-data="viewFormData">
<div slot="inStoreTarget">
<d2-table @arraySpanMethod="arraySpanMethod" :tableData="viewInfo.tableData" :table-params="tableParams" :hasPage="false"></d2-table>
</div>
</glsx-combi-form>
<div class="page_footer">
<el-button type="primary" @click="handleClose">
返回
</el-button>
</div>
</div>
</d2-container>
</template>
<script>
import { mapActions } from 'vuex'
import { getStaffTaskDetailApi } from '@api/inStoreTargetConfig'
export default {
name: 'EmployeeTaskView',
data() {
return {
viewFormData: [{
label: '门店名称',
isHide: false,
showTxt: true
}, {
label: '业务场景',
isHide: false,
showTxt: true
}, {
label: '驻店员工',
isHide: false,
showTxt: true
}, {
label: '联系方式',
isHide: false,
showTxt: true
}, {
label: '考核周期',
isHide: false,
showTxt: true
}, {
label: '驻店目标',
isHide: false,
addHtml: 'inStoreTarget'
}],
tableParams: {
tableColumns: [{
label: '月度',
prop: 'startValue'
}, {
label: '周期',
prop: 'startValue'
}, {
label: '车主类型',
prop: 'startValue'
}, {
label: '主推产品套餐',
prop: 'startValue'
}, {
label: '目标转化率',
prop: 'startValue'
}, {
label: '提成系数',
prop: 'startValue'
}, {
label: '目标客单价',
prop: 'startValue'
}, {
label: '提成系数',
prop: 'startValue'
}],
tableData: []
},
viewInfo: {
tableData: []
}
}
},
mounted() {
let routerQuery = this.$router.query
// 获取详情
this.getDetailInfo(routerQuery)
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
getDetailInfo(routerQuery) {
getStaffTaskDetailApi({}).then(res => {
this.viewInfo = res || {}
}).catch(() => {})
},
// 合并表格
arraySpanMethod() {
},
// 返回
handleClose() {
this.close({ tagName: '/inStoreGoalsConfig' })
this.$router.push({ name: 'inStoreGoalsConfig' })
this.close({ tagName: '/employeeTasksView' })
}
}
}
</script>
<style scoped lang="scss">
.edit-sub-title {
padding-bottom: 14px;
border-bottom: 1px solid #e8e8ea;
}
.page_footer{
display: flex;
justify-content: center;
}
::v-deep .el-form-item__content{
width: calc(100% - 154px);
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
</template>
<script>
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file \ No newline at end of file
<!-- 驻店目标配置 -->
<template>
<div class="in-store-list-wrap">
<div class="header" slot="header" style="background: #e7eaec">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList" :label="item.label" :name="item.name" :key="index">
</el-tab-pane>
</el-tabs>
<components :is="tabName" :sceneType="activeName"></components>
</div>
</div>
</template>
<script>
import storeTargetList from "./storeTargetList.vue"
import staffTargetList from "./staffTargetList.vue"
export default {
name: 'InStoreGoalsConfig',
components: {
storeTargetList,
staffTargetList
},
data() {
return {
activeName: "0",
tabPaneList: [
{
label: "门店目标配置",
name: "0"
},
{
label: '驻店员工目标',
name: "1"
}
],
tabName: "storeTargetList"
}
},
mounted() {
if (this.$route.params.tabPane) {
this.activeName = this.$route.params.tabPane
this.tabName = this.$route.params.tabLabel
}
},
watch: {},
methods: {
handleClick() {
const arr = {
0: "storeTargetList",
1: "staffTargetList"
}
this.tabName = arr[+this.activeName]
}
}
}
</script>
<style scoped lang="scss">
.in-store-list-wrap {
padding: 0 24px;
.header {
::v-deep .el-tabs__header {
margin: 0;
padding: 0 20px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 驻店员工目标 -->
<template>
<d2-container class="staff-target-list m-t-40">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'100px'"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062504']" />
</d2-table-header>
<d2-table ref="staffTargetTable"
:has-num="false"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062505']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { mapActions, mapState } from 'vuex'
import { Util } from '@/common/util'
import { getStaffTaskListApi } from '@api/inStoreTargetConfig'
export default {
name: "StoreTargetList",
data() {
return {
// 搜索框
showFormData: [{
label: '驻店员工',
name: 'staffName',
type: 'input',
isClear: true,
keyFn: this.keyDownGetList
}, {
label: '场景名称',
name: 'sceneType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneTypeList'
}, {
label: '商户名称',
name: 'merchantName',
type: 'input',
isClear: true,
keyFn: this.keyDownGetList
}, {
label: '商户号',
name: 'merchantId',
type: 'input',
inputType: 'number',
isClear: true,
keyFn: this.keyDownGetList
}],
getListApi: getStaffTaskListApi,
// 表格参数
tableParams: {
needUnique: true,
mutiSelectUniqueKey: 'uniqueVal',
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: {
width: '100'
},
tableColumns: [{
label: '序号',
prop: 'ownSerialNum',
type: 'ownSerialNum',
width: '60'
}, {
label: '员工名称',
prop: 'staffName',
width: '120'
}, {
label: '联系方式',
prop: 'staffPhoneNumber',
width: '120'
}, {
label: '账号创建日期',
prop: 'created',
width: '110'
}, {
label: '考核状态',
prop: 'status',
className: () => {
return 'blueSpot'
},
formatter: () => {
return '考核中'
}
}, {
label: '考核周期',
prop: 'assessmentCycle',
formatter: (cellValue) => {
return ``
}
}, {
label: '业务场景',
prop: 'scene'
}, {
label: '流量方',
prop: 'merchantName'
}, {
label: '车主类型',
prop: 'carOwnerType',
width: '160',
}, {
label: '商品分类',
prop: 'goodsType',
width: '160',
}, {
label: '主推产品套餐',
prop: 'studentNumber',
width: '160'
}, {
label: '目标转化率',
prop: 'updatedDate',
width: '100',
}, {
label: '提成系数',
prop: 'updatedDate',
width: '80',
}, {
label: '目标客单价',
prop: 'updatedDate',
width: '100',
}, {
label: '提成系数',
prop: 'updatedDate',
width: '80',
}, {
label: '关联服务商',
prop: 'updatedDate',
width: '100',
}, {
label: '关联服务商号',
prop: 'updatedDate',
width: '120',
}, {
label: '最近更新时间',
prop: 'updatedDate',
width: '160',
formatter: (cellValue) => {
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
}
}]
},
// 查询条件
searchForm: {
staffName: '',
merchantName: '',
merchantId: '',
sceneType: '',
},
baseData: {
sceneTypeList: [{
confId: 1,
confValue: '精品升级'
}, {
confId: 0,
confValue: '会员权益/升级'
}]
}
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList,
updateList: (state) => state.d2admin.user.updateList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']),
getBaseData() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
this.baseData[item.name + 'List'].unshift({
confId: '',
confValue: '全部'
})
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
beforeSearchFn() {
return new Promise(resolve => {
resolve()
})
},
setTableFinishFun(data) {
},
// 重置
handleReset() {
this.searchForm = {
staffName: '',
merchantName: '',
merchantId: '',
sceneType: '',
}
this.$refs.staffTargetTable.refreshTable(true, true)
},
// 导出
handleExport() {
var params = this.searchForm
params.method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.export.async'
const list = [
...this.dowloadList,
{
name: '合并导出',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
},
// 查看任务详情
handleStaffView(row) {
this.close({ tagName: '/inStoreGoalsConfig' })
this.$router.push({
path: '/employeeTasksView',
query: row.staffUuid
})
}
}
}
</script>
<style lang="scss" scoped>
.m-t-40 {
margin-top: 40px;
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 门店目标配置 -->
<template>
<d2-container class="store-target-list m-t-40">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'100px'"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062501']" />
</d2-table-header>
<d2-table ref="storeTargetTable"
:has-num="false"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="sceneType" slot-scope="scope">
<div v-if="scope.scope.sceneType == 1">精品升级</div>
<div v-if="scope.scope.sceneType == 0">会员权益/升级</div>
<div v-else>-</div>
</template>
<template slot="yqMerchantName" slot-scope="scope">
<div v-for="item in scope.scope.yqMerchantList" :key="item.merchantId">{{ item.merchantName }}</div>
<!-- <div v-if="!scope.scope.yqMerchantList.length">-</div> -->
</template>
<template slot="yqMerchantId" slot-scope="scope">
<div v-for="item in scope.scope.yqMerchantList" :key="item.merchantId">{{ item.merchantId }}</div>
<!-- <div v-if="!scope.scope.yqMerchantList.length">-</div> -->
</template>
<template slot="partnerMerchantName" slot-scope="scope">
<div v-for="item in scope.scope.partnerMerchantList" :key="item.merchantId">{{ item.merchantName }}</div>
<!-- <div v-if="!scope.scope.partnerMerchantList.length">-</div> -->
</template>
<template slot="partnerMerchantId" slot-scope="scope">
<div v-for="item in scope.scope.partnerMerchantList" :key="item.merchantId">{{ item.merchantId }}</div>
<!-- <div v-if="!scope.scope.partnerMerchantList.length">-</div> -->
</template>
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062502']" />
</span>
<!-- 编辑 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062503']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { mapActions } from 'vuex'
import { getStoreTargetListApi } from '@api/inStoreTargetConfig'
import { Util } from '@/common/util'
export default {
name: "StoreTargetList",
data() {
return {
// 搜索框
showFormData: [{
label: '商户名称',
name: 'merchantName',
type: 'input',
isClear: true,
keyFn: this.keyDownGetList
}, {
label: '商户号',
name: 'merchantId',
type: 'input',
inputType: 'number',
isClear: true,
keyFn: this.keyDownGetList
}, {
label: '场景名称',
name: 'sceneType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneTypeList'
}, {
label: '配置状态',
name: 'status',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'statusList'
}],
getListApi: getStoreTargetListApi,
// 表格参数
tableParams: {
needUnique: true,
mutiSelectUniqueKey: 'uniqueVal',
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: {
width: '100'
},
tableColumns: [{
label: '序号',
prop: 'ownSerialNum',
type: 'ownSerialNum',
width: '60'
}, {
label: '流量方',
prop: 'merchantName',
width: '120'
}, {
label: '流量方商户号',
prop: 'merchantId',
width: '120'
}, {
label: '业务场景',
prop: 'sceneType',
addHtml: 'sceneType'
}, {
label: '关联园区店',
prop: 'yqMerchantName',
addHtml: 'yqMerchantName'
}, {
label: '关联园区店号',
prop: 'yqMerchantId',
addHtml: 'yqMerchantId'
}, {
label: '关联服务商',
prop: 'partnerMerchantName',
addHtml: 'partnerMerchantName'
}, {
label: '关联服务商号',
prop: 'partnerMerchantId',
addHtml: 'partnerMerchantId'
}, {
label: '配置状态',
prop: 'status',
width: '80',
className: (cellValue) => {
cellValue.performanceFlag = cellValue?.performanceFlag ? cellValue?.performanceFlag : 'N'
return {
'Y': 'greenSpot',
'N': 'yellowSpot'
}[cellValue.performanceFlag]
},
formatter: (cellValue) => {
return {
'Y': '已配置',
'N': '待配置'
}[cellValue.performanceFlag]
}
}, {
label: '创建时间',
prop: 'created',
width: '160',
formatter: (cellValue) => {
return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : ''
}
}, {
label: '更新时间',
prop: 'update',
width: '160',
formatter: (cellValue) => {
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
}
}, {
label: '操作人',
prop: 'updateUser',
width: '80',
}]
},
// 查询条件
searchForm: {
merchantName: '',
merchantId: '',
sceneType: '',
status: ''
},
baseData: {
sceneTypeList: [{
confId: 1,
confValue: '精品升级'
}, {
confId: 0,
confValue: '会员权益/升级'
}],
statusList: [{
confId: 1,
confValue: '待配置'
}, {
confId: 2,
confValue: '已配置'
}]
}
}
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
getBaseData() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
this.baseData[item.name + 'List'].unshift({
confId: '',
confValue: '全部'
})
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
beforeSearchFn() {
return new Promise(resolve => {
resolve()
})
},
// 表格数据处理
setTableFinishFun(data) {
},
// 查看详情
handleStoreView(row) {
this.close({ tagName: '/inStoreGoalsConfig' })
this.$router.push({
path: '/inStoreConfigView',
query: row
})
},
// 新增配置
handleAdd() {
this.close({ tagName: '/inStoreGoalsConfig' })
let queryObj = { idEdit: false }
this.$router.push({
path: '/addInStoreConfig',
query: queryObj
})
},
// 编辑配置
handleStoreEdit(row) {
this.close({ tagName: '/inStoreGoalsConfig' })
let queryObj = { idEdit: true, ...row }
this.$router.push({
path: '/addInStoreConfig',
query: queryObj
})
},
// 重置
handleReset() {
this.searchForm = {
merchantName: '',
merchantId: '',
sceneType: '',
status: ''
}
this.$refs.storeTargetTable.refreshTable(true, true)
}
}
}
</script>
<style lang="scss" scoped>
.m-t-40 {
margin-top: 40px;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -840,7 +840,7 @@ export default { ...@@ -840,7 +840,7 @@ export default {
// return false // return false
// let obj // let obj
const filterObj = deepClone(this.classificationObjSelect) const filterObj = deepClone(this.classificationObjSelect)
console.log(filterObj, "filterObj") // console.log(filterObj, "filterObj")
const obj = {} const obj = {}
// obj = deepClone(...obj, this.classificationObjSelect[key]) // obj = deepClone(...obj, this.classificationObjSelect[key])
for (const key in filterObj) { for (const key in filterObj) {
...@@ -857,7 +857,7 @@ export default { ...@@ -857,7 +857,7 @@ export default {
} }
}) })
} }
console.log(obj, 'obj') // console.log(obj, 'obj')
if (this.classificationObj.goodsCostFlag == "Y") { if (this.classificationObj.goodsCostFlag == "Y") {
const arr = [ const arr = [
{ {
...@@ -1139,7 +1139,7 @@ export default { ...@@ -1139,7 +1139,7 @@ export default {
return item return item
}) })
this.forceUpdate() this.forceUpdate()
console.log(this.classificationObj[name][index].children, "this.classificationObj[name][index].children") // console.log(this.classificationObj[name][index].children, "this.classificationObj[name][index].children")
} }
}, },
handleInput(newValue, name, type, index, ChildrenIndex) { handleInput(newValue, name, type, index, ChildrenIndex) {
...@@ -1205,15 +1205,15 @@ export default { ...@@ -1205,15 +1205,15 @@ export default {
// console.log('expenseCategoryRules', expenseCategoryRules) // console.log('expenseCategoryRules', expenseCategoryRules)
const setList = this.classificationObjSelect const setList = this.classificationObjSelect
// const list = {} // const list = {}
console.log('setList', this.classificationObjSelect) // console.log('setList', this.classificationObjSelect)
// 初始化类目 // 初始化类目
for (const key in setList) { for (const key in setList) {
console.log('setList[key]', setList[key]) // console.log('setList[key]', setList[key])
console.log('key', key) // console.log('key', key)
this.classificationObj[key] = [] this.classificationObj[key] = []
setList[key].forEach((item) => { setList[key].forEach((item) => {
// debugger // debugger
console.log(setList[key]) // console.log(setList[key])
const editObj = const editObj =
expenseCategoryRules.find( expenseCategoryRules.find(
(el) => el.expenseCategoryId == item.expenseCategoryId (el) => el.expenseCategoryId == item.expenseCategoryId
...@@ -1282,14 +1282,14 @@ export default { ...@@ -1282,14 +1282,14 @@ export default {
// console.log(childrenObj, 'editChildrenObj') // console.log(childrenObj, 'editChildrenObj')
} }
// return Object.assign(childrenObj, editChildrenObj) // return Object.assign(childrenObj, editChildrenObj)
console.log(editChildrenObj, 'editChildrenObj') // console.log(editChildrenObj, 'editChildrenObj')
return Object.assign(childrenObj, editChildrenObj) return Object.assign(childrenObj, editChildrenObj)
}) })
// console.log(obj.children, ' obj.children') // console.log(obj.children, ' obj.children')
} }
console.log(editObj, 'obj') // console.log(editObj, 'obj')
this.classificationObj[key].push(Object.assign(obj, editObj)) this.classificationObj[key].push(Object.assign(obj, editObj))
console.log(this.classificationObj, ' this.classificationObj') // console.log(this.classificationObj, ' this.classificationObj')
// debugger // debugger
// this.classificationObj[key].push(Object.assign(obj)) // this.classificationObj[key].push(Object.assign(obj))
// 流量方分润/其他费用是按整单计算 服务商分润 均为按整单计算 不可操作 // 流量方分润/其他费用是按整单计算 服务商分润 均为按整单计算 不可操作
......
<!-- 安全验证码 --> <!-- 安全验证码 -->
<template> <template>
<!-- btn-ok-label="全部下载" --> <!-- btn-ok-label="全部下载" -->
<d2-dialog title="安全验证码" <d2-dialog title="安全验证码" :is-visible="verificationCodeVisible" class="verificationCode" width="750px"
:is-visible="verificationCodeVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm">
class="verificationCode"
width="750px" <el-form ref="form" :model="form" :rules="rules" label-suffix=":" label-width="180px">
@closeDialog="handleClose" <el-form-item label="规则生效日期" prop="effectStartDate"
@confirmDialog="handleConfirm"> :rules="[{ required: !effectStartDate, message: '请选择生效开始日期', trigger: 'blur' }]">
<p class="title-tips">注意: 成功提交后,首次设置规则立即生效,修改规则第二天生效!</p> <!-- placeholder="请输入服务开始时间"
<el-form ref="form" prefix-icon="0" -->
:model="form" <el-date-picker v-if="!effectStartDate" value-format="yyyy-MM-dd" v-model="form.effectStartDate" type="date"
:rules="rules" :picker-options="expireTimeOPtion">
label-suffix=":" </el-date-picker>
label-width="180px"> <span v-else>立即生效</span>
<!-- <el-input placeholder="请填写验证码"
v-model="form.smsCode"
:size="size"
style="width: 220px;" /> -->
</el-form-item>
<el-form-item label="管理员手机号验证"> <el-form-item label="管理员手机号验证">
{{ adminInfo.name }} {{ adminInfo.phone }} {{ adminInfo.name }} {{ adminInfo.phone }}
<el-button :size="size" <el-button :size="size" @click="handleSend" :disabled="isSend">
@click="handleSend"
:disabled="isSend">
{{ isSend ? sendMsg + '秒后,重试' : '发送验证短信' }} {{ isSend ? sendMsg + '秒后,重试' : '发送验证短信' }}
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item label="验证码" <el-form-item label="验证码" prop="smsCode">
prop="smsCode"> <el-input placeholder="请填写验证码" v-model="form.smsCode" :size="size" style="width: 220px;" />
<el-input placeholder="请填写验证码"
v-model="form.smsCode"
:size="size"
style="width: 220px;" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<p class="title-tips">注意: 成功提交后,首次设置规则立即生效,修改规则第二天生效!</p>
</d2-dialog> </d2-dialog>
</template> </template>
...@@ -41,6 +41,9 @@ export default { ...@@ -41,6 +41,9 @@ export default {
// 弹窗是否展示 // 弹窗是否展示
type: Boolean, type: Boolean,
default: false default: false
},
effectStartDate: {
type: Boolean
} }
}, },
computed: { computed: {
...@@ -57,12 +60,19 @@ export default { ...@@ -57,12 +60,19 @@ export default {
data() { data() {
return { return {
size: 'small', size: 'small',
expireTimeOPtion: {
disabledDate(time) {
return Date.now() > time.getTime() // 如果没有后面的-8.64e6就是不可以选择今天的
}
},
form: { form: {
merchantId: '', merchantId: '',
bizType: '1' bizType: '1',
effectStartDate: ''
}, },
rules: { rules: {
smsCode: [{ required: true, message: '请输入验证码', trigger: 'blur' }] smsCode: [{ required: true, message: '请输入验证码', trigger: 'blur' }]
// effectStartDate: [{ required: true, message: '请选择生效开始日期', trigger: 'blur' }]
}, },
// 短信模块 // 短信模块
isSend: false, isSend: false,
...@@ -117,7 +127,7 @@ export default { ...@@ -117,7 +127,7 @@ export default {
if (valid) { if (valid) {
// 清空倒计时 // 清空倒计时
this.sendMsg = 1 this.sendMsg = 1
this.$emit('handleConfirm', this.form.smsCode) this.$emit('handleConfirm', this.form)
this.handleClose() this.handleClose()
// this.$refs['step' + this.stepStat].handleConfirm() // this.$refs['step' + this.stepStat].handleConfirm()
} }
...@@ -127,5 +137,4 @@ export default { ...@@ -127,5 +137,4 @@ export default {
} }
</script> </script>
<style> <style></style>
</style>
...@@ -109,8 +109,8 @@ ...@@ -109,8 +109,8 @@
</div> </div>
</div> </div>
<verificationCodeDialog v-if="verificationCodeVisible" @handleConfirm="codeHandleConfirm" <verificationCodeDialog v-if="verificationCodeVisible" :effect-start-date="effectStartDate"
:visible.sync="verificationCodeVisible" /> @handleConfirm="codeHandleConfirm" :visible.sync="verificationCodeVisible" />
<!-- 财务分账测试 --> <!-- 财务分账测试 -->
<merchantTestDialog v-if="merchantTestVisible" :rules-test-params="rulesTestParams" <merchantTestDialog v-if="merchantTestVisible" :rules-test-params="rulesTestParams"
...@@ -123,8 +123,12 @@ ...@@ -123,8 +123,12 @@
import { mapActions, mapGetters, mapMutations } from 'vuex' import { mapActions, mapGetters, mapMutations } from 'vuex'
import { sceneList, userType, attrToVal as attrToValOptions } from '@/common/constants' import { sceneList, userType, attrToVal as attrToValOptions } from '@/common/constants'
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { scenemerchantrefQueryServiceRefByShop, merchantSettleDistributeRuleLastRule, merchantSettleDistributeRule, getMerchantLevelApi, getDjzhySubMerchant } from '@api/merchant' import {
scenemerchantrefQueryServiceRefByShop, merchantSettleDistributeRuleLastRule, merchantSettleDistributeRule, getMerchantLevelApi, getDjzhySubMerchant,
getLedgerHistoryRecordApi
} from '@api/merchant'
import { getPlatformMerchantList } from '@api/index' import { getPlatformMerchantList } from '@api/index'
import { queryFeeCategoryByType, getGoodsCategoryConfiguration } from '@/api/sys.base.js' import { queryFeeCategoryByType, getGoodsCategoryConfiguration } from '@/api/sys.base.js'
import verificationCodeDialog from './components/verificationCodeDialog' import verificationCodeDialog from './components/verificationCodeDialog'
import classificationCpt from './components/classificationCpt.vue' import classificationCpt from './components/classificationCpt.vue'
...@@ -207,7 +211,8 @@ export default { ...@@ -207,7 +211,8 @@ export default {
DjzhySubMerchantObj: { DjzhySubMerchantObj: {
djzhySubMerchantId: '', djzhySubMerchantId: '',
djzhySubMerchantName: '' djzhySubMerchantName: ''
} },
effectStartDate: false // 规则时间 true 表示可以立即生效 是否立即生效
} }
}, },
computed: { computed: {
...@@ -304,6 +309,7 @@ export default { ...@@ -304,6 +309,7 @@ export default {
this.init4sServiceList() this.init4sServiceList()
this.initFeeCategoryByType() this.initFeeCategoryByType()
this.getGoodsCategoryConfiguration() this.getGoodsCategoryConfiguration()
this.getLedgerHistoryRecordApi()
const { merchantId } = this.routerInfo const { merchantId } = this.routerInfo
// yqMerchant && this.getMerchantLevel(yqMerchant.merchantId, 'PlatformLevelList') // yqMerchant && this.getMerchantLevel(yqMerchant.merchantId, 'PlatformLevelList')
this.initPlatformLevelList() this.initPlatformLevelList()
...@@ -338,6 +344,25 @@ export default { ...@@ -338,6 +344,25 @@ export default {
const { settleTimeType, settleTime } = this.financialObj const { settleTimeType, settleTime } = this.financialObj
this.settleTimeObj[settleTimeType == 1 ? 'first' : 'second'] = settleTime this.settleTimeObj[settleTimeType == 1 ? 'first' : 'second'] = settleTime
}, },
getLedgerHistoryRecordApi() {
// 根据历史记录 处理财务生效记录的选项
const { merchantId, scene: sceneType } = this.routerInfo
getLedgerHistoryRecordApi({
merchantId,
sceneType
}).then(res => {
// 立即生效或者需选择
// console.log(res.every(item => {
// return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi')
this.effectStartDate = res.every(item => {
return item.rule.enableFlag == 3
}) || !res.length
}).catch((err) => {
console.log(err)
})
},
getGoodsCategoryConfiguration() { getGoodsCategoryConfiguration() {
// const { scene: sceneType } = this.routerInfo // const { scene: sceneType } = this.routerInfo
// sceneType // sceneType
...@@ -510,9 +535,13 @@ export default { ...@@ -510,9 +535,13 @@ export default {
// console.log('this.rulesTestParams', this.rulesTestParams) // console.log('this.rulesTestParams', this.rulesTestParams)
this.merchantTestVisible = true this.merchantTestVisible = true
}, },
codeHandleConfirm(smsCode) { codeHandleConfirm({ smsCode, effectStartDate }) {
this.submitParams.smsCode = smsCode this.submitParams.smsCode = smsCode
// this.submitParams.effectStartDate = effectStartDate
this.submitParams.effectStartDate = effectStartDate ? effectStartDate + ' 00:00:00' : ''
console.log(this.submitParams)
// return // return
merchantSettleDistributeRule({ json: JSON.stringify(this.submitParams) }).then((result) => { merchantSettleDistributeRule({ json: JSON.stringify(this.submitParams) }).then((result) => {
// 判断是否有没有进行过分账测试的账号 // 判断是否有没有进行过分账测试的账号
// autoFlag: 'N', // 自动分账标识(Y是,N否) // autoFlag: 'N', // 自动分账标识(Y是,N否)
......
...@@ -74,8 +74,8 @@ ...@@ -74,8 +74,8 @@
<el-button size="small" @click="handleReset"> 取消 </el-button> <el-button size="small" @click="handleReset"> 取消 </el-button>
</div> </div>
</div> </div>
<verificationCodeDialog v-if="verificationCodeVisible" @handleConfirm="codeHandleConfirm" <verificationCodeDialog v-if="verificationCodeVisible" :effect-start-date="effectStartDate"
:visible.sync="verificationCodeVisible" /> @handleConfirm="codeHandleConfirm" :visible.sync="verificationCodeVisible" />
</d2-Container> </d2-Container>
</template> </template>
...@@ -89,8 +89,9 @@ import { sceneList } from "@/common/constants" ...@@ -89,8 +89,9 @@ import { sceneList } from "@/common/constants"
import { import {
saveRuleApi, saveRuleApi,
getEffectRuleApi, getEffectRuleApi,
getQueryFeeCategoryByTypeApi getQueryFeeCategoryByTypeApi, addContactgetReconciliationHistoryRecordApi
} from "@api/merchant" } from "@api/merchant"
import { getGoodsCategoryConfiguration } from '@/api/sys.base.js' import { getGoodsCategoryConfiguration } from '@/api/sys.base.js'
import classificationCpt from "./components/classificationCpt.vue" import classificationCpt from "./components/classificationCpt.vue"
import verificationCodeDialog from '../financialRules/components/verificationCodeDialog' import verificationCodeDialog from '../financialRules/components/verificationCodeDialog'
...@@ -104,6 +105,8 @@ export default { ...@@ -104,6 +105,8 @@ export default {
}, },
data() { data() {
return { return {
effectStartDateDate: '',
effectStartDate: false, // 规则时间 true 表示可以立即生效 是否立即生效
sceneList, sceneList,
verificationCodeVisible: false, verificationCodeVisible: false,
smsCode: '', smsCode: '',
...@@ -174,6 +177,7 @@ export default { ...@@ -174,6 +177,7 @@ export default {
this.getEffectRule()// 获取对账规则 this.getEffectRule()// 获取对账规则
}, 1000) }, 1000)
this.initBaseData() this.initBaseData()
this.addContactgetReconciliationHistoryRecordApi()
}, },
watch: { watch: {
productType: { productType: {
...@@ -192,6 +196,25 @@ export default { ...@@ -192,6 +196,25 @@ export default {
} }
return "%" return "%"
}, },
addContactgetReconciliationHistoryRecordApi() {
// 根据历史记录 处理财务生效记录的选项
const { merchantId, scene: sceneType } = this.routerInfo
getLedgerHistoryRecordApi({
merchantId,
sceneType
}).then(res => {
// 立即生效或者需选择
// console.log(res.every(item => {
// return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi')
this.effectStartDate = res.every(item => {
return item.rule.enableFlag == 3
}) || !res.length
}).catch((err) => {
console.log(err)
})
},
getQueryFeeCategoryByType() { getQueryFeeCategoryByType() {
const params = { const params = {
feeCategoryType: 2, feeCategoryType: 2,
...@@ -537,7 +560,8 @@ export default { ...@@ -537,7 +560,8 @@ export default {
}) })
}, },
// 获取弹框中的验证码 // 获取弹框中的验证码
codeHandleConfirm(smsCode) { codeHandleConfirm({ smsCode, effectStartDate }) {
this.effectStartDateDate = effectStartDate ? effectStartDate + ' 00:00:00' : ''
this.smsCode = smsCode this.smsCode = smsCode
this.submitFormData() this.submitFormData()
}, },
...@@ -546,6 +570,7 @@ export default { ...@@ -546,6 +570,7 @@ export default {
const { shopMerchantTotalFeeCalculateType, shopMerchantExpenseCategoryValue, partnerMerchantTotalFeeCalculateType, partnerMerchantExpenseCategoryValue } = this.formObj const { shopMerchantTotalFeeCalculateType, shopMerchantExpenseCategoryValue, partnerMerchantTotalFeeCalculateType, partnerMerchantExpenseCategoryValue } = this.formObj
const params = { const params = {
smsCode: this.smsCode, smsCode: this.smsCode,
effectStartDate: this.effectStartDateDate,
merchantId: this.merchantRow.merchantId, merchantId: this.merchantRow.merchantId,
sceneType: this.merchantRow.scene, sceneType: this.merchantRow.scene,
goodsTypeGroupRules: this.goodsTypeGroupRulesAll, goodsTypeGroupRules: this.goodsTypeGroupRulesAll,
......
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
操作人: {{ formItem.updatedBy }} 操作时间: 操作人: {{ formItem.updatedBy }} 操作时间:
{{ formItem.formatUpdatedDate }} {{ formItem.formatUpdatedDate }}
</span> </span>
<span class="updatedInfo">
审核人: {{ formItem.auditorName }} 审核时间:
{{ formItem.formatAuditDate }}
</span>
<span class="collapse" @click="collapseItem(index)"> <span class="collapse" @click="collapseItem(index)">
<i :class="{ move: formItem.show }" class="arrow el-icon-arrow-down" /> <i :class="{ move: formItem.show }" class="arrow el-icon-arrow-down" />
{{ formItem.show ? "收起" : "展开" }} {{ formItem.show ? "收起" : "展开" }}
...@@ -126,40 +130,41 @@ export default { ...@@ -126,40 +130,41 @@ export default {
} }
}) })
}, },
getDetail() { // getDetail() {
// const merchantId = this.merchantRow.merchantId // // const merchantId = this.merchantRow.merchantId
const merchantId = 44209883 // const merchantId = 44209883
if (!merchantId) return // if (!merchantId) return
getHistoryRecord({ merchantId }).then((res) => { // getHistoryRecord({ merchantId }).then((res) => {
// console.log(res) // // console.log(res)
// dayjs(this.summaryDate).startOf('month').format('YYYY-MM-DD') // // dayjs(this.summaryDate).startOf('month').format('YYYY-MM-DD')
// const timeLabele = { // // const timeLabele = {
// } // // }
// let financialRulesList = res // // let financialRulesList = res
// 财务规则有三个模式 待生效 生效中 历史 // // 财务规则有三个模式 待生效 生效中 历史
// 根据effectEndDate 和 effectStartDate // // 根据effectEndDate 和 effectStartDate
// console.log(res) // // console.log(res)
this.formArray = res.map((item) => { // this.formArray = res.map((item) => {
const format = "YYYY/MM/DD HH:mm" // const format = "YYYY/MM/DD HH:mm"
const createdDate = item.createdDate // const createdDate = item.createdDate
item.merchant = item?.divisionRule?.realityDivisionMerchant // item.merchant = item?.divisionRule?.realityDivisionMerchant
item = Object.assign(item, item.settleRule, item.divisionRule) // item = Object.assign(item, item.settleRule, item.divisionRule)
// 这个值强制取item里面的 // // 这个值强制取item里面的
item.createdDate = createdDate // item.createdDate = createdDate
item.formatEffectEndDate = item.effectEndDate // item.formatEffectEndDate = item.effectEndDate
? dayjs(item.effectEndDate).format(format) // ? dayjs(item.effectEndDate).format(format)
: "" // : ""
item.formatEffectStartDate = item.effectStartDate // item.formatEffectStartDate = item.effectStartDate
? dayjs(item.effectStartDate).format(format) // ? dayjs(item.effectStartDate).format(format)
: "" // : ""
// console.log('item.createdDate', item.createdDate) // // console.log('item.createdDate', item.createdDate)
item.formatUpdatedDate = dayjs(item.createdDate).format(format) // item.formatUpdatedDate = dayjs(item.createdDate).format(format)
item.show = false // item.formatAuditDate = dayjs(item.auditDate).format(format)
return item // item.show = false
}) // return item
}) // })
}, // })
// },
init() { init() {
if (this.activeName == "first") { if (this.activeName == "first") {
this.getLedgerHistoryRecord() this.getLedgerHistoryRecord()
...@@ -263,7 +268,7 @@ $color: #2a58ad; ...@@ -263,7 +268,7 @@ $color: #2a58ad;
.label { .label {
padding-left: 8px; padding-left: 8px;
width: 37%; width: 25%;
} }
.labelColor { .labelColor {
...@@ -271,7 +276,7 @@ $color: #2a58ad; ...@@ -271,7 +276,7 @@ $color: #2a58ad;
} }
.updatedInfo { .updatedInfo {
width: 40%; width: 20%;
text-align: left; text-align: left;
} }
...@@ -661,4 +666,5 @@ $color: #2a58ad; ...@@ -661,4 +666,5 @@ $color: #2a58ad;
// .part5 { // .part5 {
// } // }
} }
}</style> }
</style>
...@@ -34,6 +34,13 @@ ...@@ -34,6 +34,13 @@
}}</el-radio> }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="多业务客户档案数据互通:">
<el-radio-group v-model="multiBusinessCustomerProfileDataExchangeMode">
<el-radio v-for="(item, index) in multiBusinessCustomerProfileDataExchange" :key="index"
:label="item.confId">{{ item.confLabel
}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="安装服务商:"> <el-form-item label="安装服务商:">
<el-input style="width:350px" maxlength="50" v-model.trim="installMerchantName"></el-input> <el-input style="width:350px" maxlength="50" v-model.trim="installMerchantName"></el-input>
</el-form-item> </el-form-item>
...@@ -72,12 +79,16 @@ export default { ...@@ -72,12 +79,16 @@ export default {
{ id: 3, name: 'POS机收款', disabled: false }, { id: 3, name: 'POS机收款', disabled: false },
{ id: 0, name: '不升级', disabled: true }, { id: 0, name: '不升级', disabled: true },
{ id: 1, name: '微信支付', disabled: false } { id: 1, name: '微信支付', disabled: false }
// { id: 4, name: '支付宝支付', disabled: false }
], ],
loginTypeList: [ loginTypeList: [
{ id: 0, name: '微信', disabled: false }, { id: 0, name: '微信', disabled: false },
{ id: 1, name: '企业微信', disabled: false } { id: 1, name: '企业微信', disabled: false }
], ],
// 多业务客户档案数据互通
multiBusinessCustomerProfileDataExchange: [
{ confId: 0, confLabel: "禁用" },
{ confId: 1, confLabel: "启用" }
],
// partnerTypeList: [ // partnerTypeList: [
// { id: 1, name: '普通' }, // { id: 1, name: '普通' },
// { id: 2, name: '个体' } // { id: 2, name: '个体' }
...@@ -85,6 +96,7 @@ export default { ...@@ -85,6 +96,7 @@ export default {
checkList: [0], checkList: [0],
manageTypeList: manageTypeList, manageTypeList: manageTypeList,
businessModel: '', businessModel: '',
multiBusinessCustomerProfileDataExchangeMode: 0,
installMerchantName: '', installMerchantName: '',
loginControlList: [], loginControlList: [],
marketingMerchantName: '', marketingMerchantName: '',
...@@ -107,6 +119,7 @@ export default { ...@@ -107,6 +119,7 @@ export default {
GETYQMERCHANTCONFIGDETAIL(oParams).then((res) => { GETYQMERCHANTCONFIGDETAIL(oParams).then((res) => {
this.checkList = res.supportPayTypes || [] this.checkList = res.supportPayTypes || []
this.businessModel = res.businessModel this.businessModel = res.businessModel
this.businessModel = res.multiBusinessCustomerProfileDataExchangeMode
this.installMerchantName = res.installMerchantName || '' this.installMerchantName = res.installMerchantName || ''
this.marketingMerchantName = res.marketingMerchantName || '' this.marketingMerchantName = res.marketingMerchantName || ''
this.loginControlList = res.loginControlList || [0, 1] this.loginControlList = res.loginControlList || [0, 1]
...@@ -199,6 +212,7 @@ export default { ...@@ -199,6 +212,7 @@ export default {
oParams.yqMerchantId = this.$route.query.yqMerchantId oParams.yqMerchantId = this.$route.query.yqMerchantId
oParams.supportPayTypes = this.checkList oParams.supportPayTypes = this.checkList
oParams.businessModel = this.businessModel oParams.businessModel = this.businessModel
oParams.multiBusinessCustomerProfileDataExchangeMode = this.multiBusinessCustomerProfileDataExchangeMode
oParams.loginControlList = this.loginControlList oParams.loginControlList = this.loginControlList
// oParams.partnerType = this.partnerType // oParams.partnerType = this.partnerType
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!