Commit 95272806 by 张立顺

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

…fe-system into dev_v4.35.0-0305
2 parents 8c08836d c324e888
...@@ -790,7 +790,8 @@ export const ruleReview_status = [ ...@@ -790,7 +790,8 @@ export const ruleReview_status = [
{ confId: 2, confValue: "已审核" }, { confId: 2, confValue: "已审核" },
{ confId: 3, confValue: "已驳回" }, { confId: 3, confValue: "已驳回" },
{ confId: 4, confValue: "逾期未审" }, { confId: 4, confValue: "逾期未审" },
{ confId: 5, confValue: "已撤销" } { confId: 5, confValue: "已撤销" },
{ confId: 6, confValue: "异常" }
] ]
// 服务商类型 // 服务商类型
......
...@@ -28,32 +28,34 @@ ...@@ -28,32 +28,34 @@
<el-tooltip popper-class="tooltip-class" <el-tooltip popper-class="tooltip-class"
effect="dark" effect="dark"
placement="right"> placement="right">
<div slot="content">说明:勾选应用场景,当前的费用类目会自动应用于对应场景的分账规则中,可在分账规则中进行配置并使用;</div> <div slot="content">{{item.commLabelGroupInfo.groupDesc}}</div>
<span class="tips-icon" /> <span class="tips-icon" />
</el-tooltip>: </el-tooltip>:
</span> </span>
<span v-for="(obj, index2) in item.commLabelList" <span v-for="(obj, index2) in item.commLabelList"
class="label-span">{{obj.labelName}}</span> class="label-span">{{obj.labelName}}</span>
</el-form-item> </el-form-item>
<el-form-item label="" <div class="div_g">
v-for="(item, index1) in groupUnitList" <el-form-item label=""
v-if="item.groupType == '1'" v-for="(item, index1) in groupUnitList"
class="flag-div"> v-if="item.groupType == '1'"
<span class="tips-block" class="flag-div">
slot="label"> <span class="tips-block"
<span class="tips-label">{{item.groupName}}</span> slot="label">
<el-tooltip popper-class="tooltip-class" <span class="tips-label">{{item.groupName}}</span>
effect="dark" <el-tooltip popper-class="tooltip-class"
placement="right"> effect="dark"
<div slot="content">说明:勾选应用场景,当前的费用类目会自动应用于对应场景的分账规则中,可在分账规则中进行配置并使用;</div> placement="right">
<span class="tips-icon" /> <div slot="content">{{item.groupDesc}}</div>
</el-tooltip>: <span class="tips-icon" />
</span> </el-tooltip>:
<span v-for="(obj, index2) in item.labelUnitList" </span>
class="label-span" <span v-for="(obj, index2) in item.labelUnitList"
:class="{ 'label-span-choose': obj.choose }" class="label-span"
@click="chooseLabel(index1,index2,obj,item)">{{obj.labelName}}</span> :class="{ 'label-span-choose': obj.choose }"
</el-form-item> @click="chooseLabel(index1,index2,obj,item)">{{obj.labelName}}</span>
</el-form-item>
</div>
</el-form> </el-form>
</div> </div>
</baseDialog> </baseDialog>
...@@ -276,5 +278,10 @@ export default { ...@@ -276,5 +278,10 @@ export default {
padding: 4px 8px; padding: 4px 8px;
} }
} }
.div_g {
padding-top: 20px;
border-top: 1px solid #eaeef7;
border-bottom: 1px solid #eaeef7;
}
} }
</style> </style>
...@@ -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"
...@@ -105,6 +105,9 @@ ...@@ -105,6 +105,9 @@
<el-form-item label="1.1业务负责人:" <el-form-item label="1.1业务负责人:"
prop="boutiqueDirectorUserId"> prop="boutiqueDirectorUserId">
<el-select v-model="form.shopMerchantConfig.boutiqueDirectorUserId" <el-select v-model="form.shopMerchantConfig.boutiqueDirectorUserId"
clearable
filterable
value-key="userId"
placeholder="请选择" placeholder="请选择"
class="el_select itd"> class="el_select itd">
<el-option v-for="item in sellerMerchantStaffList" <el-option v-for="item in sellerMerchantStaffList"
...@@ -117,6 +120,9 @@ ...@@ -117,6 +120,9 @@
<el-form-item label="2.1业务负责人:" <el-form-item label="2.1业务负责人:"
prop="quotationDirectorUserId"> prop="quotationDirectorUserId">
<el-select v-model="form.shopMerchantConfig.quotationDirectorUserId" <el-select v-model="form.shopMerchantConfig.quotationDirectorUserId"
clearable
filterable
value-key="userId"
placeholder="请选择" placeholder="请选择"
class="el_select itd"> class="el_select itd">
<el-option v-for="item in sellerMerchantStaffList" <el-option v-for="item in sellerMerchantStaffList"
...@@ -124,6 +130,7 @@ ...@@ -124,6 +130,7 @@
:label="item.userName" :label="item.userName"
:value="item.userId" /> :value="item.userId" />
</el-select> </el-select>
<span class="item-tips">注:获取账户中心创建在广联数科下的员工,角色类型选广联销售</span>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="month-set-div"> <div class="month-set-div">
......
...@@ -54,10 +54,14 @@ export default { ...@@ -54,10 +54,14 @@ export default {
phoneNumber: '', phoneNumber: '',
deploymentScene: '', deploymentScene: '',
equityConfigInfo: { equityConfigInfo: {
titleText: '初级驻店零售' titleText: '初级驻店零售',
merchantArr: [],
studentStaffs: []
}, },
upgradeConfigInfo: { upgradeConfigInfo: {
titleText: '初级驻店零售' titleText: '初级驻店零售',
merchantArr: [],
studentStaffs: []
} }
}, },
editFormData: [{ editFormData: [{
...@@ -96,7 +100,7 @@ export default { ...@@ -96,7 +100,7 @@ export default {
handler(val) { handler(val) {
let customerConfigInfo = val == '1' ? this.configInfo.upgradeConfigInfo : this.configInfo.equityConfigInfo let customerConfigInfo = val == '1' ? this.configInfo.upgradeConfigInfo : this.configInfo.equityConfigInfo
let customerMerchantArr = val == '1' ? this.configInfo.upgradeConfigInfo?.merchantArr : this.configInfo.equityConfigInfo?.merchantArr let customerMerchantArr = val == '1' ? this.configInfo.upgradeConfigInfo?.merchantArr : this.configInfo.equityConfigInfo?.merchantArr
if (!customerConfigInfo.defaultMerchant || customerConfigInfo.defaultMerchant == '0') { if (!customerConfigInfo?.defaultMerchant || customerConfigInfo?.defaultMerchant == '0') {
customerConfigInfo.defaultMerchant = customerMerchantArr[0]?.shopMerchantId customerConfigInfo.defaultMerchant = customerMerchantArr[0]?.shopMerchantId
} }
this.$nextTick(() => { this.$nextTick(() => {
...@@ -181,7 +185,7 @@ export default { ...@@ -181,7 +185,7 @@ export default {
staffUuid: routerQuery?.staffUuid, staffUuid: routerQuery?.staffUuid,
staffName: routerQuery?.staffName, // 员工姓名 staffName: routerQuery?.staffName, // 员工姓名
phoneNumber: routerQuery?.phoneNumber, // 员工手机号 phoneNumber: routerQuery?.phoneNumber, // 员工手机号
deploymentScene: routerQuery?.sceneTypeList?.[0] // 选择业务 deploymentScene: `${routerQuery?.sceneTypeList?.[0]}` // 选择业务
} }
Array.isArray(res) && res?.forEach(val => { Array.isArray(res) && res?.forEach(val => {
val.tutorBonusConfigs?.forEach(v => { val.tutorBonusConfigs?.forEach(v => {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
<div slot="student"> <div slot="student">
<div class="dis-inlne-b" v-for="item in configInfo['studentStaffs']" :key="item.staffUuid"> <div class="dis-inlne-b" v-for="item in configInfo['studentStaffs']" :key="item.staffUuid">
<span v-if="item.staffUuid" class="staff_name_span" >{{ item.staffName + ' ' + (item.associationDate || '') }}</span> <span v-if="item.staffUuid" class="staff_name_span" >{{ item.staffName + ' ' + (item.refTime || '') }}</span>
</div> </div>
<el-button type="text" :disabled="pageDisabled" @click="showTitleDialog">修改关联</el-button> <el-button type="text" :disabled="pageDisabled" @click="showTitleDialog">修改关联</el-button>
</div> </div>
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
<template slot="phoneNumber" slot-scope="scope"> <template slot="phoneNumber" slot-scope="scope">
<span>{{ scope.scope.phoneNumber || '--' }}</span> <span>{{ scope.scope.phoneNumber || '--' }}</span>
</template> </template>
<template slot="associationDate" slot-scope="scope"> <template slot="refTime" slot-scope="scope">
<span>{{ scope.scope.associationDate || '--' }}</span> <span>{{ scope.scope.refTime || '--' }}</span>
</template> </template>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button @click="handleRelateDelete(scope.index)" type="text" size="small">删除</el-button> <el-button @click="handleRelateDelete(scope.index)" type="text" size="small">删除</el-button>
...@@ -231,8 +231,8 @@ export default { ...@@ -231,8 +231,8 @@ export default {
minWidth: 200 minWidth: 200
}, { }, {
label: '关联时间', label: '关联时间',
prop: 'associationDate', prop: 'refTime',
addHtml: 'associationDate', addHtml: 'refTime',
minWidth: 200 minWidth: 200
}] }]
}, },
...@@ -371,7 +371,7 @@ export default { ...@@ -371,7 +371,7 @@ export default {
let configInfo = deepClone(this.configInfo) let configInfo = deepClone(this.configInfo)
this.titleDialogVisible = true this.titleDialogVisible = true
this.titleForm = { this.titleForm = {
setTitle: configInfo?.setTitle, setTitle: configInfo?.setTitle || `${configInfo?.title}`,
studentStaffs: configInfo?.studentStaffs || [] studentStaffs: configInfo?.studentStaffs || []
} }
}, },
...@@ -385,7 +385,8 @@ export default { ...@@ -385,7 +385,8 @@ export default {
if (valid) { if (valid) {
this.configInfo = { this.configInfo = {
...this.configInfo, ...this.configInfo,
...this.titleForm ...this.titleForm,
titleText: ['初级驻店零售', '中级导师', '高级导师'][this.titleForm?.setTitle]
} }
this.handleTitleClose() this.handleTitleClose()
} }
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
staffName: '', staffName: '',
phoneNumber: '', phoneNumber: '',
performanceFlag: false, performanceFlag: false,
deploymentScene: '1' deploymentScene: ''
}, },
upgradeMerchantArr: [], // 1.1精品升级场景门店] upgradeMerchantArr: [], // 1.1精品升级场景门店]
equityMerchantArr: [], // 2.1权益场景门店 equityMerchantArr: [], // 2.1权益场景门店
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
merchantName: routerQuery?.yqMerchantObj?.merchantName, // 园区店名称 merchantName: routerQuery?.yqMerchantObj?.merchantName, // 园区店名称
merchantId: routerQuery?.yqMerchantObj?.merchantId, // 园区店商户号 merchantId: routerQuery?.yqMerchantObj?.merchantId, // 园区店商户号
performanceFlag: routerQuery?.performanceFlag == 'Y', // 员工绩效开关 performanceFlag: routerQuery?.performanceFlag == 'Y', // 员工绩效开关
deploymentScene: routerQuery?.sceneTypeList?.[0] deploymentScene: `${routerQuery?.sceneTypeList?.[0]}`
} }
routerQuery?.sceneTypeList?.forEach(v => { routerQuery?.sceneTypeList?.forEach(v => {
this.getStoreList(v) this.getStoreList(v)
......
...@@ -228,7 +228,10 @@ export default { ...@@ -228,7 +228,10 @@ export default {
width: '100', width: '100',
formatter: (cellValue) => { formatter: (cellValue) => {
let sceneTypeLabel = { 0: '2.1', 1: '1.1' } let sceneTypeLabel = { 0: '2.1', 1: '1.1' }
return cellValue?.sceneTypeList?.map(v => sceneTypeLabel[v])?.join('/') || '-' let sceneTypeNameArr = cellValue?.sceneTypeList?.filter(element => {
return element <= 1
})
return sceneTypeNameArr?.map(v => sceneTypeLabel[v])?.join('/') || '-'
} }
}, { }, {
label: '园区店', label: '园区店',
...@@ -455,9 +458,13 @@ export default { ...@@ -455,9 +458,13 @@ export default {
this.close({ tagName: '/performanceConfig' }) this.close({ tagName: '/performanceConfig' })
let yqMerchantObj = { merchantName: row?.merchantName, merchantId: row.merchantNo } let yqMerchantObj = { merchantName: row?.merchantName, merchantId: row.merchantNo }
let partnerMerchantArr = row?.partnerMerchantNameList.map((item, index) => item + row?.partnerMerchantIdList[index]) || [] let partnerMerchantArr = row?.partnerMerchantNameList.map((item, index) => item + row?.partnerMerchantIdList[index]) || []
// 仅保存精品升级和会员权益/升级场景
let sceneTypeNameArr = row?.sceneTypeList?.filter(element => {
return element <= 1
})
let queryObj = { let queryObj = {
staffUuid: row.staffUuid, // 员工Id staffUuid: row.staffUuid, // 员工Id
sceneTypeList: JSON.stringify(row.sceneTypeList), // 员工已关联场景 sceneTypeList: JSON.stringify(sceneTypeNameArr?.reverse()), // 员工已关联场景
yqMerchantObj: JSON.stringify(yqMerchantObj), // 园区店信息 yqMerchantObj: JSON.stringify(yqMerchantObj), // 园区店信息
partnerMerchantArr: JSON.stringify(partnerMerchantArr), // 服务商信息 partnerMerchantArr: JSON.stringify(partnerMerchantArr), // 服务商信息
phoneNumber: row.staffPhone, // 员工手机号 phoneNumber: row.staffPhone, // 员工手机号
...@@ -474,10 +481,14 @@ export default { ...@@ -474,10 +481,14 @@ export default {
this.close({ tagName: '/mentorConfig' }) this.close({ tagName: '/mentorConfig' })
let yqMerchantObj = { merchantName: row?.merchantName, merchantId: row.merchantNo } let yqMerchantObj = { merchantName: row?.merchantName, merchantId: row.merchantNo }
let partnerMerchantArr = row?.partnerMerchantNameList.map((item, index) => item + row?.partnerMerchantIdList[index]) || [] let partnerMerchantArr = row?.partnerMerchantNameList.map((item, index) => item + row?.partnerMerchantIdList[index]) || []
// 仅保存精品升级和会员权益/升级场景
let sceneTypeNameArr = row?.sceneTypeList?.filter(element => {
return element <= 1
})
let queryObj = { let queryObj = {
staffUuid: row.staffUuid, staffUuid: row.staffUuid,
yqMerchantObj: JSON.stringify(yqMerchantObj), yqMerchantObj: JSON.stringify(yqMerchantObj),
sceneTypeList: JSON.stringify(row?.sceneTypeList), sceneTypeList: JSON.stringify(sceneTypeNameArr?.reverse()),
partnerMerchantArr: JSON.stringify(partnerMerchantArr), partnerMerchantArr: JSON.stringify(partnerMerchantArr),
phoneNumber: row.staffPhone, // 员工手机号 phoneNumber: row.staffPhone, // 员工手机号
staffName: row.staffName, // 员工姓名 staffName: row.staffName, // 员工姓名
......
...@@ -33,30 +33,30 @@ ...@@ -33,30 +33,30 @@
<!-- 目标转化率 --> <!-- 目标转化率 -->
<template slot="conversionRate" slot-scope="scope"> <template slot="conversionRate" slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.conversionRate || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.conversionRate}%` || '-' }}</div>
</div> </div>
<div v-else>{{ scope.scope.conversionRate || '-' }}</div> <div v-else>{{ `${scope.scope.conversionRate}%` || '-' }}</div>
</template> </template>
<!-- 目标转化率提成 --> <!-- 目标转化率提成 -->
<template slot="conversionRatePercentage" slot-scope="scope"> <template slot="conversionRatePercentage" slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.conversionRatePercentage || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.conversionRatePercentage}%` || '-' }}</div>
</div> </div>
<div v-else>{{ scope.scope.conversionRatePercentage || '-' }}</div> <div v-else>{{ `${scope.scope.conversionRatePercentage}%` || '-' }}</div>
</template> </template>
<!-- 客单价 --> <!-- 客单价 -->
<template slot="customerUnitPrice" slot-scope="scope"> <template slot="customerUnitPrice" slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.customerUnitPrice || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `¥${subItem.customerUnitPrice}` || '-' }}</div>
</div> </div>
<div v-else>{{ scope.scope.customerUnitPrice || '-' }}</div> <div v-else>{{ `¥${scope.scope.customerUnitPrice}` || '-' }}</div>
</template> </template>
<!-- 客单价提成 --> <!-- 客单价提成 -->
<template slot="customerUnitPricePercentage" slot-scope="scope"> <template slot="customerUnitPricePercentage" slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.customerUnitPricePercentage || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.customerUnitPricePercentage}%` || '-' }}</div>
</div> </div>
<div v-else>{{ scope.scope.customerUnitPricePercentage || '-' }}</div> <div v-else>{{ `${scope.scope.customerUnitPricePercentage}%` || '-' }}</div>
</template> </template>
</d2-table> </d2-table>
</div> </div>
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
} }
}, },
mounted() { mounted() {
let routerQuery = this.$router.query let routerQuery = this.$route.query
// 获取详情 // 获取详情
this.getDetailInfo(routerQuery) this.getDetailInfo(routerQuery)
}, },
...@@ -273,7 +273,11 @@ export default { ...@@ -273,7 +273,11 @@ export default {
// 返回 // 返回
handleClose() { handleClose() {
this.close({ tagName: '/inStoreGoalsConfig' }) this.close({ tagName: '/inStoreGoalsConfig' })
this.$router.push({ name: 'inStoreGoalsConfig' }) // 返回后列表页tab默认选中驻店员工目标项
this.$router.push({ name: 'inStoreGoalsConfig', params: {
tabPane: "1",
tabLabel: "staffTargetList"
} })
this.close({ tagName: '/employeeTasksView' }) this.close({ tagName: '/employeeTasksView' })
} }
} }
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<el-tooltip popper-class="tooltip-class" <el-tooltip popper-class="tooltip-class"
effect="dark" effect="dark"
placement="right"> placement="right">
<div slot="content">说明:勾选应用场景,当前的费用类目会自动应用于对应场景的分账规则中,可在分账规则中进行配置并使用;</div> <div slot="content">{{item.commLabelGroupInfo.groupDesc}}</div>
<span class="tips-icon" /> <span class="tips-icon" />
</el-tooltip>: </el-tooltip>:
</span> </span>
......
...@@ -149,8 +149,9 @@ export default { ...@@ -149,8 +149,9 @@ export default {
if (cellValue.staffSceneLabel) { if (cellValue.staffSceneLabel) {
let arr = cellValue.staffSceneLabel.split(",") let arr = cellValue.staffSceneLabel.split(",")
arr = arr.map(o => { arr = arr.map(o => {
return sceneForInStore.find(el => el.confId == o).confValue return sceneForInStore.find(el => el.confId == o)?.confValue
}) })
arr = arr.filter(item => item !== undefined)
showHtml = arr.join(',') showHtml = arr.join(',')
} }
return showHtml return showHtml
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!