Commit 802146b0 by cwq0219

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

1 parent b2956a0b
<!-- 选择商品 - 单选 -->
<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 class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
......@@ -29,6 +29,7 @@ export default {
name: 'selectSingleProDialog',
data() {
return {
userInfo: {},
infoId: '',
minRatilPrice: '',
productList: [],
......@@ -54,6 +55,7 @@ export default {
computed: {},
mounted() {
this.userInfo = this.$globalState.session
this.infoId = this.selectedProInfo.id
this.getList()
},
......@@ -99,6 +101,10 @@ export default {
})
},
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) {
this.$message({
message: '请选择商品',
......
......@@ -101,6 +101,9 @@
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
</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} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> -->
......@@ -133,8 +136,12 @@
</div>
<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> -->
<glsx-dialog class="server-dialog" title="在线客服" width="712px" btnOkLabel="创建客服" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose">
<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">
<video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls>
<source :src="dialogObj.url" type="video/mp4">
......@@ -167,20 +174,21 @@ export default {
},
selectedProInfo: {},
// 在线客服
isConsultantVisible: false,
customerServerList: [],
tableParams: {
tableOption: false,
tableColumns: [
{
label: '姓名',
prop: 'customerServerName'
},
{
label: '跟进专员类型',
prop: 'customerServerUserTitle'
}
]
},
// tableParams: {
// tableOption: false,
// tableColumns: [
// {
// label: '姓名',
// prop: 'customerServerName'
// },
// {
// label: '跟进专员类型',
// prop: 'customerServerUserTitle'
// }
// ]
// },
// 表单
editForm: {
merchantQrcode: '',
......@@ -273,6 +281,7 @@ export default {
optionId: 'userOneid',
optionLabel: 'staffName',
optionsName: 'consultantList',
suffixSlot: 'customerServerSuffix',
isClear: true,
changeAttr: (value, targetItem) => {
var tempObj = {
......@@ -522,9 +531,12 @@ export default {
},
// 商品选择-end
// 在线客服-start
// handleConsultantClose() {
// this.isConsultantVisible = !this.isConsultantVisible
// },
handleConsultantClose() {
this.isConsultantVisible = !this.isConsultantVisible
},
handleConsultantConfirm() {
this.$history.push('/home/followUp/index')
},
getConsultant() {
this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => {
this.baseData.consultantList = res
......@@ -532,6 +544,10 @@ export default {
this.externalFormList[idx].editFormData[0].optionList = res
})
},
// 没有客服列表
handleNoServer() {
this.handleConsultantClose()
},
// 在线客服-end
handleConfirm() {
var params = this.$common.utils.deepClone(this.editForm)
......@@ -675,4 +691,16 @@ export default {
.home-set .link-block .banner-tips-txt {
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>
......@@ -114,7 +114,7 @@ export default {
}
},
{
label: '库存',
label: '剩余库存',
prop: 'goodsStock'
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!