diff --git a/components.d.ts b/components.d.ts index ddd007f..4cdd289 100644 --- a/components.d.ts +++ b/components.d.ts @@ -3,15 +3,51 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -export { } +export {} declare module 'vue' { export interface GlobalComponents { Breadcrumb: typeof import('./src/components/Breadcrumb/index.vue')['default'] + ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] + ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] + ElButton: typeof import('element-plus/es')['ElButton'] + ElCarousel: typeof import('element-plus/es')['ElCarousel'] + ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] + ElCascader: typeof import('element-plus/es')['ElCascader'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCol: typeof import('element-plus/es')['ElCol'] + ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] + ElCountdown: typeof import('element-plus/es')['ElCountdown'] + ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] + ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDivider: typeof import('element-plus/es')['ElDivider'] + ElEmpty: typeof import('element-plus/es')['ElEmpty'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElHeader: typeof import('element-plus/es')['ElHeader'] ElIcon: typeof import('element-plus/es')['ElIcon'] ElImage: typeof import('element-plus/es')['ElImage'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] + ElOption: typeof import('element-plus/es')['ElOption'] + ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] + ElPagination: typeof import('element-plus/es')['ElPagination'] + ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] + ElProgress: typeof import('element-plus/es')['ElProgress'] + ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] + ElRow: typeof import('element-plus/es')['ElRow'] + ElSelect: typeof import('element-plus/es')['ElSelect'] + ElStep: typeof import('element-plus/es')['ElStep'] + ElSteps: typeof import('element-plus/es')['ElSteps'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] + ElTag: typeof import('element-plus/es')['ElTag'] + ElTimeline: typeof import('element-plus/es')['ElTimeline'] + ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] + ElUpload: typeof import('element-plus/es')['ElUpload'] EquipCard: typeof import('./src/components/equipCard.vue')['default'] EquipCardHall: typeof import('./src/components/equipCardHall/index.vue')['default'] EquipCardNew: typeof import('./src/components/equipCardNew/index.vue')['default'] diff --git a/env/.env.dev b/env/.env.dev index fa89272..b7fd2d0 100644 --- a/env/.env.dev +++ b/env/.env.dev @@ -7,13 +7,8 @@ VITE_API_URL = '/proxyApi' # 开发环境接口地址 # VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭 -<<<<<<< HEAD -VITE_proxyTarget = 'http://localhost:18080' # 马帅 +VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅 # VITE_proxyTarget = 'http://192.168.0.244:28580' # 马帅 -======= -# VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅 -VITE_proxyTarget = 'http://192.168.0.244:28580' # 马帅 ->>>>>>> dev-sy # VITE_proxyTarget = 'http://192.168.2.129:18080' # 马帅 # VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型) diff --git a/env/.env.production b/env/.env.production index ff00d18..6efbbac 100644 --- a/env/.env.production +++ b/env/.env.production @@ -3,4 +3,4 @@ VITE_ENV = 'production' VITE_BUILD_MODE = 'prod' # 线上环境接口地址 -VITE_API_URL = 'https://production.com' \ No newline at end of file +VITE_API_URL = '/proxyApi' \ No newline at end of file diff --git a/src/http/api/home/index.ts b/src/http/api/home/index.ts index b0df475..8de2fe4 100644 --- a/src/http/api/home/index.ts +++ b/src/http/api/home/index.ts @@ -9,6 +9,16 @@ export const getCompanyListApi = () => { export const getHotSearchListApi = () => { return get('/material-mall/maType/getHotSearch', {}) } +export const getLeaseListApi = (data: any = {}) => { + return post('/material-mall/ma-lease/leaseList', data) +} +export const getLeaseInfoByIdApi = (data: any = {}) => { + return get('/material-mall/ma-lease/getById', data) +} +// 立即接单 +export const setAcceptByIdApi = (data: any = {}) => { + return post('/material-mall/ma-lease/accept', data) +} export const apiGetCollect = (params = {}) => { return post('/zlpt-equip/dev/userCollectList', params) diff --git a/src/router/index.ts b/src/router/index.ts index ef4d61a..5cca330 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -131,19 +131,19 @@ const routes: Array = [ path: '/parity', name: 'parity', meta: { - title: '寻源比价', + title: '租赁需求大厅', isLogin: true, AuthFlag: false, activeName: 'parity', }, - redirect: '/parity/hall', + // redirect: '/parity/hall', component: () => import('views/parity/index.vue'), children: [ { path: 'hall', name: 'hall', meta: { - title: '寻源比价大厅', + title: '租赁需求大厅', isLogin: true, AuthFlag: false, activeName: 'parity', @@ -413,7 +413,7 @@ const routes: Array = [ }, ] }, - // 预约车页面 + // 预约车页面 { path: '/cart', name: 'cart', @@ -434,6 +434,17 @@ const routes: Array = [ keepAlive: false, AuthFlag: false }, + }, + // 需求详情页面 + { + path: '/demand-details', + name: 'demand-details', + component: () => import('views/demand-details/index.vue'), + meta: { + title: '需求详情', + keepAlive: false, + AuthFlag: false + }, } diff --git a/src/views/demand-details/index.vue b/src/views/demand-details/index.vue new file mode 100644 index 0000000..5efca66 --- /dev/null +++ b/src/views/demand-details/index.vue @@ -0,0 +1,530 @@ + + + + + diff --git a/src/views/equip/detail.vue b/src/views/equip/detail.vue index 2d037e7..51655b6 100644 --- a/src/views/equip/detail.vue +++ b/src/views/equip/detail.vue @@ -98,20 +98,8 @@ {{ pageData.dayLeasePrice }} /天 -
- @@ -123,10 +111,7 @@
- -
-
{{ pageData.companyName }}
@@ -158,34 +143,49 @@
装备外观
-
- +
证书展示
-
- 合格证: - xxxxxx.pdf -
-
- 检测证明: - xxxxxx.pdf -
+ + +
合格证:
+
+ +
+
+ +
+
+
+
+ + +
检测证明:
+
+ +
+
+ +
+
+
+
出租记录
- + - - - - - + + + + +
@@ -377,6 +377,8 @@ const route = useRoute() const store = mainStore() const ruleFormRef = ref() const pageParams = route.params + +console.log(pageParams, 'pageParams') const backPath = ref('') const backName = ref('') const currentName = ref('装备详情') @@ -560,13 +562,13 @@ const equipDetailKeyList = reactive([ }, { label: '出厂时间', - key: 'specification', + key: 'productionDate', fn: '', arg: '', }, { label: '整机重量(KG)', - key: '', + key: 'deviceWeight', fn: '', arg: '', }, @@ -855,11 +857,13 @@ const submit = async (Ref) => { }) } -const init = async () => { - await gethotList() - await getData() -} -init() +// const init = async () => { +// await gethotList() +// await getData() +// } +// init() + +getData() // 加入购物车 const onAddCart = async () => { @@ -1272,14 +1276,23 @@ const onAddCart = async () => { .certificate { padding: 40px 30px 10px; - div { + .prove-container { display: flex; - align-items: center; - margin-bottom: 30px; + flex-wrap: wrap; - a { - color: #54b4ff; - cursor: pointer; + div { + width: calc((100% - 30px) / 3); + height: 200px; + margin: 0 15px 15px 0; + + &:nth-child(3n) { + margin: 0; + } + + img { + width: 100%; + height: 100%; + } } } } diff --git a/src/views/equip/list.vue b/src/views/equip/list.vue index 26e7548..fe06cc8 100644 --- a/src/views/equip/list.vue +++ b/src/views/equip/list.vue @@ -241,7 +241,7 @@ const screenChooseList: any = reactive([ index: 2, }, { - name: '1500-20000', + name: '1500-2000', value: [1500, 2000], isChecked: false, index: 2, diff --git a/src/views/parity/index.vue b/src/views/parity/index.vue index 1c5c9c1..1cdd05e 100644 --- a/src/views/parity/index.vue +++ b/src/views/parity/index.vue @@ -62,14 +62,26 @@
-
-
+
+
-
国网***工程起重机租赁需求
+
+ {{ item.leaseName }} +
-
剩余----
+
+ + +
+ + +
+
@@ -77,49 +89,84 @@
装备类目
- -
一级/二级/三级
+ +
{{ item.groupName }}
租赁公司
- -
一级/二级/三级
+ +
{{ item.companyName }}
联系人
- -
一级/二级/三级
+ +
{{ item.person }}
+
+ +
联系电话
+
+ +
{{ item.personPhone }}
- -
装备类目
+ +
预估数量
- -
一级/二级/三级
+ +
{{ item.leaseNum }}
+
+ +
预估租期(天)
+
+ +
{{ item.leaseDay }}
- -
装备类目
+ +
发布时间
- -
一级/二级/三级
+ +
{{ item.startTime }}
+
+ +
截止时间
+
+ +
{{ item.endTime }}
+ +
+ + 需求详情 + + + 接单 + +
- +
-