Commit d98c0e70 authored by 许珑标's avatar 许珑标

批次优化

parent 7f3080db
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div style="color: #1890ff">{{ scope.row.importBatchNo }}</div> <div style="color: #1890ff">{{ scope.row.importBatchNo }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="业务名称" align="center" prop="batchName"> <el-table-column label="批次名称" align="center" prop="batchName">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.taskName }} {{ scope.row.taskName }}
<div>{{ scope.row.batchName }}</div> <div>{{ scope.row.batchName }}</div>
...@@ -74,15 +74,20 @@ ...@@ -74,15 +74,20 @@
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="详情预览" align="center"> <el-table-column label="详情预览" align="center">
<template slot-scope="scope" v-if="scope.row.batchStatus && scope.row.batchStatus !== 8"> <template slot-scope="scope" >
<p style="margin: 0px;padding: 0px;">发放总笔数:{{ scope.row.totalCount }}</p> <div>发放总笔数:{{ scope.row.totalCount }}</div>
<p style="margin: 0px;padding: 0px;">发放总金额:{{ scope.row.totalAmount }}</p> <div>批次总金额:{{ scope.row.totalAmount }}</div>
<p style="margin: 0px;padding: 0px;">成功笔数:{{ scope.row.successCount }}</p> <div>发放金额:{{ scope.row.salaryAmount }}</div>
<p style="margin: 0px;padding: 0px;">成功金额:{{ scope.row.successAmount }}</p> <div v-if="scope.row.batchStatus && scope.row.batchStatus !== 8">
<p style="margin: 0px;padding: 0px;">失败笔数:{{ scope.row.failCount }}</p> 成功金额:{{ scope.row.successAmount }}({{scope.row.successCount}}笔)
<p style="margin: 0px;padding: 0px;">失败金额:{{ scope.row.failAmount }}</p> </div>
<p style="margin: 0px;padding: 0px;">服务费:{{ scope.row.transFee }}</p> <div v-if="scope.row.batchStatus && scope.row.batchStatus !== 8">
<p style="margin: 0px;padding: 0px;">税费:{{ scope.row.taxPrice }}</p> 失败金额:{{ scope.row.failAmount }}({{scope.row.failCount}}笔)
</div>
<div>税费:{{ scope.row.taxPrice }}({{ scope.row.taxRate}})</div>
<div v-if="scope.row.batchStatus && scope.row.batchStatus !== 8">
服务费:{{ scope.row.transFee }}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="完成时间" align="center" prop="transactionTime" width="180"> <el-table-column label="完成时间" align="center" prop="transactionTime" width="180">
...@@ -93,8 +98,8 @@ ...@@ -93,8 +98,8 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.batchStatus && scope.row.batchStatus === 8" <el-button v-if="scope.row.batchStatus && scope.row.batchStatus === 8"
size="mini" type="text" icon="el-icon-money" size="mini" type="text" icon="el-icon-s-management"
@click="doPay(scope.row)">确认结算</el-button> @click="goSettlement(scope.row)">确认结算</el-button>
<el-button v-if="scope.row.batchStatus && scope.row.batchStatus === 1" <el-button v-if="scope.row.batchStatus && scope.row.batchStatus === 1"
size="mini" type="text" icon="el-icon-money" size="mini" type="text" icon="el-icon-money"
@click="doPay(scope.row)">确认支付</el-button> @click="doPay(scope.row)">确认支付</el-button>
...@@ -102,6 +107,7 @@ ...@@ -102,6 +107,7 @@
size="mini" type="text" icon="el-icon-circle-close" size="mini" type="text" icon="el-icon-circle-close"
@click="repeal(scope.row)">订单作废</el-button> @click="repeal(scope.row)">订单作废</el-button>
<el-button size="mini" type="text" icon="el-icon-s-order" <el-button size="mini" type="text" icon="el-icon-s-order"
v-if="scope.row.batchStatus && (scope.row.batchStatus === 3 || scope.row.batchStatus === 4 || scope.row.batchStatus === 5)"
@click="viewDetail(scope.row)">查看明细</el-button> @click="viewDetail(scope.row)">查看明细</el-button>
<el-button v-if="scope.row.batchStatus && (scope.row.batchStatus === 4 || scope.row.batchStatus === 5)" <el-button v-if="scope.row.batchStatus && (scope.row.batchStatus === 4 || scope.row.batchStatus === 5)"
size="mini" type="text" icon="el-icon-s-promotion" size="mini" type="text" icon="el-icon-s-promotion"
...@@ -248,7 +254,7 @@ export default { ...@@ -248,7 +254,7 @@ export default {
}, },
doPay(row) { doPay(row) {
if (row && row.payId) { if (row && row.payId) {
this.$confirm('确定对该任务[' + row.batchNo + ":" + row.batchPayName + ']进行支付操作?', '提示', { this.$confirm('确定对该任务[' + row.batchNo + ":" + row.batchName + ']进行支付操作?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
...@@ -287,6 +293,10 @@ export default { ...@@ -287,6 +293,10 @@ export default {
viewDetail(row) { viewDetail(row) {
this.$router.push({ path: "/business/payDetails", query: { orderId: row.payId, batchNo: row.batchNo } }); this.$router.push({ path: "/business/payDetails", query: { orderId: row.payId, batchNo: row.batchNo } });
}, },
goSettlement(row) {
this.$router.push({ path: "/transfer/payBatchSettlement", query: { id: row.id } });
}
} }
}; };
</script> </script>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- 发薪批次结算页面 --> <!-- 发薪批次结算页面 -->
<div class="app-container payBatchSettlement"> <div class="app-container payBatchSettlement">
<div class="card-box"> <div class="card-box">
<el-descriptions title="" :column="6"> <el-descriptions title="" :column="4">
<el-descriptions-item label="任务编号">{{ pageRemark.taskNo }}</el-descriptions-item> <el-descriptions-item label="任务编号">{{ pageRemark.taskNo }}</el-descriptions-item>
<el-descriptions-item label="任务状态" :span="5" :contentStyle="pageRemark.statusClassRuing"> <el-descriptions-item label="任务状态" :span="5" :contentStyle="pageRemark.statusClassRuing">
{{ pageRemark.taskStatusDesc }} {{ pageRemark.taskStatusDesc }}
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
layout="total, sizes, prev, pager, next, jumper" :total="total"> layout="total, sizes, prev, pager, next, jumper" :total="total">
</el-pagination> </el-pagination>
<el-button type="primary" icon="el-icon-view" size="mini" @click="confirmPay" <el-button type="primary" icon="el-icon-view" size="mini" @click="confirmPay"
:disabled="dataList.length == 0">结算预览</el-button> :disabled="dataList.length == 0">确认结算</el-button>
</div> </div>
</div> </div>
<!-- 新增编辑对话框 --> <!-- 新增编辑对话框 -->
...@@ -290,17 +290,22 @@ export default { ...@@ -290,17 +290,22 @@ export default {
confirmSettleAPI(this.batchInfo.id).then(res => { confirmSettleAPI(this.batchInfo.id).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.settlementPreviewDialog = false this.settlementPreviewDialog = false
this.$modal.msgSuccess('结算成功') this.$modal.msgSuccess('操作成功')
let obj = { path: "/transfer/taskBatch" };
this.$tab.closeOpenPage(obj)
} }
}) })
}, },
// 点击结算按钮 // 点击结算按钮
confirmPay() { confirmPay() {
this.$modal.loading()
previewSettleAPI(this.batchInfo.id).then(res => { previewSettleAPI(this.batchInfo.id).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.settlementPreviewDialog = true this.settlementPreviewDialog = true
this.settlementPreviewData = res.data this.settlementPreviewData = res.data
} }
}).finally(() => {
this.$modal.closeLoading()
}) })
}, },
importByExcel() { importByExcel() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment