|
|
@@ -230,8 +230,9 @@
|
|
|
<el-button type="primary" plain size="small"
|
|
|
:disabled="editDisabled || (selectionfeedList.length == 0 && selectionfeecList.length == 0)"
|
|
|
@click="allClick('D费用申请')">请核费用</el-button>
|
|
|
- <!-- <el-button type="primary" plain size="small" :disabled="editDisabled">计算超期箱使费</el-button> -->
|
|
|
- <el-button type="warning" plain size="small" :disabled="editDisabled" @click="allClick('批量导入费用')">批量导入费用</el-button>
|
|
|
+ <!-- <el-button type="primary" plain size="small" :disabled="editDisabled">计算超期箱使费</el-button> -->
|
|
|
+ <el-button type="warning" plain size="small" :disabled="editDisabled"
|
|
|
+ @click="allClick('批量导入费用')">批量导入费用</el-button>
|
|
|
<!-- <el-button type="primary" plain size="small" @click="$refs.printC.openDialog()">打印账单</el-button> -->
|
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
|
@@ -250,7 +251,8 @@
|
|
|
<span v-else>{{ row.billType }}</span>
|
|
|
</template>
|
|
|
<template slot="cntrNoForm" slot-scope="{row,index}">
|
|
|
- <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
|
|
|
+ <dic-select
|
|
|
+ v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
|
|
|
v-model="row.cntrNo" key="id" label="code" :mockData="form.tradingBoxItemsList"
|
|
|
:filterable="true"></dic-select>
|
|
|
<span v-else>{{ row.cntrNo }}</span>
|
|
|
@@ -265,7 +267,8 @@
|
|
|
<span v-else>{{ row.corpCnName }}</span>
|
|
|
</template>
|
|
|
<template slot="feeCnNameForm" slot-scope="{ row }">
|
|
|
- <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
|
|
|
+ <dic-select
|
|
|
+ v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
|
|
|
v-model="row.feeCnName" key="id" placeholder="费用名称" label="cnName" res="records"
|
|
|
url="/blade-los/bfees/list?status=0¤t=1&size=20" :filterable="true" :remote="true"
|
|
|
dataName="cnName" @selectChange="rowDicChange('feeCnName', $event, row)"
|
|
|
@@ -285,7 +288,8 @@
|
|
|
<span v-else>{{ row.exrate }}</span>
|
|
|
</template>
|
|
|
<template slot="unitNoForm" slot-scope="{row,index}">
|
|
|
- <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
|
|
|
+ <dic-select
|
|
|
+ v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
|
|
|
v-model="row.unitNo" label="cnName" url="/blade-los/bunits/listAll?status=0"
|
|
|
:filterable="true"></dic-select>
|
|
|
<span v-else>{{ row.unitNo }}</span>
|
|
|
@@ -348,7 +352,8 @@
|
|
|
<span v-else>{{ row.billType }}</span>
|
|
|
</template>
|
|
|
<template slot="cntrNoForm" slot-scope="{row,index}">
|
|
|
- <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
|
|
|
+ <dic-select
|
|
|
+ v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
|
|
|
v-model="row.cntrNo" key="id" label="code" :mockData="form.tradingBoxItemsList"
|
|
|
:filterable="true"></dic-select>
|
|
|
<span v-else>{{ row.cntrNo }}</span>
|
|
|
@@ -363,7 +368,8 @@
|
|
|
<span v-else>{{ row.corpCnName }}</span>
|
|
|
</template>
|
|
|
<template slot="feeCnNameForm" slot-scope="{ row }">
|
|
|
- <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
|
|
|
+ <dic-select
|
|
|
+ v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
|
|
|
v-model="row.feeCnName" key="id" placeholder="费用名称" label="cnName" res="records"
|
|
|
url="/blade-los/bfees/list?status=0¤t=1&size=20" :filterable="true" :remote="true"
|
|
|
dataName="cnName" @selectChange="rowDicChange('feeCnName', $event, row)"
|
|
|
@@ -383,7 +389,8 @@
|
|
|
<span v-else>{{ row.exrate }}</span>
|
|
|
</template>
|
|
|
<template slot="unitNoForm" slot-scope="{row,index}">
|
|
|
- <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
|
|
|
+ <dic-select
|
|
|
+ v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
|
|
|
v-model="row.unitNo" label="cnName" url="/blade-los/bunits/listAll?status=0"
|
|
|
:filterable="true"></dic-select>
|
|
|
<span v-else>{{ row.unitNo }}</span>
|
|
|
@@ -2649,6 +2656,7 @@ export default {
|
|
|
return this.$message.error("请添加数据");
|
|
|
}
|
|
|
for (let row of this.feeCenterListD) {
|
|
|
+ row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
|
|
|
if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row
|
|
|
.quantity) {
|
|
|
this.$refs.crud2.rowCell(row, row.$index)
|
|
|
@@ -2663,6 +2671,16 @@ export default {
|
|
|
});
|
|
|
submitFeeList(this.feeCenterListD).then(res => {
|
|
|
this.$message.success("保存成功");
|
|
|
+ res.data.dataforEach(row => {
|
|
|
+ if (row.curCode == this.getLocalCurrency()) {
|
|
|
+ row.amountCNY = row.amount
|
|
|
+ row.amountUSD = 0
|
|
|
+ }
|
|
|
+ if (row.curCode != this.getLocalCurrency()) {
|
|
|
+ row.amountUSD = row.amount
|
|
|
+ row.amountCNY = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
this.feeCenterListD = res.data.data
|
|
|
}).finally(() => {
|
|
|
loading.close();
|
|
|
@@ -2670,6 +2688,7 @@ export default {
|
|
|
}
|
|
|
if (name == 'D费用一键编辑') {
|
|
|
for (let row of this.feeCenterListD) {
|
|
|
+ row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
|
|
|
if (!row.stlPid && (row.accStatus == 0 || row.auditStatus == 0)) {
|
|
|
this.$set(row, "$cellEdit", true);
|
|
|
}
|
|
|
@@ -2743,6 +2762,16 @@ export default {
|
|
|
});
|
|
|
submitFeeList(this.feeCenterListC).then(res => {
|
|
|
this.$message.success("保存成功");
|
|
|
+ res.data.dataforEach(row => {
|
|
|
+ if (row.curCode == this.getLocalCurrency()) {
|
|
|
+ row.amountCNY = row.amount
|
|
|
+ row.amountUSD = 0
|
|
|
+ }
|
|
|
+ if (row.curCode != this.getLocalCurrency()) {
|
|
|
+ row.amountUSD = row.amount
|
|
|
+ row.amountCNY = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
this.feeCenterListC = res.data.data
|
|
|
}).finally(() => {
|
|
|
loading.close();
|