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