|
|
|
@ -25,21 +25,21 @@ |
|
|
|
<uni-th align="center">交易佣金</uni-th> |
|
|
|
<uni-th align="center">合计</uni-th> |
|
|
|
</uni-tr> |
|
|
|
<uni-tr v-for="(item, index) in tableList" :key="index"> |
|
|
|
<uni-tr v-for="(item, index) in order_detail_list" :key="index"> |
|
|
|
<uni-td align="center"> |
|
|
|
<image v-if="item.order_detail[0].goods_image" class="td-image" :src="item.order_detail[0].goods_image"></image> |
|
|
|
<image v-if="item.goods_image" class="td-image" :src="item.goods_image"></image> |
|
|
|
<image v-else-if="img" class="td-image" :src="img"></image> |
|
|
|
</uni-td> |
|
|
|
<uni-td align="center">{{ item.order_detail[0].goods_name }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.buy_islicode }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.price_type}}</uni-td> |
|
|
|
<uni-td align="center">{{ item.goods_entrust }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.order_detail[0].entrust_name }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.price }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.transaction_count }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.goods_name }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.goods_islicode }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.price > 0 ? '付费' : '免费'}}</uni-td> |
|
|
|
<uni-td align="center">{{ item.goods_entrust_str }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.entrust_name }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.price_str }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.transaction_count_str }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.small_count }}</uni-td> |
|
|
|
<uni-td align="center">¥{{ item.order_detail[0].service_charge }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.money }}</uni-td> |
|
|
|
<uni-td align="center">¥{{ item.service_charge }}</uni-td> |
|
|
|
<uni-td align="center">{{ item.money_str }}</uni-td> |
|
|
|
</uni-tr> |
|
|
|
</uni-table> |
|
|
|
<view class="uni-pagination-box"><uni-pagination show-icon :page-size="pageSize" :current="pageCurrent" :total="total" @change="change" /></view> |
|
|
|
@ -130,6 +130,7 @@ export default { |
|
|
|
payResult: 0, // 支付结果提示 |
|
|
|
goBuyOrder: false, // 是否显示跳转到订单页面按钮 |
|
|
|
img: '', // 默认支付订单图 |
|
|
|
order_detail_list: [], // 默认支付订单图 |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
@ -184,6 +185,7 @@ export default { |
|
|
|
app.loading = false |
|
|
|
app.tableList = res.data |
|
|
|
app.good_money = res.data[0].total_money |
|
|
|
app.order_detail_list = app.tableList[0].order_detail |
|
|
|
app.handlerTableList() |
|
|
|
app.quantitySale(app.tableList[0].order_detail) |
|
|
|
} else { |
|
|
|
@ -196,33 +198,33 @@ export default { |
|
|
|
// 处理table数据 |
|
|
|
handlerTableList() { |
|
|
|
const app = this |
|
|
|
this.tableList.map(item => { |
|
|
|
let order_detail = item.order_detail[0] |
|
|
|
item.price_type = order_detail.price > 0 ? '付费' : '免费' |
|
|
|
if (order_detail.goods_entrust == 1) { |
|
|
|
item.goods_entrust = "转让" |
|
|
|
} else if (order_detail.goods_entrust == 2) { |
|
|
|
item.goods_entrust = "授权" |
|
|
|
app.order_detail_list.map(items => { |
|
|
|
if (items.goods_entrust == 1) { |
|
|
|
items.goods_entrust_str = "转让" |
|
|
|
} else if (items.goods_entrust == 2) { |
|
|
|
items.goods_entrust_str = "授权" |
|
|
|
} |
|
|
|
item.price = app.handlerPrice(order_detail.price) |
|
|
|
if (order_detail.transaction_count == "-" && order_detail.goods_entrust == "1") { |
|
|
|
item.transaction_count = "永久" |
|
|
|
} else if (order_detail.price == 0) { |
|
|
|
item.transaction_count = "永久" |
|
|
|
items.price_str = app.handlerPrice(items.price) |
|
|
|
if (items.transaction_count == "-" && items.goods_entrust == "1") { |
|
|
|
items.transaction_count_str = "永久" |
|
|
|
} else if (items.price == 0) { |
|
|
|
items.transaction_count_str = "永久" |
|
|
|
} else { |
|
|
|
item.transaction_count = order_detail.transaction_count + '年' |
|
|
|
items.transaction_count_str = items.transaction_count + '年' |
|
|
|
} |
|
|
|
item.small_count = '' |
|
|
|
if (order_detail.goods_entrust == "2" && Number(order_detail.price) > 0) { |
|
|
|
let total = Math.floor(parseFloat(order_detail.price * 100 * order_detail.transaction_count)) / 100; |
|
|
|
item.small_count = app.handlerPrice(total) |
|
|
|
|
|
|
|
items.small_count = '' |
|
|
|
if (items.goods_entrust == "2" && Number(items.price) > 0) { |
|
|
|
let total = Math.floor(parseFloat(items.price * 100 * items.transaction_count)) / 100; |
|
|
|
items.small_count = app.handlerPrice(total) |
|
|
|
} else { |
|
|
|
item.small_count = app.handlerPrice(order_detail.price) |
|
|
|
items.small_count = app.handlerPrice(items.price) |
|
|
|
} |
|
|
|
item.money = app.handlerPrice(order_detail.money) |
|
|
|
|
|
|
|
items.money_str = app.handlerPrice(items.money) |
|
|
|
}) |
|
|
|
|
|
|
|
if (this.good_money > 20000) { |
|
|
|
if (this.tableList[0].total_money > 20000) { |
|
|
|
// 禁用支付按钮 |
|
|
|
app.isDisabled = true |
|
|
|
} |
|
|
|
@ -294,14 +296,9 @@ export default { |
|
|
|
//计算年限 |
|
|
|
let user_year = null; |
|
|
|
|
|
|
|
for (let i = 0; i < app.tableList.length; i++) { |
|
|
|
for (let i = 0; i < app.order_detail_list.length; i++) { |
|
|
|
|
|
|
|
let All_data = app.tableList[i] |
|
|
|
|
|
|
|
if (app.batchcode != All_data.batchcode) { |
|
|
|
continue |
|
|
|
} |
|
|
|
let item = All_data.order_detail[0] |
|
|
|
let item = app.order_detail_list[i] |
|
|
|
|
|
|
|
//销售量参数 |
|
|
|
paramArr.marketislicode.push(item.goods_islicode) |
|
|
|
|