|
@@ -427,9 +427,9 @@
|
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
|
|
<approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
|
|
|
<el-button v-if="approve === true" @click="goApproval">审批</el-button>
|
|
|
- <el-button type="danger" :disabled="disappear" @click="approvalRevocation" v-if="form.fBillstatus === '4'">撤销审批</el-button>
|
|
|
+ <el-button type="danger" :disabled="disappear" @click="backApproval" v-if="form.fBillstatus == '4'">撤销审批</el-button>
|
|
|
<el-button type="info" v-if="notChange" @click="addOrUpdateHandle()">查看审批流</el-button>
|
|
|
- <el-button type="success" @click="BackSubmit" v-if="form.fBillstatus === '6'">撤销请核</el-button>
|
|
|
+ <el-button type="success" @click="backrRconciliation" v-if="form.fBillstatus === '6'">撤销请核</el-button>
|
|
|
<el-button type="primary" @click="submitForm" :disabled="notChange">确 定</el-button>
|
|
|
<el-button v-if="cancelButton === true" @click="cancel">取 消</el-button>
|
|
|
<el-button v-if="cancelButton === false" @click="homePage">取消</el-button>
|
|
@@ -441,8 +441,8 @@
|
|
|
<script>
|
|
|
import moment from 'moment'
|
|
|
import {
|
|
|
- revocation,
|
|
|
- ReturnCheck,
|
|
|
+ RevocationApproval,
|
|
|
+ backFee,
|
|
|
PleaseCheck,
|
|
|
listAgreements,
|
|
|
getAgreement,
|
|
@@ -766,14 +766,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//撤销审批
|
|
|
- approvalRevocation() {
|
|
|
+ backApproval() {
|
|
|
let data = {
|
|
|
id: this.form.fId,
|
|
|
actId: this.agreementId,
|
|
|
billId: this.form.fId
|
|
|
}
|
|
|
- console.log(this.queryParams)
|
|
|
- revocation(data).then(data => {
|
|
|
+ RevocationApproval(data).then(data => {
|
|
|
console.log(data)
|
|
|
if (data.code === 200) {
|
|
|
this.$message.success('撤销成功')
|
|
@@ -783,18 +782,14 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 撤销请核
|
|
|
- BackSubmit() {
|
|
|
- console.log(this.form)
|
|
|
+ backrRconciliation() {
|
|
|
this.form.fBillstatus = '1'
|
|
|
- let formDate = new window.FormData()
|
|
|
- formDate.append('agreement', JSON.stringify(this.form))
|
|
|
- formDate.append('agreementitems', JSON.stringify(this.agreementitemsList))
|
|
|
- console.log(formDate)
|
|
|
- ReturnCheck(formDate).then(response => {
|
|
|
- this.open = false
|
|
|
- this.msgSuccess('操作成功')
|
|
|
+ backFee(this.form.fId).then(response=>{
|
|
|
+ this.msgSuccess("撤回成功")
|
|
|
this.getList()
|
|
|
})
|
|
|
+ this.open = false
|
|
|
+ this.getList()
|
|
|
},
|
|
|
// 请核按钮
|
|
|
submit() {
|