|
|
@@ -30,7 +30,7 @@
|
|
|
:clearable="true" :remote="true" :buttonIf="false" :disabled="dcDisabled"
|
|
|
@corpChange="corpChange($event, 'dc', row)" placeholder="请选择收/付">
|
|
|
</search-query>
|
|
|
- <span v-else>{{ row.dc=="D"?'收':'付' }}</span>
|
|
|
+ <span v-else>{{ row.dc == "D" ? '收' : '付' }}</span>
|
|
|
</template>
|
|
|
<template slot="corpCnName" slot-scope="{ row }">
|
|
|
<search-query v-if="row.editType" :datalist="corpCnNameData" :selectValue="row.corpCnName"
|
|
|
@@ -448,6 +448,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} else if (name == 'feeCnName') {
|
|
|
+ if (!row.dc) {
|
|
|
+ return this.$message.error('请选择收付方式')
|
|
|
+ }
|
|
|
if (!value) {
|
|
|
this.$set(row, 'feeCnName', '')
|
|
|
this.$set(row, 'feeEnName', '')
|
|
|
@@ -486,7 +489,9 @@ export default {
|
|
|
}
|
|
|
await this.checkRate(null, (this.form.etd ? this.form.etd + ' 00:00:00' : null), row.dc, 1, this.form.branchId)
|
|
|
this.curCodeData = this.getCheckRate()
|
|
|
- this.$set(row, 'exrate', this.getExchangeRate(item.curCode, row.dc, 1))
|
|
|
+ console.log(item.curNo, row, 1)
|
|
|
+ console.log(this.getExchangeRate(item.curNo, row.dc, 1), 1111111111)
|
|
|
+ this.$set(row, 'exrate', this.getExchangeRate(item.curNo, row.dc, 1))
|
|
|
// // 汇率
|
|
|
// bcurrencyGetExrate({
|
|
|
// date: this.form.etd ? this.form.etd.slice(0, 10) + ' 00:00:00' : dateFormat(new Date(), "yyyy-MM-dd") + ' 00:00:00', // 开船日期
|
|
|
@@ -548,7 +553,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.$set(row, 'amount', Number(row.price ? row.price : 0) * Number(row.quantity ? row.quantity : 0))
|
|
|
- if (row.curCode ==this.getLocalCurrency()) {
|
|
|
+ if (row.curCode == this.getLocalCurrency()) {
|
|
|
this.$set(row, 'rmbAmount', row.amount)
|
|
|
this.$set(row, 'usdAmount', '')
|
|
|
this.$set(row, 'rmbAmountNet', row.amount)
|
|
|
@@ -566,7 +571,7 @@ export default {
|
|
|
}
|
|
|
for (let item of this.curCodeData) {
|
|
|
if (item.code == value) {
|
|
|
- if (item.code !=this.getLocalCurrency()) {
|
|
|
+ if (item.code != this.getLocalCurrency()) {
|
|
|
if (Number(item.exrate) <= 0) {
|
|
|
this.$message.warning('当前选择的币别汇率不能小于零')
|
|
|
return
|