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 {
progress.addEventListener(
"click",
(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
this.myAud.currentTime = currentWidth
......@@ -205,7 +206,8 @@ export default {
progressBar.addEventListener(
"click",
(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
this.myAud.currentTime = currentWidth
},
......
......@@ -6,7 +6,7 @@
<div class="info-wrap">
<div class="info-item flex">
<label>员工:</label>
<span>{{ queryData.employeeName }} {{queryData.phoneNumber || ''}}</span>
<span>{{ queryData.employeeName || '-' }} {{queryData.phoneNumber || ''}}</span>
</div>
<div class="info-item flex">
<label>门店:</label>
......
......@@ -104,6 +104,9 @@ export default {
},
}
},
created() {//默认当前日期
this.searchForm.time = [new Date(), new Date()]
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
......
......@@ -122,7 +122,7 @@ export default {
if (windowItem) return this.windowId = id
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs")
let item = {
text: data.employeeName,
text: data.employeeName || '-',
data,
id
}
......
......@@ -144,7 +144,7 @@ export default {
prop: 'applyTime',
width: '150px',
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: '申请状态',
......@@ -161,7 +161,7 @@ export default {
prop: 'auditTime',
width: '150px',
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 @@
item.confLabel }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="应用对象" prop="applicationObjectType">
<el-form-item label="应用对象:" prop="applicationObjectType">
<el-radio-group v-model="form.applicationObjectType">
<el-radio v-for="(item, index) in objList" :label="item.confId" :key="index" :disabled="isDisabled">{{
item.confLabel }}</el-radio>
......
......@@ -250,7 +250,7 @@ export default {
const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ','
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 {
return '-'
}
......@@ -262,7 +262,7 @@ export default {
const list = scenes.map(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 {
return '-'
}
......
......@@ -203,7 +203,7 @@ export default {
const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ','
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 {
return '-'
}
......@@ -227,7 +227,7 @@ export default {
const list = scenes.map(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 {
return '-'
}
......
......@@ -468,6 +468,13 @@ $color: #2a58ad;
.type2 {
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 @@
:model="classificationObj"
:rules="rules"
label-suffix=":"
label-width="180px"
label-width="260px"
>
<p class="edit-sub-title">分账品类</p>
<el-form-item
......@@ -187,8 +187,8 @@
style="width: 100%"
required
>
<span slot="label">
{{ item.expenseCategoryName }}
<span slot="label" class="label-span">
<span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right">
<template slot="content">
......@@ -447,8 +447,8 @@
style="width: 100%"
required
>
<span slot="label">
{{ item.expenseCategoryName }}
<span slot="label" class="label-span">
<span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right">
<template slot="content">
......@@ -847,8 +847,8 @@
style="width: 100%"
required
>
<span slot="label">
{{ item.expenseCategoryName }}
<span slot="label" class="label-span">
<span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right">
<template slot="content">
......@@ -1981,13 +1981,18 @@ export default {
// 解决子选项问题
editObj.children = item.feeCategoryNameList.map((ele, index) => {
// debugger
// console.log(ele.nodeType, 'editObj')
// console.log(ele, 'editObj')
const editChildrenObj =
editObj.children?.find(
(el) => el.expenseCategoryId == ele.expenseCategoryId
) || {}
// 解决 类目更新名字历史财务会覆盖掉的问题
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')
const childrenObj = {
expenseCategoryCalculateType: "", // 计算方式
......@@ -2367,7 +2372,7 @@ export default {
}
.edit-form-item-table {
width: 80% !important;
width: 90% !important;
}
.edit-form-item-table-children {
......@@ -2388,10 +2393,26 @@ export default {
.el-select__tags-text {
display: inline-block;
max-width: 180px;
max-width: 260px;
white-space: nowrap;
overflow: hidden;
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>
......@@ -843,7 +843,7 @@ export default {
this.editableTabs
)
if (!this.checkParamsType(res, goodsTypeGroupRules)) {
this.$message.warning("请完善分账规则")
return this.$message.warning("请完善分账规则")
}
try {
this.submitParams = {
......@@ -1194,6 +1194,7 @@ export default {
goodsTypeGroupRules.push(res)
}
this.$forceUpdate()
resolve(goodsTypeGroupRules)
})
},
......
......@@ -86,7 +86,12 @@
</div>
<div class="type1 type2">
<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 class="type1">
<div class="type-name">创建时间:</div>
......@@ -202,7 +207,13 @@
<div class="type1 type2">
<div class="type-name">地址:</div>
<!-- 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 class="type1">
<div class="type-name">创建时间:</div>
......
......@@ -49,7 +49,7 @@
<div class="msg-name-val" v-if="item.groupType !== 1">{{ getTypeName(item.goodsTypeGroupRelations) }}</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="line"></div>
导流方对账规则
......@@ -121,7 +121,7 @@
</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="line"></div>
服务商对账规则
......@@ -199,7 +199,7 @@
</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="line"></div>
平台方对账规则
......
......@@ -50,7 +50,7 @@
class="my-tab-pane">
<el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name"
: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>
<div class="classificationCptContainer">
<classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`"
......@@ -719,12 +719,19 @@ export default {
this.getSelectingListPackage()
}
},
checkParamsType(array) {
const flag = array.every((item) => item)
return flag
},
// 显示smcode弹框
async showsmCode() {
// this.$refs.classification.validate(async (valid) => {
// if (valid) {
// this.errorIndex = -1
await this.verifyFormData()
let res = await this.verifyFormData()
if (!this.checkParamsType(res)) {
return this.$message.error("请完善对账规则")
}
// 检验已经通过了
this.errorIndex = -1
this.verificationCodeVisible = true
......@@ -762,16 +769,25 @@ export default {
},
// 校验所有form数据
async verifyFormData() {
// 校验重置数据 防止重复push
this.goodsTypeGroupRulesAll = []
for (var index = 0; index < this.editableTabs.length; index++) {
const node = this.$refs[`classification${this.editableTabs[index].name}`][0]
this.errorIndex = index
const res = await node.handleConfirm()
if (res) {
this.goodsTypeGroupRulesAll.push(res)
return new Promise(async (resolve, reject) => {
// 校验重置数据 防止重复push
this.goodsTypeGroupRulesAll = []
const goodsTypeGroupRules = []
for (var index = 0; index < this.editableTabs.length; index++) {
const node = this.$refs[`classification${this.editableTabs[index].name}`][0]
this.errorIndex = index
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() {
......
......@@ -296,6 +296,13 @@ $color: #2a58ad;
.type2 {
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;
.type2 {
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;
.type2 {
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!