@@ -655,11 +657,13 @@ onUnmounted(() => {
})
// 点击跳转装备详情
-const onHandleDetails = (id: number | string) => {
+const onHandleDetails = (row: any) => {
+ console.log('🚀 ~ onHandleDetails ~ row:', row)
router.push({
- name: 'equipDetail',
+ name: row.manageMode == '0' ? 'equipDetail' : 'NumEquipDetail',
query: {
- id,
+ id: row.maId,
+ devType: row.devType,
},
})
}
diff --git a/src/views/equip/numDetail.vue b/src/views/equip/numDetail.vue
new file mode 100644
index 0000000..a97d6e9
--- /dev/null
+++ b/src/views/equip/numDetail.vue
@@ -0,0 +1,1536 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ pageData.deviceName }}
+
+
+
+
+
浏览 {{ pageData.searchNum }}
+
+
+
+
+
+ {{ v.label }}:
+
+
+
+ {{
+ v.key
+ .split(',')
+ .map((key) => {
+ return pageData[key]
+ })
+ .join('')
+ }}
+
+
+
+
+
+
+ 加入预约车
+
+
+
+
+ 立即承租
+
+
+
+
+
+
+
+
+
+
{{ pageData.personPhone }}
+
+
+ 在线聊
+
+
+
+
+
+
+
{{ pageData.companyName }}
+
+
+
{{ v.label }}:
+
{{ pageData[v.key] }}
+
+
+
+
+
+
+
+
+
+
出租记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+
+ 否
+
+
+
+
+
+
+ 不需要
+ 增值税普票
+ 增值税专票
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 合计总价:
+ {{ priceChange }}元
+
+
+
+
+
+
+
+
+ {{ pageData.authPhone }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/index.vue b/src/views/order/index.vue
index 44a5809..9580d88 100644
--- a/src/views/order/index.vue
+++ b/src/views/order/index.vue
@@ -123,8 +123,8 @@
@@ -259,7 +259,7 @@ import { getBookCarDetailByMaId, submitBookCarApi } from '../../http/api/order/i
import { getBookCarAgreementApi } from 'http/api/cart/index'
import CustomDatePickerButton from '../cart/components/date-picker-button.vue'
import { getAddressListApi } from 'http/api/address-manage/index'
-import { getDetail } from 'http/api/equip'
+import { getCodeNumDetailApi } from 'http/api/equip'
import moment from 'moment'
import { useRoute, useRouter } from 'vue-router'
import { useStore } from '../../store/user'
@@ -281,7 +281,7 @@ const getOrderListData = async () => {
const addParams = {
maId: Number(pageParams.maId),
}
- const res: any = await getDetail(route.query.id, false)
+ const res: any = await getCodeNumDetailApi({ id: route.query.id, devType: route.query.devType})
console.log(res, '装备详情')
orderList.value = []
// orderList.value = res.data