Commit 802146b0 by cwq0219

首页设置-客服;单选商品组件-按钮跳转;秒杀活动列表

1 parent b2956a0b
<!-- 选择商品 - 单选 --> <!-- 选择商品 - 单选 -->
<template> <template>
<glsx-dialog class="single-pro" title="选择商品" :isVisible.sync="isSingleSelectVisible" width="900px" @confirmDialog="handleSingleSelectConfirm" @closeDialog="handleSingleSelectClose" :showClose="true"> <glsx-dialog class="single-pro" title="选择商品" :btnOkLabel="productList.length ? '确定' : '创建商品'" :isVisible.sync="isSingleSelectVisible" width="900px" @confirmDialog="handleSingleSelectConfirm" @closeDialog="handleSingleSelectClose" :showClose="true">
<div style="max-height:60vh"> <div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack"> <div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
name: 'selectSingleProDialog', name: 'selectSingleProDialog',
data() { data() {
return { return {
userInfo: {},
infoId: '', infoId: '',
minRatilPrice: '', minRatilPrice: '',
productList: [], productList: [],
...@@ -54,6 +55,7 @@ export default { ...@@ -54,6 +55,7 @@ export default {
computed: {}, computed: {},
mounted() { mounted() {
this.userInfo = this.$globalState.session
this.infoId = this.selectedProInfo.id this.infoId = this.selectedProInfo.id
this.getList() this.getList()
}, },
...@@ -99,6 +101,10 @@ export default { ...@@ -99,6 +101,10 @@ export default {
}) })
}, },
handleSingleSelectConfirm() { handleSingleSelectConfirm() {
if(!this.productList.length) {
this.$history.push(this.userInfo.accountLevel == 4 ? '/marketing/productGroup/editProduct/1/2' : '/marketing/productGroup/editProduct/1/1')
return true
}
if (!this.infoId) { if (!this.infoId) {
this.$message({ this.$message({
message: '请选择商品', message: '请选择商品',
......
...@@ -101,6 +101,9 @@ ...@@ -101,6 +101,9 @@
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p> <p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p> <p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
</div> </div>
<template slot="customerServerSuffix" slot-scope="scope">
<el-button v-show="!scope.scope.optionList.length" type="text" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</el-button>
</template>
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }"> <!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable> <GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> --> </div> -->
...@@ -133,8 +136,12 @@ ...@@ -133,8 +136,12 @@
</div> </div>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose"></select-single-pro-dialog> <select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose"></select-single-pro-dialog>
<!-- 在线客服 --> <!-- 在线客服 -->
<!-- <glsx-dialog title="在线客服" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose"> <glsx-dialog class="server-dialog" title="在线客服" width="712px" btnOkLabel="创建客服" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose">
</glsx-dialog> --> <div class="server-container">
<img src="@/assets/no-server.png"/>
<p class="server-txt">系统暂无已创建的在线客服</p>
</div>
</glsx-dialog>
<el-dialog v-if="isImgVisible" :visible.sync="isImgVisible" class="dialog-look"> <el-dialog v-if="isImgVisible" :visible.sync="isImgVisible" class="dialog-look">
<video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls> <video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls>
<source :src="dialogObj.url" type="video/mp4"> <source :src="dialogObj.url" type="video/mp4">
...@@ -167,20 +174,21 @@ export default { ...@@ -167,20 +174,21 @@ export default {
}, },
selectedProInfo: {}, selectedProInfo: {},
// 在线客服 // 在线客服
isConsultantVisible: false,
customerServerList: [], customerServerList: [],
tableParams: { // tableParams: {
tableOption: false, // tableOption: false,
tableColumns: [ // tableColumns: [
{ // {
label: '姓名', // label: '姓名',
prop: 'customerServerName' // prop: 'customerServerName'
}, // },
{ // {
label: '跟进专员类型', // label: '跟进专员类型',
prop: 'customerServerUserTitle' // prop: 'customerServerUserTitle'
} // }
] // ]
}, // },
// 表单 // 表单
editForm: { editForm: {
merchantQrcode: '', merchantQrcode: '',
...@@ -273,6 +281,7 @@ export default { ...@@ -273,6 +281,7 @@ export default {
optionId: 'userOneid', optionId: 'userOneid',
optionLabel: 'staffName', optionLabel: 'staffName',
optionsName: 'consultantList', optionsName: 'consultantList',
suffixSlot: 'customerServerSuffix',
isClear: true, isClear: true,
changeAttr: (value, targetItem) => { changeAttr: (value, targetItem) => {
var tempObj = { var tempObj = {
...@@ -522,9 +531,12 @@ export default { ...@@ -522,9 +531,12 @@ export default {
}, },
// 商品选择-end // 商品选择-end
// 在线客服-start // 在线客服-start
// handleConsultantClose() { handleConsultantClose() {
// this.isConsultantVisible = !this.isConsultantVisible this.isConsultantVisible = !this.isConsultantVisible
// }, },
handleConsultantConfirm() {
this.$history.push('/home/followUp/index')
},
getConsultant() { getConsultant() {
this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => { this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => {
this.baseData.consultantList = res this.baseData.consultantList = res
...@@ -532,6 +544,10 @@ export default { ...@@ -532,6 +544,10 @@ export default {
this.externalFormList[idx].editFormData[0].optionList = res this.externalFormList[idx].editFormData[0].optionList = res
}) })
}, },
// 没有客服列表
handleNoServer() {
this.handleConsultantClose()
},
// 在线客服-end // 在线客服-end
handleConfirm() { handleConfirm() {
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
...@@ -675,4 +691,16 @@ export default { ...@@ -675,4 +691,16 @@ export default {
.home-set .link-block .banner-tips-txt { .home-set .link-block .banner-tips-txt {
color: #999999; color: #999999;
} }
.home-set .server-dialog .server-container {
text-align: center;
height: 196px;
}
.home-set .server-container .server-txt {
margin-top: 13px;
height: 20px;
font-size: 16px;
}
.home-set .server-dialog .el-dialog__footer {
text-align: center;
}
</style> </style>
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
} }
}, },
{ {
label: '库存', label: '剩余库存',
prop: 'goodsStock' prop: 'goodsStock'
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!