|
|
@@ -2,10 +2,11 @@
|
|
|
<div>
|
|
|
<div class="customer-head">
|
|
|
<div class="customer-back">
|
|
|
- <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left" @click="goBack()">返回列表 </el-button>
|
|
|
+ <el-button type="danger" style="border: none; background: none; color: red" icon="el-icon-arrow-left" @click="goBack()">返回列表 </el-button>
|
|
|
<el-button v-if="form.id && pageIds.length" type="text" @click="lastPage">上一票</el-button>
|
|
|
<el-button v-if="form.id && pageIds.length" type="text" @click="nextPage">下一票</el-button>
|
|
|
</div>
|
|
|
+ <div class="customer-title">{{ form.operatingType }}</div>
|
|
|
<div class="add-customer-btn">
|
|
|
<el-button v-if="form.operatingType == '付费申请'" size="small" type="success" @click="allClick('查看指示')">查看指示</el-button>
|
|
|
<el-button type="success" size="small" v-if="form.operatingType == '销账'" @click="allClick('预付款')">预付款</el-button>
|
|
|
@@ -29,7 +30,7 @@
|
|
|
>撤销操作
|
|
|
</el-button>
|
|
|
<el-dropdown v-if="form.operatingStatus == 0" trigger="click" @command="moreClick">
|
|
|
- <el-button type="success" size="small" style="margin:0 8px;" :disabled="editButton"
|
|
|
+ <el-button type="success" size="small" style="margin: 0 8px" :disabled="editButton"
|
|
|
>更多操作<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
@@ -47,7 +48,7 @@
|
|
|
</div>
|
|
|
<div style="margin-top: 50px">
|
|
|
<el-card class="box-card">
|
|
|
- <avue-form :option="optionForm" v-model="form" ref="form">
|
|
|
+ <avue-form :option="optionForm" v-model="form" ref="avueForm">
|
|
|
<tempalte slot="corpCnName">
|
|
|
<dic-select
|
|
|
v-model="form.corpCnName"
|
|
|
@@ -65,7 +66,7 @@
|
|
|
></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="corpIsSigned">
|
|
|
- <div style="display: flex;">
|
|
|
+ <div style="display: flex">
|
|
|
<el-checkbox :true-label="1" :false-label="0" size="small" v-model="form.corpIsSigned" disabled>已签约 </el-checkbox>
|
|
|
<el-input v-model="form.isSignedPersonName" placeholder="请输入 签约人" size="small" disabled></el-input>
|
|
|
</div>
|
|
|
@@ -129,13 +130,13 @@
|
|
|
:disabled="editDisabled"
|
|
|
></date-range>
|
|
|
</tempalte>
|
|
|
- <tempalte slot="Btn" style="display: flex;justify-content: flex-end;">
|
|
|
+ <tempalte slot="Btn" style="display: flex; justify-content: flex-end">
|
|
|
<el-button type="primary" size="mini" icon="el-icon-search" @click="allClick('检索')" :disabled="editDisabled">检索</el-button>
|
|
|
<el-button size="mini" @click="allClick('重置条件')" :disabled="editDisabled || form.finStlBillsItemsList.length">重置条件</el-button>
|
|
|
</tempalte>
|
|
|
</avue-form>
|
|
|
</el-card>
|
|
|
- <el-tabs style="margin-top: 2px;" class="box-tabs" type="border-card" v-model="activeName" @tab-click="handleClick">
|
|
|
+ <el-tabs style="margin-top: 2px" class="box-tabs" type="border-card" v-model="activeName" @tab-click="handleClick">
|
|
|
<el-tab-pane label="查询结果" name="1">
|
|
|
<query-data ref="queryData" :form="form" :tableData="form.finStlBillsItemsList" @update="update" :disabled="editDisabled"></query-data>
|
|
|
</el-tab-pane>
|
|
|
@@ -143,7 +144,7 @@
|
|
|
<picked-data ref="pickedData" :form="form" :tableData="form.finStlBillsItemsList" @update="update" :disabled="editButton"></picked-data>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="开票明细" name="3">
|
|
|
- <fininvoiceitemdetail :form="form" :data="form.finInvoiceItemDetailList" @update="update" :disabled="form.operatingStatus!=0">
|
|
|
+ <fininvoiceitemdetail :form="form" :data="form.finInvoiceItemDetailList" @update="update" :disabled="form.operatingStatus != 0">
|
|
|
</fininvoiceitemdetail
|
|
|
></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
@@ -184,7 +185,7 @@ import {
|
|
|
finInvoicesApprove,
|
|
|
revokeFinInvoicesApprove,
|
|
|
agreementListAll,
|
|
|
- finstlbillslistAccBillByCorp
|
|
|
+ finstlbillslistAccBillByCorp,
|
|
|
} from "@/api/iosBasicData/finstlbills";
|
|
|
import { confirmWriteOff, revokeWriteOff } from "@/api/iosBasicData/writeOff.js";
|
|
|
import { getListAllDetail } from "@/api/iosBasicData/cashier.js";
|
|
|
@@ -205,7 +206,7 @@ export default {
|
|
|
isInvoice: 2,
|
|
|
finStlBillsItemsList: [],
|
|
|
finInvoiceItemDetailList: [],
|
|
|
- advancePaymentRecordList: []
|
|
|
+ advancePaymentRecordList: [],
|
|
|
},
|
|
|
optionForm: {
|
|
|
menuBtn: false,
|
|
|
@@ -215,8 +216,8 @@ export default {
|
|
|
column: [
|
|
|
{
|
|
|
label: "对账单号",
|
|
|
- prop: "checkNo",
|
|
|
- disabled: true
|
|
|
+ prop: "billNo",
|
|
|
+ disabled: true,
|
|
|
},
|
|
|
{
|
|
|
label: "对账日期",
|
|
|
@@ -224,17 +225,17 @@ export default {
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd 00:00:00",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "限定金额",
|
|
|
prop: "limitedAmount",
|
|
|
- disabled: true
|
|
|
+ disabled: true,
|
|
|
},
|
|
|
{
|
|
|
label: "备注",
|
|
|
prop: "remarks",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "审核",
|
|
|
@@ -243,40 +244,41 @@ export default {
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "全部",
|
|
|
- value: 2
|
|
|
+ value: 2,
|
|
|
},
|
|
|
{
|
|
|
label: "是",
|
|
|
- value: 1
|
|
|
+ value: 1,
|
|
|
},
|
|
|
{
|
|
|
label: "否",
|
|
|
- value: 0
|
|
|
- }
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
],
|
|
|
disabled: false,
|
|
|
- span: 4
|
|
|
+ value: 2,
|
|
|
+ span: 4,
|
|
|
},
|
|
|
{
|
|
|
label: "对账单位",
|
|
|
prop: "corpCnName",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "账期备注",
|
|
|
prop: "corpAccRemarks",
|
|
|
- disabled: true
|
|
|
+ disabled: true,
|
|
|
},
|
|
|
{
|
|
|
label: "",
|
|
|
labelWidth: 0,
|
|
|
prop: "corpIsSigned",
|
|
|
- disabled: true
|
|
|
+ disabled: true,
|
|
|
},
|
|
|
{
|
|
|
label: "预收账款",
|
|
|
prop: "advanceFromCustomers",
|
|
|
- disabled: true
|
|
|
+ disabled: true,
|
|
|
},
|
|
|
{
|
|
|
label: "签收",
|
|
|
@@ -285,21 +287,21 @@ export default {
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "全部",
|
|
|
- value: 2
|
|
|
+ value: 2,
|
|
|
},
|
|
|
{
|
|
|
label: "是",
|
|
|
- value: 1
|
|
|
+ value: 1,
|
|
|
},
|
|
|
{
|
|
|
label: "否",
|
|
|
- value: 0
|
|
|
- }
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
],
|
|
|
disabled: false,
|
|
|
- span: 4
|
|
|
- }
|
|
|
- ]
|
|
|
+ span: 4,
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
optionForm2: {
|
|
|
menuBtn: false,
|
|
|
@@ -314,15 +316,15 @@ export default {
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "收",
|
|
|
- value: "D"
|
|
|
+ value: "D",
|
|
|
},
|
|
|
{
|
|
|
label: "付",
|
|
|
- value: "C"
|
|
|
- }
|
|
|
+ value: "C",
|
|
|
+ },
|
|
|
],
|
|
|
disabled: false,
|
|
|
- span: 3
|
|
|
+ span: 3,
|
|
|
},
|
|
|
{
|
|
|
label: "币别",
|
|
|
@@ -333,20 +335,20 @@ export default {
|
|
|
props: {
|
|
|
label: "code",
|
|
|
value: "code",
|
|
|
- res: "data.records"
|
|
|
+ res: "data.records",
|
|
|
},
|
|
|
disabled: false,
|
|
|
- span: 2
|
|
|
+ span: 2,
|
|
|
},
|
|
|
{
|
|
|
label: "操作员",
|
|
|
prop: "updateUserName",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "业务员",
|
|
|
prop: "srcCnName",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "业务类型",
|
|
|
@@ -355,18 +357,18 @@ export default {
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "海运出口",
|
|
|
- value: "SE"
|
|
|
+ value: "SE",
|
|
|
},
|
|
|
{
|
|
|
label: "海运进口",
|
|
|
- value: "SI"
|
|
|
- }
|
|
|
+ value: "SI",
|
|
|
+ },
|
|
|
],
|
|
|
filterable: true,
|
|
|
multiple: true,
|
|
|
dataType: "string",
|
|
|
tags: true,
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "对账",
|
|
|
@@ -375,39 +377,39 @@ export default {
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "全部",
|
|
|
- value: 2
|
|
|
+ value: 2,
|
|
|
},
|
|
|
{
|
|
|
label: "是",
|
|
|
- value: 1
|
|
|
+ value: 1,
|
|
|
},
|
|
|
{
|
|
|
label: "否",
|
|
|
- value: 0
|
|
|
- }
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
],
|
|
|
disabled: false,
|
|
|
- span: 4
|
|
|
+ span: 4,
|
|
|
},
|
|
|
{
|
|
|
label: "业务编号",
|
|
|
prop: "businessNo",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "主单号",
|
|
|
prop: "mblno",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "分单号",
|
|
|
prop: "hblno",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "订舱号",
|
|
|
prop: "bookingNumber",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "销账",
|
|
|
@@ -416,34 +418,34 @@ export default {
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "全部",
|
|
|
- value: 2
|
|
|
+ value: 2,
|
|
|
},
|
|
|
{
|
|
|
label: "是",
|
|
|
- value: 1
|
|
|
+ value: 1,
|
|
|
},
|
|
|
{
|
|
|
label: "否",
|
|
|
- value: 0
|
|
|
- }
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
],
|
|
|
disabled: false,
|
|
|
- span: 4
|
|
|
+ span: 4,
|
|
|
},
|
|
|
{
|
|
|
label: "ETD期间",
|
|
|
prop: "businessDate", // businessDate只是插槽值 字段为 businessDateStart businessDateEnd
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "审核日期",
|
|
|
prop: "auditDate", //auditDate只是插槽值 字段为 auditDateFrom auditDateTo
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "签收日期",
|
|
|
prop: "signForDate", //signForDate只是插槽值 字段为 signForDateStart signForDateEnd
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "费用名称",
|
|
|
@@ -452,13 +454,13 @@ export default {
|
|
|
dicUrl: "/api/blade-los/bfees/listAll",
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
- value: "cnName"
|
|
|
+ value: "cnName",
|
|
|
},
|
|
|
filterable: true,
|
|
|
multiple: true,
|
|
|
dataType: "string",
|
|
|
tags: true,
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "发票",
|
|
|
@@ -467,57 +469,57 @@ export default {
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "全部",
|
|
|
- value: 2
|
|
|
+ value: 2,
|
|
|
},
|
|
|
{
|
|
|
label: "是",
|
|
|
- value: 1
|
|
|
+ value: 1,
|
|
|
},
|
|
|
{
|
|
|
label: "否",
|
|
|
- value: 0
|
|
|
- }
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
],
|
|
|
disabled: false,
|
|
|
- span: 4
|
|
|
+ span: 4,
|
|
|
},
|
|
|
{
|
|
|
label: "船名",
|
|
|
prop: "vesselCnName",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "航次",
|
|
|
prop: "voyageNo",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "发票号",
|
|
|
prop: "invoiceNo",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "查询金额",
|
|
|
prop: "checkBalance",
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
},
|
|
|
{
|
|
|
label: "",
|
|
|
prop: "Btn",
|
|
|
labelWidth: 0,
|
|
|
- span: 4
|
|
|
- }
|
|
|
- ]
|
|
|
+ span: 4,
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
dcOptions: [
|
|
|
{
|
|
|
label: "收",
|
|
|
- value: "D"
|
|
|
+ value: "D",
|
|
|
},
|
|
|
{
|
|
|
label: "付",
|
|
|
- value: "C"
|
|
|
- }
|
|
|
+ value: "C",
|
|
|
+ },
|
|
|
],
|
|
|
retrievePopupsType: false, // 弹窗开启关闭
|
|
|
retrievePopupsData: [], // 选择弹窗数据
|
|
|
@@ -538,17 +540,17 @@ export default {
|
|
|
{
|
|
|
label: "客户中文名",
|
|
|
prop: "cnName",
|
|
|
- overHidden: true
|
|
|
+ overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "客户英文文名",
|
|
|
prop: "cnEame",
|
|
|
- overHidden: true
|
|
|
- }
|
|
|
- ]
|
|
|
+ overHidden: true,
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
roleName: localStorage.getItem("roleName").split(","),
|
|
|
- saberUserInfo: JSON.parse(localStorage.getItem("saber-userInfo")).content // 当前登录人个人信息
|
|
|
+ saberUserInfo: JSON.parse(localStorage.getItem("saber-userInfo")).content, // 当前登录人个人信息
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
@@ -558,14 +560,14 @@ export default {
|
|
|
dateRange,
|
|
|
cashierItem,
|
|
|
fininvoiceitemdetail,
|
|
|
- advancePayment
|
|
|
+ advancePayment,
|
|
|
},
|
|
|
props: {
|
|
|
detailData: Object,
|
|
|
pageIds: {
|
|
|
type: Array, // 指定 prop 的类型为 Array
|
|
|
- default: () => [] // 提供一个默认值,这里使用函数形式返回一个空数组
|
|
|
- }
|
|
|
+ default: () => [], // 提供一个默认值,这里使用函数形式返回一个空数组
|
|
|
+ },
|
|
|
},
|
|
|
async created() {
|
|
|
if (this.detailData && this.detailData.id) {
|
|
|
@@ -601,7 +603,7 @@ export default {
|
|
|
this.editButton = false;
|
|
|
//管理员 允许修改他人业务 本人单据可以编辑
|
|
|
if (this.roleName.includes("admin") || this.roleName.includes("允许修改他人业务") || this.saberUserInfo.user_id == this.form.createUser) {
|
|
|
- if (this.form.finStlBillsItemsList.filter(item => item.isChecked == 1).length == 0) {
|
|
|
+ if (this.form.finStlBillsItemsList.filter((item) => item.isChecked == 1).length == 0) {
|
|
|
this.editDisabled = false;
|
|
|
this.optionForm.disabled = false;
|
|
|
this.optionForm2.disabled = false;
|
|
|
@@ -626,7 +628,7 @@ export default {
|
|
|
businessTypeCode: "HYDZ",
|
|
|
businessType: "CHK",
|
|
|
url: "/iosBasicData/financialManagement/finstlbills/index",
|
|
|
- pageLabel: "对账中心(J)"
|
|
|
+ pageLabel: "对账中心(J)",
|
|
|
};
|
|
|
if (name == "付费申请") {
|
|
|
this.$refs.cashier.openDialog(this.form, this.form.finStlBillsItemsList, "auto");
|
|
|
@@ -650,10 +652,10 @@ export default {
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
confirmOffset(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -686,10 +688,10 @@ export default {
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
finInvoicesApprove(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -711,9 +713,9 @@ export default {
|
|
|
this.form.isSignedPersonName = null;
|
|
|
let obj = {
|
|
|
corpId: row.id,
|
|
|
- validDate: dateFormat(new Date(), "yyyy-MM-dd")
|
|
|
+ validDate: dateFormat(new Date(), "yyyy-MM-dd"),
|
|
|
};
|
|
|
- agreementListAll(obj).then(res => {
|
|
|
+ agreementListAll(obj).then((res) => {
|
|
|
if (res.data.data.length) {
|
|
|
let obj = res.data.data[0];
|
|
|
let USDTEXT = obj.amountUsd ? "USD:" + Number(obj.amountUsd) : "";
|
|
|
@@ -757,7 +759,21 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- allClick(name) {
|
|
|
+ // 重置数据
|
|
|
+ reloadData() {
|
|
|
+ this.form = {
|
|
|
+ billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00", // 对账日期 默认 当天
|
|
|
+ isApproved: 2,
|
|
|
+ isSignfor: 0,
|
|
|
+ isChecked: 2,
|
|
|
+ isCleared: 2,
|
|
|
+ isInvoice: 2,
|
|
|
+ finStlBillsItemsList: [],
|
|
|
+ finInvoiceItemDetailList: [],
|
|
|
+ advancePaymentRecordList: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ async allClick(name) {
|
|
|
if (name == "预付款") {
|
|
|
this.$refs.advance.openDialog(this.form);
|
|
|
}
|
|
|
@@ -775,8 +791,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (name == "重置条件") {
|
|
|
- this.$refs.form.resetForm();
|
|
|
- this.form = this.$options.data().form;
|
|
|
+ await this.$refs.avueForm.resetForm()
|
|
|
+ this.form = this.$options.data().form;
|
|
|
}
|
|
|
if (name == "查看指示") {
|
|
|
this.$refs.cashier.openDialog(this.form, this.form.finStlBillsItemsList, "view");
|
|
|
@@ -785,51 +801,62 @@ export default {
|
|
|
if (this.form.finStlBillsItemsList.length == 0) {
|
|
|
return this.$message.error("选定数据不能为空");
|
|
|
}
|
|
|
- getListAllDetail({ srcId: this.form.id }).then(res => {
|
|
|
- if (
|
|
|
- Number(this.form.amountDr) != Number(this.form.actualAmountDr) ||
|
|
|
- Number(this.form.amountCr) != Number(this.form.actualAmountCr) ||
|
|
|
- Number(this.form.amountDrUsd) != Number(this.form.actualAmountDrUsd) ||
|
|
|
- Number(this.form.amountCrUsd) != Number(this.form.actualAmountCrUsd)
|
|
|
- ) {
|
|
|
- this.$confirm("对账金额与实际支付金额不相等,是否确认对账?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- this.confirm();
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$confirm("确定进行确认完成操作?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- this.confirm();
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if (this.form.dc == "C") {
|
|
|
+ getListAllDetail({ srcId: this.form.id }).then((res) => {
|
|
|
+ if (
|
|
|
+ Number(this.form.amountDr) != Number(this.form.actualAmountDr) ||
|
|
|
+ Number(this.form.amountCr) != Number(this.form.actualAmountCr) ||
|
|
|
+ Number(this.form.amountDrUsd) != Number(this.form.actualAmountDrUsd) ||
|
|
|
+ Number(this.form.amountCrUsd) != Number(this.form.actualAmountCrUsd)
|
|
|
+ ) {
|
|
|
+ this.$confirm("对账金额与实际支付金额不相等,是否确认对账?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.confirm();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$confirm("确定进行确认完成操作?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.confirm();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.form.dc == "D") {
|
|
|
+ this.$confirm("确定进行确认完成操作?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.confirm();
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
if (name == "撤销完成") {
|
|
|
this.$confirm("确定进行撤销对账操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ type: "warning",
|
|
|
}).then(() => {
|
|
|
let obj = {
|
|
|
...this.form,
|
|
|
billNoFormat: "HYDZ",
|
|
|
businessTypeCode: "HYDZ",
|
|
|
- businessType: "CHK"
|
|
|
+ businessType: "CHK",
|
|
|
};
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
finstlbillsRevokeReconciliation(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -842,23 +869,23 @@ export default {
|
|
|
this.$confirm("确定进行撤销申请操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ type: "warning",
|
|
|
}).then(() => {
|
|
|
let obj = {
|
|
|
...this.form,
|
|
|
billNoFormat: "HYDZ",
|
|
|
businessTypeCode: "HYDZ",
|
|
|
- businessType: "CHK"
|
|
|
+ businessType: "CHK",
|
|
|
};
|
|
|
if (this.form.operatingType == "付费申请") {
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
revokeSettlementApprove(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -871,10 +898,10 @@ export default {
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
revokeOffset(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -887,10 +914,10 @@ export default {
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
revokeWriteOff(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -903,10 +930,10 @@ export default {
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
revokeFinInvoicesApprove(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -943,9 +970,9 @@ export default {
|
|
|
businessDateEnd: this.form.businessDateEnd, // 业务结束日期
|
|
|
approveTimeStart: this.form.auditDateFrom, // 审核开始日期
|
|
|
approveTimeEnd: this.form.auditDateTo, // 审核结束日期
|
|
|
- feeCnName: this.form.feeCnName
|
|
|
+ feeCnName: this.form.feeCnName,
|
|
|
};
|
|
|
- finstlbillslistAccBillByCorp(obj).then(res => {
|
|
|
+ finstlbillslistAccBillByCorp(obj).then((res) => {
|
|
|
this.retrievePopupsType = true;
|
|
|
this.retrievePopupsData = res.data.data;
|
|
|
});
|
|
|
@@ -962,9 +989,9 @@ export default {
|
|
|
this.form.isSignedPersonName = null;
|
|
|
let obj = {
|
|
|
corpId: row.id,
|
|
|
- validDate: dateFormat(new Date(), "yyyy-MM-dd")
|
|
|
+ validDate: dateFormat(new Date(), "yyyy-MM-dd"),
|
|
|
};
|
|
|
- agreementListAll(obj).then(res => {
|
|
|
+ agreementListAll(obj).then((res) => {
|
|
|
if (res.data.data.length) {
|
|
|
let obj = res.data.data[0];
|
|
|
let USDTEXT = obj.amountUsd ? "USD:" + Number(obj.amountUsd) : "";
|
|
|
@@ -988,16 +1015,16 @@ export default {
|
|
|
businessTypeCode: "HYDZ",
|
|
|
businessType: "CHK",
|
|
|
url: "/iosBasicData/financialManagement/finstlbills/index",
|
|
|
- pageLabel: "对账中心(J)"
|
|
|
+ pageLabel: "对账中心(J)",
|
|
|
};
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
finstlbillsConfirmReconciliation(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -1019,16 +1046,16 @@ export default {
|
|
|
businessTypeCode: "HYDZ",
|
|
|
businessType: "CHK",
|
|
|
url: "/iosBasicData/financialManagement/finstlbills/index",
|
|
|
- pageLabel: "对账中心(J)"
|
|
|
+ pageLabel: "对账中心(J)",
|
|
|
};
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
confirmWriteOff(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(this.form.id);
|
|
|
})
|
|
|
@@ -1058,16 +1085,16 @@ export default {
|
|
|
...this.form,
|
|
|
billNoFormat: "HYDZ",
|
|
|
businessTypeCode: "HYDZ",
|
|
|
- businessType: "CHK"
|
|
|
+ businessType: "CHK",
|
|
|
};
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
finstlbillsSubmit(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.getDetail(res.data.data.id);
|
|
|
})
|
|
|
@@ -1087,33 +1114,37 @@ export default {
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
+ background: "rgba(255,255,255,0.7)",
|
|
|
});
|
|
|
finstlbillsDetail(id)
|
|
|
- .then(res => {
|
|
|
- res.data.data.finStlBillsItemsList.forEach(item => {
|
|
|
+ .then((res) => {
|
|
|
+ res.data.data.finStlBillsItemsList.forEach((item) => {
|
|
|
if (item.curCode == "CNY") {
|
|
|
this.$set(item, "amountRMB", item.amount);
|
|
|
this.$set(item, "currentInvoiceAmountRMB", Number(item.currentInvoiceAmount ? item.currentInvoiceAmount : 0));
|
|
|
this.$set(item, "unsettledAmountRMB", Number(item.amount ? item.amount : 0));
|
|
|
this.$set(item, "currentStlAmountRMB", Number(item.currentStlAmount ? item.currentStlAmount : 0));
|
|
|
this.$set(item, "currentStlAmountUSD", Number(0));
|
|
|
+ this.$set(item, "stlAmountDr", Number(item.stlTtlAmount ? item.stlTtlAmount : 0));
|
|
|
+ this.$set(item, "stlAmountDrUSD", Number(0));
|
|
|
} else {
|
|
|
this.$set(item, "amountUSD", item.amount);
|
|
|
this.$set(item, "currentInvoiceAmountUSD", item.currentInvoiceAmount);
|
|
|
this.$set(item, "unsettledAmountUSD", Number(item.amount ? item.amount : 0));
|
|
|
this.$set(item, "currentStlAmountUSD", Number(item.currentStlAmount ? item.currentStlAmount : 0));
|
|
|
this.$set(item, "currentStlAmountRMB", Number(0));
|
|
|
+ this.$set(item, "stlAmountDr", Number(0));
|
|
|
+ this.$set(item, "stlAmountDrUSD", Number(item.stlTtlAmount ? item.stlTtlAmount : 0));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (type == "对账") {
|
|
|
- if (res.data.data.finStlBillsItemsList.filter(item => item.isChecked == 1).length) {
|
|
|
+ if (res.data.data.finStlBillsItemsList.filter((item) => item.isChecked == 1).length) {
|
|
|
this.editDisabled = true;
|
|
|
this.optionForm.disabled = true;
|
|
|
this.optionForm2.disabled = true;
|
|
|
}
|
|
|
- if (res.data.data.finStlBillsItemsList.length && res.data.data.finStlBillsItemsList.filter(item => item.isChecked == 1).length == 0) {
|
|
|
+ if (res.data.data.finStlBillsItemsList.length && res.data.data.finStlBillsItemsList.filter((item) => item.isChecked == 1).length == 0) {
|
|
|
this.editDisabled = false;
|
|
|
this.optionForm.disabled = false;
|
|
|
this.optionForm2.disabled = false;
|
|
|
@@ -1144,9 +1175,9 @@ export default {
|
|
|
},
|
|
|
goBack(type) {
|
|
|
this.$emit("goBack");
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
- watch: {}
|
|
|
+ watch: {},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
@@ -1221,4 +1252,11 @@ export default {
|
|
|
font-size: 16px;
|
|
|
color: #54bcbd;
|
|
|
}
|
|
|
+.customer-title {
|
|
|
+ position: absolute;
|
|
|
+ top: 12px;
|
|
|
+ z-index: 1000;
|
|
|
+ left: calc(50% - 175px);
|
|
|
+ color: #67c23a;
|
|
|
+}
|
|
|
</style>
|