Commit d0ff89b8 by wangzhihui

fixed

1 parent f19f4fea
...@@ -301,5 +301,16 @@ const getChannelAccount = (params={}) => { ...@@ -301,5 +301,16 @@ const getChannelAccount = (params={}) => {
sign: true sign: true
}) })
} }
// 积分提现记录再次打款
const payApprovalAgain = (params={}) => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.pay.again`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default {getChannelAccount,approvalDetail,removeApproval,getPaymentEntityList,applyApprovalOA,getApprovalLog,getApprovalPage,generateBatchCount, integralorderBatch,getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType} export default {payApprovalAgain,getChannelAccount,approvalDetail,removeApproval,getPaymentEntityList,applyApprovalOA,getApprovalLog,getApprovalPage,generateBatchCount, integralorderBatch,getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType}
...@@ -10,11 +10,12 @@ ...@@ -10,11 +10,12 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="withdrawRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable"> <GLTable ref="withdrawRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
<div class="flex_sc" slot="colorStatus" slot-scope="scope"> <div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div class="table_point" :style="{ background: colors[scope.scope.status] }"></div> <div class="table_point" :style="{ background: colors[scope.scope.status] }"></div>
<span>{{ tableStatus[scope.scope.status] }}</span> <span>{{ tableStatus[scope.scope.status] }}</span>
</div> </GLTable> <el-button v-if="scope.scope.status == 6" type="primary" plain size="mini" class="btn" round @click="makePayment(scope.scope)">再次打款</el-button>
</div>
</GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
</div> </div>
...@@ -138,7 +139,7 @@ export default { ...@@ -138,7 +139,7 @@ export default {
label: '到账时间', label: '到账时间',
prop: 'receiptDate', prop: 'receiptDate',
width: 180 width: 180
}, }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
...@@ -150,9 +151,24 @@ export default { ...@@ -150,9 +151,24 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
makePayment(row) {
let params = {
id: row.id
}
this.$apis.withdraw.payApprovalAgain(params)
.then(res => {
this.$message({
message: res.code == '0' ? '再次打款成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
})
.finally(() => {
this.handleReset()
})
},
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
params.approvalId=this.id params.approvalId = this.id
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
...@@ -197,7 +213,10 @@ export default { ...@@ -197,7 +213,10 @@ export default {
height: 6px; height: 6px;
border-radius: 50%; border-radius: 50%;
margin-right: 8px; margin-right: 8px;
} }
.btn {
margin-left: 8px;
}
} }
</style> </style>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!