|
@@ -6,15 +6,19 @@
|
|
<van-dropdown-item
|
|
<van-dropdown-item
|
|
:title="'类型'"
|
|
:title="'类型'"
|
|
v-model="orderPlatformSonType"
|
|
v-model="orderPlatformSonType"
|
|
- :options="ordertype"/>
|
|
|
|
|
|
+ :options="ordertype"
|
|
|
|
+ @change="handleTypeChange"/>
|
|
<van-dropdown-item
|
|
<van-dropdown-item
|
|
:title="'状态'"
|
|
:title="'状态'"
|
|
v-model="orderStatus"
|
|
v-model="orderStatus"
|
|
- :options="arrOrderStatus"/>
|
|
|
|
|
|
+ :options="arrOrderStatus"
|
|
|
|
+ @change="handleStatusChange"/>
|
|
</van-dropdown-menu>
|
|
</van-dropdown-menu>
|
|
<Main
|
|
<Main
|
|
:orderPlatformSonType="orderPlatformSonType"
|
|
:orderPlatformSonType="orderPlatformSonType"
|
|
- :orderStatus="orderStatus"/>
|
|
|
|
|
|
+ :orderStatus="orderStatus"
|
|
|
|
+ @setOrderDetail="setOrderDetail"
|
|
|
|
+ ref="myMain"/>
|
|
<van-popup
|
|
<van-popup
|
|
class="fbt-van-popup"
|
|
class="fbt-van-popup"
|
|
v-model="showDetail"
|
|
v-model="showDetail"
|
|
@@ -22,29 +26,29 @@
|
|
<div class="fbt-van-popup-body">
|
|
<div class="fbt-van-popup-body">
|
|
<h3>订单详情</h3>
|
|
<h3>订单详情</h3>
|
|
<p>
|
|
<p>
|
|
- <span class="label" style="color: #333333;">饿了么</span>
|
|
|
|
|
|
+ <span class="label" style="color: #333333;">{{ orderDetail.order_platform_son_type }}</span>
|
|
<span class="value"></span>
|
|
<span class="value"></span>
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
<span class="label">支付时间:</span>
|
|
<span class="label">支付时间:</span>
|
|
- <span class="value">2021-8-12 09:23:04</span>
|
|
|
|
|
|
+ <span class="value">{{ orderDetail.order_pay_at }}</span>
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
<span class="label">订单号:</span>
|
|
<span class="label">订单号:</span>
|
|
<span class="value">
|
|
<span class="value">
|
|
- <i>126452164518</i>
|
|
|
|
|
|
+ <i>{{ orderDetail.order_number }}</i>
|
|
<a href="javascript:;">复制</a>
|
|
<a href="javascript:;">复制</a>
|
|
</span>
|
|
</span>
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
<span class="label">支付金额:</span>
|
|
<span class="label">支付金额:</span>
|
|
- <span class="value">¥23</span>
|
|
|
|
|
|
+ <span class="value">¥{{ orderDetail.order_price | fen2Yuan }}</span>
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
<span class="label">预计收益:</span>
|
|
<span class="label">预计收益:</span>
|
|
- <span class="value" style="color: #FA4A4A;">¥1.2</span>
|
|
|
|
|
|
+ <span class="value" style="color: #FA4A4A;">¥{{ orderDetail.order_commission | fen2Yuan }}</span>
|
|
</p>
|
|
</p>
|
|
- <p class="status">未结算</p>
|
|
|
|
|
|
+ <p class="status">{{ ['未支付', '已支付', '已收获', '已结算', '全部退款或风控', '部分退款', '已取消'][orderDetail.order_status] }}</p>
|
|
</div>
|
|
</div>
|
|
</van-popup>
|
|
</van-popup>
|
|
</div>
|
|
</div>
|
|
@@ -71,7 +75,8 @@ export default {
|
|
{ text: '未结算', value: 1 },
|
|
{ text: '未结算', value: 1 },
|
|
{ text: '已结算', value: 2 }
|
|
{ text: '已结算', value: 2 }
|
|
],
|
|
],
|
|
- showDetail: false
|
|
|
|
|
|
+ showDetail: false,
|
|
|
|
+ orderDetail: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -87,6 +92,22 @@ export default {
|
|
},
|
|
},
|
|
async mounted () {
|
|
async mounted () {
|
|
await this.$nextTick()
|
|
await this.$nextTick()
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ handleTypeChange () {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.myMain.onRefresh()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ handleStatusChange () {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.myMain.onRefresh()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ setOrderDetail (obj) {
|
|
|
|
+ this.orderDetail = obj
|
|
|
|
+ this.showDetail = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|