Commit 175a99d9 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 5b8b7c1d 93978137
......@@ -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 '-'
}
......
......@@ -439,9 +439,8 @@ $color: #2a58ad;
// }
display: flex;
width: 33.33%;
min-height: 38px;
// line-height: 38px;
align-items: center;
height: 38px;
line-height: 38px;
border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
box-sizing: border-box;
......@@ -469,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;
}
}
}
......
......@@ -843,7 +843,7 @@ export default {
this.editableTabs
)
if (!this.checkParamsType(res, goodsTypeGroupRules)) {
this.$message.warning("请完善分账规则")
return this.$message.warning("请完善分账规则")
}
try {
this.submitParams = {
......
......@@ -56,7 +56,7 @@
</el-form-item>
</div>
<p v-if="!tabindex" class="store">全部分类</p>
<h3 v-if="!tabindex" style="margin-left: 20px;">全部品类</h3>
<!-- 流量方 -->
<p class="edit-sub-title">
流量方对账
......@@ -1438,8 +1438,9 @@ export default {
const resItem = await this.getBackendFormat()
resolve(resItem)
} else {
this.$message.error("请将数据填写完整,稍后重试")
reject(new Error("请输入数据完整, 请刷新重试"))
resolve(false)
// this.$message.error("请将数据填写完整,稍后重试")
// reject(new Error("请输入数据完整, 请刷新重试"))
}
})
})
......
......@@ -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>
......
......@@ -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() {
......
......@@ -267,9 +267,8 @@ $color: #2a58ad;
// }
display: flex;
width: 33.33%;
min-height: 38px;
// line-height: 38px;
align-items: center;
height: 38px;
line-height: 38px;
border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
box-sizing: border-box;
......@@ -297,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;
}
}
}
......
......@@ -577,9 +577,8 @@ $color: #2a58ad;
// }
display: flex;
width: 33.33%;
min-height: 38px;
// line-height: 38px;
align-items: center;
height: 38px;
line-height: 38px;
border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
box-sizing: border-box;
......@@ -607,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;
}
}
}
......
......@@ -263,9 +263,8 @@ $color: #2a58ad;
// }
display: flex;
width: 33.33%;
min-height: 38px;
// line-height: 38px;
align-items: center;
height: 38px;
line-height: 38px;
border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
box-sizing: border-box;
......@@ -293,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!