|
|
@@ -176,7 +176,14 @@
|
|
|
>{{ $t("btn118n.unAplly") }}</el-button
|
|
|
>
|
|
|
<el-button plain size="small" :disabled="disabled || isFeedDisabled" @click="allClick('同步结算单位', 'D')">同步收费对象</el-button>
|
|
|
- <el-button type="success" plain size="small" :disabled="selectionDList.length == 0" @click="allClick('存为模板', 'D')">存为模板</el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ size="small"
|
|
|
+ :disabled="assemblyForm.feeCenterListD.filter(item => item.id).length == 0"
|
|
|
+ @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>
|
|
|
@@ -523,7 +530,14 @@
|
|
|
>
|
|
|
<el-button plain size="small" :disabled="disabled || isFeecDisabled" @click="allClick('同步结算单位', 'C')">同步付费对象</el-button>
|
|
|
|
|
|
- <el-button type="success" plain size="small" :disabled="selectionCList.length == 0" @click="allClick('存为模板', 'C')">存为模板</el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ size="small"
|
|
|
+ :disabled="assemblyForm.feeCenterListC.filter(item => item.id).length == 0"
|
|
|
+ @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>
|
|
|
@@ -1076,6 +1090,7 @@
|
|
|
></fee-modify>
|
|
|
<fee-modify-view ref="feeModifyView" :form="assemblyForm"></fee-modify-view>
|
|
|
<sysn-corpName ref="sysnCorpName" @update="getData"></sysn-corpName>
|
|
|
+ <cost-template ref="costTemplate"></cost-template>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -1120,9 +1135,21 @@ import { getListTemplate, getListTemplatelist } from "@/api/iosBasicData/losbfee
|
|
|
import feeModify from "@/components/feeModify/main.vue";
|
|
|
import feeModifyView from "@/components/feeModify/view.vue";
|
|
|
import sysnCorpName from "./sysnCorpName";
|
|
|
+import costTemplate from "./components/costTemplate.vue";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
- components: { extractionCost, dicSelect, reportContainer, SearchQuery, reportformsList, mailComponent, feeModify, feeModifyView, sysnCorpName },
|
|
|
+ components: {
|
|
|
+ extractionCost,
|
|
|
+ dicSelect,
|
|
|
+ reportContainer,
|
|
|
+ SearchQuery,
|
|
|
+ reportformsList,
|
|
|
+ mailComponent,
|
|
|
+ feeModify,
|
|
|
+ feeModifyView,
|
|
|
+ sysnCorpName,
|
|
|
+ costTemplate
|
|
|
+ },
|
|
|
props: {
|
|
|
pid: {},
|
|
|
assemblyForm: {
|
|
|
@@ -2658,6 +2685,11 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ for (let item of selection) {
|
|
|
+ if (item.automaticGenerated == 1) {
|
|
|
+ return this.$message.error("系统生成的数据不允许生成");
|
|
|
+ }
|
|
|
+ }
|
|
|
let arr = selection.map(item => {
|
|
|
let obj = {};
|
|
|
if (dc == "C") {
|
|
|
@@ -3909,63 +3941,64 @@ export default {
|
|
|
},
|
|
|
allClick(name, type) {
|
|
|
if (name == "存为模板") {
|
|
|
- this.$DialogForm.show({
|
|
|
- title: "费用模板",
|
|
|
- width: "30%",
|
|
|
- menuPosition: "right",
|
|
|
- submitText: "保存",
|
|
|
- option: {
|
|
|
- submitText: "确定",
|
|
|
- emptyText: "取消",
|
|
|
- labelWidth: 130,
|
|
|
- column: [
|
|
|
- {
|
|
|
- label: "模版编号",
|
|
|
- span: 24,
|
|
|
- prop: "code",
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "请选择日期",
|
|
|
- trigger: "blur"
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- label: "模版中文名称",
|
|
|
- span: 24,
|
|
|
- prop: "cnName",
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "请输入模版中文名称",
|
|
|
- trigger: "blur"
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- label: "模版英文名称",
|
|
|
- span: 24,
|
|
|
- prop: "enName",
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "请输入模版英文名称",
|
|
|
- trigger: "blur"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- beforeClose: done => {
|
|
|
- done();
|
|
|
- },
|
|
|
- callback: res => {
|
|
|
- res.done();
|
|
|
- let obj = {};
|
|
|
- res.close();
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$refs.costTemplate.openDialog(this.assemblyForm, type);
|
|
|
+ // this.$DialogForm.show({
|
|
|
+ // title: "费用模板",
|
|
|
+ // width: "30%",
|
|
|
+ // menuPosition: "right",
|
|
|
+ // submitText: "保存",
|
|
|
+ // option: {
|
|
|
+ // submitText: "确定",
|
|
|
+ // emptyText: "取消",
|
|
|
+ // labelWidth: 130,
|
|
|
+ // column: [
|
|
|
+ // {
|
|
|
+ // label: "模版编号",
|
|
|
+ // span: 24,
|
|
|
+ // prop: "code",
|
|
|
+ // rules: [
|
|
|
+ // {
|
|
|
+ // required: true,
|
|
|
+ // message: "请选择日期",
|
|
|
+ // trigger: "blur"
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "模版中文名称",
|
|
|
+ // span: 24,
|
|
|
+ // prop: "cnName",
|
|
|
+ // rules: [
|
|
|
+ // {
|
|
|
+ // required: true,
|
|
|
+ // message: "请输入模版中文名称",
|
|
|
+ // trigger: "blur"
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "模版英文名称",
|
|
|
+ // span: 24,
|
|
|
+ // prop: "enName",
|
|
|
+ // rules: [
|
|
|
+ // {
|
|
|
+ // required: true,
|
|
|
+ // message: "请输入模版英文名称",
|
|
|
+ // trigger: "blur"
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
+ // beforeClose: done => {
|
|
|
+ // done();
|
|
|
+ // },
|
|
|
+ // callback: res => {
|
|
|
+ // res.done();
|
|
|
+ // let obj = {};
|
|
|
+ // res.close();
|
|
|
+ // }
|
|
|
+ // });
|
|
|
}
|
|
|
if (name == "同步结算单位") {
|
|
|
this.$refs.sysnCorpName.openDialog(this.assemblyForm.id, type);
|
|
|
@@ -3976,6 +4009,9 @@ export default {
|
|
|
if (this.selectionCList.length != this.selectionCList.filter(e => e.corpId == this.selectionCList[0].corpId).length) {
|
|
|
return this.$message.error("请选择相同的结算单位");
|
|
|
}
|
|
|
+ if (this.selectionCList.filter(item => item.automaticGenerated == 1 && item.feeCnName == "超期箱使费").length) {
|
|
|
+ return this.$message.error("系统生成的超期箱使费不允许申请");
|
|
|
+ }
|
|
|
if (this.$store.getters.payAppStatus) {
|
|
|
this.$alert("付费申请页面已存在,请关闭付费申请再进行操作", "温馨提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -3996,15 +4032,13 @@ export default {
|
|
|
}
|
|
|
if (name == "发票申请") {
|
|
|
if (this.selectionDList.length == 0) return this.$message.error("请选择费用");
|
|
|
- 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.selectionDList.filter(item => item.automaticGenerated == 1 && item.feeCnName == "超期箱使费").length) {
|
|
|
+ return this.$message.error("系统生成的超期箱使费不允许申请");
|
|
|
+ }
|
|
|
if (this.$store.getters.finappStatus) {
|
|
|
this.$alert("发票申请页面已存在,请关闭发票申请再进行操作", "温馨提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -4046,6 +4080,9 @@ export default {
|
|
|
if (row.automaticGenerated == 1 && row.feeCnName == "改单费") {
|
|
|
return this.$message.error("系统生成的费用不允许申请");
|
|
|
}
|
|
|
+ if (row.automaticGenerated == 1 && row.feeCnName == "超期箱使费") {
|
|
|
+ return this.$message.error("系统生成的超期箱使费不允许申请");
|
|
|
+ }
|
|
|
if ((row.curCode == this.getLocalCurrency() && row.rmbAmount == 0) || (row.curCode != this.getLocalCurrency() && row.usdAmount == 0)) {
|
|
|
textZore.push(row.feeCnName);
|
|
|
}
|
|
|
@@ -4146,6 +4183,9 @@ export default {
|
|
|
if (row.automaticGenerated == 1 && row.feeCnName == "改单费") {
|
|
|
return this.$message.error("系统生成的费用不允许撤销");
|
|
|
}
|
|
|
+ if (row.automaticGenerated == 1 && row.feeCnName == "超期箱使费") {
|
|
|
+ return this.$message.error("系统生成的超期箱使费不允许撤销");
|
|
|
+ }
|
|
|
}
|
|
|
this.$confirm("确定撤销请核?", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -4318,6 +4358,10 @@ export default {
|
|
|
if (row.automaticGenerated == 1 && row.feeCnName == "改单费") {
|
|
|
return this.$message.error("系统生成的费用不允许申请");
|
|
|
}
|
|
|
+
|
|
|
+ if (row.automaticGenerated == 1 && row.feeCnName == "超期箱使费") {
|
|
|
+ return this.$message.error("系统生成的超期箱使费不允许申请");
|
|
|
+ }
|
|
|
if ((row.curCode == this.getLocalCurrency() && row.rmbAmount == 0) || (row.curCode != this.getLocalCurrency() && row.usdAmount == 0)) {
|
|
|
textZore.push(row.feeCnName);
|
|
|
}
|
|
|
@@ -4421,6 +4465,9 @@ export default {
|
|
|
if (row.automaticGenerated == 1 && row.feeCnName == "改单费") {
|
|
|
return this.$message.error("系统生成的费用不允许撤销");
|
|
|
}
|
|
|
+ if (row.automaticGenerated == 1 && row.feeCnName == "超期箱使费") {
|
|
|
+ return this.$message.error("系统生成的超期箱使费不允许撤销");
|
|
|
+ }
|
|
|
}
|
|
|
this.$confirm("确定撤销请核?", {
|
|
|
confirmButtonText: "确定",
|