Commit 630ab7bc by 王琦琳

Merge branch 'dev_v4.35.0-0305' into 'develop'

上线合并

See merge request !266
2 parents c0dc172e 085ff142
Showing 52 changed files with 2553 additions and 294 deletions
...@@ -9,13 +9,12 @@ export function getYqMerchantListBySceneApi(data) { ...@@ -9,13 +9,12 @@ export function getYqMerchantListBySceneApi(data) {
// 获取员工列表 // 获取员工列表
export function getListApi(data) { export function getListApi(data) {
data.method = `${path}staff.performance.page` data.method = `${path}staff.performance.page`
// data.method = 'dj.api.life.pos.trm.list'
return request(data,'post') return request(data,'post')
} }
// 获取启用商学院员工数量 // 获取启用工资绩效员工数量
export function getEnableStaffNumApi(data) { export function getEnableStaffNumApi(data) {
data.method = `${path}businessSchoolEnable.number` data.method = `${path}performanceEnable.number`
return request(data, 'post') return request(data, 'post')
} }
...@@ -25,9 +24,9 @@ export function importStaffApi(data) { ...@@ -25,9 +24,9 @@ export function importStaffApi(data) {
return request(data, "post", ["file"]) return request(data, "post", ["file"])
} }
// 禁用启用商学院 // 禁用启用工资绩效
export function enableOrDisableApi(data) { export function enableOrDisableApi(data) {
data.method = `${path}businessSchoolEnable.update` data.method = `${path}performanceEnable.update`
return request(data,'post') return request(data,'post')
} }
...@@ -72,3 +71,15 @@ export function getNoRelateStaffListApi(data) { ...@@ -72,3 +71,15 @@ 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 getMerchantStoreByServiceApi(data) {
data.method = "dj.api.scenemerchantref.listShopMerchantByYqMerchantId"
return request(data, "post")
}
// 根据场景值获取园区店下所有4s店
export function getMerchantStoreApi(data) {
data.method = "dj.api.scenemerchantref.query4SRefByYqShop"
return request(data, "post")
}
\ No newline at end of file \ No newline at end of file
...@@ -134,3 +134,9 @@ export function saveUpgradeGoodsAlias(data) { ...@@ -134,3 +134,9 @@ export function saveUpgradeGoodsAlias(data) {
data.method = `${path}smartcarlife.merchantUpgradeGoodsAlias.save` data.method = `${path}smartcarlife.merchantUpgradeGoodsAlias.save`
return request(data) return request(data)
} }
// 获取车品牌列表
export function getCarBrandList(data) {
data.method = `dj.api.car.getCarBrandList`
return request(data)
}
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 驻店管理标签明细
export function staffLabelDetail(data) {
data.method = `${path}staff.labelDetail`
return request(data, RequestMethods.POST)
}
// 分页查询驻店管理
export function staffPage(data) {
data.method = `${path}staff.page`
return request(data, RequestMethods.POST)
}
// 获取员工标签树
export function queryLabelGroupTree(data) {
data.method = `${path}staff.queryLabelGroupTree`
return request(data, RequestMethods.POST)
}
import request from "./request"
const path = "dj.api.smartcarlife."
// // 获取店面目标列表
// export function getStoreTargetListApi(data) {
// data.method = `${path}merchantTargetConfig.page`
// return request(data, 'post')
// }
// // 获取员工目标任务列表
// export function getStaffTaskListApi(data) {
// data.method = "dj.smartcarlife.api.yqPartnerMerchant.ref.page"
// return request(data, "post")
// }
// 新增或修改店面目标配置
export function merchantTargetConfigUpdate(data) {
data.method = "dj.api.smartcarlife.merchantTargetConfig.insertOrUpdate"
return request(data, "post")
}
// 查询存在商户上架商品的商品类目
export function queryMerchantGoodsCategoryList(data) {
data.method =
"dj.api.goodsCategoryConfiguration.queryMerchantGoodsCategoryList"
return request(data, "post")
}
// 获取门店场景驻店员工
export function merchantTargetConfigGetStaffList(data) {
data.method = "dj.api.smartcarlife.merchantTargetConfig.getStaffList"
return request(data, "post")
}
// dj.api.smartcarlife.staffTargetCheck.page/1.0.0
// 分页查询驻店员工任务
// data.method = `${path}staffTargetCheck.page`
// return request(data, 'post')
// }
// 获取店面目标列表
export function getStoreTargetListApi(data) {
data.method = `${path}merchantTargetConfig.page`
return request(data, "post")
}
// 获取员工目标任务列表
export function getStaffTaskListApi(data) {
data.method = `${path}staffTargetCheck.page`
return request(data, "post")
}
// 获取员工任务详情
export function getStaffTaskDetailApi(data) {
data.method = `${path}staffTargetCheck.getTargetCheck`
return request(data, "post")
}
// 查看店面目标配置详情
export function merchantTargetConfigDetail(data) {
data.method = `dj.api.smartcarlife.merchantTargetConfig.getDetail`
return request(data, "post")
}
...@@ -222,7 +222,8 @@ export function saveRuleApi(data) { ...@@ -222,7 +222,8 @@ export function saveRuleApi(data) {
} }
// 查询服务商列表 // 查询服务商列表
export function listPartnerMerchantApi(data) { export function listPartnerMerchantApi(data) {
data.method = `${path2}shopMerchant.listPartnerMerchant` data.method = `dj.api.scenemerchantref.queryServiceRefByShop`
// data.method = `${path2}shopMerchant.listPartnerMerchant`
return request(data, "post") return request(data, "post")
} }
// 查询4s店及上级列表 参数 channelType=1(流量方对象) // 查询4s店及上级列表 参数 channelType=1(流量方对象)
...@@ -327,3 +328,8 @@ export function getDjzhySubMerchant(data) { ...@@ -327,3 +328,8 @@ export function getDjzhySubMerchant(data) {
data.method = `${path2}merchantDivisionRule.djzhySubMerchant` data.method = `${path2}merchantDivisionRule.djzhySubMerchant`
return request(data) return request(data)
} }
// 获取指定商户指定场景指定规则类型的情况
export function ruleAuditSituation(data) {
data.method = `${path2}ruleAudit.situation`
return request(data, "post")
}
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 分页查询规则审核记录
export function ruleAuditPage(data) {
data.method = `${path}ruleAudit.page`
return request(data, RequestMethods.POST)
}
// 规则审核-查看详情
export function ruleAuditDetail(data) {
data.method = `${path}ruleAudit.detail`
return request(data, RequestMethods.POST)
}
// 规则审核-审核通过
export function ruleAuditPass(data) {
data.method = `${path}ruleAudit.pass`
return request(data, RequestMethods.POST)
}
// 规则审核-驳回
export function ruleAuditReject(data) {
data.method = `${path}ruleAudit.reject`
return request(data, RequestMethods.POST)
}
// 规则审核-撤销
export function ruleAuditCancel(data) {
data.method = `${path}ruleAudit.cancel`
return request(data, RequestMethods.POST)
}
...@@ -61,3 +61,27 @@ export function updateStaffBatch(data) { ...@@ -61,3 +61,27 @@ export function updateStaffBatch(data) {
data.method = `merchants.api.staff.updateStaffBatch` data.method = `merchants.api.staff.updateStaffBatch`
return request(data) return request(data)
} }
// 查询业务负责人
export function findSellerMerchantStaffList(data) {
data.method = `${path}workbench.findSellerMerchantStaffList`
return request(data)
}
// 获取门店标签树
export function queryLabelGroupTree(data) {
data.method = `${path}serviceMerchant.queryLabelGroupTree`
return request(data)
}
// 门店标签详情
export function shopLabelDetail(data) {
data.method = `${path}serviceMerchant.shopLabelDetail`
return request(data)
}
// 修改门店标签
export function updateShopLabel(data) {
data.method = `${path}serviceMerchant.updateShopLabel`
return request(data)
}
...@@ -678,8 +678,15 @@ export const applyStatus = [ ...@@ -678,8 +678,15 @@ export const applyStatus = [
// 店面配置 业务性质 // 店面配置 业务性质
export const businessNature = [ export const businessNature = [
{ confId: 1, confName: "直营渠道" }, { confId: 1, confName: "直营渠道" },
{ confId: 2, confName: "直营4S店" } { confId: 2, confName: "直营4S店" },
{ confId: 3, confName: "合资收购" }
] ]
// 店面配置 业务性质
export const businessNatureShow = {
1: "直营渠道",
2: "直营4S店",
3: "合资收购"
}
// 店面配置 门店类型 // 店面配置 门店类型
export const storeType = [ export const storeType = [
{ confId: 1, confName: "嘀加" }, { confId: 1, confName: "嘀加" },
...@@ -761,8 +768,43 @@ export const stockManagementModeList = [ ...@@ -761,8 +768,43 @@ export const stockManagementModeList = [
{ confId: 1, confName: "使用膜卷号" } { confId: 1, confName: "使用膜卷号" }
] ]
// 转账管理-预警状态
export const warningStatus = [
{ confId: "Y", confValue: "正常" },
{ confId: "N", confValue: "异常" }
]
// 规则审核-类型
export const ruleReview_type = [
{ confId: 1, confValue: "清分" },
{ confId: 3, confValue: "对账" }
]
export const ruleReview_type_show = {
1: "清分",
3: "对账"
}
// 规则审核-状态
export const ruleReview_status = [
{ confId: 1, confValue: "待审核" },
{ confId: 2, confValue: "已审核" },
{ confId: 3, confValue: "已驳回" },
{ confId: 4, confValue: "逾期未审" },
{ confId: 5, confValue: "已撤销" },
{ confId: 6, confValue: "异常" }
]
// 服务商类型 // 服务商类型
export const partnerTypeList = [ export const partnerTypeList = [
{ confId: 1, confName: "普通" }, { confId: 1, confName: "普通" },
{ confId: 2, confName: "个体" } { confId: 2, confName: "个体" }
] ]
// 驻店管理 所属业务对应
export const sceneForInStore = [
{ confId: "1", confValue: "1.1" },
{ confId: "4", confValue: "1.2" },
{ confId: "3", confValue: "1.3" },
{ confId: "0", confValue: "2.1" },
{ confId: "2", confValue: "2.2" }
]
...@@ -13,6 +13,14 @@ export function limitPrice( ...@@ -13,6 +13,14 @@ export function limitPrice(
maxValue, maxValue,
regRule regRule
) { ) {
console.log(
newValue,
minValue,
newValue &&
((minValue && newValue < minValue) || (maxValue && newValue > maxValue)),
"limitPrice"
)
var reg = { var reg = {
priceReg: /^\d[\d\.]*$/, // eslint-disable-line priceReg: /^\d[\d\.]*$/, // eslint-disable-line
numReg: /^[1-9]\d*$/, numReg: /^[1-9]\d*$/,
...@@ -49,9 +57,9 @@ export function limitPrice( ...@@ -49,9 +57,9 @@ export function limitPrice(
} }
} }
//允许输入负数的输入框限制 // 允许输入负数的输入框限制
export function limitPriceForNegative(newValue) { export function limitPriceForNegative(newValue) {
//用来检索整数且不超过七位数 // 用来检索整数且不超过七位数
const limitDigit = /[0-9]{1,7}/ const limitDigit = /[0-9]{1,7}/
// 用来检索小数且小数点后不超过两位数 // 用来检索小数且小数点后不超过两位数
const limitDigitdot = /[0-9]{1,7}.[\d]{0,2}/ const limitDigitdot = /[0-9]{1,7}.[\d]{0,2}/
...@@ -114,10 +122,10 @@ export const afterTodayOptions = { ...@@ -114,10 +122,10 @@ export const afterTodayOptions = {
/** /**
* 时间控件-限制选择30天时间范围,且不大于当前时间 * 时间控件-限制选择30天时间范围,且不大于当前时间
*/ */
export var pickerMinDate = "" //获取开始选择时间 export var pickerMinDate = "" // 获取开始选择时间
export var pickerMaxDate = "" //获取结束选择时间 export var pickerMaxDate = "" // 获取结束选择时间
export const rangePickerOptions_30day = { export const rangePickerOptions_30day = {
//时间范围选择控制 // 时间范围选择控制
onPick({ maxDate, minDate }) { onPick({ maxDate, minDate }) {
console.log("minDate", minDate) console.log("minDate", minDate)
console.log("maxDate", maxDate) console.log("maxDate", maxDate)
...@@ -143,7 +151,7 @@ export const rangePickerOptions_30day = { ...@@ -143,7 +151,7 @@ export const rangePickerOptions_30day = {
return time.getTime() > maxTime || time.getTime() > Date.now() - 86400000 return time.getTime() > maxTime || time.getTime() > Date.now() - 86400000
} }
if (pickerMaxDate !== "" && !pickerMinDate) { if (pickerMaxDate !== "" && !pickerMinDate) {
let minTime = pickerMaxDate - day31 const minTime = pickerMaxDate - day31
return time.getTime() < minTime || time.getTime() > Date.now() - 86400000 return time.getTime() < minTime || time.getTime() > Date.now() - 86400000
} }
return time.getTime() > Date.now() - 86400000 return time.getTime() > Date.now() - 86400000
...@@ -155,7 +163,7 @@ export const rangePickerOptions_30day = { ...@@ -155,7 +163,7 @@ export const rangePickerOptions_30day = {
*/ */
export var selectDate = "" export var selectDate = ""
export const rangePickerOptions_30day2 = { export const rangePickerOptions_30day2 = {
//时间范围选择控制 // 时间范围选择控制
onPick({ maxDate, minDate }) { onPick({ maxDate, minDate }) {
selectDate = minDate.getTime() selectDate = minDate.getTime()
if (maxDate) { if (maxDate) {
...@@ -164,8 +172,8 @@ export const rangePickerOptions_30day2 = { ...@@ -164,8 +172,8 @@ export const rangePickerOptions_30day2 = {
}, },
disabledDate(time) { disabledDate(time) {
if (selectDate !== "") { if (selectDate !== "") {
let one = 30 * 24 * 3600 * 1000 const one = 30 * 24 * 3600 * 1000
let minTime = selectDate - one const minTime = selectDate - one
let maxTime = selectDate + one let maxTime = selectDate + one
if (maxTime > new Date()) { if (maxTime > new Date()) {
maxTime = new Date() maxTime = new Date()
......
...@@ -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
}) })
......
...@@ -712,6 +712,12 @@ export const routerName = { ...@@ -712,6 +712,12 @@ export const routerName = {
parentId: "9061908" parentId: "9061908"
} }
] ]
},
{
authId: "9061910",
parentId: "90619",
label: "门店标签",
handle: "handleShopLabelFlag"
} }
], ],
component: _import("systemConfig/ShopConfig/index") component: _import("systemConfig/ShopConfig/index")
...@@ -767,7 +773,7 @@ export const routerName = { ...@@ -767,7 +773,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 +823,13 @@ export const routerName = { ...@@ -817,13 +823,13 @@ export const routerName = {
{ {
authId: "9062105", authId: "9062105",
parentId: "90621", parentId: "90621",
label: "启用商学院", label: "启用工资绩效",
handle: "handleEnableOrDisable", handle: "handleEnableOrDisable",
ruleObj: { ruleObj: {
attr: "businessSchoolEnableFlag", attr: "performanceFlag",
rule: { rule: {
'N': "启用商学院", N: "启用工资绩效",
'Y': "禁用商学院" Y: "禁用工资绩效"
} }
} }
}, },
...@@ -860,4 +866,187 @@ export const routerName = { ...@@ -860,4 +866,187 @@ export const routerName = {
}, },
component: _import("systemConfig/businessSchoolManage/mentorConfig") component: _import("systemConfig/businessSchoolManage/mentorConfig")
}, },
90624: {
path: "/ruleReview",
name: "ruleReview",
meta: {
title: "规则审核",
authId: "90624",
parentId: "906",
cache: false
},
auth: [
{
authId: "9062401",
parentId: "90624",
label: "审核",
handle: "handleReview",
addRoutePath: [
{
authId: "9062404",
name: "审核",
parentId: "90624"
}
]
},
{
authId: "9062402",
parentId: "90624",
label: "驳回",
handle: "handleReject"
},
{
authId: "9062403",
parentId: "90624",
label: "撤销",
handle: "handleRevoke"
}
],
component: _import("systemConfig/ruleReview/index")
},
9062404: {
path: "/examineDetail",
name: "examineDetail",
meta: {
title: "审核",
authId: "9062404",
parentId: "90624",
cache: false,
sideHidden: false,
activePath: "/ruleReview"
},
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: {
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/addInStoreConfig")
},
// 查看驻店员工任务
90628: {
path: "/employeeTasksView",
name: "employeeTasksView",
meta: {
title: "查看任务",
authId: "90628",
parentId: "90625",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/employeeTasksView")
},
90629: {
path: "/inStoreManage",
name: "inStoreManage",
meta: {
title: "驻店管理",
authId: "90629",
parentId: "906",
cache: false
},
auth: [
{
authId: "9062901",
parentId: "90629",
label: "查看标签",
handle: "handleViewLabel"
}
],
component: _import("systemConfig/inStoreManage/index")
}
} }
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { transferAccountsStatusList, transferTypeList, sceneCodeList } from '@/common/constants.js' import { transferAccountsStatusList, transferTypeList, sceneCodeList, warningStatus } from '@/common/constants.js'
import { transferAccountsRecordPage, transferAccountsRecordUpdateStatus, reTransfer } from '@api/transferAccountsManage' import { transferAccountsRecordPage, transferAccountsRecordUpdateStatus, reTransfer } from '@api/transferAccountsManage'
import { rewithdraw } from '@api/withdrawalManage' import { rewithdraw } from '@api/withdrawalManage'
import examineDialog from './components/examineDialog' import examineDialog from './components/examineDialog'
...@@ -161,7 +161,8 @@ export default { ...@@ -161,7 +161,8 @@ export default {
withdrawTradeNo: '', withdrawTradeNo: '',
transferAccountsDate: '', transferAccountsDate: '',
transferType: '', transferType: '',
platformMerchantId: '' platformMerchantId: '',
warnStatus: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [{ showFormData: [{
...@@ -236,6 +237,15 @@ export default { ...@@ -236,6 +237,15 @@ export default {
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'PlatformMerchantList' optionsName: 'PlatformMerchantList'
}, {
label: '预警状态',
name: 'warnStatus',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'warningStatusList'
}], }],
getListApi: transferAccountsRecordPage, getListApi: transferAccountsRecordPage,
tableParams: { tableParams: {
...@@ -376,6 +386,22 @@ export default { ...@@ -376,6 +386,22 @@ export default {
} }
}, },
{ {
label: '预警状态',
prop: 'warnStatus',
width: '100px',
formatter: (cellValue) => {
return this.baseData.warningStatusList.find(item => item.confId === cellValue.warnStatus)?.confValue
}
},
{
label: '预警原因',
prop: 'warnReason',
width: '100px',
formatter: (cellValue) => {
return cellValue.warnReason ? cellValue.warnReason : '--'
}
},
{
label: '转账时间', label: '转账时间',
prop: 'transferTime', prop: 'transferTime',
width: '150px', width: '150px',
...@@ -413,6 +439,7 @@ export default { ...@@ -413,6 +439,7 @@ export default {
statusList: deepClone(transferAccountsStatusList), statusList: deepClone(transferAccountsStatusList),
sceneTypeList: deepClone(sceneCodeList), sceneTypeList: deepClone(sceneCodeList),
transferTypeList: deepClone(transferTypeList), transferTypeList: deepClone(transferTypeList),
warningStatusList: deepClone(warningStatus),
PlatformMerchantList: [] PlatformMerchantList: []
}, },
...@@ -497,7 +524,8 @@ export default { ...@@ -497,7 +524,8 @@ export default {
withdrawTradeNo: '', withdrawTradeNo: '',
transferAccountsDate: '', transferAccountsDate: '',
transferType: '', transferType: '',
platformMerchantId: '' platformMerchantId: '',
warnStatus: ''
} }
this.$refs.recordTable.refreshTable(false, true) this.$refs.recordTable.refreshTable(false, true)
}, },
......
...@@ -241,7 +241,7 @@ import { ...@@ -241,7 +241,7 @@ import {
getServiceStore, getServiceStore,
cancelDivideAccountsAPI cancelDivideAccountsAPI
} from "@api/order" } from "@api/order"
import { getDiversionMerchantRef } from "@api/merchant" import { getDiversionMerchantRef, listShop4sByRef } from "@api/merchant"
import { manageTypeList, BaseData } from "@/common/constants" import { manageTypeList, BaseData } from "@/common/constants"
import { mapActions, mapState, mapMutations } from "vuex" import { mapActions, mapState, mapMutations } from "vuex"
import { getParkStore } from "@api/editCustomer" import { getParkStore } from "@api/editCustomer"
...@@ -270,14 +270,14 @@ export default { ...@@ -270,14 +270,14 @@ export default {
waitOrderNum: 0, waitOrderNum: 0,
statusOpts: { statusOpts: {
// 1: "待升级", // 1: "待升级",
// 2: "战败", 2: "战败",
3: "待支付", 3: "待支付",
4: "已支付" 4: "已支付",
// // 5: '已退款', // // 5: '已退款',
// 6: "已评价", // 6: "已评价",
// 9: "已撤销", 9: "已撤销",
// 10: "已关闭", // 10: "已关闭",
// 11: "错误订单", 11: "错误订单"
// 12: "已退款" // 12: "已退款"
// Y: "已升级", // Y: "已升级",
// N: "不升级" // N: "不升级"
...@@ -352,7 +352,8 @@ export default { ...@@ -352,7 +352,8 @@ export default {
// 获取流量方 // 获取流量方
this.getServiceStore(value) this.getServiceStore(value)
} else { } else {
this.baseData.storeIdList = [] // this.baseData.storeIdList = []
this.getAllServiceStore()
} }
this.searchForm.merchantId = "" this.searchForm.merchantId = ""
this.getOptionsList() this.getOptionsList()
...@@ -491,23 +492,23 @@ export default { ...@@ -491,23 +492,23 @@ export default {
{ {
confId: 4, confId: 4,
confLabel: "已支付" confLabel: "已支付"
} },
// { // {
// confId: 6, // confId: 6,
// confLabel: "已评价" // confLabel: "已评价"
// }, // },
// { {
// confId: 9, confId: 9,
// confLabel: "已撤销" confLabel: "已撤销"
// }, },
// { // {
// confId: 10, // confId: 10,
// confLabel: "已关闭" // confLabel: "已关闭"
// }, // },
// { {
// confId: 11, confId: 11,
// confLabel: "错误订单" confLabel: "错误订单"
// }, }
// { // {
// confId: 12, // confId: 12,
// confLabel: "已退款" // confLabel: "已退款"
...@@ -613,6 +614,7 @@ export default { ...@@ -613,6 +614,7 @@ export default {
// console.log(this.userInfo?.loginAccount?.loginAccout) // console.log(this.userInfo?.loginAccount?.loginAccout)
// const specialAccout = // const specialAccout =
// console.log(specialAccout) // console.log(specialAccout)
this.getAllServiceStore()
if (this.specialAccout) { if (this.specialAccout) {
// debugger // debugger
const itemName = ["sourceList", "channelType", "businessModel"] const itemName = ["sourceList", "channelType", "businessModel"]
...@@ -620,20 +622,27 @@ export default { ...@@ -620,20 +622,27 @@ export default {
(item) => !itemName.includes(item.name) (item) => !itemName.includes(item.name)
) )
} }
if (this.userInfo.beSuper || this.specialAccout) { getParkStore({}).then((res) => {
getParkStore({}).then((res) => { res.forEach((item) => {
res.forEach((item) => { item.merchantId = item.merchantNo
item.merchantId = item.merchantNo
})
this.baseData.parkServiceList = res
this.getOptionsList()
}) })
} else { this.baseData.parkServiceList = res
this.showFormData = this.showFormData.filter( this.getOptionsList()
(item) => item.name !== "yqMerchantId" })
) // if (this.userInfo.beSuper || this.specialAccout) {
this.getServiceStore(this.userInfo.detail.merchantId) // getParkStore({}).then((res) => {
} // res.forEach((item) => {
// item.merchantId = item.merchantNo
// })
// 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
...@@ -682,6 +691,15 @@ export default { ...@@ -682,6 +691,15 @@ export default {
this.baseData.channelTypeList = await this.get(BaseData.channelType) this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.getOptionsList() this.getOptionsList()
}, },
getAllServiceStore() {
listShop4sByRef({
scene: 0
}).then(res => {
// console.log('this.getAllServiceStore()', res)
this.baseData.storeIdList = res || []
this.getOptionsList()
})
},
handleWeekExportAnalysis() { handleWeekExportAnalysis() {
const params = {} // 权益周报导出 const params = {} // 权益周报导出
params.method = "dj.api.smartcarlife.vd.revenue.export" params.method = "dj.api.smartcarlife.vd.revenue.export"
...@@ -781,8 +799,9 @@ export default { ...@@ -781,8 +799,9 @@ export default {
subShopMerchantId: "", subShopMerchantId: "",
businessType: "" businessType: ""
} }
this.baseData.storeIdList = [] // this.baseData.storeIdList = []
this.handleSearch() this.handleSearch()
this.getAllServiceStore()
this.getOptionsList() this.getOptionsList()
}, },
getServiceStore(merchantId) { getServiceStore(merchantId) {
......
<!-- 门店标签 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="detail-dialog">
<el-form ref="flagFrom"
class="flagFrom d2-container-content"
:model="infoForm"
label-width="250px"
v-loading="$store.state.d2admin.loading.value">
<el-form-item label="门店名称:"
class="flag-div">
{{info.merchantName}}
</el-form-item>
<el-form-item label="商户号:"
class="flag-div">
{{info.merchantId}}
</el-form-item>
<el-form-item label=""
v-for="(item, index1) in commLabelUnitList"
v-if="item.commLabelGroupInfo.groupType == '2'"
class="flag-div">
<span class="tips-block"
slot="label">
<span class="tips-label">{{item.commLabelGroupInfo.groupName}}</span>
<el-tooltip popper-class="tooltip-class"
effect="dark"
placement="right">
<div slot="content">{{item.commLabelGroupInfo.groupDesc}}</div>
<span class="tips-icon" />
</el-tooltip>:
</span>
<span v-for="(obj, index2) in item.commLabelList"
class="label-span">{{obj.labelName}}</span>
</el-form-item>
<div class="div_g">
<el-form-item label=""
v-for="(item, index1) in groupUnitList"
v-if="item.groupType == '1'"
class="flag-div">
<span class="tips-block"
slot="label">
<span class="tips-label">{{item.groupName}}</span>
<el-tooltip popper-class="tooltip-class"
effect="dark"
placement="right">
<div slot="content">{{item.groupDesc}}</div>
<span class="tips-icon" />
</el-tooltip>:
</span>
<span v-for="(obj, index2) in item.labelUnitList"
class="label-span"
:class="{ 'label-span-choose': obj.choose }"
@click="chooseLabel(index1,index2,obj,item)">{{obj.labelName}}</span>
</el-form-item>
</div>
</el-form>
</div>
</baseDialog>
</template>
<script>
// import { sceneCodeList, transferTypeList } from '@/common/constants.js'
import { Util, deepClone } from '@/common/util'
import { queryLabelGroupTree, shopLabelDetail, updateShopLabel } from '@/api/shopConfig.js'
export default {
name: 'FlagDialog',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
infoForm: {
},
dialogConfig: {
title: '门店标签',
width: '1080px'
},
editChildRef: 'editChildRef',
baseData: {
},
groupUnitList: [],
commLabelUnitList: []
}
},
props: {
flagVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: null
}
},
watch: {
},
computed: {
visible: {
get() {
return this.flagVisible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'flagVisible' })
}
},
},
mounted() {
this.queryLabelGroupTree()
// this.shopLabelDetail()
},
methods: {
queryLabelGroupTree() {
var params = {}
params.pageSize = 100
queryLabelGroupTree(params).then(res => {
console.log(res);
this.groupUnitList = deepClone(res.groupUnitList)
this.shopLabelDetail()
})
},
shopLabelDetail() {
var params = {}
params.merchantId = this.info.merchantId
shopLabelDetail(params).then(res => {
console.log(res);
this.commLabelUnitList = deepClone(res.commLabelUnitList)
let baseModifiableIds = []//返回的已标记标签ID集合
this.commLabelUnitList && this.commLabelUnitList.forEach((item) => {
if (item.commLabelGroupInfo.groupType == '1') {
item.commLabelList.forEach(obj => {
baseModifiableIds.push(obj.labelId)
})
}
})
console.log('aaa', baseModifiableIds);
//判断需要回显的标签
this.groupUnitList = this.groupUnitList.map(item => {
if (item.groupType == '1') {//可标识标签
item.labelUnitList = item.labelUnitList.map(el => {
if (baseModifiableIds.findIndex(o => o == el.labelId) != -1) {
el.choose = true
} else {
el.choose = false
}
return el
})
}
return item
})
console.log('bbb', this.groupUnitList);
})
},
chooseLabel(idx1, idx2, obj, group) {
if (group.groupType == '1') {
this.groupUnitList[idx1].labelUnitList[idx2].choose = !obj.choose
this.groupUnitList = deepClone(this.groupUnitList)
}
},
handleAddConfirm() {
var info = deepClone(this.info)
var params = {}
params.merchantId = info.merchantId
params.labelIdAddList = []//需新增的标签id列表
params.labelIdDelList = []//需取消的标签id列表
let baseModifiableIds = []//返回的已标记标签ID集合
this.commLabelUnitList && this.commLabelUnitList.forEach((item) => {
if (item.commLabelGroupInfo.groupType == '1') {
item.commLabelList.forEach(obj => {
baseModifiableIds.push(obj.labelId)
})
}
})
console.log('baseModifiableIds', baseModifiableIds);
let flagItem = []//这次更改过标记的标签ID集合
this.groupUnitList.forEach((item) => {
if (item.groupType == '1') {
item.labelUnitList.forEach(obj => {
if (obj.hasOwnProperty("choose"))
flagItem.push(obj)
})
}
})
console.log('flagItem', flagItem);
let flagItem_ids_Y = [] //这次已标识
let flagItem_ids_N = [] //这次取消标识
flagItem && flagItem.forEach((item) => {
if (item.choose) {
flagItem_ids_Y.push(item.labelId)
} else {
flagItem_ids_N.push(item.labelId)
}
})
console.log('flagItem_ids_Y', flagItem_ids_Y);
console.log('flagItem_ids_N', flagItem_ids_N);
//拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为已标记状态的ID没有在返回的标签里,则是这次新增的
flagItem_ids_Y && flagItem_ids_Y.map(item => {
if (baseModifiableIds.findIndex(o => o == item) == -1) {
params.labelIdAddList.push(item)
}
})
//拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为取消标记状态的ID在返回的标签里,则是这次取消掉的
flagItem_ids_N && flagItem_ids_N.map(item => {
if (baseModifiableIds.findIndex(o => o == item) != -1) {
params.labelIdDelList.push(item)
}
})
console.log('params.labelIdAddList', params.labelIdAddList);
console.log('params.labelIdDelList', params.labelIdDelList);
updateShopLabel(params).then(res => {
this.notice.okTips('操作成功')
this.visible = true
})
},
}
}
</script>
<style lang="scss" scoped>
.flagFrom.d2-container-content {
margin-top: 0 !important;
}
.detail-dialog {
// margin: 20px 0;
.flag-div {
// width: 100%;
height: 40rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
line-height: 40rpx;
// .flag-div-label {
// width: 20%;
// color: #666666;
// text-align: right;
// }
// .flag-div-detail {
// width: 70%;
// color: #333333;
// }
.label-span {
margin-right: 10px;
max-width: 250px;
height: 26px;
background: #fafbfe;
border: 1px solid #e8e8ea;
border-radius: 4px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #666666;
padding: 4px 8px;
}
.label-span-choose {
margin-right: 10px;
max-width: 250px;
height: 26px;
border: 1px solid #185efe;
border-radius: 4px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #185efe;
padding: 4px 8px;
}
}
.div_g {
padding-top: 20px;
border-top: 1px solid #eaeef7;
border-bottom: 1px solid #eaeef7;
}
}
</style>
...@@ -113,6 +113,11 @@ ...@@ -113,6 +113,11 @@
:info="recordInfo" :info="recordInfo"
v-if="qRcodeVisible" v-if="qRcodeVisible"
@dialogClose="dialogClose" /> @dialogClose="dialogClose" />
<!-- 门店标签 -->
<flag-dialog :flag-visible="flagVisible"
:info="recordInfo"
v-if="flagVisible"
@dialogClose="flagDialogClose" />
</div> </div>
</template> </template>
...@@ -124,10 +129,12 @@ import { shopSettingList, listYqRef } from '@/api/shopConfig.js' ...@@ -124,10 +129,12 @@ import { shopSettingList, listYqRef } from '@/api/shopConfig.js'
import { merchantOutputValueTargetExport, merchantOutputValueTargetImport } from '@api/index' import { merchantOutputValueTargetExport, merchantOutputValueTargetImport } from '@api/index'
import { businessNature, storeType } from '@/common/constants.js' import { businessNature, storeType } from '@/common/constants.js'
import qrcodeDialog from './components/qRcodeDialog' import qrcodeDialog from './components/qRcodeDialog'
import flagDialog from './components/flagDialog'
export default { export default {
name: 'ShopConfigIndex', name: 'ShopConfigIndex',
components: { components: {
qrcodeDialog qrcodeDialog,
flagDialog
}, },
data() { data() {
return { return {
...@@ -139,7 +146,8 @@ export default { ...@@ -139,7 +146,8 @@ export default {
merchantId: '', merchantId: '',
orderTime: '', orderTime: '',
areaSupervision: '', areaSupervision: '',
residentManager: '' residentManager: '',
shopLabelFlag: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [{ showFormData: [{
...@@ -180,11 +188,14 @@ export default { ...@@ -180,11 +188,14 @@ export default {
isClear: true isClear: true
}, },
{ {
label: '驻店负责人', label: '门店标签',
name: 'residentManager', name: 'shopLabelFlag',
type: 'input', type: 'select',
maxlength: '20', isClear: true,
isClear: true optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'shopLabelFlagList'
}], }],
getListApi: shopSettingList, getListApi: shopSettingList,
tableParams: { tableParams: {
...@@ -217,8 +228,11 @@ export default { ...@@ -217,8 +228,11 @@ export default {
label: '区域督导', label: '区域督导',
prop: 'areaSupervision' prop: 'areaSupervision'
}, { }, {
label: '驻店负责人', label: '门店标签',
prop: 'residentManager' prop: 'shopLabelFlag',
formatter: (cellValue) => {
return cellValue.shopLabelFlag == 'Y' ? '有' : '无'
}
}, { }, {
label: '部署状态', label: '部署状态',
prop: 'deployScene', prop: 'deployScene',
...@@ -253,7 +267,11 @@ export default { ...@@ -253,7 +267,11 @@ export default {
areaList: [], areaList: [],
businessNature: businessNature, businessNature: businessNature,
storeType: storeType, storeType: storeType,
provinceInfoList: [] provinceInfoList: [],
shopLabelFlagList: [
{ confId: 'Y', confValue: "有" },
{ confId: 'N', confValue: "无" }
]
}, },
recordInfo: null, recordInfo: null,
fileVisible: false, fileVisible: false,
...@@ -267,11 +285,7 @@ export default { ...@@ -267,11 +285,7 @@ export default {
fileName: [{ required: true, message: "请上传文件", trigger: "change" }] fileName: [{ required: true, message: "请上传文件", trigger: "change" }]
}, },
qRcodeVisible: false, qRcodeVisible: false,
testRow: { flagVisible: false
merchantId: 44211653
// "merchantName": "晨星测试客户15",
// "channelType": 1,
}
} }
}, },
computed: { computed: {
...@@ -410,7 +424,8 @@ export default { ...@@ -410,7 +424,8 @@ export default {
merchantId: '', merchantId: '',
orderTime: '', orderTime: '',
areaSupervision: '', areaSupervision: '',
residentManager: '' residentManager: '',
shopLabelFlag: ''
} }
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
}, },
...@@ -532,7 +547,19 @@ export default { ...@@ -532,7 +547,19 @@ export default {
info: row info: row
} }
}) })
} },
//门店标签
handleShopLabelFlag(row) {
console.log(row)
this.recordInfo = row
this.flagVisible = !this.flagVisible
},
flagDialogClose(obj) {
this[obj.attrName] = !this[obj.attrName]
if (obj.flag) {
this.$refs.recordTable.refreshTable()
}
},
} }
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
:value="item.confId" :value="item.confId"
:label="item.confName" /> :label="item.confName" />
</el-select> </el-select>
<span class="item-tips">注:包含直营渠道和直营4S店两种业务性质</span> <!-- <span class="item-tips">注:包含直营渠道和直营4S店两种业务性质</span> -->
</el-form-item> </el-form-item>
<el-form-item label="下级商户:"> <el-form-item label="下级商户:">
<div v-for="(item, index) in form.list" <div v-for="(item, index) in form.list"
...@@ -102,6 +102,36 @@ ...@@ -102,6 +102,36 @@
</el-select> </el-select>
<span class="item-tips">注:设置店面的驻店负责人,可配置驻店月份绩效</span> <span class="item-tips">注:设置店面的驻店负责人,可配置驻店月份绩效</span>
</el-form-item> </el-form-item>
<el-form-item label="1.1业务负责人:"
prop="boutiqueDirectorUserId">
<el-select v-model="form.shopMerchantConfig.boutiqueDirectorUserId"
clearable
filterable
value-key="userId"
placeholder="请选择"
class="el_select itd">
<el-option v-for="item in sellerMerchantStaffList"
:key="item.userId"
:label="item.userName"
:value="item.userId" />
</el-select>
<span class="item-tips">注:获取账户中心创建在广联数科下的员工,角色类型选广联销售</span>
</el-form-item>
<el-form-item label="2.1业务负责人:"
prop="quotationDirectorUserId">
<el-select v-model="form.shopMerchantConfig.quotationDirectorUserId"
clearable
filterable
value-key="userId"
placeholder="请选择"
class="el_select itd">
<el-option v-for="item in sellerMerchantStaffList"
:key="item.userId"
:label="item.userName"
:value="item.userId" />
</el-select>
<span class="item-tips">注:获取账户中心创建在广联数科下的员工,角色类型选广联销售</span>
</el-form-item>
<el-form-item> <el-form-item>
<div class="month-set-div"> <div class="month-set-div">
<div class="month-choose"> <div class="month-choose">
...@@ -178,6 +208,40 @@ ...@@ -178,6 +208,40 @@
placeholder="请输入" />&nbsp;% placeholder="请输入" />&nbsp;%
</span> </span>
</el-form-item> </el-form-item>
<el-form-item label="阳光激励费:"
prop="sunlightIncentiveCost">
<div>
<span class="rateInput_s">精品升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.boutiqueSunshineInspiration"
@input="boutiqueSunshineInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
<div class="rateInput_d">
<span class="rateInput_s">会员权益升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.quotationSunshineInspiration"
@input="quotationSunshineInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
</el-form-item>
<el-form-item label="市场激励费:"
prop="marketIncentiveCost">
<div>
<span class="rateInput_s">精品升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.boutiqueMarketInspiration"
@input="boutiqueMarketInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
<div class="rateInput_d">
<span class="rateInput_s">会员权益升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.quotationMarketInspiration"
@input="quotationMarketInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
</el-form-item>
<el-form-item> <el-form-item>
<div class="btnCon"> <div class="btnCon">
<el-button type="primary" <el-button type="primary"
...@@ -198,7 +262,7 @@ ...@@ -198,7 +262,7 @@
<script> <script>
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { getShopSetting, listByMerchantIdAndYear, shopSetting } from '@/api/shopConfig.js' import { getShopSetting, listByMerchantIdAndYear, shopSetting, findSellerMerchantStaffList } from '@/api/shopConfig.js'
import { serviceGetMerchantList } from '@api/merchant' import { serviceGetMerchantList } from '@api/merchant'
import { findMerchantStaffList } from '@api/index' import { findMerchantStaffList } from '@api/index'
import { businessNature, sceneForShop } from '@/common/constants.js' import { businessNature, sceneForShop } from '@/common/constants.js'
...@@ -227,7 +291,14 @@ export default { ...@@ -227,7 +291,14 @@ export default {
residentManager: {}, residentManager: {},
currentMonthOutputValue: '', currentMonthOutputValue: '',
nextMonthOutputValue: '', nextMonthOutputValue: '',
serviceMerchantServiceChargeConfig: {} serviceMerchantServiceChargeConfig: {},
shopMerchantConfig: {}
// boutiqueSunshineInspiration: '',
// quotationSunshineInspiration: '',
// boutiqueMarketInspiration: '',
// quotationMarketInspiration: '',
// boutiqueDirectorUserId: '',
// quotationDirectorUserId: ''
}, },
outputValueListByYear: [], outputValueListByYear: [],
year: '', year: '',
...@@ -260,8 +331,13 @@ export default { ...@@ -260,8 +331,13 @@ export default {
// gasCardServiceCharge_isDisabled: false, // gasCardServiceCharge_isDisabled: false,
oldVal: { oldVal: {
passageServiceChargeFlag: '', passageServiceChargeFlag: '',
gasCardServiceChargeFlag: '' gasCardServiceChargeFlag: '',
boutiqueSunshineInspiration: '',
quotationSunshineInspiration: '',
boutiqueMarketInspiration: '',
quotationMarketInspiration: ''
}, },
sellerMerchantStaffList: []
} }
}, },
...@@ -281,6 +357,7 @@ export default { ...@@ -281,6 +357,7 @@ export default {
this.findMerchantStaffList() this.findMerchantStaffList()
this.getSelectList(this.info) this.getSelectList(this.info)
this.listByMerchantIdAndYear(this.year) this.listByMerchantIdAndYear(this.year)
this.findSellerMerchantStaffList()
}, },
methods: { methods: {
...@@ -301,6 +378,9 @@ export default { ...@@ -301,6 +378,9 @@ export default {
//未设置过时,手续费默认为打开并且费率为2 //未设置过时,手续费默认为打开并且费率为2
this.form.serviceMerchantServiceChargeConfig = { 'passageServiceCharge': 2, 'passageServiceChargeFlag': 'Y', 'gasCardServiceCharge': 2, 'gasCardServiceChargeFlag': 'Y' } this.form.serviceMerchantServiceChargeConfig = { 'passageServiceCharge': 2, 'passageServiceChargeFlag': 'Y', 'gasCardServiceCharge': 2, 'gasCardServiceChargeFlag': 'Y' }
} }
if (!this.form.shopMerchantConfig) {
this.form.shopMerchantConfig = { 'boutiqueDirectorUserId': '', 'quotationDirectorUserId': '', 'boutiqueSunshineInspiration': '', 'quotationSunshineInspiration': '', 'boutiqueMarketInspiration': '', 'quotationMarketInspiration': '' }
}
console.log(this.form) console.log(this.form)
if (this.form.list && this.form.list.length > 0) { if (this.form.list && this.form.list.length > 0) {
this.form.list = this.form.list.map(item => { this.form.list = this.form.list.map(item => {
...@@ -507,6 +587,19 @@ export default { ...@@ -507,6 +587,19 @@ export default {
return return
} }
} }
let shopMerchantConfig = _params.shopMerchantConfig
_params.boutiqueDirectorUserId = shopMerchantConfig.boutiqueDirectorUserId
if (shopMerchantConfig.boutiqueDirectorUserId) {
_params.boutiqueDirectorName = this.sellerMerchantStaffList.find(item => item.userId === shopMerchantConfig.boutiqueDirectorUserId)?.userName
}
_params.quotationDirectorUserId = shopMerchantConfig.quotationDirectorUserId
if (shopMerchantConfig.quotationDirectorUserId) {
_params.quotationDirectorName = this.sellerMerchantStaffList.find(item => item.userId === shopMerchantConfig.quotationDirectorUserId)?.userName
}
_params.boutiqueSunshineInspiration = shopMerchantConfig.boutiqueSunshineInspiration
_params.quotationSunshineInspiration = shopMerchantConfig.quotationSunshineInspiration
_params.boutiqueMarketInspiration = shopMerchantConfig.boutiqueMarketInspiration
_params.quotationMarketInspiration = shopMerchantConfig.quotationMarketInspiration
console.log(_params) console.log(_params)
shopSetting({ dataString: JSON.stringify(_params) }).then(res => { shopSetting({ dataString: JSON.stringify(_params) }).then(res => {
this.notice.okTips() this.notice.okTips()
...@@ -547,9 +640,36 @@ export default { ...@@ -547,9 +640,36 @@ export default {
} }
}, },
gasCardServiceCharge_handleInput(newVal) { gasCardServiceCharge_handleInput(newVal) {
this.form.serviceMerchantServiceChargeConfig.gasCardServiceCharge = limitPrice(newVal, this.oldVal.gasCardServiceCharge, 3, 2, 0, 100) this.form.shopMerchantConfig.serviceMerchantServiceChargeConfig.gasCardServiceCharge = limitPrice(newVal, this.oldVal.gasCardServiceCharge, 3, 2, 0, 100)
this.oldVal.gasCardServiceCharge = this.form.serviceMerchantServiceChargeConfig.gasCardServiceCharge this.oldVal.gasCardServiceCharge = this.form.serviceMerchantServiceChargeConfig.gasCardServiceCharge
} },
boutiqueSunshineInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.boutiqueSunshineInspiration = limitPrice(newVal, this.oldVal.boutiqueSunshineInspiration, 3, 2, 0, 100)
this.oldVal.boutiqueSunshineInspiration = this.form.shopMerchantConfig.boutiqueSunshineInspiration
},
quotationSunshineInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.quotationSunshineInspiration = limitPrice(newVal, this.oldVal.quotationSunshineInspiration, 3, 2, 0, 100)
this.oldVal.quotationSunshineInspiration = this.form.shopMerchantConfig.quotationSunshineInspiration
},
boutiqueMarketInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.boutiqueMarketInspiration = limitPrice(newVal, this.oldVal.boutiqueMarketInspiration, 3, 2, 0, 100)
this.oldVal.boutiqueMarketInspiration = this.form.shopMerchantConfig.boutiqueMarketInspiration
},
quotationMarketInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.quotationMarketInspiration = limitPrice(newVal, this.oldVal.quotationMarketInspiration, 3, 2, 0, 100)
this.oldVal.quotationMarketInspiration = this.form.shopMerchantConfig.quotationMarketInspiration
},
findSellerMerchantStaffList() {
findSellerMerchantStaffList({}).then((result) => {
this.sellerMerchantStaffList = result.map((item) => {
return {
userId: item.uuid,
userName: item.staffName
}
})
})
},
} }
} }
...@@ -803,4 +923,14 @@ export default { ...@@ -803,4 +923,14 @@ export default {
.rateInput { .rateInput {
width: 100px; width: 100px;
} }
.rateInput_t {
width: 150px;
}
.rateInput_s {
display: inline-block;
width: 100px;
}
.rateInput_d {
margin-top: 20px;
}
</style> </style>
<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,29 +69,16 @@ export default { ...@@ -46,29 +69,16 @@ export default {
computed: { computed: {
title() { title() {
const titleObj = { const titleObj = {
minimumWage: '保底工资示例说明', performanceConfig: '工资绩效示例说明',
averagePriceBonus: '均客单奖励示例说明', tutorBonusConfigs: '导师附加提成示例说明'
customerUnitBonus: '高客单奖励示例说明',
outputBonus: '高产值奖励示例说明',
upgradeRateBonus: '成交率奖励示例说明',
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>`, tutorBonusConfigs: `<div class='mb10'>1、员工a入职时间为8月18日,对应0-3个月内的导师提成比例为20%,假如第一个月内员工a产生订单产值40000元,根据业绩配置该员工提成为4000元,则其关联导师的导师提成激励为4000*20%=800元,计入次月导师的月份最终工资</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>
<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>
<div class='mb10'>4、按导师学员的绑定关系计算,区间月份含当月,0即为第一个月份,0-3代表前三个月,4-6代表第四到第六个月整,以此类推</div>` <div class='mb10'>4、按导师学员的绑定关系计算,区间月份含当月,0即为第一个月份,0-3代表前三个月,4-6代表第四到第六个月整,以此类推</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 = '区间开始值/%' ]
this.tableParams.tableColumns[1].label = '区间结束值/%' val.tableParams.tableColumns[2].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 val.tableParams.tableColumns[2].label = '提成系数'
case 'outputBonus': break
this.tableData = [ }
{ startValue: 0, endValue: 20000, calculateValue: '5%' }, })
{ startValue: 20000.01, endValue: '--', calculateValue: '10%' } } else { // 导师附加提成
] this.tableData = [
break { startValue: 0, endValue: 3, calculateValue: '20%' },
case 'montorAdditionalBonus': { startValue: 4, endValue: 6, calculateValue: '10%' }
this.tableData = [ ]
{ startValue: 0, endValue: 3, calculateValue: '20%' }, this.tableParams.tableColumns[0].label = '区间开始值/月(含当月)'
{ startValue: 4, endValue: 6, calculateValue: '10%' } this.tableParams.tableColumns[1].label = '区间结束值/月'
] this.tableParams.tableColumns[2].label = '提成比例'
this.tableParams.tableColumns[0].label = '区间开始值/月(含当月)'
this.tableParams.tableColumns[1].label = '区间结束值/月'
this.tableParams.tableColumns[2].label = '提成比例/%'
break
} }
} }
}, },
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<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"></components>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -67,27 +67,20 @@ export default { ...@@ -67,27 +67,20 @@ export default {
label: '订单产值/元', label: '订单产值/元',
prop: 'orderMoney' prop: 'orderMoney'
}, { }, {
label: '均客单奖励', label: '产值比例',
prop: 'averagePriceBonus' prop: 'averagePriceBonus'
}, { }, {
label: '高客单奖励', label: '成交率系数',
prop: 'customerUnitBonus' prop: 'customerUnitBonus'
}, { }, {
label: '高产值奖励', label: '均客单系数',
prop: 'outputBonus' prop: 'outputBonus'
}, { }, {
label: '成交率奖励',
prop: 'upgradeRateBonus'
}, {
label: '导师激励提成', label: '导师激励提成',
prop: 'mentorBonus' prop: 'mentorBonus'
}, { }, {
label: '订单总提成', label: '订单总提成',
prop: '', prop: 'orderBonus'
formatter: (cellValue) => {
// 当前员工id=mentorStaffUuid 取导师奖励提成 否则就是 均客单奖励+高客单奖励+高产值奖励+成交率奖励
return cellValue?.mentorStaffUuid == this.detailInfoData?.staffUuid ? (cellValue?.mentorBonus || 0) : cellValue?.averagePriceBonus + cellValue?.customerUnitBonus + cellValue?.outputBonus + cellValue?.upgradeRateBonus
}
}] }]
}, },
searchForm: {} searchForm: {}
...@@ -101,9 +94,6 @@ export default { ...@@ -101,9 +94,6 @@ export default {
}, },
detailInfoData: { detailInfoData: {
type: Object type: Object
},
sceneType: {
type: String
} }
}, },
...@@ -111,8 +101,7 @@ export default { ...@@ -111,8 +101,7 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.searchForm = { this.searchForm = {
mentorOrStudentStaffUuid: this.detailInfoData?.staffUuid, mentorOrStudentStaffUuid: this.detailInfoData?.staffUuid
sceneType: this.sceneType
} }
resolve() resolve()
}) })
......
...@@ -2,35 +2,33 @@ ...@@ -2,35 +2,33 @@
<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>
<span :class="{ labelColor: !formItem.formatEffectEndDate }">{{ <span :class="{ labelColor: !formItem.formatEffectEndDate }">{{
formItem.formatEffectStartDate formItem.formatEffectStartDate
? formItem.formatEffectEndDate
? formItem.formatEffectEndDate ? formItem.formatEffectEndDate
? formItem.formatEffectEndDate : "生效中"
: "生效中" : "待生效"
: "待生效"
}}</span> }}</span>
</span> </span>
<span class="updatedInfo"> <span class="updatedInfo">
操作人: {{ 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>
<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>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="detail-dialog">
<el-form ref="flagFrom"
class="flagFrom d2-container-content"
:model="infoForm"
label-width="250px"
v-loading="$store.state.d2admin.loading.value">
<el-form-item label="员工姓名:"
class="flag-div">
{{info.staffName}}
</el-form-item>
<el-form-item label="服务门店:"
class="flag-div">
<el-select v-model="shopMerchant"
placeholder="请选择"
class="el_select itd"
@change="staffLabelDetail">
<el-option v-for="item in info.shopMerchantList"
:key="item.merchantId"
:value="item.merchantId"
:label="item.merchantName + ' ' + item.merchantId" />
</el-select>
</el-form-item>
<el-form-item label=""
v-for="(item, index1) in commLabelUnitList"
class="flag-div">
<span class="tips-block"
slot="label">
<span class="tips-label">{{item.commLabelGroupInfo.groupName}}</span>
<el-tooltip popper-class="tooltip-class"
effect="dark"
placement="right">
<div slot="content">{{item.commLabelGroupInfo.groupDesc}}</div>
<span class="tips-icon" />
</el-tooltip>:
</span>
<span v-for="(obj, index2) in item.commLabelList"
class="label-span">{{obj.labelName}}</span>
</el-form-item>
</el-form>
</div>
</baseDialog>
</template>
<script>
// import { sceneCodeList, transferTypeList } from '@/common/constants.js'
import { Util, deepClone } from '@/common/util'
import { staffLabelDetail } from '@/api/inStoreManage.js'
export default {
name: 'FlagDialog',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
infoForm: {
},
dialogConfig: {
title: '员工标签',
width: '1080px'
},
editChildRef: 'editChildRef',
baseData: {
},
commLabelUnitList: [],
shopMerchant: ''
}
},
props: {
flagVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: null
}
},
watch: {
},
computed: {
visible: {
get() {
return this.flagVisible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'flagVisible' })
}
},
},
mounted() {
if (this.info.shopMerchantList) {
this.shopMerchant = this.info.shopMerchantList[0].merchantId
}
this.staffLabelDetail()
},
methods: {
staffLabelDetail() {
var params = {}
params.staffUuid = this.info.staffUuid
params.merchantId = this.shopMerchant
staffLabelDetail(params).then(res => {
console.log(res);
this.commLabelUnitList = deepClone(res.commLabelUnitList)
})
},
handleAddConfirm() {
this.visible = true
},
}
}
</script>
<style lang="scss" scoped>
.flagFrom.d2-container-content {
margin-top: 0 !important;
}
.detail-dialog {
.itd {
width: 400px;
}
.flag-div {
// width: 100%;
height: 40rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
line-height: 40rpx;
// .flag-div-label {
// width: 20%;
// color: #666666;
// text-align: right;
// }
// .flag-div-detail {
// width: 70%;
// color: #333333;
// }
.label-span {
margin-right: 10px;
max-width: 250px;
height: 26px;
background: #fafbfe;
border: 1px solid #e8e8ea;
border-radius: 4px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #666666;
padding: 4px 8px;
}
}
}
</style>
<!-- 驻店管理 - 列表 -->
<template>
<div>
<!-- class="order-detail" -->
<d2-container>
<!-- <div class="offline-account"> -->
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:labelWidth="labelWidth"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch"
size="small"
type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<!-- </d2-container>
<d2-container> -->
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<auth-button :data="scope.scope" />
</div>
</d2-table>
</div>
</d2-container>
<!-- 门店标签 -->
<flag-dialog :flag-visible="flagVisible"
:info="recordInfo"
v-if="flagVisible"
@dialogClose="flagDialogClose" />
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { sceneForShop, sceneForInStore } from '@/common/constants.js'
import { withdrawOrderRecordPage, rewithdraw } from '@api/withdrawalManage'
import { staffPage } from '@api/inStoreManage'
import flagDialog from './components/flagDialog'
export default {
name: 'TransferAccountsList',
components: {
flagDialog
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '100px',
searchForm: {
staffName: '',
phoneNumber: '',
allMerchantName: '',
sceneType: '',
allMerchantId: '',
staffLabelFlag: ''
},
searchFormSearch: {},
showFormData: [{
label: '员工姓名',
name: 'staffName',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '手机号',
name: 'phoneNumber',
type: 'input',
inputType: "number",
maxlength: '11',
isClear: true
}, {
label: '商户',
name: 'allMerchantName',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '所属业务',
name: 'sceneType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneForShop'
}, {
label: '商户号',
name: 'allMerchantId',
type: 'input',
inputType: 'number',
maxlength: '20',
isClear: true
}, {
label: '员工标签',
name: 'staffLabelFlag',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'staffLabelFlagList'
}],
getListApi: staffPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// tableOption: { width: '200px' },
tableOption: true,
tableColumns: [{
label: '姓名',
prop: 'staffName',
width: '160px'
}, {
label: '手机号',
prop: 'phoneNumber',
width: '120px'
}, {
label: '园区店',
prop: 'merchantName',
width: '200px',
formatter: (cellValue) => {
return cellValue.merchantName + ' ' + cellValue.merchantId
}
}, {
label: '所属业务',
prop: 'staffSceneLabel',
width: '160px',
formatter: (cellValue) => {
let showHtml = '-'
if (cellValue.staffSceneLabel) {
let arr = cellValue.staffSceneLabel.split(",")
arr = arr.map(o => {
return sceneForInStore.find(el => el.confId == o)?.confValue
})
arr = arr.filter(item => item !== undefined)
showHtml = arr.join(',')
}
return showHtml
}
}, {
label: "服务门店",
prop: "shopMerchantList",
html: true,
formatter: (cellValue) => {
if (cellValue.shopMerchantList) {
return cellValue.shopMerchantList.reduce(
(merchString, item) => {
merchString = merchString + `<p>${item.merchantName} ${item.merchantId}</p>`
return merchString
},
""
)
} else {
return ""
}
}
}, {
label: "服务商",
prop: "serviceMerchantList",
html: true,
formatter: (cellValue) => {
if (cellValue.serviceMerchantList) {
return cellValue.serviceMerchantList.reduce(
(merchString, item) => {
merchString = merchString + `<p>${item.merchantName} ${item.merchantId}</p>`
return merchString
},
""
)
} else {
return ""
}
}
}, {
label: '员工标签',
prop: 'staffLabelFlag',
formatter: (cellValue) => {
return cellValue.staffLabelFlag == 'Y' ? '有' : '无'
}
}]
},
baseData: {
sceneForShop: deepClone(sceneForShop),
staffLabelFlagList: [
{ confId: 'Y', confValue: "有" },
{ confId: 'N', confValue: "无" }
]
},
flagVisible: false
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.getOptionsList()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleSearch() {
this.$refs.recordTable.refreshTable(false, true)
},
handleReset() {
this.searchForm = {
staffName: '',
phoneNumber: '',
allMerchantName: '',
sceneType: '',
allMerchantId: '',
staffLabelFlag: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
//员工标签
handleViewLabel(row) {
console.log(row)
this.recordInfo = row
this.flagVisible = !this.flagVisible
},
flagDialogClose(obj) {
this[obj.attrName] = !this[obj.attrName]
if (obj.flag) {
this.$refs.recordTable.refreshTable()
}
},
},
}
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
</style>
...@@ -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>
<!-- 财务 -->
<template> <template>
<d2-Container class="financialRulesContainer "> <d2-Container class="financialRulesContainer ">
<div class="d2-container-content"> <div class="d2-container-content">
...@@ -109,8 +110,8 @@ ...@@ -109,8 +110,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 +124,13 @@ ...@@ -123,8 +124,13 @@
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,
ruleAuditSituation
// 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 +213,8 @@ export default { ...@@ -207,7 +213,8 @@ export default {
DjzhySubMerchantObj: { DjzhySubMerchantObj: {
djzhySubMerchantId: '', djzhySubMerchantId: '',
djzhySubMerchantName: '' djzhySubMerchantName: ''
} },
effectStartDate: false // 规则时间 true 表示可以立即生效 是否立即生效
} }
}, },
computed: { computed: {
...@@ -304,6 +311,7 @@ export default { ...@@ -304,6 +311,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 +346,30 @@ export default { ...@@ -338,6 +346,30 @@ 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
ruleAuditSituation({
merchantId,
sceneType,
ruleType: 1
}).then(res => {
// 立即生效或者需选择
// console.log(res.every(item => {
// return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi')
//
// res.inEffectSettleDistributeRule == null
this.effectStartDate = !res.inEffectSettleDistributeRule
// if (res.inEffectSettleDistributeRule == null) {
// }
// 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 +542,13 @@ export default { ...@@ -510,9 +542,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否)
......
...@@ -672,10 +672,12 @@ export default { ...@@ -672,10 +672,12 @@ export default {
getData(localdata) getData(localdata)
} else { } else {
const params = { const params = {
shopMerchantIds: [this.merchantRow.merchantId] // shopMerchantIds: [this.merchantRow.merchantId]
merchantId: this.merchantRow.merchantId,
scene: this.merchantRow.scene
} }
const res = await listPartnerMerchantApi(params) const res = await listPartnerMerchantApi(params)
// console.log('res:服务商列表 ', res) console.log('res:服务商列表 ', res)
if (res) { if (res) {
localStorage.setItem("getListPartnerMerchant", JSON.stringify(res)) localStorage.setItem("getListPartnerMerchant", JSON.stringify(res))
getData(res) getData(res)
...@@ -684,7 +686,8 @@ export default { ...@@ -684,7 +686,8 @@ export default {
// 赋值 // 赋值
function getData(res) { function getData(res) {
that.serveList = res[0]?.partnerMerchants // that.serveList = res[0]?.partnerMerchants
that.serveList = res
} }
}, },
// 查询4s店及上级列表 参数 channelType=1(流量方对象) // 查询4s店及上级列表 参数 channelType=1(流量方对象)
......
<!-- 对账 -->
<template> <template>
<d2-Container> <d2-Container>
<div class="merchant-check"> <div class="merchant-check">
...@@ -74,8 +75,8 @@ ...@@ -74,8 +75,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 +90,10 @@ import { sceneList } from "@/common/constants" ...@@ -89,8 +90,10 @@ import { sceneList } from "@/common/constants"
import { import {
saveRuleApi, saveRuleApi,
getEffectRuleApi, getEffectRuleApi,
getQueryFeeCategoryByTypeApi getQueryFeeCategoryByTypeApi,
ruleAuditSituation
} 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 +107,8 @@ export default { ...@@ -104,6 +107,8 @@ export default {
}, },
data() { data() {
return { return {
effectStartDateDate: '',
effectStartDate: false, // 规则时间 true 表示可以立即生效 是否立即生效
sceneList, sceneList,
verificationCodeVisible: false, verificationCodeVisible: false,
smsCode: '', smsCode: '',
...@@ -174,6 +179,7 @@ export default { ...@@ -174,6 +179,7 @@ export default {
this.getEffectRule()// 获取对账规则 this.getEffectRule()// 获取对账规则
}, 1000) }, 1000)
this.initBaseData() this.initBaseData()
this.addContactgetReconciliationHistoryRecordApi()
}, },
watch: { watch: {
productType: { productType: {
...@@ -192,6 +198,30 @@ export default { ...@@ -192,6 +198,30 @@ export default {
} }
return "%" return "%"
}, },
addContactgetReconciliationHistoryRecordApi() {
// 根据历史记录 处理财务生效记录的选项
const { merchantId, scene: sceneType } = this.routerInfo
ruleAuditSituation({
merchantId,
sceneType,
ruleType: 3
}).then(res => {
// 立即生效或者需选择
// console.log(res.every(item => {
// return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi')
// this.effectStartDate = !res.inEffectSettleDistributeRule
console.log(res.inEffectReconciliationRule, !res.InEffectReconciliationRule, '!res.InEffectReconciliationRule')
console.log(res, 'res')
this.effectStartDate = !res.inEffectReconciliationRule
// this.effectStartDate = !res.inEffectReconciliationRule
// 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 +567,8 @@ export default { ...@@ -537,7 +567,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 +577,7 @@ export default { ...@@ -546,6 +577,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,
......
...@@ -11,23 +11,33 @@ ...@@ -11,23 +11,33 @@
<!-- v-resize="resetTableHeight" <!-- v-resize="resetTableHeight"
:ref="'resize' + index" --> :ref="'resize' + index" -->
<div v-if="formArray && formArray.length"> <div v-if="formArray && formArray.length">
<div v-for="(formItem, index) in formArray" :ref="'resize' + index" :key="index"> <div v-for="(formItem, index) in formArray " :ref="'resize' + index" :key="index">
<p class="edit-sub-title" :class="{ 'sub-border': !formItem.show }"> <p class="edit-sub-title" :class="{ 'sub-border': !formItem.show }">
<span class="label"> <span class="label">
<span>{{ formItem.formatEffectStartDate }}</span> <span v-if="formItem.enableFlag != 2">
<span v-if="formItem.formatEffectStartDate"> - </span> <span>{{ formItem.formatEffectStartDate }}</span>
<span :class="{ labelColor: !formItem.formatEffectEndDate }">{{ <span v-if="formItem.formatEffectStartDate"> - </span>
formItem.formatEffectStartDate <span :class="{ 'labelColor': !formItem.formatEffectEndDate }">{{ formItem.enableFlag == 3
? formItem.formatEffectEndDate ? formItem.formatEffectEndDate : formItem.enableFlag == 1 ? "生效中" : "待生效"
? formItem.formatEffectEndDate }}</span>
: "生效中" </span>
: "待生效" <span v-if="formItem.enableFlag == 2">
}}</span> <span>{{ formItem.formatEffectStartDate }}</span>
<span> - </span>
<span :class="{ 'labelColorEff': !formItem.formatEffectEndDate }">{{ "待生效"
}}</span>
</span>
</span> </span>
<span class="updatedInfo"> <span class="updatedInfo">
操作人: {{ formItem.updatedBy }} 操作时间: 操作人: {{ formItem.updatedBy }} &nbsp; &nbsp; 操作时间:
{{ formItem.formatUpdatedDate }} {{ formItem.formatUpdatedDate }}
</span> </span>
<span class="updatedInfo">
<span>
审核人: {{ formItem.auditorName || '-' }} &nbsp; &nbsp; 审核时间:
{{ formItem.formatAuditDate || '-' }}
</span>
</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 +136,6 @@ export default { ...@@ -126,40 +136,6 @@ export default {
} }
}) })
}, },
getDetail() {
// const merchantId = this.merchantRow.merchantId
const merchantId = 44209883
if (!merchantId) return
getHistoryRecord({ merchantId }).then((res) => {
// console.log(res)
// dayjs(this.summaryDate).startOf('month').format('YYYY-MM-DD')
// const timeLabele = {
// }
// let financialRulesList = res
// 财务规则有三个模式 待生效 生效中 历史
// 根据effectEndDate 和 effectStartDate
// console.log(res)
this.formArray = res.map((item) => {
const format = "YYYY/MM/DD HH:mm"
const createdDate = item.createdDate
item.merchant = item?.divisionRule?.realityDivisionMerchant
item = Object.assign(item, item.settleRule, item.divisionRule)
// 这个值强制取item里面的
item.createdDate = createdDate
item.formatEffectEndDate = item.effectEndDate
? dayjs(item.effectEndDate).format(format)
: ""
item.formatEffectStartDate = item.effectStartDate
? dayjs(item.effectStartDate).format(format)
: ""
// console.log('item.createdDate', item.createdDate)
item.formatUpdatedDate = dayjs(item.createdDate).format(format)
item.show = false
return item
})
})
},
init() { init() {
if (this.activeName == "first") { if (this.activeName == "first") {
this.getLedgerHistoryRecord() this.getLedgerHistoryRecord()
...@@ -183,10 +159,19 @@ export default { ...@@ -183,10 +159,19 @@ export default {
item.formatEffectEndDate = item.effectEndDate item.formatEffectEndDate = item.effectEndDate
? dayjs(item.effectEndDate).format(format) ? dayjs(item.effectEndDate).format(format)
: "" : ""
item.formatEffectStartDate = item.effectStartDate
? dayjs(item.effectStartDate).format(format) if (item.enableFlag == 2) {
: "" item.formatEffectStartDate = item.effectStartDate
? dayjs(item.effectStartDate).format('YYYY年MM月DD日') + '生效'
: ""
} else {
item.formatEffectStartDate = item.effectStartDate
? dayjs(item.effectStartDate).format(format)
: ""
}
item.formatUpdatedDate = dayjs(item.updatedDate).format(format) item.formatUpdatedDate = dayjs(item.updatedDate).format(format)
item.formatAuditDate = item.auditDate ? dayjs(item.auditDate).format(format) : '-'
item.show = false item.show = false
return item return item
}) })
...@@ -213,10 +198,21 @@ export default { ...@@ -213,10 +198,21 @@ export default {
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)
: "" // : ""
if (item.enableFlag == 2) {
item.formatEffectStartDate = item.effectStartDate
? dayjs(item.effectStartDate).format('YYYY年MM月DD日') + '生效'
: ""
} else {
item.formatEffectStartDate = item.effectStartDate
? dayjs(item.effectStartDate).format(format)
: ""
}
item.formatUpdatedDate = dayjs(item.updatedDate).format(format) item.formatUpdatedDate = dayjs(item.updatedDate).format(format)
item.formatAuditDate = item.auditDate ? dayjs(item.auditDate).format(format) : ''
// console.log(item.formatAuditDate, 'item.formatAuditDate')
item.show = false item.show = false
return item return item
}) })
...@@ -263,15 +259,19 @@ $color: #2a58ad; ...@@ -263,15 +259,19 @@ $color: #2a58ad;
.label { .label {
padding-left: 8px; padding-left: 8px;
width: 37%; width: 25%;
} }
.labelColor { .labelColor {
color: #0947c6; color: #0947c6;
} }
.labelColorEff {
color: #FDB757;
}
.updatedInfo { .updatedInfo {
width: 40%; width: 25%;
text-align: left; text-align: left;
} }
...@@ -661,4 +661,5 @@ $color: #2a58ad; ...@@ -661,4 +661,5 @@ $color: #2a58ad;
// .part5 { // .part5 {
// } // }
} }
}</style> }
</style>
<template>
<d2-Container>
<div class="merchant-checkdetail">
<div class="merchant-title">
<span>商户名称:{{merchantRow.merchantName}}</span>
<span>业务场景:{{sceneList[merchantRow.sceneType]}}</span>
<span>类型:{{ruleReviewType[merchantRow.ruleType]}}</span>
<span>生效时间:{{merchantRow.effectStartDateShow}}</span>
</div>
<div class="merchant-info">
<!-- 分账 -->
<ledgerAccount v-if="merchantRow.ruleType == 1"
:items="checkDetailItem" />
<!-- 对账 -->
<reconciliation v-if="merchantRow.ruleType == 3"
:form-item="checkRecordList"
:items="checkRecordList.goodsTypeGroupReconciliationRules || []" />
</div>
<div class="btns">
<el-button @click="handleConfirm"
type="primary">
审核
</el-button>
<el-button @click="cacel">
取消
</el-button>
</div>
</div>
</d2-Container>
</template>
<script>
import ledgerAccount from '../merchant/merchantStep/components/ledgerAccount.vue'
import reconciliation from '../merchant/merchantStep/components/reconciliation.vue'
import { ruleAuditDetail, ruleAuditPass } from '@api/ruleReview'
import { sceneList, ruleReview_type_show } from '@/common/constants.js'
import { Util, deepClone } from '@/common/util'
export default {
name: "ExamineDetail",
props: {},
data() {
return {
activeName: "first",
merchantRow: {},
// 分账数据
checkDetailItem: {},
// 对账数据
checkRecordList: {},
sceneList: deepClone(sceneList),
ruleReviewType: deepClone(ruleReview_type_show)
}
},
created() {
this.getRowItem()
},
mounted() {
this.getRuleAuditDetail()
},
methods: {
async init() {
this.getRuleAuditDetail()
},
async getRuleAuditDetail() {
const params = {
id: this.merchantRow.id
}
const res = await ruleAuditDetail(params)
console.log('res: ', res)
this.checkDetailItem = res.merchantSettleDistributeRule
this.checkRecordList = res.merchantReconciliationRule
},
getRowItem() {
const params = this.$route.query?.params
if (params) {
this.merchantRow = JSON.parse(params)
if (this.merchantRow.effectDateType == 2) {
this.merchantRow.effectStartDateShow = '立即生效'
} else {
this.merchantRow.effectStartDateShow = this.merchantRow.effectStartDate ? Util.dateFormate(this.merchantRow.effectStartDate, 'YYYY-MM-DD') : '--'
}
// console.log("is.merchantRow", this.merchantRow)
}
},
// 审核
handleConfirm() {
this.$confirm('审核通过后,当前规则会自动应用并生效,可在商户管理-历史记录中查询。', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
ruleAuditPass({ id: this.merchantRow.id }).then(res => {
this.notice.okTips()
this.$router.go(-1)
})
}).catch(err => {
console.log(err)
})
},
cacel() {
this.$router.go(-1)
}
},
components: {
ledgerAccount,
reconciliation
},
computed: {}
}
</script>
<style lang="scss">
$color: #2a58ad;
.merchant-checkdetail {
// height: 100%;
padding-left: 20px;
padding-right: 16px;
padding-bottom: 20px;
// overflow-y: auto;
.title {
}
.merchant-title {
font-weight: 500;
font-size: 16px;
display: flex;
align-items: center;
justify-content: space-between;
}
.merchant-info {
margin-top: 20px;
}
.type {
margin-top: 6px;
display: flex;
.btn {
width: 96px;
height: 40px;
background: #f8f8f8;
border-radius: 4px 4px 0 0;
line-height: 40px;
text-align: center;
cursor: pointer;
}
.act {
font-weight: 500;
color: $color;
background: #fff;
}
}
.content {
background: #ffffff;
.part1 {
.tit {
display: flex;
align-items: center;
height: 48px;
background: #ffffff;
font-weight: 500;
font-size: 18px;
color: #333333;
box-sizing: border-box;
border-bottom: 1px solid #ebebeb;
.line {
margin-left: 16px;
margin-right: 8px;
width: 4px;
height: 16px;
background: $color;
border-radius: 2px;
}
}
.cont {
display: flex;
flex-flow: column;
&.cont-table {
display: block;
}
&.cont-table1 {
padding: 16px 20px 20px;
}
display: flex;
flex-wrap: wrap;
flex-flow: column;
padding: 16px 20px 32px;
.mt16 {
margin-top: 16px;
}
.msg {
padding-bottom: 12px;
flex: 1 0 auto;
// width: 50%;
display: flex;
align-items: flex-start;
line-height: 24px;
.msg-title {
width: 138px;
// height: 20px;
font-size: 14px;
color: #666666;
text-align: right;
}
.msg-val {
// height: 20px;
font-size: 14px;
color: #1d1d1d;
text-align: left;
}
}
.msg-name-val {
margin-left: 138px;
font-size: 14px;
}
.compute {
margin-bottom: 10px;
display: flex;
font-size: 14px;
color: #666666;
.manner {
}
.online {
& + .online {
margin-left: 44px;
}
color: $color;
}
}
.white-table {
margin-bottom: 16px;
display: flex;
flex-wrap: wrap;
font-size: 14px;
color: #666666;
border-top: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5;
.type1 {
// &:first-child {
// border-top: 1px solid #E5E5E5;
// border-left: 1px solid #E5E5E5;
// }
display: flex;
width: 33.33%;
height: 38px;
line-height: 38px;
border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
box-sizing: border-box;
.type-name {
text-align: right;
width: 90px;
}
.type-val {
flex: 1;
display: flex;
color: #1d1d1d;
}
.type-color {
color: $color;
}
.date {
margin-right: 10px;
color: #1d1d1d;
}
}
.type2 {
width: 66.66%;
}
}
.title-table {
font-size: 14px;
color: #333333;
border: 1px solid #e8e8ea;
.head {
display: flex;
height: 40px;
line-height: 40px;
text-align: center;
background: #f2f4f7;
.cost {
& + .cost {
border-left: 1px solid #e8e8ea;
}
flex: 1;
}
}
.detail {
display: flex;
min-height: 40px;
color: #666666;
border-top: 1px solid #e8e8ea;
.detail-i {
display: flex;
justify-content: center;
align-items: center;
& + .detail-i {
border-left: 1px solid #e8e8ea;
}
flex: 1;
}
}
}
}
}
// .part2 {
// }
// .part3 {
// }
// .part4 {
// }
// .part5 {
// }
}
.btns {
margin-top: 16px;
display: flex;
justify-content: center;
align-items: center;
}
}
</style>
<!-- 规则审核 - 列表 -->
<template>
<div>
<!-- class="order-detail" -->
<d2-container>
<!-- <div class="offline-account"> -->
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:labelWidth="labelWidth"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch"
size="small"
type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<!-- </d2-container>
<d2-container> -->
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 审核 -->
<span style="margin-right: 10px;"
v-if="scope.scope.auditStatus == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9062401']" />
</span>
<!-- 驳回 -->
<span style="margin-right: 10px;"
v-if="scope.scope.auditStatus == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9062402']" />
</span>
<!-- 撤销 -->
<span style="margin-right: 10px;"
v-if="scope.scope.auditStatus == 2 && scope.scope.enabledFlag == 'N'">
<auth-button :data="scope.scope"
:show-btn-ids="['9062403']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { sceneCodeList, ruleReview_status, ruleReview_type, withdrawalManageStatusList } from '@/common/constants.js'
import { withdrawOrderRecordPage, rewithdraw } from '@api/withdrawalManage'
import { ruleAuditPage, ruleAuditReject, ruleAuditCancel } from '@api/ruleReview'
export default {
name: 'TransferAccountsList',
components: {
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '100px',
searchForm: {
merchantName: '',
merchantIdFuzzy: '',
sceneType: '',
ruleType: '',
auditStatus: ''
},
searchFormSearch: {},
showFormData: [{
label: '商户名称',
name: 'merchantName',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '商户号',
name: 'merchantIdFuzzy',
type: 'input',
inputType: 'number',
maxlength: '20',
isClear: true
}, {
label: '业务场景',
name: 'sceneType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneTypeList'
}, {
label: '类型',
name: 'ruleType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'typeList'
}, {
label: '状态',
name: 'auditStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'statusList'
}],
getListApi: ruleAuditPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// tableOption: { width: '200px' },
tableOption: true,
tableColumns: [{
label: '商户名称',
prop: 'merchantName',
width: '160px'
}, {
label: '商户号',
prop: 'merchantId',
width: '160px'
}, {
label: '业务场景',
prop: 'sceneType',
width: '100px',
formatter: (cellValue) => {
return this.baseData.sceneTypeList.find(item => item.confId === cellValue.sceneType)?.confValue
}
},
{
label: '类型',
prop: 'ruleType',
width: '100px',
formatter: (cellValue) => {
return this.baseData.typeList.find(item => item.confId === cellValue.ruleType)?.confValue
}
},
{
label: '生效开始时间',
prop: 'effectStartDate',
width: '160px',
formatter: (cellValue) => {
if (cellValue.effectDateType == 2) {
return '立即生效'
} else {
return cellValue.effectStartDate ? Util.dateFormate(cellValue.effectStartDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}
},
{
label: '状态',
prop: 'auditStatus',
width: '100px',
formatter: (cellValue) => {
return this.baseData.statusList.find(item => item.confId === cellValue.auditStatus)?.confValue
}
},
{
label: '创建人',
prop: 'creatorName'
},
{
label: '创建时间',
prop: 'createdDate',
width: '160px',
formatter: (cellValue) => {
return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
},
{
label: '审核人',
prop: 'auditorName'
},
{
label: '审核时间',
prop: 'auditDate',
width: '160px',
formatter: (cellValue) => {
return cellValue.auditDate ? Util.dateFormate(cellValue.auditDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}
]
},
baseData: {
sceneTypeList: deepClone(sceneCodeList),
statusList: deepClone(ruleReview_status),
typeList: deepClone(ruleReview_type),
},
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.getOptionsList()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleSearch() {
this.$refs.recordTable.refreshTable(false, true)
},
handleReset() {
this.searchForm = {
merchantName: '',
merchantIdFuzzy: '',
sceneType: '',
ruleType: '',
auditStatus: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
//审核
handleReview(row) {
// row.merchantId = 44211847
// row.scene = 1
this.$router.push({
name: "examineDetail",
query: {
params: JSON.stringify(row)
}
})
},
//驳回
handleReject(row) {
this.$confirm('进行驳回后,自动作废该申请,且无法撤回。是否确认操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
ruleAuditReject({ id: row.id }).then(res => {
this.notice.okTips()
this.$refs.recordTable.refreshTable()
})
}).catch(err => {
console.log(err)
})
},
//撤销
handleRevoke(row) {
this.$confirm('进行撤销后,自动作废该规则记录,且无法撤回。是否确认操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
ruleAuditCancel({ id: row.id }).then(res => {
this.notice.okTips()
this.$refs.recordTable.refreshTable()
})
}).catch(err => {
console.log(err)
})
},
//根据生效时间判断是否可以撤销
isRevoke(row) {
const nowDate = Util.dateFormate(new Date(), 'YYYY-MM-DD')
console.log(nowDate);
console.log(Util.dateFormate(row.effectStartDate, 'YYYY-MM-DD'));
console.log(Util.dateFormate(row.effectStartDate, 'YYYY-MM-DD') > nowDate);
if (Util.dateFormate(row.effectStartDate, 'YYYY-MM-DD') > nowDate) {//未生效时可以撤销
return true
} else {
return false
}
}
},
}
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
</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="customerExchangeFlag">
<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: "N", confLabel: "禁用" },
{ confId: "Y", 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: '',
customerExchangeFlag: '',
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.customerExchangeFlag = res.customerExchangeFlag
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.customerExchangeFlag = this.customerExchangeFlag
oParams.loginControlList = this.loginControlList oParams.loginControlList = this.loginControlList
// oParams.partnerType = this.partnerType // oParams.partnerType = this.partnerType
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import { getList, quotationPrint, quotationExport, contractExport, listContracts } from "@api/vehicleDamage" import { getList, quotationPrint, quotationExport, contractExport, listContracts } from "@api/vehicleDamage"
export default { export default {
name: "StockList", name: "VehicleDamageList",
data() { data() {
return { return {
searchForm: { searchForm: {
...@@ -200,7 +200,9 @@ export default { ...@@ -200,7 +200,9 @@ export default {
{ severName: "待支付", severType: 2 }, { severName: "待支付", severType: 2 },
{ severName: "已支付", severType: 3 }, { severName: "已支付", severType: 3 },
{ severName: "战败", severType: -1 }, { severName: "战败", severType: -1 },
{ severName: "已完成", severType: 5 } { severName: "已完成", severType: 5 },
{ severName: "已撤销", severType: 9 },
{ severName: "错误订单", severType: 11 }
] ]
}, },
previewVisible: false, previewVisible: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!