|
@@ -683,7 +683,9 @@
|
|
|
filterable
|
|
|
size="mini"
|
|
|
style="width: 160px"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(dict, index) in allfMblnoOptions"
|
|
@@ -706,7 +708,9 @@
|
|
|
filterable
|
|
|
remote
|
|
|
placeholder="费用名称"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(dict, index) in fWbuOptions"
|
|
@@ -722,7 +726,9 @@
|
|
|
<el-select
|
|
|
v-model="scope.row.fDc"
|
|
|
placeholder="请选择"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
>
|
|
|
<el-option label="收" value="D"></el-option>
|
|
|
<el-option label="付" value="C"></el-option>
|
|
@@ -739,7 +745,9 @@
|
|
|
<el-select
|
|
|
v-model="scope.row.fFeeunitid"
|
|
|
placeholder="请选择计费单位"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
clearable
|
|
|
>
|
|
|
<el-option
|
|
@@ -761,7 +769,9 @@
|
|
|
<el-input
|
|
|
v-model="scope.row.fBillingQty"
|
|
|
placeholder="请输入内容"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
@input="total(scope.row)"
|
|
|
v-input-limit="2"
|
|
|
></el-input>
|
|
@@ -777,7 +787,9 @@
|
|
|
<el-input
|
|
|
v-model="scope.row.fUnitprice"
|
|
|
placeholder="请输入内容"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
@input="total(scope.row)"
|
|
|
v-input-limit="2"
|
|
|
></el-input>
|
|
@@ -792,7 +804,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fCurrency"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -806,7 +820,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fExrate"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -820,7 +836,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fAmount"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -834,7 +852,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fTaxrate"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -849,7 +869,9 @@
|
|
|
<el-input
|
|
|
v-model="scope.row.remarks"
|
|
|
placeholder="请输入内容"
|
|
|
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
|
|
|
+ :disabled="
|
|
|
+ scope.row.fBillstatus > 2 && scope.row.fBillstatus <= 6
|
|
|
+ "
|
|
|
></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -885,7 +907,7 @@
|
|
|
@click.native.prevent="fixFees(scope.row)"
|
|
|
>变更</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
+ <el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-document-delete"
|
|
@@ -1058,26 +1080,54 @@
|
|
|
</el-collapse>
|
|
|
</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm('acceptDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm('acceptDate')"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
>接 单</el-button
|
|
|
>
|
|
|
- <el-button type="primary" @click="submitForm('loadDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm('loadDate')"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
>提 箱</el-button
|
|
|
>
|
|
|
- <el-button type="primary" @click="submitForm('mdLoadDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm('mdLoadDate')"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
>装卸货</el-button
|
|
|
>
|
|
|
- <el-button type="primary" @click="submitForm('unLoadDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm('unLoadDate')"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
>还卸柜</el-button
|
|
|
>
|
|
|
- <el-button type="primary" @click="submitForm('waybillDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm('waybillDate')"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
>回 单</el-button
|
|
|
>
|
|
|
- <el-button type="primary" @click="driversubmitForm" v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="driversubmitForm"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
>提 交</el-button
|
|
|
>
|
|
|
- <el-button type="success" @click="submitAllowChanges" v-hasPermi="['fleet:vehicleStatus:edit']">修 改</el-button>
|
|
|
- <el-button type="info" @click="submitSave" v-hasPermi="['fleet:vehicleStatus:edit']">保 存</el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ @click="submitAllowChanges"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ >修 改</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ @click="submitSave"
|
|
|
+ v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
+ >保 存</el-button
|
|
|
+ >
|
|
|
<!-- <el-button type="warning" @click="submitRetreat">撤 回</el-button> -->
|
|
|
<el-button @click="showDialog = false">取 消</el-button>
|
|
|
</span>
|
|
@@ -1095,7 +1145,13 @@ import { listGoods } from "@/api/basicdata/goods";
|
|
|
import { listCorps } from "@/api/basicdata/corps";
|
|
|
import { listFees } from "@/api/basicdata/fees";
|
|
|
import UploadFile from "@/components/Uploadfile";
|
|
|
-import { submit, changeFees ,revokeFees,deleteFees,driverSubmit} from "@/api/track/singleCost";
|
|
|
+import {
|
|
|
+ submit,
|
|
|
+ changeFees,
|
|
|
+ revokeFees,
|
|
|
+ deleteFees,
|
|
|
+ driverSubmit,
|
|
|
+} from "@/api/track/singleCost";
|
|
|
import Cookies from "js-cookie";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
export default {
|
|
@@ -1125,7 +1181,7 @@ export default {
|
|
|
},
|
|
|
feesList: {
|
|
|
type: Array,
|
|
|
- default:() => [],
|
|
|
+ default: () => [],
|
|
|
},
|
|
|
allfMblnoOptions: {
|
|
|
type: Array,
|
|
@@ -1302,8 +1358,9 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.chiFeesList = this.chiFeesList.filter(
|
|
|
- (e) => e.actId != "1080"
|
|
|
+ (e) => e.fBillstatus == 6 || e.actId != "1080"
|
|
|
);
|
|
|
+ console.log(this.chiFeesList);
|
|
|
this.addRelevt3();
|
|
|
})
|
|
|
.catch(() => {
|
|
@@ -1318,244 +1375,358 @@ export default {
|
|
|
},
|
|
|
addRelevt3() {
|
|
|
if (this.form.oilAmt > 0) {
|
|
|
- this.chiFeesList.push({
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 52,
|
|
|
- fDc: "C",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.oilAmt,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.oilAmt,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.form.driverbonus > 0) {
|
|
|
- this.chiFeesList.push({
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 53,
|
|
|
- fDc: "C",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.driverbonus,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.driverbonus,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.form.costOth > 0) {
|
|
|
- this.chiFeesList.push({
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 54,
|
|
|
- fDc: "C",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costOth,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costOth,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
+ this.fFeeid52 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 52 && e.actId == 1080) {
|
|
|
+ this.fFeeid52 = false;
|
|
|
+ }
|
|
|
});
|
|
|
- }
|
|
|
- if (this.form.costomAmt03 > 0) {
|
|
|
- this.chiFeesList.push(
|
|
|
- {
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.fCorpId,
|
|
|
- fFeeid: 55,
|
|
|
- fDc: "D",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt03,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt03,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
- },
|
|
|
- {
|
|
|
+ if (this.fFeeid52) {
|
|
|
+ this.chiFeesList.push({
|
|
|
actId: "1080",
|
|
|
fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 55,
|
|
|
+ fFeeid: 52,
|
|
|
fDc: "C",
|
|
|
fFeeunitid: "6",
|
|
|
fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt03,
|
|
|
+ fUnitprice: this.form.oilAmt,
|
|
|
fCurrency: "RMB",
|
|
|
fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt03,
|
|
|
+ fAmount: this.form.oilAmt,
|
|
|
fExrate: 1,
|
|
|
remarks: null,
|
|
|
- }
|
|
|
- );
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
- if (this.form.costomAmt04 > 0) {
|
|
|
- this.chiFeesList.push(
|
|
|
- {
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.fCorpId,
|
|
|
- fFeeid: 56,
|
|
|
- fDc: "D",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt04,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt04,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
- },
|
|
|
- {
|
|
|
+ if (this.form.driverbonus > 0) {
|
|
|
+ this.fFeeid53 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 53 && e.actId == 1080) {
|
|
|
+ this.fFeeid53 = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.fFeeid53) {
|
|
|
+ this.chiFeesList.push({
|
|
|
actId: "1080",
|
|
|
fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 56,
|
|
|
+ fFeeid: 53,
|
|
|
fDc: "C",
|
|
|
fFeeunitid: "6",
|
|
|
fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt04,
|
|
|
+ fUnitprice: this.form.driverbonus,
|
|
|
fCurrency: "RMB",
|
|
|
fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt04,
|
|
|
+ fAmount: this.form.driverbonus,
|
|
|
fExrate: 1,
|
|
|
remarks: null,
|
|
|
- }
|
|
|
- );
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
- if (this.form.costomAmt02 > 0) {
|
|
|
- this.chiFeesList.push(
|
|
|
- {
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.fCorpId,
|
|
|
- fFeeid: 57,
|
|
|
- fDc: "D",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt02,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt02,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
- },
|
|
|
- {
|
|
|
+ if (this.form.costOth > 0) {
|
|
|
+ this.fFeeid54 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 54 && e.actId == 1080) {
|
|
|
+ this.fFeeid54 = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.fFeeid54) {
|
|
|
+ this.chiFeesList.push({
|
|
|
actId: "1080",
|
|
|
fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 57,
|
|
|
+ fFeeid: 54,
|
|
|
fDc: "C",
|
|
|
fFeeunitid: "6",
|
|
|
fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt02,
|
|
|
+ fUnitprice: this.form.costOth,
|
|
|
fCurrency: "RMB",
|
|
|
fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt02,
|
|
|
+ fAmount: this.form.costOth,
|
|
|
fExrate: 1,
|
|
|
remarks: null,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.form.costomAmt03 > 0) {
|
|
|
+ this.fFeeid55 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 55 && e.actId == 1080) {
|
|
|
+ this.fFeeid55 = false;
|
|
|
}
|
|
|
- );
|
|
|
+ });
|
|
|
+ if (this.fFeeid55) {
|
|
|
+ this.chiFeesList.push(
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.fCorpId,
|
|
|
+ fFeeid: 55,
|
|
|
+ fDc: "D",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt03,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt03,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.driverUserId,
|
|
|
+ fFeeid: 55,
|
|
|
+ fDc: "C",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt03,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt03,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.form.costomAmt04 > 0) {
|
|
|
+ this.fFeeid56 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 56 && e.actId == 1080) {
|
|
|
+ this.fFeeid56 = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.fFeeid56) {
|
|
|
+ this.chiFeesList.push(
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.fCorpId,
|
|
|
+ fFeeid: 56,
|
|
|
+ fDc: "D",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt04,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt04,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.driverUserId,
|
|
|
+ fFeeid: 56,
|
|
|
+ fDc: "C",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt04,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt04,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.form.costomAmt02 > 0) {
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ this.fFeeid57 = true;
|
|
|
+ if (e.fFeeid == 57 && e.actId == 1080) {
|
|
|
+ this.fFeeid57 = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.fFeeid57) {
|
|
|
+ this.chiFeesList.push(
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.fCorpId,
|
|
|
+ fFeeid: 57,
|
|
|
+ fDc: "D",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt02,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt02,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.driverUserId,
|
|
|
+ fFeeid: 57,
|
|
|
+ fDc: "C",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt02,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt02,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
if (this.form.costomAmt05 > 0) {
|
|
|
- this.chiFeesList.push(
|
|
|
- {
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.fCorpId,
|
|
|
- fFeeid: 58,
|
|
|
- fDc: "D",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt05,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt05,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
- },
|
|
|
- {
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 58,
|
|
|
- fDc: "C",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt05,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt05,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
+ this.fFeeid58 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 58 && e.actId == 1080) {
|
|
|
+ this.fFeeid58 = false;
|
|
|
}
|
|
|
- );
|
|
|
+ });
|
|
|
+ if (this.fFeeid58) {
|
|
|
+ this.chiFeesList.push(
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.fCorpId,
|
|
|
+ fFeeid: 58,
|
|
|
+ fDc: "D",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt05,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt05,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.driverUserId,
|
|
|
+ fFeeid: 58,
|
|
|
+ fDc: "C",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt05,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt05,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
if (this.form.costomAmt06 > 0) {
|
|
|
- this.chiFeesList.push(
|
|
|
- {
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.fCorpId,
|
|
|
- fFeeid: 59,
|
|
|
- fDc: "D",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt06,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt06,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
- },
|
|
|
- {
|
|
|
- actId: "1080",
|
|
|
- fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 59,
|
|
|
- fDc: "C",
|
|
|
- fFeeunitid: "6",
|
|
|
- fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt06,
|
|
|
- fCurrency: "RMB",
|
|
|
- fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt06,
|
|
|
- fExrate: 1,
|
|
|
- remarks: null,
|
|
|
+ this.fFeeid59 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 59 && e.actId == 1080) {
|
|
|
+ this.fFeeid59 = false;
|
|
|
}
|
|
|
- );
|
|
|
+ });
|
|
|
+ if (this.fFeeid59) {
|
|
|
+ this.chiFeesList.push(
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.fCorpId,
|
|
|
+ fFeeid: 59,
|
|
|
+ fDc: "D",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt06,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt06,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.driverUserId,
|
|
|
+ fFeeid: 59,
|
|
|
+ fDc: "C",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt06,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt06,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
if (this.form.costomAmt01 > 0) {
|
|
|
- this.chiFeesList.push(
|
|
|
- {
|
|
|
+ this.fFeeid60 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 60 && e.actId == 1080) {
|
|
|
+ this.fFeeid60 = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.fFeeid60) {
|
|
|
+ this.chiFeesList.push(
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.fCorpId,
|
|
|
+ fFeeid: 60,
|
|
|
+ fDc: "D",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt01,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt01,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ actId: "1080",
|
|
|
+ fCorpid: this.form.driverUserId,
|
|
|
+ fFeeid: 60,
|
|
|
+ fDc: "C",
|
|
|
+ fFeeunitid: "6",
|
|
|
+ fBillingQty: 1,
|
|
|
+ fUnitprice: this.form.costomAmt01,
|
|
|
+ fCurrency: "RMB",
|
|
|
+ fTaxrate: 3,
|
|
|
+ fAmount: this.form.costomAmt01,
|
|
|
+ fExrate: 1,
|
|
|
+ remarks: null,
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.form.priceDr > 0 || this.form.priceCr > 0) {
|
|
|
+ this.fFeeid61 = true;
|
|
|
+ this.chiFeesList.map((e) => {
|
|
|
+ if (e.fFeeid == 61 && e.actId == 1080) {
|
|
|
+ this.fFeeid61 = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.fFeeid61 && this.form.priceDr > 0) {
|
|
|
+ this.chiFeesList.push({
|
|
|
actId: "1080",
|
|
|
fCorpid: this.form.fCorpId,
|
|
|
- fFeeid: 60,
|
|
|
+ fFeeid: 61,
|
|
|
fDc: "D",
|
|
|
fFeeunitid: "6",
|
|
|
fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt01,
|
|
|
+ fUnitprice: this.form.priceDr,
|
|
|
fCurrency: "RMB",
|
|
|
fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt01,
|
|
|
+ fAmount: this.form.priceDr,
|
|
|
fExrate: 1,
|
|
|
remarks: null,
|
|
|
- },
|
|
|
- {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.fFeeid61 && this.form.priceCr > 0) {
|
|
|
+ this.chiFeesList.push({
|
|
|
actId: "1080",
|
|
|
- fCorpid: this.form.driverUserId,
|
|
|
- fFeeid: 60,
|
|
|
+ fCorpid: this.form.carcorPid,
|
|
|
+ fFeeid: 61,
|
|
|
fDc: "C",
|
|
|
fFeeunitid: "6",
|
|
|
fBillingQty: 1,
|
|
|
- fUnitprice: this.form.costomAmt01,
|
|
|
+ fUnitprice: this.form.priceCr,
|
|
|
fCurrency: "RMB",
|
|
|
fTaxrate: 3,
|
|
|
- fAmount: this.form.costomAmt01,
|
|
|
+ fAmount: this.form.priceCr,
|
|
|
fExrate: 1,
|
|
|
remarks: null,
|
|
|
- }
|
|
|
- );
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error("未找到运输费用,请确认是否已添加");
|
|
|
}
|
|
|
},
|
|
|
// 弹出框关闭后触发
|
|
@@ -1630,18 +1801,18 @@ export default {
|
|
|
this.msgSuccess("不允许修改");
|
|
|
}
|
|
|
},
|
|
|
- driversubmitForm(){
|
|
|
- if(this.chiFeesList.length==0){
|
|
|
+ driversubmitForm() {
|
|
|
+ if (this.chiFeesList.length == 0) {
|
|
|
return this.$message.error("确认费用不能为空");
|
|
|
}
|
|
|
- let formData = new window.FormData();
|
|
|
+ let formData = new window.FormData();
|
|
|
formData.append("cars", JSON.stringify(this.form));
|
|
|
formData.append("attachs", JSON.stringify(this.relevantAttachments));
|
|
|
formData.append("fees", JSON.stringify(this.chiFeesList));
|
|
|
driverSubmit(formData).then((response) => {
|
|
|
if (response.code == 200) {
|
|
|
this.msgSuccess("提交成功");
|
|
|
- this.showDialog=false;
|
|
|
+ this.showDialog = false;
|
|
|
this.$parent.getList();
|
|
|
}
|
|
|
});
|
|
@@ -1690,19 +1861,19 @@ export default {
|
|
|
this.$message.success("删除成功");
|
|
|
}
|
|
|
});
|
|
|
- } else if (!row.fBillstatus){
|
|
|
+ } else if (!row.fBillstatus) {
|
|
|
rows.splice(index, 1);
|
|
|
this.$message.success("删除成功");
|
|
|
- }else{
|
|
|
- this.$message.error("不允许删除");
|
|
|
+ } else {
|
|
|
+ this.$message.error("不允许删除");
|
|
|
}
|
|
|
},
|
|
|
- revokeFees(row){
|
|
|
+ revokeFees(row) {
|
|
|
revokeFees(row.fId).then((response) => {
|
|
|
- if (response.code == 200) {
|
|
|
- this.$message.success("撤销成功");
|
|
|
- this.$set(row, "fBillstatus", 3);
|
|
|
- }
|
|
|
+ if (response.code == 200) {
|
|
|
+ this.$message.success("撤销成功");
|
|
|
+ this.$set(row, "fBillstatus", 3);
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
//单条订单调度提交
|