Commit e75322d8 by 徐忆琳

Merge branch 'xuyl_dev_v3.6.0' into 'v3.6.0'

修复任务中心bug

See merge request !96
2 parents a44b7f8b bce441a6
......@@ -92,7 +92,7 @@
<template v-if="tipsType == 'succeed'">
<p>导入成功</p>
<p>总共导入{resultImportRecord}条记录</p>
<p>总共导入{{resultImportRecord}}条记录</p>
</template>
<template v-if="tipsType == 'beDefeated'">
<p>导入失败</p>
......@@ -183,7 +183,7 @@ export default {
},
confirmationResultImport: debounce(function() {
confirmationResultImport: debounce(async function() {
if (!this.exportTemplate || !this.fileBaseUrl) {
return this.$message({
type: 'error',
......@@ -194,28 +194,26 @@ export default {
fileUrl: this.fileBaseUrl,
fileType: this.exportTemplate
}
bankCardApi.importBankWithdrawal({ ...parmas }).then(res => {
await bankCardApi.importBankWithdrawal({ ...parmas }).then(res => {
this.bankCardVisible = false
this.$message({
type: res.data ? 'success' : 'error',
message: res.data ? '导入成功!' : '导入失败!'
})
this.fileBaseUrl = ''
this.fileName = ''
this.$refs.file.value = ''
this.$emit('sendResetTable', 'reset')
// this.bankCardVisible = false
// this.tipsVisible = true
// if (res.data) {
// this.resultImportRecord = ''
// } else {
// }
}).catch(err =>{
this.tipsVisible = true
if (res.data) {
if (res.data.flag) {
this.resultImportRecord = res.data.successNum
this.tipsType = 'succeed'
this.fileBaseUrl = ''
this.fileName = ''
this.$refs.file.value = ''
} else {
this.tipsType = 'beDefeated'
this.importFailedTemplate = res.data.failFileUrl
}
}
}).catch(err => {
this.bankCardVisible = false
this.$message({
type: 'error',
message: '导入失败!'
type: 'error',
message: '导入失败!'
})
})
......@@ -308,6 +306,8 @@ export default {
this.tipsVisible = !this.tipsVisible
if (type == 'beDefeated') {
this.$Utils.exportFn(this.importFailedTemplate)
} else {
this.$emit('sendResetTable', 'reset')
}
},
......
......@@ -71,8 +71,8 @@
placeholder='请选择导出状态'
>
<el-option label='全部' value=''></el-option>
<el-option label='已导出' value='0'></el-option>
<el-option label='未导出' value='1'></el-option>
<el-option label='未导出' value='0'></el-option>
<el-option label='已导出' value='1'></el-option>
</el-select>
</el-form-item>
<el-form-item>
......@@ -97,6 +97,9 @@ export default {
}
}
},
mounted() {
this.handleSearch()
},
methods: {
handleSearch() {
this.$emit('sendSearchForm', this.bankCardSearchForm)
......
......@@ -34,6 +34,13 @@
<span v-if="scope.scope.status == '3'">已核销</span>
<span v-if="scope.scope.status == '4'">到账失败</span>
</div>
<div slot='withdrawalScore' slot-scope='scope' >
{{ scope.scope.withdrawalScore.toFixed(2) }}
</div>
<div slot='withdrawalAmount' slot-scope='scope' >
{{ scope.scope.withdrawalAmount.toFixed(2) }}
</div>
</d2-table>
<BankCardDialog ref='bankCardDialog' @sendResetTable='reset' :bankCardSearchForm='bankCardSearchForm'
:choiceData='choiceData'
......@@ -97,11 +104,13 @@ export default {
},
{
label: '积分值',
prop: 'withdrawalScore'
prop: 'withdrawalScore',
addHtml: 'withdrawalScore'
},
{
label: '提现金额(元)',
prop: 'withdrawalAmount'
prop: 'withdrawalAmount',
addHtml: 'withdrawalAmount'
},
{
label: '提现时间',
......@@ -117,7 +126,7 @@ export default {
},
{
label: '持卡人姓名',
prop: 'bankuserName'
prop: 'bankUserName'
},
{
label: '银行预留手机号',
......@@ -165,7 +174,7 @@ export default {
}))) {
this.$message({
type: 'error',
message: '请勾选需要核销的积分记录!'
message: '请勾选需要核销的提现记录!'
})
return
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!