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 { ...@@ -182,6 +182,10 @@ html {
margin-right: 20px; margin-right: 20px;
} }
.marketing .m-l-20 {
margin-left: 20px;
}
.marketing.p-t-20, .marketing.p-t-20,
.marketing .p-t-20 { .marketing .p-t-20 {
padding-top: 20px; padding-top: 20px;
...@@ -289,16 +293,19 @@ html { ...@@ -289,16 +293,19 @@ html {
border-radius: 4px; border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3); background-color: rgba(144, 147, 153, 0.3);
} }
.el-tag { .el-tag {
color: #666!important; color: #666!important;
font-size: 14px!important; font-size: 14px!important;
} }
.el-tag.el-tag--info { .el-tag.el-tag--info {
background: #fafbfe !important; background: #fafbfe !important;
border: 1px solid #e8e8ea !important; border: 1px solid #e8e8ea !important;
border-radius: 4px; border-radius: 4px;
color: #666; color: #666;
} }
.el-tag.el-tag--info.el-tag--plain { .el-tag.el-tag--info.el-tag--plain {
background: transparent !important; background: transparent !important;
} }
\ No newline at end of file \ No newline at end of file
<!-- 选择商品 - 单选 --> <!-- 选择商品 - 单选 -->
<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,20 @@ ...@@ -133,8 +136,20 @@
</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" :noBtnOk="true" :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>
<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"> <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 +182,21 @@ export default { ...@@ -167,20 +182,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 +289,7 @@ export default { ...@@ -273,6 +289,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 +539,12 @@ export default { ...@@ -522,9 +539,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 +552,10 @@ export default { ...@@ -532,6 +552,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 +699,16 @@ export default { ...@@ -675,4 +699,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>
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
> >
<template slot="describeBtn"> <template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button> <el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span>
</template> </template>
<template slot="goodsImage"> <template slot="goodsImage">
<p class="edit-tips">作为商品列表展示</p> <p class="edit-tips">作为商品列表展示</p>
...@@ -230,10 +231,11 @@ ...@@ -230,10 +231,11 @@
<div <div
slot="merchantTable" slot="merchantTable"
class="select-merchant" class="select-merchant"
:style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} - 10px )` }"
> >
<GLTable <GLTable
v-show="editForm.supplyMerchantList.length" v-show="editForm.supplyMerchantList.length"
ref="merchantTableRef"
:hasPage="false" :hasPage="false"
:tableParams="tableParams" :tableParams="tableParams"
:tableData="editForm.supplyMerchantList" :tableData="editForm.supplyMerchantList"
...@@ -491,6 +493,7 @@ export default { ...@@ -491,6 +493,7 @@ export default {
supplyPrice: '', supplyPrice: '',
goodsStock: '', goodsStock: '',
deliveryType: 2, deliveryType: 2,
install: 'Y',
expressFee: '', expressFee: '',
supplyMerchantList: [] supplyMerchantList: []
}, },
...@@ -594,7 +597,7 @@ export default { ...@@ -594,7 +597,7 @@ export default {
isDisabled: false isDisabled: false
}, },
{ {
label: '商品描述', label: '商品详情',
name: '', name: '',
addHtml: 'describeBtn' addHtml: 'describeBtn'
}, },
...@@ -604,7 +607,7 @@ export default { ...@@ -604,7 +607,7 @@ export default {
type: 'input', type: 'input',
inputType: 'textarea', inputType: 'textarea',
width: '320px', width: '320px',
placeholder: '请输入商品描述', placeholder: '请输入商品详情',
rows: 5, rows: 5,
maxlength: '200', maxlength: '200',
style: { style: {
...@@ -713,6 +716,26 @@ export default { ...@@ -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: '运费', label: '运费',
name: 'expressFee', name: 'expressFee',
type: 'input', type: 'input',
...@@ -782,6 +805,7 @@ export default { ...@@ -782,6 +805,7 @@ export default {
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.$refs.merchantTableRef[0].tableHeightValues = '400px'
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params this.routeInfo = this.$route.params
...@@ -830,6 +854,8 @@ export default { ...@@ -830,6 +854,8 @@ export default {
handleTypeChange(val) { handleTypeChange(val) {
var idx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'expressFee') var idx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'expressFee')
this.externalFormList[2].editFormData[idx].isHide = val != 2 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() { setAllDisabled() {
this.externalFormList.forEach(item => { this.externalFormList.forEach(item => {
...@@ -1108,7 +1134,7 @@ export default { ...@@ -1108,7 +1134,7 @@ export default {
recoverySpec() { recoverySpec() {
this.changeSpecs(true) this.changeSpecs(true)
}, },
// 恢复商品描述 // 恢复商品详情
recoveryDescribe() { recoveryDescribe() {
this.editForm.goodsDescList.forEach((item, index) => { this.editForm.goodsDescList.forEach((item, index) => {
if (item.resType == 2) { if (item.resType == 2) {
...@@ -1142,6 +1168,8 @@ export default { ...@@ -1142,6 +1168,8 @@ export default {
describeTxt: '', describeTxt: '',
descImgList: [] descImgList: []
} }
// 是否需要安装
this.editForm.install = this.editForm.install || 'Y'
// 运费 // 运费
if (this.editForm.deliveryType == 2) { if (this.editForm.deliveryType == 2) {
this.editForm.expressFee = (res.expressFee / 100).toFixed(2) this.editForm.expressFee = (res.expressFee / 100).toFixed(2)
...@@ -1188,7 +1216,7 @@ export default { ...@@ -1188,7 +1216,7 @@ export default {
}) })
} }
}, },
// 商品描述-图片 // 商品详情-图片
handleDescribeImgAdd() { handleDescribeImgAdd() {
if (this.editForm.descImgList.length >= 10) { if (this.editForm.descImgList.length >= 10) {
this.$message({ this.$message({
......
...@@ -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!