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 @@ ...@@ -6,7 +6,7 @@
<div class="explanation-list"> <div class="explanation-list">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label> <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> <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 class="follow-list" @click="showFollow">跟进记录</div>
</div> </div>
<div class="operator"> <div class="operator">
......
...@@ -51,11 +51,11 @@ export default { ...@@ -51,11 +51,11 @@ export default {
} }
} }
}, },
props:{ props: {
isFollowSync: { isFollowSync: {
type: Boolean, type: Boolean,
default: false default: false
}, }
}, },
created() { created() {
this.getFollowPersonList() this.getFollowPersonList()
...@@ -72,29 +72,29 @@ export default { ...@@ -72,29 +72,29 @@ export default {
}) })
}, },
addLine() { 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 return
} }
this.followName = '' this.followName = ''
this.followListData.push({ followName: '' }) this.followListData.push({ followName: '' })
}, },
handleSave() { handleSave() {
if (this.followName == '') { if (this.followListData[this.followListData.length - 1].followName == '' && this.followName == '') {
this.$message({ this.$message({
type: 'error', type: 'error',
message: '请输入跟进人' message: '请输入跟进人'
}) })
return return
} }
if (this.followName) {
this.$apis.claims.addFollowPerson({ followName: this.followName }).then(res => { this.$apis.claims.addFollowPerson({ followName: this.followName }).then(res => {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '添加成功!' message: '添加成功!'
}) })
// this.isFollowSync = false
this.$emit('handleClose')
}) })
}
this.$emit('handleClose')
}, },
handleCancel() { handleCancel() {
// this.isFollowSync = false // this.isFollowSync = false
...@@ -103,11 +103,26 @@ export default { ...@@ -103,11 +103,26 @@ export default {
handleCalculate() {}, handleCalculate() {},
//删除 //删除
handleDelete(data, index) { handleDelete(data, index) {
if (this.followListData.length >=1) { if (data.id) {
this.followListData.splice(index, 1) this.$confirm('确定要删除吗, 是否继续?', '提示', {
} confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
if (data.id) { if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {}) 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 { ...@@ -180,8 +180,6 @@ export default {
mounted() {}, mounted() {},
watch:{ watch:{
insuranceAttachmentConfigs(val){ insuranceAttachmentConfigs(val){
console.log(val,'111111111')
this.getImgList(val[0]) this.getImgList(val[0])
} }
}, },
......
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
orderCount: {}, orderCount: {},
buttonList: [ buttonList: [
{ {
type: 'el-button', type: 'GLButton',
name: row => { name: row => {
return '审核' return '审核'
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!