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