Commit 16ac2452 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 656692d4 db702be8
...@@ -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>
......
...@@ -104,6 +104,9 @@ export default { ...@@ -104,6 +104,9 @@ export default {
}, },
} }
}, },
created() {//默认当前日期
this.searchForm.time = [new Date(), new Date()]
},
computed: { computed: {
...mapState({ ...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList dowloadList: (state) => state.d2admin.user.dowloadList
......
...@@ -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
} }
......
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
prop: 'applyTime', prop: 'applyTime',
width: '150px', width: '150px',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.applyTime ? Util.dateFormate(cellValue.applyTime, 'YYYY-MM-DD HH:mm:ss') : '' return cellValue.applyTime ? Util.dateFormate(cellValue.applyTime, 'YYYY-MM-DD HH:mm:ss') : '-'
} }
}, { }, {
label: '申请状态', label: '申请状态',
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
prop: 'auditTime', prop: 'auditTime',
width: '150px', width: '150px',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.auditTime ? Util.dateFormate(cellValue.auditTime, 'YYYY-MM-DD HH:mm:ss') : '' return cellValue.auditTime ? Util.dateFormate(cellValue.auditTime, 'YYYY-MM-DD HH:mm:ss') : '-'
} }
} }
] ]
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
item.confLabel }}</el-radio> item.confLabel }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="应用对象" prop="applicationObjectType"> <el-form-item label="应用对象:" prop="applicationObjectType">
<el-radio-group v-model="form.applicationObjectType"> <el-radio-group v-model="form.applicationObjectType">
<el-radio v-for="(item, index) in objList" :label="item.confId" :key="index" :disabled="isDisabled">{{ <el-radio v-for="(item, index) in objList" :label="item.confId" :key="index" :disabled="isDisabled">{{
item.confLabel }}</el-radio> item.confLabel }}</el-radio>
......
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ',' const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ','
str += item.feeCategoryName + unit str += item.feeCategoryName + unit
}) })
return lenght ? str.substring(0, lenght) : str return lenght ? (str?.length > lenght ? str.substring(0, lenght) + '\u2026' : str.substring(0, lenght)) : str
} else { } else {
return '-' return '-'
} }
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
const list = scenes.map(item => { const list = scenes.map(item => {
return sceneList[item] return sceneList[item]
}) })
return lenght ? list.join(",").substring(0, lenght) : list.join(",") return lenght ? (list.join(",")?.length > lenght ? list.join(",").substring(0, lenght) + '\u2026' : list.join(",").substring(0, lenght)) : list.join(",")
} else { } else {
return '-' return '-'
} }
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ',' const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ','
str += item.feeCategoryName + unit str += item.feeCategoryName + unit
}) })
return length ? str.substring(0, length) : str return length ? (str?.length > length ? str.substring(0, length) + '\u2026' : str.substring(0, length)) : str
} else { } else {
return '-' return '-'
} }
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
const list = scenes.map(item => { const list = scenes.map(item => {
return sceneList[item] return sceneList[item]
}) })
return lenght ? list.join(",").substring(0, lenght) : list.join(",") return lenght ? (list.join(",")?.length > lenght ? list.join(",").substring(0, lenght) + '\u2026' : list.join(",").substring(0, lenght)) : list.join(",")
} else { } else {
return '-' return '-'
} }
......
...@@ -468,6 +468,13 @@ $color: #2a58ad; ...@@ -468,6 +468,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
...@@ -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>
...@@ -843,7 +843,7 @@ export default { ...@@ -843,7 +843,7 @@ export default {
this.editableTabs this.editableTabs
) )
if (!this.checkParamsType(res, goodsTypeGroupRules)) { if (!this.checkParamsType(res, goodsTypeGroupRules)) {
this.$message.warning("请完善分账规则") return this.$message.warning("请完善分账规则")
} }
try { try {
this.submitParams = { this.submitParams = {
...@@ -1194,6 +1194,7 @@ export default { ...@@ -1194,6 +1194,7 @@ export default {
goodsTypeGroupRules.push(res) goodsTypeGroupRules.push(res)
} }
this.$forceUpdate()
resolve(goodsTypeGroupRules) resolve(goodsTypeGroupRules)
}) })
}, },
......
...@@ -86,7 +86,12 @@ ...@@ -86,7 +86,12 @@
</div> </div>
<div class="type1 type2"> <div class="type1 type2">
<div class="type-name">地址:</div> <div class="type-name">地址:</div>
<div class="type-val">{{ items.shopMerchant.address }}</div> <el-tooltip class="item" effect="dark" placement="top">
<template slot="content">
<div class="address-box">{{ items.shopMerchant.address }}</div>
</template>
<div class="type-val">{{ items.shopMerchant.address }}</div>
</el-tooltip>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">创建时间:</div> <div class="type-name">创建时间:</div>
...@@ -202,7 +207,13 @@ ...@@ -202,7 +207,13 @@
<div class="type1 type2"> <div class="type1 type2">
<div class="type-name">地址:</div> <div class="type-name">地址:</div>
<!-- items.yqMerchant.address --> <!-- items.yqMerchant.address -->
<div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div> <!-- <div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div> -->
<el-tooltip class="item" effect="dark" placement="top">
<template slot="content">
<div class="address-box">{{ $$(items.yqMerchant, 'address') }}</div>
</template>
<div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div>
</el-tooltip>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">创建时间:</div> <div class="type-name">创建时间:</div>
......
...@@ -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>
平台方对账规则 平台方对账规则
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
class="my-tab-pane"> class="my-tab-pane">
<el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name" <el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name"
:closable="idx != 0"> :closable="idx != 0">
<span slot="label"><i class="el-icon-warning car-error-txt" v-if="errorIndex == idx" />{{ item.title }} <span slot="label"><i class="el-icon-warning car-error-txt" v-if="item.valiadError == 'Y'" />{{ item.title }}
</span> </span>
<div class="classificationCptContainer"> <div class="classificationCptContainer">
<classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`" <classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`"
...@@ -719,12 +719,19 @@ export default { ...@@ -719,12 +719,19 @@ export default {
this.getSelectingListPackage() this.getSelectingListPackage()
} }
}, },
checkParamsType(array) {
const flag = array.every((item) => item)
return flag
},
// 显示smcode弹框 // 显示smcode弹框
async showsmCode() { async showsmCode() {
// this.$refs.classification.validate(async (valid) => { // this.$refs.classification.validate(async (valid) => {
// if (valid) { // if (valid) {
// this.errorIndex = -1 // this.errorIndex = -1
await this.verifyFormData() let res = await this.verifyFormData()
if (!this.checkParamsType(res)) {
return this.$message.error("请完善对账规则")
}
// 检验已经通过了 // 检验已经通过了
this.errorIndex = -1 this.errorIndex = -1
this.verificationCodeVisible = true this.verificationCodeVisible = true
...@@ -762,16 +769,25 @@ export default { ...@@ -762,16 +769,25 @@ export default {
}, },
// 校验所有form数据 // 校验所有form数据
async verifyFormData() { async verifyFormData() {
// 校验重置数据 防止重复push return new Promise(async (resolve, reject) => {
this.goodsTypeGroupRulesAll = [] // 校验重置数据 防止重复push
for (var index = 0; index < this.editableTabs.length; index++) { this.goodsTypeGroupRulesAll = []
const node = this.$refs[`classification${this.editableTabs[index].name}`][0] const goodsTypeGroupRules = []
this.errorIndex = index for (var index = 0; index < this.editableTabs.length; index++) {
const res = await node.handleConfirm() const node = this.$refs[`classification${this.editableTabs[index].name}`][0]
if (res) { this.errorIndex = index
this.goodsTypeGroupRulesAll.push(res) const res = await node.handleConfirm()
res
? (this.editableTabs[index].valiadError = "N")
: (this.editableTabs[index].valiadError = "Y")
if (res) {
this.goodsTypeGroupRulesAll.push(res)
}
goodsTypeGroupRules.push(res)
} }
} this.$forceUpdate()
resolve(goodsTypeGroupRules)
})
}, },
// 获取组件所有值 // 获取组件所有值
getClassificationCptFormData() { getClassificationCptFormData() {
......
...@@ -296,6 +296,13 @@ $color: #2a58ad; ...@@ -296,6 +296,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
...@@ -606,6 +606,13 @@ $color: #2a58ad; ...@@ -606,6 +606,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
...@@ -292,6 +292,13 @@ $color: #2a58ad; ...@@ -292,6 +292,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!