Commit a01bad30 by 前端

Merge branch 'SAAS+V4.39.0-0603' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.39.0-0603
2 parents f5f798b7 16ac2452
...@@ -195,7 +195,8 @@ export default { ...@@ -195,7 +195,8 @@ export default {
progress.addEventListener( progress.addEventListener(
"click", "click",
(e) => { (e) => {
const x = e.offsetX / 370 const p_Bar = document.getElementById("progressBar")
const x = e.offsetX / p_Bar.offsetWidth
const currentWidth = x * this.myAud.duration const currentWidth = x * this.myAud.duration
this.myAud.currentTime = currentWidth this.myAud.currentTime = currentWidth
...@@ -205,7 +206,8 @@ export default { ...@@ -205,7 +206,8 @@ export default {
progressBar.addEventListener( progressBar.addEventListener(
"click", "click",
(e) => { (e) => {
const x = e.offsetX / 370 const p_Bar = document.getElementById("progressBar")
const x = e.offsetX / p_Bar.offsetWidth
const currentWidth = x * this.myAud.duration const currentWidth = x * this.myAud.duration
this.myAud.currentTime = currentWidth this.myAud.currentTime = currentWidth
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="info-wrap"> <div class="info-wrap">
<div class="info-item flex"> <div class="info-item flex">
<label>员工:</label> <label>员工:</label>
<span>{{ queryData.employeeName }} {{queryData.phoneNumber || ''}}</span> <span>{{ queryData.employeeName || '-' }} {{queryData.phoneNumber || ''}}</span>
</div> </div>
<div class="info-item flex"> <div class="info-item flex">
<label>门店:</label> <label>门店:</label>
......
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
if (windowItem) return this.windowId = id if (windowItem) return this.windowId = id
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs") if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs")
let item = { let item = {
text: data.employeeName, text: data.employeeName || '-',
data, data,
id id
} }
......
<!-- 员工编辑 --> <!-- 员工编辑 -->
<template> <template>
<d2-container> <d2-container>
<el-form ref="shopSetFrom" <el-form
class="shopSetFrom d2-container-content" ref="shopSetFrom"
:model="form" class="shopSetFrom d2-container-content"
:rules="formRules" :model="detail"
label-width="130px"> label-width="130px"
>
<!-- :rules="formRules" -->
<p class="edit-sub-title"> <p class="edit-sub-title">
员工编辑 员工编辑
<!-- <span class="merchantName">{{ info.merchantName }} {{ info.merchantId }}</span> --> <!-- <span class="merchantName">{{ info.merchantName }} {{ info.merchantId }}</span> -->
</p> </p>
<el-form-item label="员工姓名:"> <el-form-item label="员工姓名:">
<el-input class="rateInput_t" <el-input class="rateInput_t" v-model="detail.staffName" disabled />
v-model="detail.staffName"
disabled />
</el-form-item> </el-form-item>
<el-form-item label="手机号:"> <el-form-item label="手机号:">
<el-input class="rateInput_t" <el-input class="rateInput_t" v-model="detail.phoneNumber" disabled />
v-model="detail.phoneNumber"
disabled />
</el-form-item> </el-form-item>
<el-form-item label="所属业务:"> <el-form-item label="所属业务:">
<span v-for="(item, index) in detail.staffSceneLabelArr" <span v-for="(item, index) in detail.staffSceneLabelArr" :key="index">
:key="index"> <el-input
<el-input class="rateInput_t_s" class="rateInput_t_s"
v-model="detail.staffSceneLabelArr[index]" v-model="detail.staffSceneLabelArr[index]"
disabled /> disabled
/>
</span> </span>
</el-form-item> </el-form-item>
<el-form-item label="所属园区店:"> <el-form-item label="所属园区店:">
<el-input class="rateInput_t_m" <el-input
v-model="detail.merchantName + ' ' + detail.merchantId" class="rateInput_t_m"
disabled /> v-model="detail.merchantName + ' ' + detail.merchantId"
disabled
/>
</el-form-item> </el-form-item>
<el-form-item label="所属服务门店:"> <el-form-item label="所属服务门店:">
<span class="item-tips">注:解绑后代表该员工不再该4s店驻店,但该员工若再次在该4s店产生订单,视为该员工继续在该4s店驻店</span> <span class="item-tips"
<div v-for="(item, index) in detail.shopMerchantList" >注:解绑后代表该员工不再该4s店驻店,但该员工若再次在该4s店产生订单,视为该员工继续在该4s店驻店</span
:key="index"> >
<div style="marginBottom:20px"> <div v-for="(item, index) in detail.shopMerchantList" :key="index">
<el-input class="rateInput_t_m" <div style="marginbottom: 20px">
v-model="item.merchantName + ' ' + item.merchantId" <el-input
disabled /> class="rateInput_t_m"
<el-button type="text" v-model="item.merchantName + ' ' + item.merchantId"
style="color: blue;paddingLeft:10px" disabled
@click="handleSecure(item)">解绑该服务门店</el-button> />
<el-button
type="text"
style="color: blue; paddingleft: 10px"
@click="handleSecure(item)"
>解绑该服务门店</el-button
>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="所属服务商:"> <el-form-item label="所属服务商:">
<div v-for="(item, index) in detail.serviceMerchantList" <div v-for="(item, index) in detail.serviceMerchantList" :key="index">
:key="index"> <el-input
<el-input class="rateInput_t_mm" class="rateInput_t_mm"
v-model="item.merchantName + ' ' + item.merchantId" v-model="item.merchantName + ' ' + item.merchantId"
disabled /> disabled
/>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="btnCon"> <div class="btnCon">
<el-button class="cancel-btn" <el-button class="cancel-btn" @click="handleCancel"> 返回 </el-button>
@click="handleCancel">
返回
</el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -68,12 +73,12 @@ ...@@ -68,12 +73,12 @@
</template> </template>
<script> <script>
import { deepClone } from '@/common/util' import { deepClone } from "@/common/util"
import { mapActions } from 'vuex' import { mapActions } from "vuex"
import { staffDetail, staffMerchantUnbind } from '@api/inStoreManage' import { staffDetail, staffMerchantUnbind } from "@api/inStoreManage"
import { sceneForInStore } from '@/common/constants.js' import { sceneForInStore } from "@/common/constants.js"
export default { export default {
name: 'EditStaff', name: "EditStaff",
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
...@@ -87,35 +92,34 @@ export default { ...@@ -87,35 +92,34 @@ export default {
computed: {}, computed: {},
async mounted() { async mounted() {
this.info = this.$route.params?.info this.info = JSON.parse(this.$route.query?.info)
await this.staffDetail(this.info) await this.staffDetail(this.info)
}, },
methods: { methods: {
...mapActions({ ...mapActions({
get: 'd2admin/base/get', get: "d2admin/base/get",
close: 'd2admin/page/close' close: "d2admin/page/close"
}), }),
async getBaseData() { async getBaseData() {},
},
handleCancel() { handleCancel() {
this.close({ tagName: '/editStaff' }) this.close({ tagName: "/editStaff" })
this.$router.push({ name: 'inStoreManage' }) this.$router.push({ name: "inStoreManage" })
}, },
async staffDetail(info) { async staffDetail(info) {
console.log('info', info); console.log("info", info)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
staffDetail({ staffUuid: info.staffUuid }).then((result) => { staffDetail({ staffUuid: info.staffUuid }).then((result) => {
this.detail = deepClone(result) this.detail = deepClone(result)
let arr = [] let arr = []
if (this.detail.staffSceneLabel) { if (this.detail.staffSceneLabel) {
arr = this.detail.staffSceneLabel.split(",") arr = this.detail.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) arr = arr.filter((item) => item !== undefined)
} }
this.detail.staffSceneLabelArr = arr this.detail.staffSceneLabelArr = arr
resolve() resolve()
...@@ -128,23 +132,24 @@ export default { ...@@ -128,23 +132,24 @@ export default {
let params = {} let params = {}
params.merchantId = row.merchantId params.merchantId = row.merchantId
params.staffUuid = this.detail.staffUuid params.staffUuid = this.detail.staffUuid
this.$confirm('是否解绑该服务门店?', '提示', { this.$confirm("是否解绑该服务门店?", "提示", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'warning', type: "warning",
closeOnClickModal: false closeOnClickModal: false
}).then(() => {
staffMerchantUnbind(params).then(res => {
this.notice.okTips()
this.staffDetail(this.info)
})
}).catch(err => {
console.log(err)
}) })
}, .then(() => {
staffMerchantUnbind(params).then((res) => {
this.notice.okTips()
this.staffDetail(this.info)
})
})
.catch((err) => {
console.log(err)
})
}
} }
} }
</script> </script>
<style scoped lang="scss" > <style scoped lang="scss" >
.d2-container-content { .d2-container-content {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
:model="classificationObj" :model="classificationObj"
:rules="rules" :rules="rules"
label-suffix=":" label-suffix=":"
label-width="180px" label-width="260px"
> >
<p class="edit-sub-title">分账品类</p> <p class="edit-sub-title">分账品类</p>
<el-form-item <el-form-item
...@@ -187,8 +187,8 @@ ...@@ -187,8 +187,8 @@
style="width: 100%" style="width: 100%"
required required
> >
<span slot="label"> <span slot="label" class="label-span">
{{ item.expenseCategoryName }} <span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" --> <!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right"> <el-tooltip class="item" effect="dark" placement="right">
<template slot="content"> <template slot="content">
...@@ -447,8 +447,8 @@ ...@@ -447,8 +447,8 @@
style="width: 100%" style="width: 100%"
required required
> >
<span slot="label"> <span slot="label" class="label-span">
{{ item.expenseCategoryName }} <span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" --> <!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right"> <el-tooltip class="item" effect="dark" placement="right">
<template slot="content"> <template slot="content">
...@@ -847,8 +847,8 @@ ...@@ -847,8 +847,8 @@
style="width: 100%" style="width: 100%"
required required
> >
<span slot="label"> <span slot="label" class="label-span">
{{ item.expenseCategoryName }} <span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" --> <!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right"> <el-tooltip class="item" effect="dark" placement="right">
<template slot="content"> <template slot="content">
...@@ -1981,13 +1981,18 @@ export default { ...@@ -1981,13 +1981,18 @@ export default {
// 解决子选项问题 // 解决子选项问题
editObj.children = item.feeCategoryNameList.map((ele, index) => { editObj.children = item.feeCategoryNameList.map((ele, index) => {
// debugger // debugger
// console.log(ele.nodeType, 'editObj') // console.log(ele, 'editObj')
const editChildrenObj = const editChildrenObj =
editObj.children?.find( editObj.children?.find(
(el) => el.expenseCategoryId == ele.expenseCategoryId (el) => el.expenseCategoryId == ele.expenseCategoryId
) || {} ) || {}
// 解决 类目更新名字历史财务会覆盖掉的问题 // 解决 类目更新名字历史财务会覆盖掉的问题
editChildrenObj.expenseCategoryName = ele.applicationObjectName editChildrenObj.expenseCategoryName = ele.applicationObjectName
// 兜底规则根据最新费用类目配置 并将兜底规则 分润模式和分润比例清空
editChildrenObj.nodeType = ele.nodeType
// 当expenseCategoryCalculateType == 7是兜底规则
editChildrenObj.expenseCategoryCalculateType = editChildrenObj.nodeType == 4 || editChildrenObj.expenseCategoryCalculateType == 7 ? '' : editChildrenObj.expenseCategoryCalculateType
editChildrenObj.expenseCategoryValue = editChildrenObj.nodeType == 4 || editChildrenObj.expenseCategoryCalculateType == 7 ? '' : editChildrenObj.expenseCategoryValue
// console.log(ele, 'ele') // console.log(ele, 'ele')
const childrenObj = { const childrenObj = {
expenseCategoryCalculateType: "", // 计算方式 expenseCategoryCalculateType: "", // 计算方式
...@@ -2367,7 +2372,7 @@ export default { ...@@ -2367,7 +2372,7 @@ export default {
} }
.edit-form-item-table { .edit-form-item-table {
width: 80% !important; width: 90% !important;
} }
.edit-form-item-table-children { .edit-form-item-table-children {
...@@ -2388,10 +2393,26 @@ export default { ...@@ -2388,10 +2393,26 @@ export default {
.el-select__tags-text { .el-select__tags-text {
display: inline-block; display: inline-block;
max-width: 180px; max-width: 260px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.el-form-item__label{
display: flex;
align-items: center;
justify-content: flex-end;
.label-span{
display: flex;
align-items: center;
.sub-label{
display: inline-block;
max-width: 205px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
} }
</style> </style>
...@@ -1194,6 +1194,7 @@ export default { ...@@ -1194,6 +1194,7 @@ export default {
goodsTypeGroupRules.push(res) goodsTypeGroupRules.push(res)
} }
this.$forceUpdate()
resolve(goodsTypeGroupRules) resolve(goodsTypeGroupRules)
}) })
}, },
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<div class="msg-name-val" v-if="item.groupType !== 1">{{ getTypeName(item.goodsTypeGroupRelations) }}</div> <div class="msg-name-val" v-if="item.groupType !== 1">{{ getTypeName(item.goodsTypeGroupRelations) }}</div>
</div> </div>
</div> </div>
<div class="part1 part3"> <div class="part1 part3" v-if="item.expenseCategoryRuleLevels.findIndex(v => v.targetType == 1) > -1">
<div class="tit"> <div class="tit">
<div class="line"></div> <div class="line"></div>
导流方对账规则 导流方对账规则
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="part1 part5"> <div class="part1 part5" v-if="item.expenseCategoryRuleLevels.findIndex(v => v.targetType == 2) > -1">
<div class="tit"> <div class="tit">
<div class="line"></div> <div class="line"></div>
服务商对账规则 服务商对账规则
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="part1 part7"> <div class="part1 part7" v-if="item.expenseCategoryRuleLevels.findIndex(v => v.targetType == 3) > -1">
<div class="tit"> <div class="tit">
<div class="line"></div> <div class="line"></div>
平台方对账规则 平台方对账规则
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!