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

stage:发布任务接口调用

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