Commit bce441a6 by 前端

修复任务中心bug

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