Commit 444df556 by 前端

Merge branch 'xuyl_v2.8.0' into 'v2.8.0'

Xuyl v2.8.0

See merge request !25
2 parents a348f8de 8b2f3523
...@@ -67,8 +67,8 @@ var mixin = { ...@@ -67,8 +67,8 @@ var mixin = {
}) })
} }
}, },
close() { close(title) {
this.$$parent.close() this.$$parent.close(title)
} }
} }
} }
......
...@@ -400,7 +400,13 @@ export default { ...@@ -400,7 +400,13 @@ export default {
} }
}, },
back() { back() {
window.history.go(-1) this.$root.to([
'ubi续保',
'续保',
'保险渠道管理',
'客户名单管理',
'客户名单管理'
])
this.dialogVisible = false this.dialogVisible = false
if (this.uploadStatus == 'success') { if (this.uploadStatus == 'success') {
this.ruleForm = {} this.ruleForm = {}
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<el-select v-model="merchantSearchForm.status" placeholder="请选择状态"> <el-select v-model="merchantSearchForm.status" placeholder="请选择状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="未同步" value="0"></el-option> <el-option label="未同步" value="0"></el-option>
<el-option label="同步中" value="1"></el-option> <!-- <el-option label="同步中" value="1"></el-option> -->
<el-option label="已同步" value="2"></el-option> <el-option label="已同步" value="2"></el-option>
<el-option label="同步失败" value="3"></el-option> <el-option label="同步失败" value="3"></el-option>
</el-select> </el-select>
...@@ -59,8 +59,6 @@ ...@@ -59,8 +59,6 @@
{{ {{
scope.scope.status == 0 scope.scope.status == 0
? '未同步' ? '未同步'
: scope.scope.status == 1
? '同步中'
: scope.scope.status == 2 : scope.scope.status == 2
? '已同步' ? '已同步'
: '同步失败' : '同步失败'
...@@ -119,7 +117,7 @@ export default { ...@@ -119,7 +117,7 @@ export default {
pageConf: { pageConf: {
pageSize: 'pageSize', pageSize: 'pageSize',
pageNum: 'pageNum', pageNum: 'pageNum',
totalCount: 'data.total' totalCount: 'data.total',
}, },
getListApi: customerApi.searchCustomerList, getListApi: customerApi.searchCustomerList,
merchantTableParams: { merchantTableParams: {
...@@ -128,23 +126,23 @@ export default { ...@@ -128,23 +126,23 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商户名称', label: '商户名称',
prop: 'merchantName' prop: 'merchantName',
}, },
{ {
label: '商户号', label: '商户号',
prop: 'merchantId' prop: 'merchantId',
}, },
{ {
label: '主营品牌', label: '主营品牌',
prop: 'mainBrandName' prop: 'mainBrandName',
}, },
{ {
label: '客户数量', label: '客户数量',
prop: 'customerNumber' prop: 'customerNumber',
}, },
{ {
label: '有效客户数量', label: '有效客户数量',
prop: 'validCustomerNumber' prop: 'validCustomerNumber',
}, },
{ {
label: '批次号', label: '批次号',
...@@ -153,38 +151,45 @@ export default { ...@@ -153,38 +151,45 @@ export default {
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
addHtml: 'status' addHtml: 'status',
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createdBy' prop: 'createdBy',
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdDateStr' prop: 'createdDateStr',
}, },
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
addHtml: 'optionBtns', addHtml: 'optionBtns',
fixed: 'right' fixed: 'right',
} },
] ],
} },
} }
}, },
methods: { methods: {
gotoNamelist() { gotoNamelist() {
window.location.href = './addNamelist.html' this.$root.to([
'ubi续保',
'续保',
'保险渠道管理',
'客户名单管理',
'*添加名单',
])
this.$root.close('客户名单管理列表')
}, },
gotoDetail(id) { gotoDetail(id) {
this.$root.to( this.$root.to(
['UBI续保', '续保', '保险渠道管理', '客户名单管理', '*查看客户名单'], ['ubi续保', '续保', '保险渠道管理', '客户名单管理', '*查看客户名单'],
{ merchantId: id } { merchantId: id }
) )
}, },
reset() { reset() {
Object.keys(this.merchantSearchForm).forEach(key => { Object.keys(this.merchantSearchForm).forEach((key) => {
this.merchantSearchForm[key] = '' this.merchantSearchForm[key] = ''
}) })
this.$nextTick(() => { this.$nextTick(() => {
...@@ -202,33 +207,44 @@ export default { ...@@ -202,33 +207,44 @@ export default {
'确定同步后,客户名单会自动发送给对应的保险合作渠道。是否确认同步?' '确定同步后,客户名单会自动发送给对应的保险合作渠道。是否确认同步?'
} }
}, },
comfirmDialog(type) { async comfirmDialog(type) {
if (type == 'cogradient') { if (type == 'cogradient') {
// 合并 // 合并
customerApi.synchroCustomerList({ id: this.optionsId }).then(res => { await customerApi.synchroCustomerList({ id: this.optionsId }).then(
if (res.code == '0') { (res) => {
this.$message.success('同步成功') console.log(res)
} else { if (res.code == '0') {
this.$message.error('同步失败') this.$message.success('同步成功')
} else {
this.$message.error('同步失败')
}
},
(err) => {
this.$message.error(err)
} }
}) )
this.dialogVisible = false this.dialogVisible = false
this.$refs.merchantTable.refreshTable() this.$refs.merchantTable.refreshTable()
} }
// 删除 // 删除
if (type == 'delete') { if (type == 'delete') {
customerApi.deleteCustomerList({ id: this.optionsId }).then(res => { customerApi.deleteCustomerList({ id: this.optionsId }).then(
if (res.code == '0') { (res) => {
this.$message.success('删除成功') if (res.code == '0') {
this.$refs.merchantTable.refreshTable() this.$message.success('删除成功')
} else { this.$refs.merchantTable.refreshTable()
this.$message.success('删除失败') } else {
this.$message.success('删除失败')
}
},
(err) => {
this.$message.error(err)
} }
}) )
this.dialogVisible = false this.dialogVisible = false
} }
} },
} },
} }
</script> </script>
<style scoped> <style scoped>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!