|
|
@@ -167,14 +167,7 @@
|
|
|
@click="allClick('D申请删除')"
|
|
|
>{{ $t("btn118n.applyDelete") }}</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- plain
|
|
|
- size="small"
|
|
|
- :disabled="selectionDList.length != 1 || disabled || isFeedDisabled"
|
|
|
- @click="allClick('D取消申请')"
|
|
|
- >{{ $t("btn118n.unAplly") }}</el-button
|
|
|
- >
|
|
|
+ <el-button plain size="small" :disabled="disabled || isFeedDisabled" @click="allClick('同步结算单位', 'D')">同步收费对象</el-button>
|
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="scope">
|
|
|
<el-button v-if="isFeeEditD" type="primary" size="small" icon="el-icon-plus" circle :disabled="disabled" @click="addDfun"></el-button>
|
|
|
@@ -495,6 +488,7 @@
|
|
|
@click="allClick('C取消申请')"
|
|
|
>{{ $t("btn118n.unAplly") }}</el-button
|
|
|
>
|
|
|
+ <el-button plain size="small" :disabled="disabled || isFeecDisabled" @click="allClick('同步结算单位', 'C')">同步付费对象</el-button>
|
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="scope">
|
|
|
<el-button v-if="isFeeEditC" type="primary" size="small" icon="el-icon-plus" circle :disabled="disabled" @click="addCfun"> </el-button>
|
|
|
@@ -1019,6 +1013,7 @@
|
|
|
pageLabel="海运出口(F)"
|
|
|
></fee-modify>
|
|
|
<fee-modify-view ref="feeModifyView" :form="assemblyForm"></fee-modify-view>
|
|
|
+ <sysn-corpName ref="sysnCorpName" @update="getData"></sysn-corpName>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -1038,7 +1033,8 @@ import {
|
|
|
finaccbillsRevokeBill,
|
|
|
getFeeCenterCorpIds,
|
|
|
pleaseVerifyCost,
|
|
|
- revokeCheckPleaseVerifyCost
|
|
|
+ revokeCheckPleaseVerifyCost,
|
|
|
+ synchronizationPrompt
|
|
|
} from "@/api/iosBasicData/feecenter";
|
|
|
import { getWorkDicts } from "@/api/system/dictbiz";
|
|
|
import { feecenterTemplateImport, listFeeCountByCorp, losbfeestemplateGetListTemplate, templateImportBatch } from "@/api/iosBasicData/bills";
|
|
|
@@ -1059,9 +1055,10 @@ import mailComponent from "@/components/iosbasic-data/mail-component.vue";
|
|
|
import { getListTemplate, getListTemplatelist } from "@/api/iosBasicData/losbfeestemplate";
|
|
|
import feeModify from "@/components/feeModify/main.vue";
|
|
|
import feeModifyView from "@/components/feeModify/view.vue";
|
|
|
+import sysnCorpName from "./sysnCorpName"
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
- components: { extractionCost, dicSelect, reportContainer, SearchQuery, reportformsList, mailComponent, feeModify, feeModifyView },
|
|
|
+ components: { extractionCost, dicSelect, reportContainer, SearchQuery, reportformsList, mailComponent, feeModify, feeModifyView,sysnCorpName },
|
|
|
props: {
|
|
|
pid: {},
|
|
|
assemblyForm: {
|
|
|
@@ -2273,7 +2270,7 @@ export default {
|
|
|
this.updateSearchKey = new Date().getTime();
|
|
|
} else if (row.cnName == "场站") {
|
|
|
el.corpId = this.assemblyForm.cyId;
|
|
|
- el.shortName = this.assemblyForm.cyShortName;
|
|
|
+ el.shortName = this.assemblyForm.cyCnName;
|
|
|
el.corpCnName = this.assemblyForm.cyCnName;
|
|
|
el.corpEnName = this.assemblyForm.cyEnName;
|
|
|
this.updateSearchKey = new Date().getTime();
|
|
|
@@ -2283,6 +2280,12 @@ export default {
|
|
|
el.corpCnName = this.assemblyForm.shippingAgencyCname;
|
|
|
el.corpEnName = this.assemblyForm.shippingAgencyEname;
|
|
|
this.updateSearchKey = new Date().getTime();
|
|
|
+ } else if (row.cnName == "订舱代理") {
|
|
|
+ el.corpId = this.assemblyForm.bookingAgentId;
|
|
|
+ el.shortName = this.assemblyForm.bookingAgentCnName;
|
|
|
+ el.corpCnName = this.assemblyForm.bookingAgentCnName;
|
|
|
+ el.corpEnName = this.assemblyForm.bookingAgentEnName;
|
|
|
+ this.updateSearchKey = new Date().getTime();
|
|
|
} else {
|
|
|
el.corpId = null;
|
|
|
el.shortName = null;
|
|
|
@@ -3727,11 +3730,16 @@ export default {
|
|
|
this.$emit("billsDetailfun");
|
|
|
},
|
|
|
allClick(name, type) {
|
|
|
+ if (name == "同步结算单位") {
|
|
|
+ this.$refs.sysnCorpName.openDialog(this.assemblyForm.id,type)
|
|
|
+ synchronizationPrompt(obj);
|
|
|
+ }
|
|
|
if (name == "付费申请") {
|
|
|
if (this.selectionCList.length == 0) return this.$message.error("请选择费用");
|
|
|
if (this.selectionCList.filter(e => e.auditStatus != 4).length) return this.$message.error("请选择审核通过的费用");
|
|
|
- if (this.selectionCList.length != this.selectionCList.filter(e => e.corpCnName == this.selectionCList[0].corpCnName).length)
|
|
|
+ if (this.selectionCList.length != this.selectionCList.filter(e => e.corpId == this.selectionCList[0].corpId).length) {
|
|
|
return this.$message.error("请选择相同的结算单位");
|
|
|
+ }
|
|
|
if (this.$store.getters.payAppStatus) {
|
|
|
this.$alert("付费申请页面已存在,请关闭付费申请再进行操作", "温馨提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -3752,8 +3760,14 @@ export default {
|
|
|
}
|
|
|
if (name == "发票申请") {
|
|
|
if (this.selectionDList.length == 0) return this.$message.error("请选择费用");
|
|
|
- if (this.selectionDList.length != this.selectionDList.filter(e => e.corpCnName == this.selectionDList[0].corpCnName).length)
|
|
|
+ console.log(
|
|
|
+ this.selectionDList,
|
|
|
+ this.selectionDList.filter(e => e.corpId == this.selectionDList[0].corpId)
|
|
|
+ );
|
|
|
+ if (this.selectionDList.length != this.selectionDList.filter(e => e.corpId == this.selectionDList[0].corpId).length) {
|
|
|
return this.$message.error("请选择相同的结算单位");
|
|
|
+ }
|
|
|
+
|
|
|
if (this.selectionDList.filter(e => e.auditStatus != 4).length) return this.$message.error("请选择审核通过的费用");
|
|
|
if (this.$store.getters.finappStatus) {
|
|
|
this.$alert("发票申请页面已存在,请关闭发票申请再进行操作", "温馨提示", {
|