Commit 5aa352da by 前端

Merge branch 'v3.4.0' into 'master'

V3.4.0

See merge request !1
2 parents 2557a7eb 602abfeb
......@@ -248,6 +248,10 @@ const subscribe = [
optionLabel: '道路救援'
},
{
optionId: 2,
optionLabel: '定保招揽'
},
{
optionId: 3,
optionLabel: '其他'
}
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-23 17:38:30
* @LastEditTime: 2023-01-13 17:59:21
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -21,7 +21,8 @@ export const fetchConfig = function(isEnv = true) {
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config')
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-01-01 15:35:16
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-01-05 11:27:53
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
......@@ -22,7 +22,7 @@ try {
const loginpath = JSON.parse(sessionStorage.getItem('SCRM_BASE_SESSION'))?.loginpath
if (loginpath == '/oss') Vue.prototype.loginpath = true
} catch (e) {
throw e
console.log(e)
}
start()
export { bootstrap, mount, unmount } from '@/setup'
......
......@@ -77,7 +77,7 @@
<div slot="content">{{ subItem.couponName }}</div>
</el-tooltip>
<div class="gift-sum">
<el-input-number :disabled="subItem.status == '3'" class="sum-input" v-model="subItem.couponAmount" @change="handleChange" :min="1" :max="subItem.residueAmount" size="mini" label="描述文字"></el-input-number>
<el-input-number :disabled="subItem.status == '3'" class="sum-input" v-model="subItem.couponAmount" @change="handleChange" :min="1" :max="9999" size="mini" label="描述文字"></el-input-number>
<!-- <p :class="[subItem.status == '3' ? ' txt-grey' : '']" v-else>×{{ subItem.couponAmount }}</p> -->
</div>
</div>
......
......@@ -362,7 +362,7 @@ export default {
orderShow,
choseItemList: [],
selectedMealList: [],
couponObj,
couponObj: JSON.parse(JSON.stringify(couponObj)),
numToCoupon,
isSelectGiftVisible: false,
routeInfo: {
......@@ -598,6 +598,10 @@ export default {
optionLabel: '道路救援'
},
{
optionId: 2,
optionLabel: '定保招揽'
},
{
optionId: 3,
optionLabel: '其他'
}
......@@ -1229,8 +1233,12 @@ export default {
this.maxStock = 9999
this.orderShow.forEach(item => {
this.couponObj[item].list.forEach(subItem => {
const mult = Math.floor(subItem.residueAmount / subItem.couponAmount)
console.log(mult)
let mult
if (!subItem.residueAmount) {
mult = 9999
} else {
mult = Math.floor(subItem.residueAmount / subItem.couponAmount)
}
this.maxStock = this.maxStock < mult ? this.maxStock : mult
// 失效券不加入预估成本
if (subItem.status != '3') {
......@@ -1647,7 +1655,7 @@ export default {
this.handleMusicChange(this.musicList.length - 1)
}
}
info.couponList.forEach(item => {
this.editForm.couponList.forEach(item => {
item.id = item.couponId
item.anticipatedCost = item.couponAnticipatedCost
})
......
......@@ -10,7 +10,7 @@
<el-button :size="size" type="primary" @click="handleEdit('add')" v-if="loginpath">创建活动链接</el-button>
</div>
<GLTable ref="classifyRef" :getListApi="getListApi" :hasNum="false" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="giftInfo" slot-scope="scope">
<div class="sub-tabel" slot="giftInfo" slot-scope="scope">
<div class="gift-detail flex-wrap">
<div class="gift-item" v-for="(item, index) in scope.scope.couponList" :key="index">
<img :src="require(`@/assets/coupon/icon-${attrToIcon[item.discountType]}.png`)" />
......@@ -144,14 +144,14 @@ export default {
label: '业务场景',
prop: 'businessType',
formatter: cellValue => {
return businessType.find(item => item.optionId == cellValue.subscribe).optionLabel
return businessType.find(item => item.optionId == cellValue.businessType)?.optionLabel
}
},
{
label: '所属订阅',
prop: 'subscribe',
formatter: cellValue => {
return subscribe.find(item => item.optionId == cellValue.subscribe).optionLabel
return subscribe.find(item => item.optionId == cellValue.subscribe)?.optionLabel
}
},
{
......@@ -478,6 +478,50 @@ export default {
}
</script>
<style lang="scss" scoped>
.link-main {
/deep/ {
.expanded {
& + tr:hover td {
background: none !important;
}
}
.el-table__expand-icon {
width: 14px;
height: 14px;
background: rgba(88, 80, 255, 0.3);
border-radius: 2px;
position: relative;
&.el-table__expand-icon--expanded {
transform: rotate(0deg);
}
&::after {
top: -2px;
left: 0px;
content: '+';
position: absolute;
color: #5850ff;
width: 14px;
height: 14px;
font-size: 14px;
}
i {
display: none;
}
&.el-table__expand-icon--expanded {
&::after {
top: -2px;
left: 0px;
content: '-';
position: absolute;
color: #5850ff;
width: 14px;
height: 14px;
font-size: 14px;
}
}
}
}
}
.live-table-header {
display: flex;
justify-content: space-between;
......
......@@ -192,6 +192,7 @@ export default {
},
data() {
return {
isFirst: true,
isStaffVisible: false,
size: 'small',
url: url,
......@@ -617,12 +618,15 @@ export default {
beforeSearchFn() {
return new Promise(resolve => {
const { activityId, createdStartDateStr, createdEndDateStr } = this.$route.query
if (activityId) {
this.searchForm.createDate = createdStartDateStr ? [new Date(createdStartDateStr), new Date(createdEndDateStr)] : []
if (activityId && this.isFirst) {
this.searchForm.createDate = createdStartDateStr ? [new Date(createdStartDateStr), new Date(createdEndDateStr)] : this.searchForm.createDate
this.searchForm.activityId = activityId
} else {
this.searchForm.activityId = ''
}
this.isFirst = false
this.tableSearchForm = this.getParams()
delete this.tableSearchForm.createDate
// delete this.tableSearchForm.createDate
resolve()
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!