Commit 29bd05fc by wuwx

修改第一轮BUG

2 parents 17d80251 d7875d16
......@@ -4,19 +4,19 @@ const addNamelistApi = {
getMerchantsList(data = {}) {
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data.method = 'merchants.api.open.findMerchantList'
return request(data)
return request(data, 'merchants.api.open.findMerchantList', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
},
// 根据商户名称和渠道类型查询商户列表-分页查询
getMerchantsListByPages(data = {}) {
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data.method = 'merchants.api.menu.findMerchantByPage'
return request(data)
return request(data, 'merchants.api.menu.findMerchantByPage', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
},
// 根据商户号查询商户详情
findMerchantDetailByMerchantNo(data = {}) {
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data.method = 'merchants.api.open.findMerchantDetailByMerchantNo'
return request(data)
return request(data, 'merchants.api.open.findMerchantDetailByMerchantNo', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
}
}
......
......@@ -87,7 +87,7 @@ const getConfig = (url = URL + '/renwal-config') => {
}
/* eslint-disable no-new */
const render = App => {
new Vue({
window.vm = new Vue({
el: '#app',
mixins: [mixin],
render: h => h(App)
......
......@@ -110,7 +110,7 @@
</span>
</template>
<template v-if="uploadStatus == 'fail'">
<span>数据导入失败,请重试!</span>
<span>数据导入失败,{{uploadErrorMsg}},请重试!</span>
<span slot="footer" class="dialog-footer">
<el-button plain type="primary" @click="dialogVisible = false"
>取消</el-button
......@@ -131,6 +131,7 @@ export default {
return {
fullscreenLoading: false,
uploadSuccessMsg: '',
uploadErrorMsg:'',
marchantNameCopy: '', //存放搜索的商户名
dataItems: [], //下拉框显示的数据
pageData: {
......@@ -254,7 +255,6 @@ export default {
this.merchantList(this.pageData, searchVal)
}, 300)
}
console.log(this.timer)
} else {
this.dataItems = []
this.merchantList({
......@@ -274,6 +274,7 @@ export default {
await addNamelistApi
.findMerchantDetailByMerchantNo({ merchantId: this.merchantId })
.then((res) => {
console.log(res)
let brandTreeList = res.data.data && res.data.data.brandTreeList
let brandTreeListName =
brandTreeList && brandTreeList.map((item) => item.name)
......@@ -313,15 +314,16 @@ export default {
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)',
})
if (res.data.code == '0') {
if (res.code == '0') {
loading.close()
this.dialogVisible = true
this.uploadStatus = 'success'
this.uploadSuccessMsg = res.data.data
this.uploadSuccessMsg = res.data
} else {
loading.close()
this.dialogVisible = true
this.uploadStatus = 'fail'
this.uploadErrorMsg = res.message
}
})
} else {
......
<template>
<div style="margin:16px">
<el-button size="small" class="addList" type="primary" @click="gotoNamelist">
<div style="margin: 16px">
<el-button
size="small"
class="addList"
type="primary"
@click="gotoNamelist"
>
<i class="el-icon-plus"></i>添加名单</el-button
>
<el-form
......@@ -109,9 +114,8 @@ export default {
optionsId: '',
dialogVisible: false,
dialogStatus: '',
dialogVisibleText:'',
merchantSearchForm: {
},
dialogVisibleText: '',
merchantSearchForm: {},
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
......@@ -196,36 +200,34 @@ export default {
this.optionsId = id
if (type == 'delete') {
this.dialogVisibleText = '删除后不可恢复,是否确认删除?'
}else{
this.dialogVisibleText = '确定同步后,客户名单会自动发送给对应的保险合作渠道。是否确认同步?'
} else {
this.dialogVisibleText =
'确定同步后,客户名单会自动发送给对应的保险合作渠道。是否确认同步?'
}
},
comfirmDialog(type) {
if (type == 'cogradient') {
// 合并
customerApi.synchroCustomerList({ id: this.optionsId }).then(
(res) => {
console.log(res)
customerApi.synchroCustomerList({ id: this.optionsId }).then((res) => {
if (res.code == '0') {
this.$message.success('同步成功')
},
(err) => {
} else {
this.$message.error('同步失败')
}
)
})
this.dialogVisible = false
this.$refs.merchantTable.refreshTable()
}
// 删除
if (type == 'delete') {
customerApi.deleteCustomerList({ id: this.optionsId }).then(
(res) => {
console.log(res)
customerApi.deleteCustomerList({ id: this.optionsId }).then((res) => {
if (res.code == '0') {
this.$message.success('删除成功')
this.$refs.merchantTable.refreshTable()
},
(err) => {
this.$message.error('删除失败')
} else {
this.$message.success('删除失败')
}
)
})
this.dialogVisible = false
}
},
......@@ -233,7 +235,7 @@ export default {
}
</script>
<style scoped>
*{
* {
margin: 0;
padding: 0;
}
......
......@@ -163,7 +163,7 @@ export default {
handleViewDetail(scope) {
console.log(scope)
this.$root.to(
['ubi续保', '续保', '保险渠道管理', '订单管理', '*订单管理详情'],
['UBI续保', '续保', '保险渠道管理', '订单管理', '*订单管理详情'],
scope.id
)
},
......@@ -173,23 +173,10 @@ export default {
this.searchForm.orderDateBegin = this.orderTime[0]
this.searchForm.orderDateEnd = this.orderTime[1]
}
const { pageNum, pageSize } = this.$refs.orderTable.page
let params = JSON.parse(JSON.stringify(this.searchForm))
params.pageNum = pageNum
params.pageSize = pageSize
customerApi.orderListExport(params).then(res => {
if (res.code == 0) {
console.log(res.data)
this.$Utils.exportFn(res.data)
// let browserType = getExplorer()
// if (browserType == 'QQ') {
// window.open(url)
// return
// }
// let iframe = document.createElement('iframe')
// iframe.style.display = 'none'
// iframe.src = url
// document.body.appendChild(iframe)
}
})
}
......@@ -201,6 +188,7 @@ export default {
margin: 16px;
}
.table-top {
height: 50px;
display: flex;
justify-content: space-between;
align-items: center;
......@@ -208,6 +196,12 @@ export default {
.output-btn {
border-color: #1994f9;
color: #1994f9;
margin-bottom: 10px !important;
margin-bottom: 0px !important;
}
.el-form-item {
margin-bottom: 16px;
}
.el-dialog__body {
padding: 20px !important;
}
</style>
......@@ -31,6 +31,11 @@
:getListApi="getListApi"
:pageConf="pageConf"
>
<div slot="orderCodeList" slot-scope="scope">
<div v-for="item in scope.scope.orderCodeList" :key="item">
<div>{{item}}</div>
</div>
</div>
<div slot="authStatus" slot-scope="scope">
<span v-if="scope.scope.authStatus == 1">
<div class="status-dot2"></div>
......@@ -71,7 +76,7 @@
<div>{{conversionInfo.bankNo}}</div>
<div>{{conversionInfo.cardName}}</div>
<div>
<el-input size="small" v-model="integralInput" @change="getValue" clearable placeholder="请输入发放积分值" oninput ="value=value.replace(/^(0+)|[^\d]+/g,'')"></el-input>
<el-input size="small" v-model="integralInput" @change="getValue" clearable placeholder="请输入发放积分值" oninput ="value=value.replace(/^(0+)|[^\d]+/g,'')" maxlength="7"></el-input>
</div>
<span>备注:1积分价值=1元</span>
</div>
......@@ -153,7 +158,9 @@ export default {
},
{
label: '关联订单',
prop: 'orderCodeList'
prop: 'orderCodeList',
addHtml: 'orderCodeList',
width: 200
},
{
label: '状态',
......@@ -204,12 +211,14 @@ export default {
var params = {}
params.userId = row.id
this.$confirm(
'进行认证操作后,即客户符合积分兑换资格是否确定认证?',
'进行认证操作后,即客户符合积分兑换资格。是否确定认证?',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
dangerouslyUseHTMLString: true,
closeOnClickModal: false,
iconClass: 'withdraw-warning el-icon-warning'
}
)
.then(() => {
......@@ -316,4 +325,12 @@ export default {
background: #2cca74;
border-radius: 4px;
}
.warning-text {
margin: 15px 0;
color: #444;
font-size: 15px;
}
.withdraw-warning {
top: 22px !important;
}
</style>
......@@ -140,7 +140,6 @@ export default {
}
]
}
}
},
......@@ -158,18 +157,14 @@ export default {
this.$refs.dictTable.refreshTable()
})
},
aToExport(url) {
var a = document.createElement('a')
a.setAttribute('id', 'exportToExport')
a.setAttribute('href', url)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
},
handleExport() {
var params = JSON.parse(JSON.stringify(this.searchForm))
orderExportApi.orderExport(params).then(res => {
this.aToExport(res.data)
if(res.code == 0) {
this.$Utils.exportFn(res.data)
} else if(res.code == -1) {
this.$message.error(res.message)
}
})
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!