|
|
@@ -43,7 +43,12 @@
|
|
|
@saveColumn="saveColumnTwo('crud', 'option', 'optionBack', 324)"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button v-if="tabsValue == 'CHK' || tabsValue == 'FFSQ'|| tabsValue == 'DCDD'" type="primary" size="small" plain @click="chooseSettlement()"
|
|
|
+ <el-button
|
|
|
+ v-if="tabsValue == 'CHK' || tabsValue == 'FFSQ' || tabsValue == 'DCDD'"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ plain
|
|
|
+ @click="chooseSettlement()"
|
|
|
>选择结算
|
|
|
</el-button>
|
|
|
<el-button v-if="tabsValue == '业务单据'" type="primary" size="small" plain @click="addfun()">添加单据 </el-button>
|
|
|
@@ -68,7 +73,21 @@
|
|
|
</tempalte>
|
|
|
<template slot="menu" slot-scope="{ row }">
|
|
|
<el-button
|
|
|
- v-if="tabsValue == 'CHK' || tabsValue == 'FFSQ'|| tabsValue == 'DCDD'"
|
|
|
+ v-if="tabsValue == 'DCDD'"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ :disabled="
|
|
|
+ saberUserInfo.role_name.indexOf('admin') == -1
|
|
|
+ ? saberUserInfo.role_name.indexOf('允许修改他人业务') == -1
|
|
|
+ ? saberUserInfo.user_id != row.createUser
|
|
|
+ : false
|
|
|
+ : false
|
|
|
+ "
|
|
|
+ @click="revoke(row)"
|
|
|
+ >驳回
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="tabsValue == 'CHK' || tabsValue == 'FFSQ' || tabsValue == 'DCDD'"
|
|
|
type="text"
|
|
|
size="small"
|
|
|
:disabled="
|
|
|
@@ -123,7 +142,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { fininvoicesList, generateFinStlBills } from "@/api/iosBasicData/fininvoices";
|
|
|
-import { finstlbillsList, finstlbillsRemove } from "@/api/iosBasicData/finstlbills";
|
|
|
+import { finstlbillsList, finstlbillsRemove, revokeOffset } from "@/api/iosBasicData/finstlbills";
|
|
|
import finstlbillsDetails from "@/views/iosBasicData/CollectionSettlement/finstlbillsDetails.vue";
|
|
|
import settlementDetails from "@/views/iosBasicData/ComputationCenter/settlementDetails.vue";
|
|
|
import { getBcorpslistByType } from "@/api/iosBasicData/bcorps";
|
|
|
@@ -458,7 +477,23 @@ export default {
|
|
|
});
|
|
|
this.isShow = false;
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.settlementDetailsRef.generateFinStlBillsfun(arrId.join(","), this.tabsValue=='CHK'?"D":"C",this.tabsValue);
|
|
|
+ this.$refs.settlementDetailsRef.generateFinStlBillsfun(arrId.join(","), this.tabsValue == "CHK" ? "D" : "C", this.tabsValue);
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ revoke(row) {
|
|
|
+ this.$confirm("是否撤销对抵?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ let obj = {
|
|
|
+ ...row,
|
|
|
+ billDate: row.billDate ? row.billDate.slice(0, 10) + " 00:00:00" : null
|
|
|
+ };
|
|
|
+ revokeOffset(obj).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.onLoad(this.page, this.search);
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
@@ -467,7 +502,7 @@ export default {
|
|
|
this.isShow = false;
|
|
|
// this.editSave = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.settlementDetailsRef.generateFinStlBillsfun(row.id, this.tabsValue=='CHK'?"D":"C",this.tabsValue);
|
|
|
+ this.$refs.settlementDetailsRef.generateFinStlBillsfun(row.id, this.tabsValue == "CHK" ? "D" : "C", this.tabsValue);
|
|
|
});
|
|
|
},
|
|
|
// 添加
|
|
|
@@ -732,7 +767,7 @@ export default {
|
|
|
status: 3,
|
|
|
billStatus: 0
|
|
|
});
|
|
|
- }else if (this.tabsValue == "DCDD") {
|
|
|
+ } else if (this.tabsValue == "DCDD") {
|
|
|
// 调用 销项发票业务数据
|
|
|
res = await finstlbillsList(page.currentPage, page.pageSize, {
|
|
|
...Object.assign(params, this.query),
|