Browse Source

优化

master
ltlzx 4 years ago
parent
commit
c9376ba64a
  1. 16
      src/components/orderDetails/index.vue

16
src/components/orderDetails/index.vue

@ -64,11 +64,13 @@
<!-- <p>保证金¥ {{order_info.earnest_money}}</p> --> <!-- <p>保证金¥ {{order_info.earnest_money}}</p> -->
<p v-for="(item,index) in ratio_setting.detail" :key="index"> <p v-for="(item,index) in ratio_setting.detail" :key="index">
<span>{{item.role_type==2?'被授权方交易佣金':item.role_type==1?'授权方交易结算':'平台方结算'}}比例 <span>{{item.role_type==2?'被授权方交易佣金':item.role_type==1?'授权方交易结算':'平台方结算'}}比例
{{item.calculate==1?item.ratio:item.amount}} {{item.calculate==1?item.ratio:item.amount}} %
</span> </span>
</p> </p>
<p>交易佣金金额¥ {{order.total_service_charge}}</p> <p>交易佣金金额¥ {{order.total_service_charge}}</p>
<p>订单金额¥ {{order_info.total_money}} </p> <p>订单金额¥ {{order_info.total_money}} </p>
<p>标的总价款¥ {{parseFloat(order_info.total_money) - order.total_service_charge}} </p>
</div> </div>
</div> </div>
@ -233,11 +235,11 @@
this.bill=res.data.bill this.bill=res.data.bill
this.buyuser=res.data.buyuser this.buyuser=res.data.buyuser
this.ratio_setting=res.data.ratio_setting this.ratio_setting=res.data.ratio_setting
this.ratio_setting.detail.splice( // this.ratio_setting.detail.splice(
1, // 1,
1, // 1,
...this.ratio_setting.detail.splice(1 - 1, 1, this.ratio_setting.detail[1]) // ...this.ratio_setting.detail.splice(1 - 1, 1, this.ratio_setting.detail[1])
); // );
console.info(this.ratio_setting) console.info(this.ratio_setting)
}else{ }else{
this.$message.error(res.msg); this.$message.error(res.msg);

Loading…
Cancel
Save