|
@@ -14,11 +14,11 @@
|
|
|
<OrderActions />
|
|
|
</div>
|
|
|
<div class="order-desc-container">
|
|
|
- <OrderDescInfo />
|
|
|
+ <OrderDescInfo :orderInfo="orderDetail?.orderData" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="order-detail-content">
|
|
|
- <component v-if="currentShowComponentName" :is="currentShowComponentName"></component>
|
|
|
+ <component :order-detail="orderDetail" v-if="currentShowComponentName" :is="currentShowComponentName"></component>
|
|
|
<div v-else>未配置动态组件</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -29,12 +29,16 @@
|
|
|
import OrderDetailCard from './components/order-detail-submodule/OrderDetailCard.vue'
|
|
|
import OrderActions from './components/order-detail-submodule/OrderActions.vue'
|
|
|
import OrderDescInfo from './components/order-detail-submodule/OrderDescInfo.vue'
|
|
|
+import OrderAuditRecords from './components/order-detail-submodule/AuditRecords.vue'
|
|
|
+import { ajaxGetOrderDetail } from '@/api/modules/index'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'OrderDetail',
|
|
|
components: {
|
|
|
OrderActions,
|
|
|
OrderDescInfo,
|
|
|
OrderDetailCard,
|
|
|
+ OrderAuditRecords
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -48,6 +52,7 @@ export default {
|
|
|
{
|
|
|
label: '审核记录',
|
|
|
name: 'auditRecords',
|
|
|
+ componentName: 'OrderAuditRecords'
|
|
|
},
|
|
|
{
|
|
|
label: '协议信息',
|
|
@@ -84,6 +89,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
activeTabName: 'orderDetail',
|
|
|
+ orderDetail: {}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -103,7 +109,15 @@ export default {
|
|
|
this.getOrderDetail()
|
|
|
},
|
|
|
methods: {
|
|
|
- getOrderDetail() {}
|
|
|
+ async getOrderDetail() {
|
|
|
+ const { id } = this.$route.params
|
|
|
+ const { error_code: code, data } = await ajaxGetOrderDetail({ orderCode: id })
|
|
|
+ if (code === 0) {
|
|
|
+ this.orderDetail = data
|
|
|
+ } else {
|
|
|
+ this.$message.error('获取订单详情失败')
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|