|
@@ -817,11 +817,71 @@ export default {
|
|
|
deleteRow(index) {
|
|
|
this.feesList.splice(index, 1);
|
|
|
},
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.form = {
|
|
|
+ id: null,
|
|
|
+ billNo: null,
|
|
|
+ actId: null,
|
|
|
+ corpId: null,
|
|
|
+ transUserName: null,
|
|
|
+ planUserName: null,
|
|
|
+ billType: null,
|
|
|
+ transType: null,
|
|
|
+ transProp: null,
|
|
|
+ ifContracted: null,
|
|
|
+ contractNo: null,
|
|
|
+ refNo: null,
|
|
|
+ accstlType: null,
|
|
|
+ accdays: null,
|
|
|
+ goodsId: null,
|
|
|
+ goodsPrice: null,
|
|
|
+ goodsLossType: null,
|
|
|
+ goodsLossStd: null,
|
|
|
+ mblno: null,
|
|
|
+ ysl: null,
|
|
|
+ voy: null,
|
|
|
+ pol: null,
|
|
|
+ pod: null,
|
|
|
+ qtyPlan: null,
|
|
|
+ qtyDisPatch: null,
|
|
|
+ weightPlan: null,
|
|
|
+ cntrDesc: null,
|
|
|
+ carNoList: null,
|
|
|
+ loadAddr: null,
|
|
|
+ loadAttn: null,
|
|
|
+ loadAttntel: null,
|
|
|
+ loadDate: null,
|
|
|
+ mdLoadAddr: null,
|
|
|
+ mdLoadAttn: null,
|
|
|
+ mdLoadAttnTel: null,
|
|
|
+ mdLoadDate: null,
|
|
|
+ unLoadAddr: null,
|
|
|
+ unLoadAttn: null,
|
|
|
+ unLoadAttnTel: null,
|
|
|
+ unLoadDate: null,
|
|
|
+ routeId: null,
|
|
|
+ routeDesc: null,
|
|
|
+ ifWaybill: null,
|
|
|
+ ifNeedinvDr: null,
|
|
|
+ postDate: null,
|
|
|
+ billStatus: 0,
|
|
|
+ delFlag: null,
|
|
|
+ createBy: null,
|
|
|
+ createTime: null,
|
|
|
+ updateBy: null,
|
|
|
+ updateTime: null,
|
|
|
+ remarks: null,
|
|
|
+ };
|
|
|
+ this.disabled = false;
|
|
|
+ this.feesList=[]
|
|
|
+ },
|
|
|
init() {
|
|
|
+ this.reset()
|
|
|
this.showDialog = true;
|
|
|
// console.log(this.fname.id)
|
|
|
selectCorpList(this.fname.id).then((response) => {
|
|
|
- this.fMblnoOptions = response;
|
|
|
+ this.fMblnoOptions = response;
|
|
|
});
|
|
|
query(this.fname.id).then((data) => {
|
|
|
if (data.data.billType) {
|
|
@@ -879,13 +939,26 @@ export default {
|
|
|
},
|
|
|
addRelevt2() {
|
|
|
let arr = this.feesList;
|
|
|
- let arr2 = [];
|
|
|
- arr.forEach((e) => {
|
|
|
- arr2.push(e.fFeeid);
|
|
|
- });
|
|
|
- if (arr2.length > 0) {
|
|
|
- return this.$message.error("费用已导入,请勿重复导入");
|
|
|
+ arr.filter((e) => e.actId == "1080");
|
|
|
+ if (arr.length > 0) {
|
|
|
+ this.$confirm('已生成费用信息, 是否重新生成?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.feesList=this.feesList.filter((e) => e.actId != "1080");
|
|
|
+ this.addRelevt3()
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.addRelevt3()
|
|
|
}
|
|
|
+ },
|
|
|
+ addRelevt3() {
|
|
|
if (this.form.oilAmt > 0) {
|
|
|
this.feesList.push({
|
|
|
actId: "1080",
|
|
@@ -935,178 +1008,196 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (this.form.costomAmt03 > 0) {
|
|
|
- this.feesList.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:this.form.costomStr02,
|
|
|
- },{
|
|
|
- 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: this.form.costomStr02,
|
|
|
- });
|
|
|
+ this.feesList.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: this.form.costomStr02,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: this.form.costomStr02,
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
if (this.form.costomAmt04 > 0) {
|
|
|
- this.feesList.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: this.form.costomStr02,
|
|
|
- },{
|
|
|
- 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: this.form.costomStr02,
|
|
|
- });
|
|
|
+ this.feesList.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: this.form.costomStr02,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: this.form.costomStr02,
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
if (this.form.costomAmt02 > 0) {
|
|
|
- this.feesList.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: this.form.costomStr02,
|
|
|
- },{
|
|
|
- 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: this.form.costomStr02,
|
|
|
- });
|
|
|
+ this.feesList.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: this.form.costomStr02,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: this.form.costomStr02,
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
if (this.form.costomAmt05 > 0) {
|
|
|
- this.feesList.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: this.form.costomStr01,
|
|
|
- },{
|
|
|
- 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: this.form.costomStr01,
|
|
|
- });
|
|
|
+ this.feesList.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: this.form.costomStr01,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: this.form.costomStr01,
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
if (this.form.costomAmt06 > 0) {
|
|
|
- this.feesList.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: this.form.costomStr01,
|
|
|
- },{
|
|
|
- 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: this.form.costomStr01,
|
|
|
- });
|
|
|
+ this.feesList.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: this.form.costomStr01,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: this.form.costomStr01,
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
if (this.form.costomAmt01 > 0) {
|
|
|
- this.feesList.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: this.form.costomStr01,
|
|
|
- },{
|
|
|
- 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: this.form.costomStr01,
|
|
|
- });
|
|
|
+ this.feesList.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: this.form.costomStr01,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: this.form.costomStr01,
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
deleteplansRow(index, rows, row) {
|