Commit 8b3c0343 by 陈婉清

Merge branch 'master' into 'v2.7.2_feat'

v2.7.0上线后,代码合并。

See merge request !301
2 parents 44984881 ae2c20b2
......@@ -6684,9 +6684,9 @@
}
},
"glsx-components": {
"version": "1.4.7",
"resolved": "https://registry.npmmirror.com/glsx-components/-/glsx-components-1.4.7.tgz",
"integrity": "sha512-2gg1DvqMFpQ/Vnwu+om8mWhQ5NjhqMlK+PWD5qZNOXBY5MpLocToSy8U/tpSdfg7uhEgJOp6I/KOITvhi3xcoA==",
"version": "1.4.8",
"resolved": "https://registry.npmmirror.com/glsx-components/-/glsx-components-1.4.8.tgz",
"integrity": "sha512-tAIAWdOnHRuyzqz28UnuHQBv/+qWEfTBbEUwB8lwXpyO3eP7ytZwdmqnDOZ8KDaMuzJPfYgNc/aqczrGtyAdNg==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.7",
"glsx-components": "^1.4.8",
"lodash": "^4.17.21",
"node-sass": "^4.0.0",
"vue": "^2.6.10",
......
......@@ -387,9 +387,9 @@ export default {
},
//核销记录
writeOffDetail(row) {
this.$router.push('/couponManage/writeOffDetail/' + row.id)
},
// writeOffDetail(row) {
// this.$router.push('/couponManage/writeOffDetail/' + row.id)
// },
//领取记录
receiveDetail(row) {
......
<!-- 领取详情 -->
<template>
<div class="marketing pro-group p-t-20">
<div class="marketing pro-group">
<div class="edit-container">
<div class="marketing edit-box">
<div class="container edit-container m-b-20">
......
......@@ -98,7 +98,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<GLEditor ref="welcome" :form="'customer'" style="line-height: 12px;" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
......
......@@ -34,7 +34,7 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<GLEditor ref="welcome" :form="'customerGroup'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<GLEditor ref="welcome" :form="'customerGroup'" style="line-height: 12px;" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
......
......@@ -82,9 +82,8 @@ export default {
})
item.attContent = htm
} else if (item.attType != 2 && item.attType != 3) {
console.log(item)
if (!this.eventBus) item.attContent = JSON.parse(utils.deepClone(item.attContent))
console.log(item.attContent)
console.log(item.attContent, JSON.parse(item.attContent).fileName)
item.attContent = JSON.parse(item.attContent)
}
})
}
......@@ -92,7 +91,7 @@ export default {
previewVal: {
handler(val) {
console.log(val)
this.previewList = utils.deepClone(val)
this.previewList = utils.deepClone(val).filter(item => item.attContent)
},
deep: true
}
......
<!-- 编辑礼包 -->
<template>
<div class="edit-gift marketing p-t-20 edit-box">
<div class="edit-gift marketing edit-box">
<!-- <div v-if="routeInfo.addOrEdit != 'add'" class="container approval-container">
<p class="edit-title">审批信息</p>
<div class="approval-info">
......@@ -160,6 +160,7 @@ export default {
labelWidth: '144px',
receiveWay: 1,
curStock: 0,
curReceiveRule: 0,
editForm: {
name: '',
remarkName: '',
......@@ -218,7 +219,7 @@ export default {
validator: (rule, value, callback) => {
if (!value) {
return callback(new Error('请输入库存数量'))
} else if (this.routeInfo.id && +this.curStock > +value) {
} else if (this.routeInfo.id && +this.curStock > +value && this.curReceiveRule != 4) {
return callback(new Error('二次编辑,库存数量不能减少'))
} else {
return callback()
......@@ -497,6 +498,7 @@ export default {
this.approvalStatus = res.data.approveStatus - 1
this.editForm = res.data
this.curStock = res.data.stock
this.curReceiveRule = res.data.receiveRule
this.receiveWay = res.data.receiveWay || 1
if (res.data && res.data.receiveDetails) {
this.phone = res.data.receiveDetails.replaceAll(',', '\n')
......@@ -654,9 +656,11 @@ export default {
params.requestSource = 1
// 插入判断是否存在审批模板
// const { session } = this.$globalState
if(!((this.editForm.receiveRule == 1 || this.editForm.receiveRule == 4) && params.receiveDetailList && params.receiveDetailList.length)) {
return this.$message.error(`${this.editForm.receiveRule == 1 ? '领取条件不能为空!':'用户手机号不能为空!'}`)
}
if(this.editForm.receiveRule == 1 || this.editForm.receiveRule == 4){
if(!((this.editForm.receiveRule == 1 || this.editForm.receiveRule == 4) && params.receiveDetailList && params.receiveDetailList.length)) {
return this.$message.error(`${this.editForm.receiveRule == 1 ? '领取条件不能为空!':'用户手机号不能为空!'}`)
}
}
this.insertHttp(params)
// this.$apis.giftBag.templateModal({ merchantId: session.merchantId }).then(result => {
// if (result.data && (!this.isChangeCoupons || !this.isChangePeople)) {
......
......@@ -147,8 +147,7 @@
</el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<!-- <el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2"> -->
<el-radio v-model="editForm.customerServerType" :label="2">
<el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2">
<el-input style="width: 320px" placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable></el-input>
</el-radio>
</div>
......@@ -310,6 +309,7 @@ export default {
linkUrl: '',
videoLinkUrl: '',
imgLinkUrl: '',
source: '',
goods: {
id: '',
goodsName: '',
......@@ -502,14 +502,15 @@ export default {
})
}
if (res.bannerList && res.bannerList.length) {
res.bannerList.forEach(item => {
res.bannerList.forEach((item,inx) => {
var params = {
bannerImg: item.bannerImg,
goodsId: item.goods ? item.goods.id : '',
bannerType: item.bannerType + '',
linkUrl: item.linkUrl,
imgLinkUrl: '',
videoLinkUrl: ''
videoLinkUrl: '',
source: res.bannerList[inx].source || 1
}
if (item.bannerType == '2') {
params.imgLinkUrl = item.linkUrl
......@@ -550,7 +551,6 @@ export default {
this.relateStoreVisible = !this.relateStoreVisible
},
handleRelateStoreConfirm(selectedData) {
console.log('selectedData', selectedData);
if (this.state == 'banner') {
this.editForm.bannerMerchantList = selectedData
} else if (this.state == 'notice') {
......@@ -771,7 +771,8 @@ export default {
goodsId: '',
bannerType: +item.bannerType,
linkUrl: '',
goods: {}
goods: {},
source: item.source || 1
})
if (item.bannerType == '1' && item.goodsId) {
params.bannerList[idx].goodsId = item.goodsId
......
......@@ -173,7 +173,7 @@ export default {
return {
mode: 'mid',
hasFooter: false,
showGh: true,
showGh: false,
promotionForm: {
QRurl: '',
QRcode: ''
......@@ -370,7 +370,7 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
// this.showGh = window.location.host.indexOf('cgacar') != -1
this.showGh = window.location.host.indexOf('cgacar') != -1
this.getCardContentFun()
this.getCardtypeList()
},
......
<!-- 浏览明细 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="edit-share marketing edit-box">
<div class="container edit-container">
<p class="edit-title">{{ routeInfo.activityName }}</p>
<div class="p-20">
<GLCombiForm ref="showSearch" class="p-t-20" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex m-b-10 w-100-percent">
<span class="table-title"></span>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!