|
@@ -138,8 +138,9 @@
|
|
|
<template slot="curCode" slot-scope="{ row }">
|
|
|
<search-query v-if="row.edit" :datalist="curCodeData" :selectValue="row.curCode" :filterable="true"
|
|
|
:clearable="true" :remote="true" :buttonIf="false"
|
|
|
- :forParameter="{ key: 'id', label: 'code', value: 'code' }" @remoteMethod="bcurrencyGetExratefun('D')"
|
|
|
- @corpChange="corpChange($event, 'curCode', row, 'D')" @corpFocus="bcurrencyGetExratefun('D')">
|
|
|
+ :forParameter="{ key: 'id', label: 'code', value: 'code' }"
|
|
|
+ @remoteMethod="bcurrencyGetExratefun('D')" @corpChange="corpChange($event, 'curCode', row, 'D')"
|
|
|
+ @corpFocus="bcurrencyGetExratefun('D')">
|
|
|
</search-query>
|
|
|
<span v-else>{{ row.curCode }}</span>
|
|
|
</template>
|
|
@@ -148,12 +149,12 @@
|
|
|
</template>
|
|
|
<template slot="price" slot-scope="{ row }">
|
|
|
<el-input-number v-if="row.edit" v-model="row.price" size="small" :controls="false" :precision="2"
|
|
|
- placeholder="请输入" @blur="priceinputfun($event, row)"></el-input-number>
|
|
|
+ placeholder="请输入" @blur="priceinputfun($event, row)" style="width: 100%;"></el-input-number>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
|
<template slot="quantity" slot-scope="{ row }">
|
|
|
<el-input-number v-if="row.edit" v-model="row.quantity" size="small" :min="1" :controls="false"
|
|
|
- :precision="0" placeholder="请输入" @blur="quantityinputfun(row)"></el-input-number>
|
|
|
+ :precision="0" placeholder="请输入" @blur="quantityinputfun(row)" style="width: 100%;"></el-input-number>
|
|
|
<span v-else>{{ row.quantity }}</span>
|
|
|
</template>
|
|
|
<template slot="remarks" slot-scope="{ row }">
|
|
@@ -277,8 +278,9 @@
|
|
|
<template slot="curCode" slot-scope="{ row }">
|
|
|
<search-query v-if="row.edit" :datalist="curCodeData" :selectValue="row.curCode" :filterable="true"
|
|
|
:clearable="true" :remote="true" :buttonIf="false"
|
|
|
- :forParameter="{ key: 'id', label: 'code', value: 'code' }" @remoteMethod="bcurrencyGetExratefun('C')"
|
|
|
- @corpChange="corpChange($event, 'curCode', row, 'C')" @corpFocus="bcurrencyGetExratefun('C')">
|
|
|
+ :forParameter="{ key: 'id', label: 'code', value: 'code' }"
|
|
|
+ @remoteMethod="bcurrencyGetExratefun('C')" @corpChange="corpChange($event, 'curCode', row, 'C')"
|
|
|
+ @corpFocus="bcurrencyGetExratefun('C')">
|
|
|
</search-query>
|
|
|
<span v-else>{{ row.curCode }}</span>
|
|
|
</template>
|
|
@@ -287,12 +289,12 @@
|
|
|
</template>
|
|
|
<template slot="price" slot-scope="{ row }">
|
|
|
<el-input-number v-if="row.edit" v-model="row.price" size="small" :controls="false" :precision="2"
|
|
|
- placeholder="请输入" @blur="priceinputfun($event, row)"></el-input-number>
|
|
|
+ placeholder="请输入" @blur="priceinputfun($event, row)" style="width: 100%;"></el-input-number>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
|
<template slot="quantity" slot-scope="{ row }">
|
|
|
<el-input-number v-if="row.edit" v-model="row.quantity" size="small" :min="1" :controls="false"
|
|
|
- :precision="0" placeholder="请输入" @blur="quantityinputfun(row)"></el-input-number>
|
|
|
+ :precision="0" placeholder="请输入" @blur="quantityinputfun(row)" style="width: 100%;"></el-input-number>
|
|
|
<span v-else>{{ row.quantity }}</span>
|
|
|
</template>
|
|
|
<template slot="remarks" slot-scope="{ row }">
|
|
@@ -312,19 +314,17 @@
|
|
|
:row-style="{ height: '16px' }" :cell-style="{ padding: '0px' }" :option="sumOption"
|
|
|
:data="sumData"></avue-crud>
|
|
|
<!--有admin 显示,有收和付各一个也显示出来-->
|
|
|
- <div v-if="roleName.indexOf('admin') != -1 || ((roleName.indexOf('应收修改') != -1 || roleName.indexOf('应收查看') != -1) && (roleName.indexOf('应付修改') != -1 || roleName.indexOf('应付查看') != -1))"
|
|
|
+ <div v-if="roleName.indexOf('admin') != -1 || roleName.indexOf('利润查看') != -1 || ((roleName.indexOf('应收修改') != -1 || roleName.indexOf('应收查看') != -1) && (roleName.indexOf('应付修改') != -1 || roleName.indexOf('应付查看') != -1))"
|
|
|
style="display: flex;align-items: center;justify-content: space-around">
|
|
|
<div style="width: 30%">
|
|
|
<div class="bottomFlex" style="justify-content: space-around">
|
|
|
- <div style="text-align: center">
|
|
|
- <div class="weightfont">¥</div>
|
|
|
- <div>CNY</div>
|
|
|
- </div>
|
|
|
<div>
|
|
|
<div style="color: #81B337">
|
|
|
<span>应收:</span>
|
|
|
<span class="weightnum">¥{{ assemblyForm.amountDr }}元</span>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
<div style="color: #6BBCD1">
|
|
|
<span>应付:</span>
|
|
|
<span class="weightnum">¥{{ assemblyForm.amountCr }}元</span>
|
|
@@ -338,15 +338,13 @@
|
|
|
</div>
|
|
|
<div style="width: 30%">
|
|
|
<div class="bottomFlex" style="justify-content: space-around">
|
|
|
- <div style="text-align: center">
|
|
|
- <div class="weightfont">$</div>
|
|
|
- <div>USD</div>
|
|
|
- </div>
|
|
|
<div>
|
|
|
<div style="color: #81B337">
|
|
|
<span>应收:</span>
|
|
|
<span class="weightnum">${{ assemblyForm.amountDrUsd }}元</span>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
<div style="color: #6BBCD1">
|
|
|
<span>应付:</span>
|
|
|
<span class="weightnum">${{ assemblyForm.amountCrUsd }}元</span>
|
|
@@ -360,15 +358,14 @@
|
|
|
</div>
|
|
|
<div style="width: 30%">
|
|
|
<div class="bottomFlex" style="justify-content: space-around">
|
|
|
- <div style="text-align: center">
|
|
|
- <div class="weightfont">¥</div>
|
|
|
- <div>CNY合计</div>
|
|
|
- </div>
|
|
|
<div>
|
|
|
<div style="color: #81B337">
|
|
|
<span>应收:</span>
|
|
|
<span class="weightnum">¥{{ assemblyForm.amountDrLoc }}元</span>
|
|
|
</div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
<div style="color: #6BBCD1">
|
|
|
<span>应付:</span>
|
|
|
<span class="weightnum">¥{{ assemblyForm.amountCrLoc }}元</span>
|
|
@@ -1911,7 +1908,7 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- this.$set(row, 'amount', Number(row.price) * Number(row.quantity ? row.quantity : 0))
|
|
|
+ this.$set(row, 'amount', Number(row.price ? row.price : 0) * Number(row.quantity ? row.quantity : 0))
|
|
|
// 判断是否有币种
|
|
|
if (!row.curCode) {
|
|
|
return;
|
|
@@ -1938,7 +1935,7 @@ export default {
|
|
|
this.$set(row, 'quantity', 1)
|
|
|
return
|
|
|
}
|
|
|
- this.$set(row, 'amount', Number(row.price ? row.price : 0) * Number(row.quantity))
|
|
|
+ this.$set(row, 'amount', Number(row.price ? row.price : 0) * Number(row.quantity ? row.quantity : 0))
|
|
|
// 判断是否有币种
|
|
|
if (!row.curCode) {
|
|
|
return;
|