|
|
@@ -30,7 +30,7 @@
|
|
|
v-if="form.status == 3"
|
|
|
:loading="saveLoading"
|
|
|
@click="finstlbillsRevokeReconciliationfun"
|
|
|
- >撤销完成
|
|
|
+ >撤销对抵
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
@@ -38,10 +38,10 @@
|
|
|
plain
|
|
|
style="margin-right: 8px"
|
|
|
:disabled="!form.id || editPower"
|
|
|
- v-if="form.status == 2"
|
|
|
+ v-if="form.id && form.status == 0"
|
|
|
:loading="saveLoading"
|
|
|
- @click="submit('确认完成')"
|
|
|
- >确认完成
|
|
|
+ @click="submit('确认对抵')"
|
|
|
+ >确认对抵
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
@@ -65,7 +65,7 @@
|
|
|
<el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="11">
|
|
|
- <el-form-item label="对账单位" prop="corpCnName">
|
|
|
+ <el-form-item label="对抵单位" prop="corpCnName">
|
|
|
<el-col :span="10">
|
|
|
<search-query
|
|
|
:datalist="corpData"
|
|
|
@@ -75,7 +75,7 @@
|
|
|
:filterable="true"
|
|
|
:remote="true"
|
|
|
:buttonIf="false"
|
|
|
- placeholder="请选择对账单位"
|
|
|
+ placeholder="请选择对抵单位"
|
|
|
:forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }"
|
|
|
@corpChange="corpChange($event, 'corpCnName')"
|
|
|
@remoteMethod="corpBcorpsListfun"
|
|
|
@@ -92,7 +92,7 @@
|
|
|
autocomplete="off"
|
|
|
:disabled="editSave"
|
|
|
clearable
|
|
|
- placeholder="对账单位"
|
|
|
+ placeholder="对抵单位"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
@@ -223,7 +223,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
- <el-form-item label="对账" prop="isChecked" label-width="50px">
|
|
|
+ <el-form-item label="对抵" prop="isChecked" label-width="50px">
|
|
|
<search-query
|
|
|
:datalist="isCheckedData"
|
|
|
:selectValue="form.isChecked"
|
|
|
@@ -238,7 +238,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<!--<el-col :span="4">-->
|
|
|
- <!-- <el-form-item label="对账" prop="isChecked" label-width="50px">-->
|
|
|
+ <!-- <el-form-item label="对抵" prop="isChecked" label-width="50px">-->
|
|
|
<!-- <search-query :datalist="allyesnoData"-->
|
|
|
<!-- :selectValue="form.isChecked"-->
|
|
|
<!-- :clearable="true"-->
|
|
|
@@ -505,7 +505,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
- <el-form-item label="对账单号" prop="checkNo">
|
|
|
+ <el-form-item label="对抵单号" prop="checkNo">
|
|
|
<el-input
|
|
|
style="width: 100%;"
|
|
|
v-model="form.billNo"
|
|
|
@@ -513,13 +513,13 @@
|
|
|
autocomplete="off"
|
|
|
:disabled="true"
|
|
|
clearable
|
|
|
- placeholder="请输入对账单号"
|
|
|
+ placeholder="请输入对抵单号"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
- <el-form-item label="对账日期" prop="billDate">
|
|
|
+ <el-form-item label="对抵日期" prop="billDate">
|
|
|
<el-date-picker
|
|
|
v-model="form.billDate"
|
|
|
clearable
|
|
|
@@ -528,7 +528,7 @@
|
|
|
size="small"
|
|
|
:disabled="editSave"
|
|
|
value-format="yyyy-MM-dd HH:mm"
|
|
|
- placeholder="请选择对账日期"
|
|
|
+ placeholder="请选择对抵日期"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -742,7 +742,9 @@ import {
|
|
|
finstlbillsConfirmInvoicing,
|
|
|
finstlbillsRevokeInvoicing,
|
|
|
batchConfirmReconciliation,
|
|
|
- batchRevokeReconciliation
|
|
|
+ batchRevokeReconciliation,
|
|
|
+ confirmOffset,
|
|
|
+ revokeOffset
|
|
|
} from "@/api/iosBasicData/finstlbills";
|
|
|
import expand from "@/components/basic-container/expand.vue";
|
|
|
import queryfinstlbillsitems from "@/views/iosBasicData/finstlbills/assembly/finstlbillsitems.vue";
|
|
|
@@ -768,10 +770,10 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- amountDSubSum:0,
|
|
|
- amountDSubUsdSum:0,
|
|
|
- amountCSubSum:0,
|
|
|
- amountCSubUsdSum:0,
|
|
|
+ amountDSubSum: 0,
|
|
|
+ amountDSubUsdSum: 0,
|
|
|
+ amountCSubSum: 0,
|
|
|
+ amountCSubUsdSum: 0,
|
|
|
activeName: "1",
|
|
|
retrievePopupsType: false, // 弹窗开启关闭
|
|
|
retrievePopupsData: [], // 选择弹窗数据
|
|
|
@@ -811,7 +813,7 @@ export default {
|
|
|
saveLoading: false, // 按钮动画
|
|
|
// 绑定的数据
|
|
|
form: {
|
|
|
- billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 对账日期 默认 当天
|
|
|
+ billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 对抵日期 默认 当天
|
|
|
isApproved: "0",
|
|
|
isSignfor: "0",
|
|
|
isCleared: null, // 销账
|
|
|
@@ -821,9 +823,9 @@ export default {
|
|
|
approvedDate: []
|
|
|
},
|
|
|
handleSelectionData: [], // 表格选择的数据
|
|
|
- corpData: [], // 对账单位 数据
|
|
|
+ corpData: [], // 对抵单位 数据
|
|
|
allyesnoData: [], // 全部是否字典数据
|
|
|
- isCheckedData: [], // 对账状态字典数据
|
|
|
+ isCheckedData: [], // 对抵状态字典数据
|
|
|
isClearedData: [], // 销项
|
|
|
isInvoiceData: [], // 发票字典
|
|
|
// 收 / 付
|
|
|
@@ -959,7 +961,7 @@ export default {
|
|
|
finstlbillsRevokeReconciliation,
|
|
|
// 下拉回调
|
|
|
corpChange(value, name) {
|
|
|
- // 对账单位
|
|
|
+ // 对抵单位
|
|
|
if (name == "corpCnName") {
|
|
|
if (!value) {
|
|
|
this.$set(this.form, "corpId", "");
|
|
|
@@ -1045,15 +1047,15 @@ export default {
|
|
|
},
|
|
|
// 保存
|
|
|
editCustomer(type) {
|
|
|
- // 对账单位
|
|
|
+ // 对抵单位
|
|
|
if (!this.form.corpId) {
|
|
|
- this.$message.warning("请选择对账单位");
|
|
|
+ this.$message.warning("请选择对抵单位");
|
|
|
return;
|
|
|
}
|
|
|
if (!this.form.id) {
|
|
|
// 是否选择从表数据
|
|
|
if (this.addData.length == 0) {
|
|
|
- this.$message.warning("请选择对账数据");
|
|
|
+ this.$message.warning("请选择对抵数据");
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
@@ -1063,9 +1065,9 @@ export default {
|
|
|
// return;
|
|
|
// }
|
|
|
// }
|
|
|
- this.form.billNoFormat = "HYDZ";
|
|
|
- this.form.businessTypeCode = "HYDZ";
|
|
|
- this.form.businessType = "DCDD"; // 对账单
|
|
|
+ this.form.billNoFormat = "DCDD";
|
|
|
+ this.form.businessTypeCode = "DCDD";
|
|
|
+ this.form.businessType = "DCDD"; // 对抵单
|
|
|
this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
this.form.accountDateTo = this.form.accountDateTo ? this.form.accountDateTo.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
@@ -1100,7 +1102,7 @@ export default {
|
|
|
});
|
|
|
this.saveLoading = true; // 加载动画
|
|
|
this.pageLoading = true;
|
|
|
- // 判断是单独点击保存还是点击确认对账
|
|
|
+ // 判断是单独点击保存还是点击确认对抵
|
|
|
if (type == "toAddEdit") {
|
|
|
finstlbillsSubmit(this.form)
|
|
|
.then(res => {
|
|
|
@@ -1111,11 +1113,20 @@ export default {
|
|
|
this.pageLoading = false;
|
|
|
this.saveLoading = false;
|
|
|
});
|
|
|
- } else if (type == "确认完成") {
|
|
|
+ } else if (type == "确认对抵") {
|
|
|
finstlbillsSubmit(this.form)
|
|
|
.then(res => {
|
|
|
- this.form = res.data.data;
|
|
|
- this.finstlbillsConfirmReconciliationfun();
|
|
|
+ // this.form = res.data.data;
|
|
|
+ // this.finstlbillsConfirmReconciliationfun();
|
|
|
+ confirmOffset(this.form)
|
|
|
+ .then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.finstlbillsDetailfun(this.form.id);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.pageLoading = false;
|
|
|
+ this.saveLoading = false;
|
|
|
+ });
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.pageLoading = false;
|
|
|
@@ -1151,12 +1162,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
submit(type) {
|
|
|
- for (let item of this.tableData) {
|
|
|
- if (item.isChecked != 1) {
|
|
|
- return this.$message.error("明细数据未完成对账!");
|
|
|
- }
|
|
|
- }
|
|
|
- this.$confirm("确定进行确认完成操作?", {
|
|
|
+ // for (let item of this.tableData) {
|
|
|
+ // if (item.isChecked != 1) {
|
|
|
+ // return this.$message.error("明细数据未完成对抵!");
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ this.$confirm("确定进行确认对抵操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
@@ -1189,6 +1200,9 @@ export default {
|
|
|
} else {
|
|
|
this.editPower = false;
|
|
|
}
|
|
|
+ if (this.form.status == 3) {
|
|
|
+ this.editSave = true;
|
|
|
+ }
|
|
|
// 判断是否已经提交过了
|
|
|
if (this.form.billStatus == 1) {
|
|
|
this.submitType = true;
|
|
|
@@ -1223,12 +1237,13 @@ export default {
|
|
|
})
|
|
|
.finally(() => {
|
|
|
this.pageLoading = false;
|
|
|
+ this.saveLoading = false;
|
|
|
});
|
|
|
},
|
|
|
// 重置条件
|
|
|
ResetFilter() {
|
|
|
this.form = {
|
|
|
- billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 对账日期 默认 当天
|
|
|
+ billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 对抵日期 默认 当天
|
|
|
isApproved: "0",
|
|
|
isSignfor: "0",
|
|
|
isCleared: null, // 销账
|
|
|
@@ -1250,13 +1265,13 @@ export default {
|
|
|
},
|
|
|
// 检索
|
|
|
retrievalfun() {
|
|
|
- // 判断是否有对账单位
|
|
|
+ // 判断是否有对抵单位
|
|
|
if (!this.form.corpId && (this.form.businessNo || this.form.accountNo || this.form.hblno || this.form.mblno)) {
|
|
|
console.log("新接口");
|
|
|
this.finstlbillslistAccBillByCorpfun();
|
|
|
} else {
|
|
|
if (!this.form.corpId) {
|
|
|
- return this.$message.warning("请填写对账单位");
|
|
|
+ return this.$message.warning("请填写对抵单位");
|
|
|
}
|
|
|
console.log("原来的接口");
|
|
|
this.finstlbillslistAccBillV1fun();
|
|
|
@@ -1269,7 +1284,7 @@ export default {
|
|
|
let obj = {};
|
|
|
obj.type = "1";
|
|
|
obj.auditStatus = this.form.isApproved; // 审核状态 0 新建费用 1 已请核 2 审核中 3 驳回 4 通过
|
|
|
- obj.corpCnName = this.form.corpId; // 对账单位
|
|
|
+ obj.corpCnName = this.form.corpId; // 对抵单位
|
|
|
obj.isSignfor = this.form.isSignfor; // 是否已签收(0 否 1是)
|
|
|
obj.dc = this.form.dc; // 收付 D=收 C=付
|
|
|
obj.curCode = this.form.curCode; // 币别
|
|
|
@@ -1280,7 +1295,7 @@ export default {
|
|
|
obj.billNo = this.form.businessNo; // 单据编号 JOB NO
|
|
|
obj.mblno = this.form.mblno; // MB/L NO
|
|
|
obj.hblno = this.form.hblno; // HB/L NO
|
|
|
- obj.isChecked = this.form.isChecked; // 是否对账(0 未对账 1 已对账)
|
|
|
+ obj.isChecked = this.form.isChecked; // 是否对抵(0 未对抵 1 已对抵)
|
|
|
obj.queryAmount = this.form.queryAmount; // 查询金额
|
|
|
obj.businessType = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
obj.invoiceStatus = this.form.isInvoice; // 发票状态 0 = 未开 9=已开 2 待开 3 不开
|
|
|
@@ -1308,58 +1323,58 @@ export default {
|
|
|
// delete this.form.id;
|
|
|
// let obj = JSON.parse(JSON.stringify(this.form))
|
|
|
let obj = {};
|
|
|
- obj.type = "1";
|
|
|
- obj.auditStatus = this.form.isApproved; // 审核状态 0 新建费用 1 已请核 2 审核中 3 驳回 4 通过
|
|
|
- obj.corpCnName = this.form.corpId; // 对账单位
|
|
|
- obj.isSignfor = this.form.isSignfor; // 是否已签收(0 否 1是)
|
|
|
- obj.dc = this.form.dc; // 收付 D=收 C=付
|
|
|
+ obj.type = "9";
|
|
|
obj.curCode = this.form.curCode; // 币别
|
|
|
- obj.srcType = this.form.srcType; // 业务来源
|
|
|
- obj.srcCnName = this.form.srcId; // 业务员id
|
|
|
- obj.isCleared = this.form.isCleared; // 是否销账(0 未销账 3 部分销账 9 销账)
|
|
|
+ obj.dc = this.form.dc; // 收付 D=收 C=付
|
|
|
obj.accBillNo = this.form.accountNo; // 账单编号 ACCT NO
|
|
|
obj.billNo = this.form.businessNo; // 单据编号 JOB NO
|
|
|
obj.mblno = this.form.mblno; // MB/L NO
|
|
|
obj.hblno = this.form.hblno; // HB/L NO
|
|
|
- obj.isChecked = this.form.isChecked; // 是否对账(0 未对账 1 已对账)
|
|
|
obj.queryAmount = this.form.queryAmount; // 查询金额
|
|
|
obj.businessType = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
- obj.invoiceStatus = this.form.isInvoice; // 发票状态 0 = 未开 9=已开 2 待开 3 不开
|
|
|
+ obj.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
obj.vesselCnName = this.form.vesselCnName; // 中文船名
|
|
|
- obj.invoiceNo = this.form.invoiceNo; // 发票号
|
|
|
- obj.bookingNo = this.form.bookingNo; // 订舱号 BKNO
|
|
|
- obj.createUserName = this.form.updateUser ? this.form.updateUser : null; // 操作员id
|
|
|
obj.receivableAdvance = this.form.receivableAdvance; // 预收帐款
|
|
|
- obj.threeInspectionsNo = this.form.threeInspectionsNo; // 三检单号
|
|
|
obj.voyageNo = this.form.voyageNo; // 航次
|
|
|
- obj.businessDateStart = this.form.businessDateStart; // 业务开始日期
|
|
|
- obj.businessDateEnd = this.form.businessDateEnd; // 业务结束日期
|
|
|
- obj.billDateStart = this.form.accountDateFrom; // 财务开始日期
|
|
|
- obj.billDateEnd = this.form.accountDateTo; // 财务开始日期
|
|
|
- obj.approveTimeStart = this.form.auditDateFrom; // 审核开始日期
|
|
|
- obj.approveTimeEnd = this.form.auditDateTo; // 审核结束日期
|
|
|
- obj.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
+ obj.auditStatus = "0";
|
|
|
+ obj.businessDateStart = this.form.businessDateStart; // 财务开始日期
|
|
|
+ obj.businessDateEnd = this.form.businessDateEnd; // 财务结束日期
|
|
|
+ obj.corpCnName = this.form.corpId; // 结算单位
|
|
|
+ obj.checkBillNo = this.form.checkNo; // CHK NO 对账单号
|
|
|
finstlbillslistAccBillV1(obj).then(res => {
|
|
|
res.data.data.forEach((item, index) => {
|
|
|
item.accBillId = item.id;
|
|
|
delete item.id;
|
|
|
- item.lineNo = Number(index) + 1;
|
|
|
- this.$set(item, "currentStlCurCode", item.curCode);
|
|
|
- this.$set(item, "currentStlExrate", item.exrate);
|
|
|
+ // 账单编号
|
|
|
item.accBillNo = item.billNo;
|
|
|
+ item.currentStlCurCode = item.curCode; // 币别
|
|
|
+ item.currentStlExrate = item.exrate; // 汇率
|
|
|
+ // quantity
|
|
|
+ // quantityCntrTypesDescr
|
|
|
+ item.lineNo = Number(index) + 1;
|
|
|
+ item.pType = item.businessType;
|
|
|
item.billNo = item.businessBillDivideNo ? item.businessBillDivideNo : item.businessBillNo;
|
|
|
+ item.accDate = item.billDate;
|
|
|
item.dc = item.accountDc; // 收付
|
|
|
if (item.curCode == "CNY") {
|
|
|
+ // 发票
|
|
|
+ this.$set(item, "currentInvoiceAmountRMB", item.currentInvoiceAmount);
|
|
|
+ // 应结算金额
|
|
|
this.$set(item, "amountRMB", item.amount);
|
|
|
- this.$set(item, "currentInvoiceAmountRMB", Number(item.currentInvoiceAmount ? item.currentInvoiceAmount : 0));
|
|
|
- this.$set(item, "unsettledAmountRMB", Number(item.unsettledAmount ? item.unsettledAmount : 0));
|
|
|
- this.$set(item, "currentStlAmountRMB", Number(item.reconciliationCurrentAmount ? item.reconciliationCurrentAmount : 0));
|
|
|
+ // 已结算金额
|
|
|
+ this.$set(item, "stlTtlAmountRMB", item.stlTtlAmount);
|
|
|
+ // 本次金额
|
|
|
+ this.$set(item, "currentStlAmountRMB", Number(item.appliedCurrentStlAmount ? item.appliedCurrentStlAmount : 0));
|
|
|
this.$set(item, "currentStlAmountUSD", Number(0));
|
|
|
} else {
|
|
|
+ // 发票
|
|
|
+ this.$set(item, "currentInvoiceAmountUSD", item.currentInvoiceAmount);
|
|
|
+ // 应结算金额
|
|
|
this.$set(item, "amountUSD", item.amount);
|
|
|
- this.$set(item, "currentInvoiceAmountUSD", Number(item.currentInvoiceAmount ? item.currentInvoiceAmount : 0));
|
|
|
- this.$set(item, "unsettledAmountUSD", Number(item.unsettledAmount ? item.unsettledAmount : 0));
|
|
|
- this.$set(item, "currentStlAmountUSD", Number(item.reconciliationCurrentAmount ? item.reconciliationCurrentAmount : 0));
|
|
|
+ // 已结算金额
|
|
|
+ this.$set(item, "stlTtlAmountUSD", item.stlTtlAmount);
|
|
|
+ // 本次金额
|
|
|
+ this.$set(item, "currentStlAmountUSD", Number(item.appliedCurrentStlAmount ? item.appliedCurrentStlAmount : 0));
|
|
|
this.$set(item, "currentStlAmountRMB", Number(0));
|
|
|
}
|
|
|
});
|
|
|
@@ -1440,9 +1455,9 @@ export default {
|
|
|
},
|
|
|
// 确认发票接口
|
|
|
finstlbillsConfirmInvoicingfun(type) {
|
|
|
- this.form.billNoFormat = "HYDZ";
|
|
|
- this.form.businessTypeCode = "HYDZ";
|
|
|
- this.form.businessType = "DCDD"; //对账单
|
|
|
+ this.form.billNoFormat = "DCDD";
|
|
|
+ this.form.businessTypeCode = "DCDD";
|
|
|
+ this.form.businessType = "DCDD"; //对抵单
|
|
|
this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
this.form.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
@@ -1470,9 +1485,9 @@ export default {
|
|
|
},
|
|
|
// 撤销发票接口
|
|
|
finstlbillsRevokeInvoicingfun() {
|
|
|
- this.form.billNoFormat = "HYDZ";
|
|
|
- this.form.businessTypeCode = "HYDZ";
|
|
|
- this.form.businessType = "DCDD"; // 对账单
|
|
|
+ this.form.billNoFormat = "DCDD";
|
|
|
+ this.form.businessTypeCode = "DCDD";
|
|
|
+ this.form.businessType = "DCDD"; // 对抵单
|
|
|
this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
this.form.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
@@ -1494,7 +1509,7 @@ export default {
|
|
|
this.pageLoading = false;
|
|
|
});
|
|
|
},
|
|
|
- // 对账确认
|
|
|
+ // 对抵确认
|
|
|
finstlbillsConfirmReconciliationfun() {
|
|
|
this.pageLoading = true;
|
|
|
this.saveLoading = true;
|
|
|
@@ -1508,7 +1523,7 @@ export default {
|
|
|
this.form.businessDateStart = this.form.businessDateStart ? this.form.businessDateStart.slice(0, 10) + " 00:00:00" : null;
|
|
|
this.form.billDate = this.form.billDate ? this.form.billDate.slice(0, 10) + " 00:00:00" : null;
|
|
|
(this.form.url = "/iosBasicData/finstlbills/index"), (this.form.pageStatus = "this.$store.getters.paidapplication");
|
|
|
- this.form.pageLabel = "对账中心(F)";
|
|
|
+ this.form.pageLabel = "对抵中心(F)";
|
|
|
finstlbillsConfirmReconciliation(this.form)
|
|
|
.then(res => {
|
|
|
this.$message.success("操作成功");
|
|
|
@@ -1520,24 +1535,28 @@ export default {
|
|
|
this.saveLoading = false;
|
|
|
});
|
|
|
},
|
|
|
- // 对账撤销
|
|
|
+ // 对抵撤销
|
|
|
finstlbillsRevokeReconciliationfun() {
|
|
|
- this.$confirm("确定进行撤销对账操作?", {
|
|
|
+ this.$confirm("确定进行撤销对抵操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
this.pageLoading = true;
|
|
|
- this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
- this.form.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
- this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
- this.form.accountDateTo = this.form.accountDateTo ? this.form.accountDateTo.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
- this.form.auditDateFrom = this.form.auditDateFrom ? this.form.auditDateFrom.slice(0, 10) + " 00:00:00" : null;
|
|
|
- this.form.auditDateTo = this.form.auditDateTo ? this.form.auditDateTo.slice(0, 10) + " 00:00:00" : null;
|
|
|
- this.form.businessDateEnd = this.form.businessDateEnd ? this.form.businessDateEnd.slice(0, 10) + " 00:00:00" : null;
|
|
|
- this.form.businessDateStart = this.form.businessDateStart ? this.form.businessDateStart.slice(0, 10) + " 00:00:00" : null;
|
|
|
- this.form.billDate = this.form.billDate ? this.form.billDate.slice(0, 10) + " 00:00:00" : null;
|
|
|
- finstlbillsRevokeReconciliation(this.form)
|
|
|
+ let obj = {
|
|
|
+ ...this.form,
|
|
|
+ businessTypes: this.form.businessTypes ? this.form.businessTypes.join(",") : "", // 业务类型
|
|
|
+ feeCnName: this.form.feeCnName ? this.form.feeCnName.join(",") : "",
|
|
|
+ accountDateFrom: this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null, // 财务开始日期
|
|
|
+ accountDateTo: this.form.accountDateTo ? this.form.accountDateTo.slice(0, 10) + " 00:00:00" : null, // 财务开始日期
|
|
|
+ auditDateFrom: this.form.auditDateFrom ? this.form.auditDateFrom.slice(0, 10) + " 00:00:00" : null,
|
|
|
+ auditDateTo: this.form.auditDateTo ? this.form.auditDateTo.slice(0, 10) + " 00:00:00" : null,
|
|
|
+ businessDateEnd: this.form.businessDateEnd ? this.form.businessDateEnd.slice(0, 10) + " 00:00:00" : null,
|
|
|
+ businessDateStart: this.form.businessDateStart ? this.form.businessDateStart.slice(0, 10) + " 00:00:00" : null,
|
|
|
+ billDate: this.form.billDate ? this.form.billDate.slice(0, 10) + " 00:00:00" : null
|
|
|
+ };
|
|
|
+
|
|
|
+ revokeOffset(obj)
|
|
|
.then(res => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.finstlbillsDetailfun(res.data.data.id);
|
|
|
@@ -1597,17 +1616,17 @@ export default {
|
|
|
return this.$message.error("请选择已签收的数据");
|
|
|
}
|
|
|
if (item.isChecked == 1) {
|
|
|
- return this.$message.error("请选择未对账的数据");
|
|
|
+ return this.$message.error("请选择未对抵的数据");
|
|
|
}
|
|
|
}
|
|
|
- this.$confirm("是否对账?", {
|
|
|
+ this.$confirm("是否对抵?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- this.form.billNoFormat = "HYDZ";
|
|
|
- this.form.businessTypeCode = "HYDZ";
|
|
|
- this.form.businessType = "DCDD"; //对账单
|
|
|
+ this.form.billNoFormat = "DCDD";
|
|
|
+ this.form.businessTypeCode = "DCDD";
|
|
|
+ this.form.businessType = "DCDD"; //对抵单
|
|
|
this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
this.form.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
@@ -1637,17 +1656,17 @@ export default {
|
|
|
}
|
|
|
for (let item of this.handleSelectionData) {
|
|
|
if (item.isChecked == 0) {
|
|
|
- return this.$message.error("请选择已对账的数据");
|
|
|
+ return this.$message.error("请选择已对抵的数据");
|
|
|
}
|
|
|
}
|
|
|
- this.$confirm("是否撤销对账?", {
|
|
|
+ this.$confirm("是否撤销对抵?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- this.form.billNoFormat = "HYDZ";
|
|
|
- this.form.businessTypeCode = "HYDZ";
|
|
|
- this.form.businessType = "DCDD"; // 对账单
|
|
|
+ this.form.billNoFormat = "DCDD";
|
|
|
+ this.form.businessTypeCode = "DCDD";
|
|
|
+ this.form.businessType = "DCDD"; // 对抵单
|
|
|
this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
this.form.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
@@ -1748,9 +1767,9 @@ export default {
|
|
|
// 请求的接口
|
|
|
// 确认签收接口
|
|
|
finstlbillsConfirmSignForfun() {
|
|
|
- this.form.billNoFormat = "HYDZ";
|
|
|
- this.form.businessTypeCode = "HYDZ";
|
|
|
- this.form.businessType = "DCDD"; //对账单
|
|
|
+ this.form.billNoFormat = "DCDD";
|
|
|
+ this.form.businessTypeCode = "DCDD";
|
|
|
+ this.form.businessType = "DCDD"; //对抵单
|
|
|
this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
this.form.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
@@ -1774,9 +1793,9 @@ export default {
|
|
|
},
|
|
|
// 撤销签收接口
|
|
|
finstlbillsRevokeSignForfun() {
|
|
|
- this.form.billNoFormat = "HYDZ";
|
|
|
- this.form.businessTypeCode = "HYDZ";
|
|
|
- this.form.businessType = "DCDD"; // 对账单
|
|
|
+ this.form.billNoFormat = "DCDD";
|
|
|
+ this.form.businessTypeCode = "DCDD";
|
|
|
+ this.form.businessType = "DCDD"; // 对抵单
|
|
|
this.form.businessTypes = this.form.businessTypes ? this.form.businessTypes.join(",") : ""; // 业务类型
|
|
|
this.form.feeCnName = this.form.feeCnName ? this.form.feeCnName.join(",") : "";
|
|
|
this.form.accountDateFrom = this.form.accountDateFrom ? this.form.accountDateFrom.slice(0, 10) + " 00:00:00" : null; // 财务开始日期
|
|
|
@@ -1804,7 +1823,7 @@ export default {
|
|
|
getWorkDicts("all_yes_no").then(res => {
|
|
|
this.allyesnoData = res.data.data;
|
|
|
});
|
|
|
- // 对账字典
|
|
|
+ // 对抵字典
|
|
|
getWorkDicts("los_check_status").then(res => {
|
|
|
this.isCheckedData = res.data.data;
|
|
|
});
|
|
|
@@ -1851,7 +1870,7 @@ export default {
|
|
|
this.srcData = res.data.data.records;
|
|
|
});
|
|
|
},
|
|
|
- // 获取对账单位数据
|
|
|
+ // 获取对抵单位数据
|
|
|
corpBcorpsListfun(cnName) {
|
|
|
getBcorpslistByType(1, 10, { cnName }).then(res => {
|
|
|
this.corpData = res.data.data.records;
|