Commit d0ff89b8 by wangzhihui

fixed

1 parent f19f4fea
......@@ -301,5 +301,16 @@ const getChannelAccount = (params={}) => {
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 @@
<!-- 表格区域 开始 -->
<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="table_point" :style="{ background: colors[scope.scope.status] }"></div>
<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 -->
</div>
</div>
......@@ -22,7 +23,7 @@
<script>
import url from '@/assets/empty.png'
import { modeTypeList } from '@/utils/constants.js'
import { modeTypeList } from '@/utils/constants.js'
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回', '受理失败']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74']
export default {
......@@ -138,7 +139,7 @@ export default {
label: '到账时间',
prop: 'receiptDate',
width: 180
},
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
......@@ -150,9 +151,24 @@ export default {
},
mounted() {},
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() {
var params = JSON.parse(JSON.stringify(this.searchForm))
params.approvalId=this.id
params.approvalId = this.id
return params
},
beforeSearchFn() {
......@@ -193,11 +209,14 @@ export default {
}
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.btn {
margin-left: 8px;
}
}
</style>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!