Commit 75077e82 by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.1

2 parents 6444893d f44150cc
......@@ -182,6 +182,10 @@ html {
margin-right: 20px;
}
.marketing .m-l-20 {
margin-left: 20px;
}
.marketing.p-t-20,
.marketing .p-t-20 {
padding-top: 20px;
......@@ -289,16 +293,19 @@ html {
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
.el-tag {
color: #666!important;
font-size: 14px!important;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
color: #666;
}
.el-tag.el-tag--info.el-tag--plain {
background: transparent !important;
}
}
\ No newline at end of file
<!-- 选择商品 - 单选 -->
<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,20 @@
</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" :noBtnOk="true" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose">
<div class="server-container">
<img src="@/assets/no-server.png"/>
<p class="server-txt">系统暂无已创建的在线客服</p>
</div>
<template slot="btn-middle">
<GLButton
type="primary"
:size="size"
fn="创建客服"
@click="handleConsultantConfirm"
>创建客服</GLButton>
</template>
</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 +182,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 +289,7 @@ export default {
optionId: 'userOneid',
optionLabel: 'staffName',
optionsName: 'consultantList',
suffixSlot: 'customerServerSuffix',
isClear: true,
changeAttr: (value, targetItem) => {
var tempObj = {
......@@ -522,9 +539,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 +552,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 +699,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>
......@@ -22,6 +22,7 @@
>
<template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span>
</template>
<template slot="goodsImage">
<p class="edit-tips">作为商品列表展示</p>
......@@ -230,10 +231,11 @@
<div
slot="merchantTable"
class="select-merchant"
:style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }"
:style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} - 10px )` }"
>
<GLTable
v-show="editForm.supplyMerchantList.length"
ref="merchantTableRef"
:hasPage="false"
:tableParams="tableParams"
:tableData="editForm.supplyMerchantList"
......@@ -491,6 +493,7 @@ export default {
supplyPrice: '',
goodsStock: '',
deliveryType: 2,
install: 'Y',
expressFee: '',
supplyMerchantList: []
},
......@@ -594,7 +597,7 @@ export default {
isDisabled: false
},
{
label: '商品描述',
label: '商品详情',
name: '',
addHtml: 'describeBtn'
},
......@@ -604,7 +607,7 @@ export default {
type: 'input',
inputType: 'textarea',
width: '320px',
placeholder: '请输入商品描述',
placeholder: '请输入商品详情',
rows: 5,
maxlength: '200',
style: {
......@@ -713,6 +716,26 @@ export default {
}
},
{
label: '是否需要安装',
name: 'install',
type: 'radio',
width: '320px',
optionId: 'confId',
optionLabel: 'confName',
optionList: [
{
confId: 'Y',
confName: '是'
},
{
confId: 'N',
confName: '否'
}
],
isHide: true,
isDisabled: false
},
{
label: '运费',
name: 'expressFee',
type: 'input',
......@@ -782,6 +805,7 @@ export default {
mounted() {
this.userInfo = this.$globalState.session
this.$refs.merchantTableRef[0].tableHeightValues = '400px'
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
......@@ -830,6 +854,8 @@ export default {
handleTypeChange(val) {
var idx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'expressFee')
this.externalFormList[2].editFormData[idx].isHide = val != 2
var installIdx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'install')
this.externalFormList[2].editFormData[installIdx].isHide = val == 2
},
setAllDisabled() {
this.externalFormList.forEach(item => {
......@@ -1108,7 +1134,7 @@ export default {
recoverySpec() {
this.changeSpecs(true)
},
// 恢复商品描述
// 恢复商品详情
recoveryDescribe() {
this.editForm.goodsDescList.forEach((item, index) => {
if (item.resType == 2) {
......@@ -1142,6 +1168,8 @@ export default {
describeTxt: '',
descImgList: []
}
// 是否需要安装
this.editForm.install = this.editForm.install || 'Y'
// 运费
if (this.editForm.deliveryType == 2) {
this.editForm.expressFee = (res.expressFee / 100).toFixed(2)
......@@ -1188,7 +1216,7 @@ export default {
})
}
},
// 商品描述-图片
// 商品详情-图片
handleDescribeImgAdd() {
if (this.editForm.descImgList.length >= 10) {
this.$message({
......
......@@ -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!