|
|
@@ -109,8 +109,7 @@
|
|
|
dataName="cnName" :disabled="editDisabled || form.whetherEnable == '是'"></dic-select>
|
|
|
</template>
|
|
|
<template slot="perDiemAfterFreeDays">
|
|
|
- <el-button type="primary" size="small" @click.stop="openRtDialog"
|
|
|
- :disabled="editDisabled">箱租金条款</el-button>
|
|
|
+ <el-button type="primary" size="small" @click.stop="openRtDialog">箱租金条款</el-button>
|
|
|
<!-- <el-link type="primary" :underline="false" @click.stop="openRtDialog">箱租金条款</el-link> -->
|
|
|
</template>
|
|
|
<template slot="boxNumber">
|
|
|
@@ -235,9 +234,9 @@
|
|
|
@selection-change="pickChange" @resetColumn="resetColumn('crud5', 'pickOption', 'pickOptionBack', 518)"
|
|
|
@saveColumn="saveColumn('crud5', 'pickOption', 'pickOptionBack', 518)">
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="info" plain size="small" :disabled="editDisabled || selecPickList.length == 0"
|
|
|
+ <el-button type="info" plain size="small" :disabled="selecPickList.length == 0"
|
|
|
@click="allClick('合并生成')">合并生成费用</el-button>
|
|
|
- <el-button type="danger" plain size="small" :disabled="editDisabled || selecPickList.length == 0"
|
|
|
+ <el-button type="danger" plain size="small" :disabled="selecPickList.length == 0"
|
|
|
@click="allClick('撤销生成')">撤销生成费用</el-button>
|
|
|
<el-button type="warning" plain size="small" @click="allClick('批量导入费用')">批量导入费用</el-button>
|
|
|
</template>
|
|
|
@@ -250,9 +249,9 @@
|
|
|
@selection-change="perChange" @resetColumn="resetColumn('crud6', 'perOption', 'perOptionBack', 519)"
|
|
|
@saveColumn="saveColumn('crud6', 'perOption', 'perOptionBack', 519)">
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="info" plain size="small" :disabled="editDisabled || selecPerList.length == 0"
|
|
|
+ <el-button type="info" plain size="small" :disabled="selecPerList.length == 0"
|
|
|
@click="allClick('合并生成2')">合并生成费用</el-button>
|
|
|
- <el-button type="danger" plain size="small" :disabled="editDisabled || selecPerList.length == 0"
|
|
|
+ <el-button type="danger" plain size="small" :disabled="selecPerList.length == 0"
|
|
|
@click="allClick('撤销生成2')">撤销生成费用</el-button>
|
|
|
<el-button type="success" plain size="small" @click="allClick('生成箱使费')"
|
|
|
:disabled="form.tradingBoxItemsList.length == 0">生成箱使费</el-button>
|
|
|
@@ -600,16 +599,16 @@
|
|
|
</template>
|
|
|
<template slot="menu" slot-scope="{ row, index }">
|
|
|
<el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row, index)"
|
|
|
- :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">{{ row.$cellEdit ? '保存' :
|
|
|
+ :disabled="editDisabled||feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">{{ row.$cellEdit ? '保存' :
|
|
|
'编辑'
|
|
|
}}</el-button>
|
|
|
<el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
|
|
|
- :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">删除</el-button>
|
|
|
+ :disabled="editDisabled||feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">删除</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="rtSubmit" size="mini"
|
|
|
- :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">保 存</el-button>
|
|
|
+ :disabled="editDisabled||feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">保 存</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog append-to-body title="批量修改POD场站" :visible.sync="podDialog" width="30%" v-dialog-drag>
|
|
|
@@ -2453,11 +2452,11 @@ export default {
|
|
|
},
|
|
|
countChange(row) {
|
|
|
if (row.curCode == this.getLocalCurrency()) {
|
|
|
- row.amountCNY = _.round(_.multiply(row.price, row.quantity), 2)
|
|
|
+ row.amountCNY = _.round(_.multiply(Number(row.price ? row.price : 0), Number(row.quantity ? row.quantity : 0)), 2)
|
|
|
row.amountUSD = 0
|
|
|
} else {
|
|
|
row.amountCNY = 0
|
|
|
- row.amountUSD = _.round(_.multiply(row.price, row.quantity), 2)
|
|
|
+ row.amountUSD = _.round(_.multiply(Number(row.price ? row.price : 0), Number(row.quantity ? row.quantity : 0)), 2)
|
|
|
}
|
|
|
},
|
|
|
activationSubmit() {
|