|
|
@@ -155,7 +155,7 @@
|
|
|
key="id"
|
|
|
label="cnName"
|
|
|
res="records"
|
|
|
- :disabled="editDisabled || form.whetherEnable == '是'|| form.feeCenterList.filter(item => item.auditStatus > 0).length"
|
|
|
+ :disabled="editDisabled || form.whetherEnable == '是' || form.feeCenterList.filter(item => item.auditStatus > 0).length"
|
|
|
url="/blade-los/bports/list?status=0¤t=1&size=5"
|
|
|
:filterable="true"
|
|
|
:remote="true"
|
|
|
@@ -225,7 +225,7 @@
|
|
|
:collapseTags="true"
|
|
|
dataType="string"
|
|
|
@selectChange="dicChange('podCname', $event)"
|
|
|
- :disabled="editDisabled || form.whetherEnable == '是'|| form.feeCenterList.filter(item => item.auditStatus > 0).length"
|
|
|
+ :disabled="editDisabled || form.whetherEnable == '是' || form.feeCenterList.filter(item => item.auditStatus > 0).length"
|
|
|
:slotRight="true"
|
|
|
rightLabel="code"
|
|
|
></dic-select>
|
|
|
@@ -250,7 +250,12 @@
|
|
|
<template slot="boxNumber">
|
|
|
<el-input-number
|
|
|
v-model="form.boxNumber"
|
|
|
- :disabled="editDisabled || (fixData && form.whetherEnable == '是') || form.suitcaseNum != 0 || form.feeCenterList.filter(item => item.auditStatus > 0).length"
|
|
|
+ :disabled="
|
|
|
+ editDisabled ||
|
|
|
+ (fixData && form.whetherEnable == '是') ||
|
|
|
+ form.suitcaseNum != 0 ||
|
|
|
+ form.feeCenterList.filter(item => item.auditStatus > 0).length
|
|
|
+ "
|
|
|
:min="1"
|
|
|
:controls="false"
|
|
|
placeholder="请输入 箱量"
|
|
|
@@ -1204,6 +1209,16 @@
|
|
|
<el-button type="primary" @click.stop="owhySubmit" size="mini">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <fee-modify
|
|
|
+ ref="feeModify"
|
|
|
+ :form="form"
|
|
|
+ @updateDetail="updateDetail"
|
|
|
+ :curCodeDate="form.effectiveDate ? form.effectiveDate + ' 00:00:00' : null"
|
|
|
+ url="/ow/owTask/index"
|
|
|
+ pageStatus=""
|
|
|
+ pageLabel="OW(拿)"
|
|
|
+ ></fee-modify>
|
|
|
+ <fee-modify-view ref="feeModifyView" :form="form"></fee-modify-view>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -1244,6 +1259,8 @@ import { isProcurement } from "@/api/basicData/configuration";
|
|
|
import { bcurrencyGetExrate } from "@/api/iosBasicData/rateManagement";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
import { dateFormat } from "@/util/date";
|
|
|
+import feeModify from "@/components/feeModify/main.vue";
|
|
|
+import feeModifyView from "@/components/feeModify/view.vue";
|
|
|
import _ from "lodash";
|
|
|
import { Header } from "element-ui";
|
|
|
export default {
|
|
|
@@ -3185,7 +3202,9 @@ export default {
|
|
|
dicSelect,
|
|
|
checkSchedule,
|
|
|
businessReports,
|
|
|
- reports
|
|
|
+ reports,
|
|
|
+ feeModify,
|
|
|
+ feeModifyView
|
|
|
},
|
|
|
props: {
|
|
|
detailData: Object
|
|
|
@@ -3243,6 +3262,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ updateDetail() {
|
|
|
+ this.getDetail(this.form.id);
|
|
|
+ },
|
|
|
inOwhy() {
|
|
|
this.owhyDialog = true;
|
|
|
},
|
|
|
@@ -4890,6 +4912,123 @@ export default {
|
|
|
this.getPer();
|
|
|
});
|
|
|
}
|
|
|
+ if (name == "D申请修改") {
|
|
|
+ for (let row of this.selectionfeedList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
+ }
|
|
|
+ if (Number(row.appliedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请付费的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.appliedInvoiceAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请发票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.uninvoicedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未开票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.stlTtlAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未结算的费用");
|
|
|
+ }
|
|
|
+ this.$refs.feeModify.openDialog(row, "fix");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (name == "D申请删除") {
|
|
|
+ for (let row of this.selectionfeedList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
+ }
|
|
|
+ if (Number(row.appliedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请付费的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.appliedInvoiceAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请发票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.uninvoicedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未开票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.stlTtlAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未结算的费用");
|
|
|
+ }
|
|
|
+ this.$refs.feeModify.openDialog(row, "del");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (name == "D取消申请") {
|
|
|
+ for (let row of this.selectionfeedList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (!(row.auditStatus == 5 || row.auditStatus == 6)) {
|
|
|
+ return this.$message.error("未申请修改或删除,不允许撤销申请");
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$refs.feeModify.openDialog(row, "revoke");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (name == "C申请修改") {
|
|
|
+ for (let row of this.selectionCList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
+ }
|
|
|
+ if (Number(row.appliedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请付费的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.appliedInvoiceAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请发票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.uninvoicedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未开票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.stlTtlAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未结算的费用");
|
|
|
+ }
|
|
|
+ this.$refs.feeModify.openDialog(row, "fix");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (name == "C申请删除") {
|
|
|
+ for (let row of this.selectionCList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (Number(row.appliedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请付费的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.appliedInvoiceAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未申请发票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.uninvoicedAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未开票的费用");
|
|
|
+ }
|
|
|
+ if (Number(row.stlTtlAmount) > 0) {
|
|
|
+ return this.$message.error("请选择未结算的费用");
|
|
|
+ }
|
|
|
+ this.$refs.feeModify.openDialog(row, "del");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (name == "C取消申请") {
|
|
|
+ for (let row of this.selectionCList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (!(row.auditStatus == 5 || row.auditStatus == 6)) {
|
|
|
+ return this.$message.error("未申请修改或删除,不允许撤销申请");
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$refs.feeModify.openDialog(row, "revoke");
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
getPick() {
|
|
|
let obj = {
|