|
|
@@ -176,6 +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="assemblyForm.feeCenterListD.filter(item => item.id).length == 0 || selectionDList.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>
|
|
|
@@ -343,7 +351,7 @@
|
|
|
:controls="false"
|
|
|
:precision="5"
|
|
|
placeholder="请输入"
|
|
|
- :disabled="row.curCode==getLocalCurrency()"
|
|
|
+ :disabled="row.curCode == getLocalCurrency()"
|
|
|
style="width: 100%;"
|
|
|
></el-input-number>
|
|
|
<span v-else>{{ row.exrate }}</span>
|
|
|
@@ -527,6 +535,14 @@
|
|
|
>{{ $t("btn118n.unAplly") }}</el-button
|
|
|
>
|
|
|
<el-button plain size="small" :disabled="disabled || isFeedDisabled" @click="allClick('同步结算单位', 'C')">同步收费对象</el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ size="small"
|
|
|
+ :disabled="assemblyForm.feeCenterListC.filter(item => item.id).length == 0 || selectionCList.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>
|
|
|
@@ -677,7 +693,7 @@
|
|
|
:controls="false"
|
|
|
:precision="5"
|
|
|
placeholder="请输入"
|
|
|
- :disabled="row.curCode==getLocalCurrency()"
|
|
|
+ :disabled="row.curCode == getLocalCurrency()"
|
|
|
style="width: 100%;"
|
|
|
></el-input-number>
|
|
|
<span v-else>{{ row.exrate }}</span>
|
|
|
@@ -1078,6 +1094,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>
|
|
|
|
|
|
@@ -1121,6 +1138,7 @@ import mailComponent from "@/components/iosbasic-data/mail-component.vue";
|
|
|
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: {
|
|
|
@@ -1132,7 +1150,8 @@ export default {
|
|
|
mailComponent,
|
|
|
feeModify,
|
|
|
feeModifyView,
|
|
|
- sysnCorpName
|
|
|
+ sysnCorpName,
|
|
|
+ costTemplate
|
|
|
},
|
|
|
props: {
|
|
|
pid: {},
|
|
|
@@ -3887,6 +3906,24 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
allClick(name, type) {
|
|
|
+ if (name == "存为模板") {
|
|
|
+ if (type == "D") {
|
|
|
+ for (let item of this.selectionDList) {
|
|
|
+ if (!item.id) {
|
|
|
+ return this.$message.error("费用明细存在未保存数据,请保存");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$refs.costTemplate.openDialog(this.assemblyForm, type, this.selectionDList);
|
|
|
+ }
|
|
|
+ if (type == "C") {
|
|
|
+ for (let item of this.selectionCList) {
|
|
|
+ if (!item.id) {
|
|
|
+ return this.$message.error("费用明细存在未保存数据,请保存");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$refs.costTemplate.openDialog(this.assemblyForm, type, this.selectionCList);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (name == "同步结算单位") {
|
|
|
this.$refs.sysnCorpName.openDialog(this.assemblyForm.id, type);
|
|
|
}
|
|
|
@@ -4661,13 +4698,13 @@ export default {
|
|
|
},
|
|
|
rowStyle({ row, column, rowIndex }) {
|
|
|
//已结算金额
|
|
|
- if (Number(row.stlTtlAmount?row.stlTtlAmount:0) != 0) {
|
|
|
+ if (Number(row.stlTtlAmount ? row.stlTtlAmount : 0) != 0) {
|
|
|
return {
|
|
|
color: "#0000FF"
|
|
|
};
|
|
|
}
|
|
|
//发票金额和付费申请金额
|
|
|
- if (Number(row.appliedAmount?row.appliedAmount:0) != 0 || Number(row.appliedInvoiceAmount?row.appliedInvoiceAmount:0) != 0) {
|
|
|
+ if (Number(row.appliedAmount ? row.appliedAmount : 0) != 0 || Number(row.appliedInvoiceAmount ? row.appliedInvoiceAmount : 0) != 0) {
|
|
|
return {
|
|
|
color: "#FFC300"
|
|
|
};
|
|
|
@@ -4805,7 +4842,7 @@ export default {
|
|
|
padding: 0 2px !important;
|
|
|
}
|
|
|
::v-deep .el-input__inner {
|
|
|
- padding-left:5px !important;
|
|
|
+ padding-left: 5px !important;
|
|
|
}
|
|
|
|
|
|
.textoverflow {
|