|
@@ -54,11 +54,16 @@
|
|
|
<span v-if="scope.row.salePrice || scope.row.salePrice==0">¥{{ scope.row.salePrice }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="佣金" align="center" prop="withdrawTotal">
|
|
|
+ <el-table-column label="佣金" align="center" prop="brokeragePrice">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.brokeragePrice || scope.row.brokeragePrice==0">¥{{ scope.row.brokeragePrice }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="佣金单价" align="center" prop="brokeragePriceRate">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ brokeragePriceRate(scope.row) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="佣金税率(%)" align="center" prop="brokerageTaxRate" />
|
|
|
<el-table-column label="状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
@@ -139,6 +144,7 @@
|
|
|
import { pageList, deleteById, updateStatus } from '@/api/distribution/ticketMr'
|
|
|
import addAndEdit from "./dialog/addAndEdit.vue";
|
|
|
import setTaxRate from "./dialog/setTaxRate.vue"
|
|
|
+import * as mathFun from 'mathjs'
|
|
|
export default {
|
|
|
name: "agreement",
|
|
|
dicts: ['distribution_type'],
|
|
@@ -325,6 +331,18 @@ export default {
|
|
|
this.visibleStatus = true
|
|
|
this.visibleType = type;
|
|
|
this.newObj = obj;
|
|
|
+ },
|
|
|
+ /** 佣金单价 */
|
|
|
+ brokeragePriceRate(row){
|
|
|
+ let str = '-'
|
|
|
+ if(row.brokeragePrice&&row.brokerageTaxRate){
|
|
|
+ str = mathFun.subtract(row.brokeragePrice,mathFun.multiply(row.brokeragePrice,row.brokerageTaxRate/100))
|
|
|
+ }else if(row.brokeragePrice||row.brokerageTaxRate==0||row.brokeragePrice==0) {
|
|
|
+ str = row.brokeragePrice
|
|
|
+ }else {
|
|
|
+ str = '-'
|
|
|
+ }
|
|
|
+ return str!='-'? '¥' + ( str.toFixed(2) ):str
|
|
|
}
|
|
|
}
|
|
|
};
|