Commit 0588dc79 authored by 谢子梦's avatar 谢子梦

stage:发布任务接口调用

parent 780b17d6
......@@ -155,3 +155,10 @@ export function previewSettleAPI(id) {
method: 'get'
})
}
// 确认计算
export function confirmSettleAPI(id) {
return request({
url: `/business/taskBatch/settlement/confirm/${id}`,
method: 'get'
})
}
......@@ -176,15 +176,14 @@
</el-descriptions>
<span slot="footer" class="dialog-footer">
<el-button @click="settlementPreviewDialog = false">取 消</el-button>
<el-button type="primary" icon="el-icon-s-promotion"
@click="settlementPreviewDialog = false">确认预览</el-button>
<el-button type="primary" icon="el-icon-s-promotion" @click="settlementPreviewSubmit">确认结算</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { getBatchInfoAPI, listBatchInfoAPI, addBatchInfoAPI, updateBatchInfoAPI, delBatchInfoAPI, previewSettleAPI } from '@/api/business/payOrder'
import { getBatchInfoAPI, listBatchInfoAPI, addBatchInfoAPI, updateBatchInfoAPI, delBatchInfoAPI, previewSettleAPI, confirmSettleAPI } from '@/api/business/payOrder'
import { getOnlineTaskInfo } from "@/api/business/onlineTaskInfo";
import { signAccList } from "@/api/business/accInfo";
import { getToken } from '@/utils/auth'
......@@ -214,7 +213,7 @@ export default {
width: '380px'
},
params: {
onlineBatchId: '',
onlineTaskBatchId: '',
pageSize: 10,
pageNum: 1,
staffName: ''
......@@ -286,6 +285,15 @@ export default {
},
methods: {
// 点击确认结算
settlementPreviewSubmit() {
confirmSettleAPI(this.batchInfo.id).then(res => {
if (res.code == 200) {
this.settlementPreviewDialog = false
this.$modal.msgSuccess('结算成功')
}
})
},
// 点击结算按钮
confirmPay() {
previewSettleAPI(this.batchInfo.id).then(res => {
......@@ -492,7 +500,7 @@ export default {
if (res.code == 200) {
this.batchInfo = res.data
this.pageInit(this.batchInfo.onlineTaskId)
this.params.onlineBatchId = this.batchInfo.onlineTaskId
this.params.onlineTaskBatchId = this.batchInfo.id
this.getList()
}
})
......
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