Commit cf521374 by 杨北旺

Merge branch 'v3.14.0' of 192.168.3.233:saas/scrm-micro-presale into v3.14.0

2 parents 015cd478 7fed7056
......@@ -6,7 +6,7 @@
<div class="explanation-list">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<el-input :disabled="isCheck || isDisabled || item.operation == 1" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" maxlength="200" type="textarea" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="!isCheck && supplementListTemp.length > 1&&item.operation==0" @click="handleDel(idx)"></i>
<i class="el-icon-delete del" v-if="!isCheck && supplementListTemp.length > 1&&item.operation!=1" @click="handleDel(idx)"></i>
<div class="follow-list" @click="showFollow">跟进记录</div>
</div>
<div class="operator">
......
......@@ -51,11 +51,11 @@ export default {
}
}
},
props:{
props: {
isFollowSync: {
type: Boolean,
default: false
},
}
},
created() {
this.getFollowPersonList()
......@@ -72,42 +72,57 @@ export default {
})
},
addLine() {
if (this.followListData.length>0&&this.followListData[this.followListData.length - 1].followName == '') {
if (this.followListData.length > 0 && this.followListData[this.followListData.length - 1].followName == '') {
return
}
this.followName = ''
this.followListData.push({ followName: '' })
},
handleSave() {
if (this.followName == '') {
if (this.followListData[this.followListData.length - 1].followName == '' && this.followName == '') {
this.$message({
type: 'error',
message: '请输入跟进人'
})
return
}
this.$apis.claims.addFollowPerson({ followName: this.followName }).then(res => {
this.$message({
type: 'success',
message: '添加成功!'
if (this.followName) {
this.$apis.claims.addFollowPerson({ followName: this.followName }).then(res => {
this.$message({
type: 'success',
message: '添加成功!'
})
})
// this.isFollowSync = false
this.$emit('handleClose')
})
}
this.$emit('handleClose')
},
handleCancel() {
// this.isFollowSync = false
// this.isFollowSync = false
this.$emit('handleClose')
},
handleCalculate() {},
//删除
handleDelete(data, index) {
if (this.followListData.length >=1) {
this.followListData.splice(index, 1)
}
if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {})
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {})
this.followListData.splice(index, 1)
}
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
} else {
this.followListData.splice(index, 1)
}
}
}
......
......@@ -180,8 +180,6 @@ export default {
mounted() {},
watch:{
insuranceAttachmentConfigs(val){
console.log(val,'111111111')
this.getImgList(val[0])
}
},
......
......@@ -213,7 +213,7 @@ export default {
orderCount: {},
buttonList: [
{
type: 'el-button',
type: 'GLButton',
name: row => {
return '审核'
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!