提交申请弹窗
This commit is contained in:
parent
7b06004501
commit
76dd1d4095
|
|
@ -0,0 +1,458 @@
|
||||||
|
{
|
||||||
|
"province": [
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "34",
|
||||||
|
"parentCode": "0",
|
||||||
|
"name": "安徽省",
|
||||||
|
"latitude": 31.859253,
|
||||||
|
"longitude": 117.216,
|
||||||
|
"level": 1,
|
||||||
|
"region": 2,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"city":[
|
||||||
|
{
|
||||||
|
"id": 129,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3401",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "合肥市",
|
||||||
|
"latitude": 31.866941,
|
||||||
|
"longitude": 117.2827,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 130,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3402",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "芜湖市",
|
||||||
|
"latitude": 31.36602,
|
||||||
|
"longitude": 118.38411,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 131,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3403",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "蚌埠市",
|
||||||
|
"latitude": 32.9295,
|
||||||
|
"longitude": 117.35708,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 132,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3404",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "淮南市",
|
||||||
|
"latitude": 32.64281,
|
||||||
|
"longitude": 117.01864,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 133,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3405",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "马鞍山市",
|
||||||
|
"latitude": 31.688528,
|
||||||
|
"longitude": 118.515884,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 134,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3406",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "淮北市",
|
||||||
|
"latitude": 33.960022,
|
||||||
|
"longitude": 116.79145,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 135,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3407",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "铜陵市",
|
||||||
|
"latitude": 30.94093,
|
||||||
|
"longitude": 117.81943,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 136,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3408",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "安庆市",
|
||||||
|
"latitude": 30.537897,
|
||||||
|
"longitude": 117.05874,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 137,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3410",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "黄山市",
|
||||||
|
"latitude": 29.734434,
|
||||||
|
"longitude": 118.29357,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 138,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3411",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "滁州市",
|
||||||
|
"latitude": 32.317352,
|
||||||
|
"longitude": 118.32457,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 139,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3412",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "阜阳市",
|
||||||
|
"latitude": 32.90121,
|
||||||
|
"longitude": 115.82093,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 140,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3413",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "宿州市",
|
||||||
|
"latitude": 33.636772,
|
||||||
|
"longitude": 116.98869,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 141,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3415",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "六安市",
|
||||||
|
"latitude": 31.755558,
|
||||||
|
"longitude": 116.50525,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 142,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3416",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "亳州市",
|
||||||
|
"latitude": 33.871212,
|
||||||
|
"longitude": 115.787926,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 143,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3417",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "池州市",
|
||||||
|
"latitude": 30.660019,
|
||||||
|
"longitude": 117.49448,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 144,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "3418",
|
||||||
|
"parentCode": "34",
|
||||||
|
"name": "宣城市",
|
||||||
|
"latitude": 30.951643,
|
||||||
|
"longitude": 118.7521,
|
||||||
|
"level": 2,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"county": [
|
||||||
|
{
|
||||||
|
"id": 1434,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340101",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "市辖区",
|
||||||
|
"latitude": null,
|
||||||
|
"longitude": null,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1435,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340102",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "瑶海区",
|
||||||
|
"latitude": 31.905375,
|
||||||
|
"longitude": 117.33122,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1436,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340103",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "庐阳区",
|
||||||
|
"latitude": 31.9129,
|
||||||
|
"longitude": 117.24783,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1437,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340104",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "蜀山区",
|
||||||
|
"latitude": 31.838184,
|
||||||
|
"longitude": 117.23128,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1438,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340111",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "包河区",
|
||||||
|
"latitude": 31.790724,
|
||||||
|
"longitude": 117.35391,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1439,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340121",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "长丰县",
|
||||||
|
"latitude": 32.28611,
|
||||||
|
"longitude": 117.17444,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1440,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340122",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "肥东县",
|
||||||
|
"latitude": 32.00319,
|
||||||
|
"longitude": 117.57586,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1441,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340123",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "肥西县",
|
||||||
|
"latitude": 31.732637,
|
||||||
|
"longitude": 117.03626,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1442,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340124",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "庐江县",
|
||||||
|
"latitude": 31.2556651,
|
||||||
|
"longitude": 117.287345,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1443,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340171",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "合肥高新技术产业开发区",
|
||||||
|
"latitude": null,
|
||||||
|
"longitude": null,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1444,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340172",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "合肥经济技术开发区",
|
||||||
|
"latitude": null,
|
||||||
|
"longitude": null,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1445,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340173",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "合肥新站高新技术产业开发区",
|
||||||
|
"latitude": null,
|
||||||
|
"longitude": null,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1446,
|
||||||
|
"platformId": 20,
|
||||||
|
"code": "340181",
|
||||||
|
"parentCode": "3401",
|
||||||
|
"name": "巢湖市",
|
||||||
|
"latitude": null,
|
||||||
|
"longitude": null,
|
||||||
|
"level": 3,
|
||||||
|
"region": null,
|
||||||
|
"status": 1,
|
||||||
|
"created": null,
|
||||||
|
"modified": null,
|
||||||
|
"yn": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,10 +1,24 @@
|
||||||
import { post,get } from '../index'
|
import { post,get,put } from '../index'
|
||||||
|
|
||||||
// 获取装备列表
|
// 获取装备列表
|
||||||
export const getList = (params = {}) => {
|
export const getList = (params = {}) => {
|
||||||
return post('/dev/list',params)
|
return post('/dev/list',params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取装备详情
|
||||||
export const getDetail = (id = '') => {
|
export const getDetail = (id = '') => {
|
||||||
return get(`/dev/${id}`)
|
return get(`/dev/${id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取 推荐装备列表
|
||||||
|
export const getHotList = (params) => {
|
||||||
|
return get('/dev/hotList',params)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const equipCollect = (params = {}) => {
|
||||||
|
return put('/collect',params)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const apiSubmitLease = (params = {}) => {
|
||||||
|
return post('/details',params)
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ export function post(url: string, params: any) {
|
||||||
})
|
})
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
console.log('---------------------------', res)
|
|
||||||
if (res.code == '200') {
|
if (res.code == '200') {
|
||||||
resolve(res)
|
resolve(res)
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -131,3 +130,45 @@ export function download(url: string, params: any) {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function put(url: string, params: any) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
NProgress.start()
|
||||||
|
service
|
||||||
|
.put(url, params, {
|
||||||
|
headers: { 'Content-Type': 'application/json; charset=utf-8' }
|
||||||
|
})
|
||||||
|
.then((res: any) => {
|
||||||
|
NProgress.done()
|
||||||
|
if (res.code == '200') {
|
||||||
|
resolve(res)
|
||||||
|
} else {
|
||||||
|
reject(res)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
NProgress.done()
|
||||||
|
reject(err)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function detele(url: string, params: any) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
NProgress.start()
|
||||||
|
service
|
||||||
|
.delete(url, { params })
|
||||||
|
.then((res: any) => {
|
||||||
|
NProgress.done()
|
||||||
|
if (res.code == '200') {
|
||||||
|
resolve(res)
|
||||||
|
} else {
|
||||||
|
reject(res)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
NProgress.done()
|
||||||
|
reject(err.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ export const useStore = defineStore('main', {
|
||||||
state: () => {
|
state: () => {
|
||||||
return {
|
return {
|
||||||
loadingFlag: false, //loading控制,
|
loadingFlag: false, //loading控制,
|
||||||
token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6Ijc5MjRkNDc1LTRjMmUtNGViYy05ZDU0LTA2NzNmNWU0MDhiMyIsInVzZXJuYW1lIjoiYWRtaW4ifQ.M3H9jHnfFAKJ3szdiDb79hIHfiS8AWvaI51mP65l01Q2G0jcLSTvjlub8FykYV3A27If7V6GBRo83u8spRDquw'
|
token: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6ImMyN2M5N2Y5LWQwOGItNDJlNy05N2MzLTYwMDVmODVmNmVhZiIsInVzZXJuYW1lIjoiYWRtaW4ifQ.KNJdSL3g7tjju4OxkUQyBWHBTiuBo5bZFtDWkbZVmm7iR9hA06OS5FSI1_9kb4jPNjE6vc7MGkH4GhQJsIwHnA'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getters: {},
|
getters: {},
|
||||||
|
|
|
||||||
|
|
@ -96,10 +96,20 @@
|
||||||
<div class="publicTitle">
|
<div class="publicTitle">
|
||||||
<div>为您推荐</div>
|
<div>为您推荐</div>
|
||||||
|
|
||||||
<div class="change">换一批</div>
|
<div class="change" @click="gethotList">换一批</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<equip-card class="item" v-for="(v, i) in 3" :key="i" :id="i"></equip-card>
|
<equip-card class="item"
|
||||||
|
@on-click="goDetail"
|
||||||
|
v-for="(v, i) in hotList"
|
||||||
|
:key="i"
|
||||||
|
:url="v.picUrl"
|
||||||
|
:name="`${v.modelName}${v.deviceName}`"
|
||||||
|
:tags="[v.maStatus,v.location]"
|
||||||
|
:company="v.companyName"
|
||||||
|
:price="v.monthLeasePrice"
|
||||||
|
timeUnit="月"
|
||||||
|
:id="v.maId"></equip-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -107,6 +117,7 @@
|
||||||
v-model="dialoglease"
|
v-model="dialoglease"
|
||||||
title="填写租赁信息"
|
title="填写租赁信息"
|
||||||
lock-scroll
|
lock-scroll
|
||||||
|
class="dialoglease"
|
||||||
width="60%"
|
width="60%"
|
||||||
>
|
>
|
||||||
<el-config-provider :locale="zhCn">
|
<el-config-provider :locale="zhCn">
|
||||||
|
|
@ -122,7 +133,7 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="15">
|
<el-col :span="15">
|
||||||
<el-form-item label="设备进场地址" prop="address">
|
<el-form-item label="设备进场地址" prop="address">
|
||||||
<el-input placeholder="请输入地址" v-model="ruleForm.address"></el-input>
|
<el-cascader :props="addressCascader" v-model="ruleForm.address" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -147,7 +158,9 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="15">
|
<el-col :span="15">
|
||||||
<el-form-item label="工期时长" prop="duration">
|
<el-form-item label="工期时长" prop="duration">
|
||||||
<el-input placeholder="请输入地址" v-model="ruleForm.duration"></el-input>
|
<el-input v-model="ruleForm.duration" placeholder="请输入工期时长">
|
||||||
|
<template #append>天</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -183,7 +196,7 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="15">
|
<el-col :span="15">
|
||||||
<el-form-item label="项目说明" prop="projectDescription">
|
<el-form-item label="项目说明" prop="projectDescription">
|
||||||
<el-input placeholder="请填写项目说明" type="textarea"
|
<el-input placeholder="请填写项目说明" rows="5" type="textarea"
|
||||||
v-model="ruleForm.projectDescription"></el-input>
|
v-model="ruleForm.projectDescription"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -205,7 +218,7 @@
|
||||||
></equipDetailTable>
|
></equipDetailTable>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button type="primary" @click="dialoglease = false">
|
<el-button type="primary" @click="submit">
|
||||||
提交
|
提交
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -234,14 +247,19 @@
|
||||||
import ShowImg from './comoonents/showImg.vue'
|
import ShowImg from './comoonents/showImg.vue'
|
||||||
import {reactive, ref} from 'vue'
|
import {reactive, ref} from 'vue'
|
||||||
import EquipCard from 'components/equipCard.vue'
|
import EquipCard from 'components/equipCard.vue'
|
||||||
import {getDetail} from "@/http/api/equip"
|
import {getDetail,getHotList,equipCollect,apiSubmitLease} from "@/http/api/equip"
|
||||||
import {useRoute} from "vue-router";
|
import {useRoute, useRouter} from "vue-router";
|
||||||
import Navmenu from '@/components/Navmenu/index.vue'
|
import Navmenu from '@/components/Navmenu/index.vue'
|
||||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||||||
import equipDetailTable from '@/components/equipDetailTable.vue'
|
import equipDetailTable from '@/components/equipDetailTable.vue'
|
||||||
|
import {ElMessage} from "element-plus";
|
||||||
|
import address from "@/assets/temporaryAddress.json"
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
|
const addressData = reactive(address)
|
||||||
|
|
||||||
const pageParams = route.params
|
const pageParams = route.params
|
||||||
//设备简略基本信息
|
//设备简略基本信息
|
||||||
const equipBaseInfoList = reactive([
|
const equipBaseInfoList = reactive([
|
||||||
|
|
@ -344,13 +362,13 @@ const equipDetailKeyList = reactive([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '检验信息',
|
label: '检验信息',
|
||||||
key: 'look',
|
key: 'isExaminationPdf',
|
||||||
fn: 'openPdf',
|
fn: 'openPdf',
|
||||||
arg: 'examinationPdf'
|
arg: 'examinationPdf'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '保险信息',
|
label: '保险信息',
|
||||||
key: 'look',
|
key: 'isInsurancePdf',
|
||||||
fn: 'openPdf',
|
fn: 'openPdf',
|
||||||
arg: 'insurancePdf'
|
arg: 'insurancePdf'
|
||||||
}
|
}
|
||||||
|
|
@ -369,6 +387,10 @@ const dialoglease = ref(false)
|
||||||
//装备收藏状态
|
//装备收藏状态
|
||||||
const isCollect = ref(false)
|
const isCollect = ref(false)
|
||||||
|
|
||||||
|
//推荐列表
|
||||||
|
const hotList = ref([])
|
||||||
|
|
||||||
|
|
||||||
//我要租 表单数据
|
//我要租 表单数据
|
||||||
const ruleForm = ref({
|
const ruleForm = ref({
|
||||||
address: '',//进场地址
|
address: '',//进场地址
|
||||||
|
|
@ -407,23 +429,62 @@ const openLease = () => {
|
||||||
dialoglease.value = true
|
dialoglease.value = true
|
||||||
}
|
}
|
||||||
//切换收藏状态
|
//切换收藏状态
|
||||||
const collectChange = () => {
|
const collectChange = async () => {
|
||||||
isCollect.value = !isCollect.value
|
isCollect.value = !isCollect.value
|
||||||
|
const params = {
|
||||||
|
maId:pageData.value.maId,
|
||||||
|
isCollect:isCollect.value
|
||||||
|
}
|
||||||
|
const res = await equipCollect(params)
|
||||||
|
if(res.code == '200'){
|
||||||
|
ElMessage({
|
||||||
|
type:'success',
|
||||||
|
duration:1000,
|
||||||
|
message:`装备${isCollect.value ? '收藏' : '取消收藏'}成功`
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//打开商家电话弹窗
|
//打开商家电话弹窗
|
||||||
const openPhone = () => {
|
const openPhone = () => {
|
||||||
dialogPhone.value = !dialogPhone.value
|
dialogPhone.value = !dialogPhone.value
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 打开新标签页查看pdf
|
// 打开新标签页查看pdf
|
||||||
const openPdf = (name) => {
|
const openPdf = (name) => {
|
||||||
|
if(name){
|
||||||
window.open(name)
|
window.open(name)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const that = {
|
const that = {
|
||||||
openPdf
|
openPdf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const addressCascader = {
|
||||||
|
lazy:true,
|
||||||
|
label:'name',
|
||||||
|
value:'id',
|
||||||
|
lazyLoad(node,resolve){
|
||||||
|
const { level } = node
|
||||||
|
setTimeout(() => {
|
||||||
|
let nodes = []
|
||||||
|
if(level == 0){
|
||||||
|
nodes = addressData.province
|
||||||
|
}else if(level == 1){
|
||||||
|
nodes = addressData.city
|
||||||
|
}else if(level == 2){
|
||||||
|
nodes = addressData.county.map((item) => ({
|
||||||
|
...item,
|
||||||
|
leaf:true
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
resolve(nodes)
|
||||||
|
},1000)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const handelDetailListClick = (fnName, arg) => {
|
const handelDetailListClick = (fnName, arg) => {
|
||||||
if (fnName) {
|
if (fnName) {
|
||||||
that[fnName](arg)
|
that[fnName](arg)
|
||||||
|
|
@ -434,18 +495,60 @@ const handelDetailListClick = (fnName, arg) => {
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const res = await getDetail(pageParams.id)
|
const res = await getDetail(pageParams.id)
|
||||||
res.data.isOperatorCn = res.data.isOperator ? '是' : '否'
|
res.data.isOperatorCn = res.data.isOperator ? '是' : '否'
|
||||||
res.data.look = '点击查看'
|
res.data.isInsurancePdf = res.data.insurancePdf ? '点击查看' : '暂无'
|
||||||
|
res.data.isExaminationPdf = res.data.examinationPdf ? '点击查看' : '暂无'
|
||||||
|
|
||||||
isCollect.value = res.data.collectId ? true : false
|
isCollect.value = res.data.collectId ? true : false
|
||||||
pageData.value = res.data
|
pageData.value = res.data
|
||||||
console.log(pageData.value)
|
|
||||||
}
|
}
|
||||||
const init = () => {
|
|
||||||
getData()
|
//获取推荐列表
|
||||||
|
const gethotList = async () => {
|
||||||
|
const params = {
|
||||||
|
pageNum:1,
|
||||||
|
pageSize:3
|
||||||
|
}
|
||||||
|
const res = await getHotList(params)
|
||||||
|
hotList.value = res.rows
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取详情数据
|
||||||
|
const goDetail = (val) => {
|
||||||
|
router.push({
|
||||||
|
path:`/equipDetail/${val.id}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//提交申请
|
||||||
|
const submit = async() => {
|
||||||
|
console.log(ruleForm.value)
|
||||||
|
return
|
||||||
|
const params = {
|
||||||
|
addressId: ruleForm.value,
|
||||||
|
address: "address",
|
||||||
|
realStartTime: "2022-10-10 08:08:08",
|
||||||
|
duration: "20",
|
||||||
|
isMachinist: 1,
|
||||||
|
invoiceType: "发票类型",
|
||||||
|
description: "项目说明"
|
||||||
|
}
|
||||||
|
|
||||||
|
const res = await apiSubmitLease(params)
|
||||||
|
console.log('submit =============',res)
|
||||||
|
}
|
||||||
|
|
||||||
|
const init = async () => {
|
||||||
|
await gethotList()
|
||||||
|
await getData()
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
:deep() .el-form-item {
|
:deep(.dialoglease){
|
||||||
|
margin: 10px auto 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-form-item){
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,9 +91,12 @@ import {useRoute, useRouter} from "vue-router";
|
||||||
import { getList } from "@/http/api/equip"
|
import { getList } from "@/http/api/equip"
|
||||||
import $bus from "@/utils/bus"
|
import $bus from "@/utils/bus"
|
||||||
import NavMenu from "@/components/Navmenu/index.vue"
|
import NavMenu from "@/components/Navmenu/index.vue"
|
||||||
|
import address from "@/assets/temporaryAddress.json"
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
|
const addressData = reactive(address)
|
||||||
|
|
||||||
//筛选条件列表数据
|
//筛选条件列表数据
|
||||||
const screenChooseList = reactive([
|
const screenChooseList = reactive([
|
||||||
{
|
{
|
||||||
|
|
@ -430,15 +433,23 @@ const getParams = () => {
|
||||||
})
|
})
|
||||||
return params
|
return params
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handelInitScreen = () => {
|
||||||
|
const index = screenChooseList.findIndex(key => key.name == 'address')
|
||||||
|
|
||||||
|
screenChooseList[index].list[0].select = addressData.province
|
||||||
|
screenChooseList[index].list[1].select = addressData.city
|
||||||
|
|
||||||
|
console.log(screenChooseList)
|
||||||
|
}
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
const params = getParams()
|
const params = getParams()
|
||||||
console.log(params)
|
|
||||||
|
|
||||||
if(params && params.keyWord){
|
if(params && params.keyWord){
|
||||||
$bus.emit('callBackText',params.keyWord)
|
$bus.emit('callBackText',params.keyWord)
|
||||||
$bus.off('callBackText')
|
$bus.off('callBackText')
|
||||||
}
|
}
|
||||||
|
handelInitScreen()
|
||||||
getData()
|
getData()
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue