Commit 84e8d3a1 by 前端

Merge branch 'chenwq_dev_v2.4.0' into 'v2.4.0'

Chenwq dev v2.4.0

See merge request !187
2 parents b997f837 1eba612a
<template> <template>
<div class="tag-main"> <div class="tag-main select-tag">
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="70%" :before-close="handleClose"> <el-dialog title="选择标签" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<div class="tag-panel"> <div class="tag-panel">
<div class="tag-panel-select"> <div class="tag-panel-select">
...@@ -26,14 +26,21 @@ ...@@ -26,14 +26,21 @@
<div class="tag-select-box"> <div class="tag-select-box">
<div class="tag-box-header">标签名称({{ selectNum }}项)</div> <div class="tag-box-header">标签名称({{ selectNum }}项)</div>
<div class="tag-selected-box" :style="{ height: heightBox + 'px' }"> <div class="tag-selected-box" :style="{ height: heightBox + 'px' }">
<template v-for="item in labelTreeRetSelect"> <div v-show="!!selectNum" class="tag-line-and" :style="{ height: heightBox + 'px' }">
<template v-for="(tag, idx) in item.tagChecked"> <p class="tag-line"></p>
<el-tag :title="tag.name" type="info" class="customer-tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)"> <p class="tag-and" :style="{ top: heightBox / 2 - 20 + 'px' }">且</p>
<!-- {{ tag.name }} --> </div>
{{ tag.name.length > 11 ? tag.name.slice(0, 11) + '...' : tag.name }} <div class="label-box">
</el-tag> <div v-for="(item, index) in labelTreeRetSelect" :key="index">
</template> <p class="tag-selected-label" v-show="item.tagChecked.length">{{ item.labelGroup.name }}:</p>
</template> <span v-for="(tag, idx) in item.tagChecked" :key="idx">
<span class="tag-txt" v-show="idx != 0">或</span>
<el-tag :title="tag.name" type="info" class="customer-tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
{{ tag.name.length > 11 ? tag.name.slice(0, 11) + '...' : tag.name }}
</el-tag>
</span>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -274,6 +281,44 @@ export default { ...@@ -274,6 +281,44 @@ export default {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.select-tag {
.label-box {
margin-left: 42px;
height: 100%;
overflow-y: scroll;
}
.tag-selected-label {
margin: 9px 0;
}
.tag-line-and {
position: relative;
}
.tag-line {
position: absolute;
left: 17px;
border: 1px solid rgba(88, 80, 255, 1);
border-width: 0 0 0 1px;
height: 100%;
}
.tag-and {
position: absolute;
background: #efeeff;
border: 1px solid rgba(88, 80, 255, 1);
border-radius: 4px;
padding: 10px;
z-index: 20;
}
.tag-txt {
padding: 0 8px;
}
.customer-tag-selected-item {
background: #f4f6fc !important;
border: 1px solid rgba(232, 232, 234, 1) !important;
border-radius: 4px;
height: 26px;
line-height: 26px;
}
}
.tag-panel { .tag-panel {
display: flex; display: flex;
.tag-panel-select { .tag-panel-select {
...@@ -360,5 +405,6 @@ export default { ...@@ -360,5 +405,6 @@ export default {
} }
.tag-selected-box { .tag-selected-box {
min-height: 200px; min-height: 200px;
display: flex;
} }
</style> </style>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</glsx-combi-form> </glsx-combi-form>
<!-- <GLButton class="default-blue-btn" style="float: right; margin-bottom: 10px;" :size="size" fn="创建优惠券" @click="handleJumpCoupon">创建优惠券</GLButton> --> <!-- <GLButton class="default-blue-btn" style="float: right; margin-bottom: 10px;" :size="size" fn="创建优惠券" @click="handleJumpCoupon">创建优惠券</GLButton> -->
<el-button class="default-blue-btn" style="float: right; margin-bottom: 10px;" :size="size" @click="handleJumpCoupon">创建优惠券</el-button> <el-button class="default-blue-btn" style="float: right; margin: 0 10px 10px 0;" :size="size" @click="handleJumpCoupon">创建优惠券</el-button>
<GLTable ref="coupon" :hasNum="false" :getListApi="getListApi" :searchForm="searchForm" :tableParams="associationTableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"> <GLTable ref="coupon" :hasNum="false" :getListApi="getListApi" :searchForm="searchForm" :tableParams="associationTableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="association" slot-scope="scope" class="association"> <div slot="association" slot-scope="scope" class="association">
<el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCouponInfo()"></el-radio> <el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCouponInfo()"></el-radio>
...@@ -245,19 +245,19 @@ ...@@ -245,19 +245,19 @@
<span class="txt-tips" style="margin-left: 20px;">销售:0</span> <span class="txt-tips" style="margin-left: 20px;">销售:0</span>
</p> </p>
</div> </div>
<div class="inner-block" style="margin-bottom: 8px;"> <div :class="{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }" style="margin-bottom: 8px;">
<div class="line" v-if="nameToValSpecsList.length"> <div class="line" v-if="nameToValSpecsList.length">
<span class="line-label">已选</span> <span class="line-label">已选</span>
<span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span> <span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span>
</div> </div>
<div class="line" style="display: flex;"> <div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span> <span class="line-label">配送</span>
<div> <div>
<div style="height: 25px; line-height: 30px;" class="line-txt">填写地址</div> <div style="height: 25px; line-height: 30px;" class="line-txt">填写地址</div>
<div style="height: 25px; line-height: 18px;" class="line-txt">支付后,预计48小时内发货</div> <div style="height: 25px; line-height: 18px;" class="line-txt">支付后,预计48小时内发货</div>
</div> </div>
</div> </div>
<div class="line"> <div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span> <span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span> <span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span> <span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span>
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
maxlength: 20 maxlength: 20
} }
], ],
getListApi: this.$apis.couponManage.getMerchantListApi, getListApi: this.$apis.couponManage.getCouponListApi,
associationTableParams: { associationTableParams: {
listName: 'list', listName: 'list',
tableOption: false, tableOption: false,
...@@ -1178,23 +1178,23 @@ export default { ...@@ -1178,23 +1178,23 @@ export default {
} }
// console.log(this.nameToValSpecsList) // console.log(this.nameToValSpecsList)
// console.log(this.specificationDetailList) // console.log(this.specificationDetailList)
if (isRecovery) { // if (isRecovery) {
this.nameToValSpecsList.forEach((item, index) => { this.nameToValSpecsList.forEach((item, index) => {
var specificationObj = {} var specificationObj = {}
item.specsValueList.forEach((subItem, subIndex) => { item.specsValueList.forEach((subItem, subIndex) => {
specificationObj[this.specificationDetailList[subIndex].specificationName] = subItem specificationObj[this.specificationDetailList[subIndex].specificationName] = subItem
})
item.specificationData = this.setLocaleCompare(specificationObj)
for (var i = 0; i < this.editForm.specificationDetailList.length; i++) {
var temp = this.editForm.specificationDetailList[i]
if (temp.specificationData == item.specificationData) {
item.retailPrice = (temp.retailPrice / 100).toFixed(2)
item.stock = temp.stock
break
}
}
}) })
} item.specificationData = this.setLocaleCompare(specificationObj)
for (var i = 0; i < this.editForm.specificationDetailList.length; i++) {
var temp = this.editForm.specificationDetailList[i]
if (temp.specificationData == item.specificationData) {
item.retailPrice = (temp.retailPrice / 100).toFixed(2)
item.stock = temp.stock
break
}
}
})
// }
// console.log(this.nameToValSpecsList) // console.log(this.nameToValSpecsList)
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!