|
|
@@ -517,7 +517,7 @@
|
|
|
</el-row>
|
|
|
<el-row v-show="showForm">
|
|
|
<el-col :span="16">
|
|
|
- <el-form-item label="主单编号" prop="mblno">
|
|
|
+ <el-form-item label="主单号" prop="mblno">
|
|
|
<el-input
|
|
|
style="width: 100%"
|
|
|
v-model="form.mblno"
|
|
|
@@ -545,7 +545,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
- <el-form-item label="分单编号" prop="hblno">
|
|
|
+ <el-form-item label="分单号" prop="hblno">
|
|
|
<el-input
|
|
|
style="width: 100%"
|
|
|
v-model="form.hblno"
|
|
|
@@ -573,7 +573,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="BOOK NO" prop="bookingNo">
|
|
|
+ <el-form-item label="订舱号" prop="bookingNo">
|
|
|
<el-input
|
|
|
style="width: 100%"
|
|
|
v-model="form.bookingNo"
|
|
|
@@ -581,7 +581,7 @@
|
|
|
autocomplete="off"
|
|
|
:disabled="editSave || form.srcType == '对账'"
|
|
|
clearable
|
|
|
- placeholder="请输入BOOK NO"
|
|
|
+ placeholder="请输入订舱号"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -1038,14 +1038,66 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
// 监听 状态
|
|
|
- "form.status": {
|
|
|
- // 执行方法
|
|
|
+ // "form.status": {
|
|
|
+ // // 执行方法
|
|
|
+ // handler(oldValue, newValue) {
|
|
|
+ // if (oldValue == 3) {
|
|
|
+ // this.statusType = true;
|
|
|
+ // } else {
|
|
|
+ // this.statusType = false;
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // deep: true, // 深度监听
|
|
|
+ // immediate: true, // 第一次改变就执行
|
|
|
+ // },
|
|
|
+ addData: {
|
|
|
handler(oldValue, newValue) {
|
|
|
- if (oldValue == 3) {
|
|
|
- this.statusType = true;
|
|
|
- } else {
|
|
|
- this.statusType = false;
|
|
|
+ this.amountSubSum = 0;
|
|
|
+ this.amountDSubSum = 0;
|
|
|
+ this.amountCSubSum = 0;
|
|
|
+ this.amountSubUsdSum = 0;
|
|
|
+ this.amountDSubUsdSum = 0;
|
|
|
+ this.amountCSubUsdSum = 0;
|
|
|
+ if (oldValue.length) {
|
|
|
+ oldValue.forEach((e) => {
|
|
|
+ if (e.dc == "D") {
|
|
|
+ this.amountDSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ this.amountDSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ }
|
|
|
+ if (e.dc == "C") {
|
|
|
+ this.amountCSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ this.amountCSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
+ this.amountSubSum = Number(this.amountDSubSum - this.amountCSubSum);
|
|
|
+ this.amountSubUsdSum = Number(this.amountDSubUsdSum - this.amountCSubUsdSum);
|
|
|
+ },
|
|
|
+ deep: true, // 深度监听
|
|
|
+ immediate: true, // 第一次改变就执行
|
|
|
+ },
|
|
|
+ handleSelectionData: {
|
|
|
+ handler(oldValue, newValue) {
|
|
|
+ this.amountSubSum = 0;
|
|
|
+ this.amountDSubSum = 0;
|
|
|
+ this.amountCSubSum = 0;
|
|
|
+ this.amountSubUsdSum = 0;
|
|
|
+ this.amountDSubUsdSum = 0;
|
|
|
+ this.amountCSubUsdSum = 0;
|
|
|
+ if (oldValue.length) {
|
|
|
+ oldValue.forEach((e) => {
|
|
|
+ if (e.dc == "D") {
|
|
|
+ this.amountDSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ this.amountDSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ }
|
|
|
+ if (e.dc == "C") {
|
|
|
+ this.amountCSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ this.amountCSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.amountSubSum = Number(this.amountDSubSum - this.amountCSubSum);
|
|
|
+ this.amountSubUsdSum = Number(this.amountDSubUsdSum - this.amountCSubUsdSum);
|
|
|
},
|
|
|
deep: true, // 深度监听
|
|
|
immediate: true, // 第一次改变就执行
|
|
|
@@ -1612,51 +1664,51 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
addSelectionChange(list) {
|
|
|
- this.amountSubSum = 0;
|
|
|
- this.amountDSubSum = 0;
|
|
|
- this.amountCSubSum = 0;
|
|
|
- this.amountSubUsdSum = 0;
|
|
|
- this.amountDSubUsdSum = 0;
|
|
|
- this.amountCSubUsdSum = 0;
|
|
|
- if (list.length) {
|
|
|
- list.forEach((e) => {
|
|
|
- if (e.accountDc == "D") {
|
|
|
- this.amountDSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
- this.amountDSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
- }
|
|
|
- if (e.accountDc == "C") {
|
|
|
- this.amountCSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
- this.amountCSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- this.amountSubSum = Number(this.amountDSubSum - this.amountCSubSum);
|
|
|
- this.amountSubUsdSum = Number(this.amountDSubUsdSum - this.amountCSubUsdSum);
|
|
|
+ // this.amountSubSum = 0;
|
|
|
+ // this.amountDSubSum = 0;
|
|
|
+ // this.amountCSubSum = 0;
|
|
|
+ // this.amountSubUsdSum = 0;
|
|
|
+ // this.amountDSubUsdSum = 0;
|
|
|
+ // this.amountCSubUsdSum = 0;
|
|
|
+ // if (list.length) {
|
|
|
+ // list.forEach((e) => {
|
|
|
+ // if (e.accountDc == "D") {
|
|
|
+ // this.amountDSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ // this.amountDSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ // }
|
|
|
+ // if (e.accountDc == "C") {
|
|
|
+ // this.amountCSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ // this.amountCSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // this.amountSubSum = Number(this.amountDSubSum - this.amountCSubSum);
|
|
|
+ // this.amountSubUsdSum = Number(this.amountDSubUsdSum - this.amountCSubUsdSum);
|
|
|
this.addData = list;
|
|
|
},
|
|
|
// 费用明细表格多选
|
|
|
handleSelectionChange(list) {
|
|
|
- this.amountSubSum = 0;
|
|
|
- this.amountDSubSum = 0;
|
|
|
- this.amountCSubSum = 0;
|
|
|
- this.amountSubUsdSum = 0;
|
|
|
- this.amountDSubUsdSum = 0;
|
|
|
- this.amountCSubUsdSum = 0;
|
|
|
- if (list.length) {
|
|
|
- list.forEach((e) => {
|
|
|
- if (e.dc == "D") {
|
|
|
- this.amountDSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
- this.amountDSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
- }
|
|
|
- if (e.dc == "C") {
|
|
|
- this.amountCSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
- this.amountCSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- this.amountSubSum = Number(this.amountDSubSum - this.amountCSubSum);
|
|
|
- this.amountSubUsdSum = Number(this.amountDSubUsdSum - this.amountCSubUsdSum);
|
|
|
- console.log(111, this.amountSubSum, this.amountSubUsdSum);
|
|
|
+ // this.amountSubSum = 0;
|
|
|
+ // this.amountDSubSum = 0;
|
|
|
+ // this.amountCSubSum = 0;
|
|
|
+ // this.amountSubUsdSum = 0;
|
|
|
+ // this.amountDSubUsdSum = 0;
|
|
|
+ // this.amountCSubUsdSum = 0;
|
|
|
+ // if (list.length) {
|
|
|
+ // list.forEach((e) => {
|
|
|
+ // if (e.dc == "D") {
|
|
|
+ // this.amountDSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ // this.amountDSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ // }
|
|
|
+ // if (e.dc == "C") {
|
|
|
+ // this.amountCSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
+ // this.amountCSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // this.amountSubSum = Number(this.amountDSubSum - this.amountCSubSum);
|
|
|
+ // this.amountSubUsdSum = Number(this.amountDSubUsdSum - this.amountCSubUsdSum);
|
|
|
+ // console.log(111, this.amountSubSum, this.amountSubUsdSum);
|
|
|
this.handleSelectionData = list;
|
|
|
},
|
|
|
// 开票明细表格多选
|