Commit aae1fe5d by 陈婉清

Merge branch 'v2.7.2_feat' into 'v2.9.0'

V2.7.2 feat

See merge request !326
2 parents 25bdf1cf 3501c6b5
......@@ -45,4 +45,4 @@
"> 1%",
"last 2 versions"
]
}
}
\ No newline at end of file
......@@ -190,7 +190,6 @@ export default {
title: '创建',
editChildRef: 'editChildRef',
loading: false,
clickStatus: false,
routeInfo: {
// 1-新增;2-编辑;3-查看
addOrEdit: 1,
......@@ -808,8 +807,7 @@ export default {
method = 'createCouponApi' //后台创建优惠券
}
console.log(params)
if (this.clickStatus) return
this.clickStatus = true
this.loading = true
this.$apis.couponManage[method](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......@@ -820,7 +818,7 @@ export default {
}
})
.finally(() => {
this.clickStatus = false
this.loading = false
})
}
})
......
......@@ -168,7 +168,6 @@ export default {
format: 'yyyy-MM-dd HH:mm:ss', // 日期显示格式
showSubmit: true,
userDisable: false,
clickStatus: false,
size: 'small',
title: '创建',
titleObj: {
......@@ -567,8 +566,7 @@ export default {
} else {
method = 'createCouponApi' //后台创建优惠券
}
if (this.clickStatus) return
this.clickStatus = true
this.loading = true
this.$apis.couponManage[method](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......@@ -579,7 +577,7 @@ export default {
}
})
.finally(() => {
this.clickStatus = false
this.loading = false
})
}
})
......
......@@ -127,7 +127,6 @@ export default {
editChildRef: 'editChildRef',
loading: false,
editStatus: false,
clickStatus: false,
// pickerOptions: {
// disabledDate(v) {//禁用当前之前的日期
// return v.getTime() < new Date().getTime() - 86400000;
......@@ -458,8 +457,7 @@ export default {
} else {
method = 'createCouponApi' //后台创建优惠券
}
if (this.clickStatus) return
this.clickStatus = true
this.loading = true
this.$apis.couponManage[method](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......@@ -470,7 +468,7 @@ export default {
}
})
.finally(() => {
this.clickStatus = false
this.loading = false
})
}
})
......
......@@ -3,7 +3,7 @@
<div class="topMsg">
<p class="pageTitle">基本信息</p>
</div>
<div class="live-room container" style="padding-top: 20px;">
<div class="live-room container" style="padding-top: 20px;" v-loading="sloading">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
<el-form-item size="small" label="服务名称" prop="couponName" style="width: 440px" id="couponName">
<el-input size="small" :disabled="disabledContent" v-model.trim="ruleForm.couponName" maxlength="20" placeholder="请输入服务名称,如“精洗轿车”"></el-input>
......@@ -159,7 +159,7 @@
</div>
<GLFooter>
<el-button @click="goBack" size="medium">取消</el-button>
<el-button type="primary" v-if="showSubmit" @click="submitForm('ruleForm')" size="medium" :loading="loading">提交</el-button>
<el-button type="primary" v-if="showSubmit" @click="submitForm('ruleForm')" size="medium" :loading="sloading">提交</el-button>
</GLFooter>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog title="" top="30vh" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
......@@ -209,7 +209,7 @@ export default {
}, 1000)
}
return {
clickStatus: false,
timer: Function,
isEdit: false,
showSubmit: true,
disabledDescription: false,
......@@ -403,8 +403,8 @@ export default {
},
submitForm(formName) {
if (this.clickStatus) return
this.clickStatus = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.$refs[formName].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
......@@ -429,6 +429,7 @@ export default {
return false
}
})
},500)
},
//创建服务
createService() {
......@@ -497,23 +498,17 @@ export default {
createService(params)
.then(res => {
if (res.code == 0) {
this.sloading = false
this.$message.success('操作成功')
this.$router.push('/couponManage/index')
} else {
this.sloading = false
this.$message({
type: 'error',
message: res.message
})
}
})
.catch(err => {
this.sloading = false
})
.finally(() => {
this.sloading = false
this.clickStatus = false
})
},
//更新服务
......@@ -530,20 +525,15 @@ export default {
updateService(param)
.then(res => {
if (res.code == 0) {
this.sloading = false
this.$message.success('编辑服务成功')
this.$router.push('/couponManage/index')
} else {
this.sloading = false
this.$message({
type: 'error',
message: res.message
})
}
})
.catch(err => {
this.sloading = false
})
.finally(() => {
this.sloading = false
})
......
......@@ -82,7 +82,7 @@ export default {
return `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
})
item.attContent = htm
} else if (item.attType != 2 && item.attType != 3) {
} else if (item.attType != 2 && item.attType != 3 && item.attType != 7) {
// console.log(item.attContent, JSON.parse(item.attContent).fileName)
item.attContent = JSON.parse(item.attContent)
}
......
......@@ -31,6 +31,7 @@
></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item>
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
</el-form-item>-->
......
......@@ -148,6 +148,7 @@
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" :label="2">
<!-- <el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2"> -->
<el-input style="width: 320px" placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable></el-input>
</el-radio>
</div>
......@@ -226,6 +227,7 @@ export default {
name: 'homeSet',
data() {
return {
// showGh: false,
size: 'small',
userInfo: {},
// 查看大图
......@@ -450,6 +452,8 @@ export default {
this.externalFormList[idx].editFormData[idxx].isHide = true
this.externalFormList[idxxx].editFormData[idxxxx].isHide = true
}
// let href = window.location.host
// this.showGh = href.indexOf('cgacar') != -1
},
methods: {
......
......@@ -153,7 +153,8 @@ export default {
vin: '',
shareStaffName: '',
shareStaffType: '',
activityName: ''
activityName: '',
goodsName: ''
},
tableSearchForm: {},
statisticsInfo: {
......@@ -951,7 +952,8 @@ export default {
vin: '',
shareStaffName: '',
shareStaffType: '',
activityName: ''
activityName: '',
goodsName: ''
}
this.handleSearch()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!