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 = [ ...@@ -248,6 +248,10 @@ const subscribe = [
optionLabel: '道路救援' optionLabel: '道路救援'
}, },
{ {
optionId: 2,
optionLabel: '定保招揽'
},
{
optionId: 3, optionId: 3,
optionLabel: '其他' optionLabel: '其他'
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @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 // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -21,7 +21,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -21,7 +21,8 @@ export const fetchConfig = function(isEnv = true) {
//return window.fetch('https://', {}).then(res => res.json()) //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' }) // 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.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 = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-01-01 15:35:16 * @LastEditTime: 2023-01-05 11:27:53
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
...@@ -22,7 +22,7 @@ try { ...@@ -22,7 +22,7 @@ try {
const loginpath = JSON.parse(sessionStorage.getItem('SCRM_BASE_SESSION'))?.loginpath const loginpath = JSON.parse(sessionStorage.getItem('SCRM_BASE_SESSION'))?.loginpath
if (loginpath == '/oss') Vue.prototype.loginpath = true if (loginpath == '/oss') Vue.prototype.loginpath = true
} catch (e) { } catch (e) {
throw e console.log(e)
} }
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<div slot="content">{{ subItem.couponName }}</div> <div slot="content">{{ subItem.couponName }}</div>
</el-tooltip> </el-tooltip>
<div class="gift-sum"> <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> --> <!-- <p :class="[subItem.status == '3' ? ' txt-grey' : '']" v-else>×{{ subItem.couponAmount }}</p> -->
</div> </div>
</div> </div>
......
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
orderShow, orderShow,
choseItemList: [], choseItemList: [],
selectedMealList: [], selectedMealList: [],
couponObj, couponObj: JSON.parse(JSON.stringify(couponObj)),
numToCoupon, numToCoupon,
isSelectGiftVisible: false, isSelectGiftVisible: false,
routeInfo: { routeInfo: {
...@@ -598,6 +598,10 @@ export default { ...@@ -598,6 +598,10 @@ export default {
optionLabel: '道路救援' optionLabel: '道路救援'
}, },
{ {
optionId: 2,
optionLabel: '定保招揽'
},
{
optionId: 3, optionId: 3,
optionLabel: '其他' optionLabel: '其他'
} }
...@@ -1229,8 +1233,12 @@ export default { ...@@ -1229,8 +1233,12 @@ export default {
this.maxStock = 9999 this.maxStock = 9999
this.orderShow.forEach(item => { this.orderShow.forEach(item => {
this.couponObj[item].list.forEach(subItem => { this.couponObj[item].list.forEach(subItem => {
const mult = Math.floor(subItem.residueAmount / subItem.couponAmount) let mult
console.log(mult) if (!subItem.residueAmount) {
mult = 9999
} else {
mult = Math.floor(subItem.residueAmount / subItem.couponAmount)
}
this.maxStock = this.maxStock < mult ? this.maxStock : mult this.maxStock = this.maxStock < mult ? this.maxStock : mult
// 失效券不加入预估成本 // 失效券不加入预估成本
if (subItem.status != '3') { if (subItem.status != '3') {
...@@ -1647,7 +1655,7 @@ export default { ...@@ -1647,7 +1655,7 @@ export default {
this.handleMusicChange(this.musicList.length - 1) this.handleMusicChange(this.musicList.length - 1)
} }
} }
info.couponList.forEach(item => { this.editForm.couponList.forEach(item => {
item.id = item.couponId item.id = item.couponId
item.anticipatedCost = item.couponAnticipatedCost item.anticipatedCost = item.couponAnticipatedCost
}) })
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-button :size="size" type="primary" @click="handleEdit('add')" v-if="loginpath">创建活动链接</el-button> <el-button :size="size" type="primary" @click="handleEdit('add')" v-if="loginpath">创建活动链接</el-button>
</div> </div>
<GLTable ref="classifyRef" :getListApi="getListApi" :hasNum="false" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <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-detail flex-wrap">
<div class="gift-item" v-for="(item, index) in scope.scope.couponList" :key="index"> <div class="gift-item" v-for="(item, index) in scope.scope.couponList" :key="index">
<img :src="require(`@/assets/coupon/icon-${attrToIcon[item.discountType]}.png`)" /> <img :src="require(`@/assets/coupon/icon-${attrToIcon[item.discountType]}.png`)" />
...@@ -144,14 +144,14 @@ export default { ...@@ -144,14 +144,14 @@ export default {
label: '业务场景', label: '业务场景',
prop: 'businessType', prop: 'businessType',
formatter: cellValue => { formatter: cellValue => {
return businessType.find(item => item.optionId == cellValue.subscribe).optionLabel return businessType.find(item => item.optionId == cellValue.businessType)?.optionLabel
} }
}, },
{ {
label: '所属订阅', label: '所属订阅',
prop: 'subscribe', prop: 'subscribe',
formatter: cellValue => { 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 { ...@@ -478,6 +478,50 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <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 { .live-table-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
...@@ -192,6 +192,7 @@ export default { ...@@ -192,6 +192,7 @@ export default {
}, },
data() { data() {
return { return {
isFirst: true,
isStaffVisible: false, isStaffVisible: false,
size: 'small', size: 'small',
url: url, url: url,
...@@ -617,12 +618,15 @@ export default { ...@@ -617,12 +618,15 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
const { activityId, createdStartDateStr, createdEndDateStr } = this.$route.query const { activityId, createdStartDateStr, createdEndDateStr } = this.$route.query
if (activityId) { if (activityId && this.isFirst) {
this.searchForm.createDate = createdStartDateStr ? [new Date(createdStartDateStr), new Date(createdEndDateStr)] : [] this.searchForm.createDate = createdStartDateStr ? [new Date(createdStartDateStr), new Date(createdEndDateStr)] : this.searchForm.createDate
this.searchForm.activityId = activityId this.searchForm.activityId = activityId
} else {
this.searchForm.activityId = ''
} }
this.isFirst = false
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
delete this.tableSearchForm.createDate // delete this.tableSearchForm.createDate
resolve() resolve()
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!