diff --git a/api/property.js b/api/property.js index 2acb91e..c3621f1 100644 --- a/api/property.js +++ b/api/property.js @@ -14,6 +14,9 @@ export const upVehicleApi = (data) => oahttp.post('/vehicle/rentApply', data) export const applycarApi = (data) => oahttp.post('/vehicle/rentApply', data) // 显示轨迹 export const locusApi = (data) => oahttp.post('/vehicle/vehicleTrack', data) +// 当前车辆位置信息 +// export const locusApi = (data) => oahttp.post('/vehicle/vehicleTrack', data) +// api / getCarLocal // 签约列表 export const getAgencyListApi = (data) => oahttp.get('/vehicle/rentApplyList', data) // 签约公司详情 @@ -28,6 +31,13 @@ export const sendcontractApi = (data) => oahttp.post('/vehicle/initiatingRentCar export const overruleApi = (data) => oahttp.post('/vehicle/rejectRentApply', data) // 小组公司详情 export const villageCompanyApi = (data) => oahttp.get('/vehicle/villageCompanyIndex', data) + +// 重新发送短信 +export const sendMsgApi = (data) => oahttp.post('/vehicle/sendSmsAgain', data) +// 解约 +export const cancelContractApi = (data) => oahttp.post('/vehicle/cancelContract', data) +// 镇街公司合同列表 +export const ContractListApi = (data) => oahttp.get('/vehicle/townCompanyContractList', data) // 资产详情 // export const getpropertyDetil = (data) => oahttp.get('/lstDetail', data) diff --git a/pages.json b/pages.json index 98be749..9e6bf10 100644 --- a/pages.json +++ b/pages.json @@ -562,6 +562,15 @@ "navigationBarTextStyle": "white" } + }, { + "path": "property/contractList", + "style": { + "navigationBarTitleText": "合同列表", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#0122C7", + "navigationBarTextStyle": "white" + } + }, { "path": "buyShare/buyShare", "style": { diff --git a/subpkg/contract/contract.vue b/subpkg/contract/contract.vue index 340c46d..31d7158 100644 --- a/subpkg/contract/contract.vue +++ b/subpkg/contract/contract.vue @@ -12,7 +12,8 @@ - + 电子合同 @@ -149,30 +150,30 @@ }, methods: { navTo(url) { - if(url){ - uni.showLoading({ - title: '加载中', - mask: true - }); - uni.navigateTo({ - url: url, - success() { - uni.hideLoading() - } - }) - }else Toast('暂未开放') + if (url) { + uni.showLoading({ + title: '加载中', + mask: true + }); + uni.navigateTo({ + url: url, + success() { + uni.hideLoading() + } + }) + } else Toast('暂未开放') }, - navToContract (contract_no) { - download_file({ - applyNo: contract_no - }).then(res => { - if (res.code != 1) { - Toast(res.msg||'合同未签订') - } - uni.navigateTo({ - url: `/subpkg/pdfView/pdfView?url=${res.data.url}` - }) - }) + navToContract(contract_no) { + download_file({ + applyNo: contract_no + }).then(res => { + if (res.code != 1) { + Toast(res.msg || '合同未签订') + } + uni.navigateTo({ + url: `/subpkg/pdfView/pdfView?url=${res.data.url}` + }) + }) }, initLoadConfig() { this.loadConfig.page = 1; diff --git a/subpkg/property/agencyList.vue b/subpkg/property/agencyList.vue index e449f60..e452c38 100644 --- a/subpkg/property/agencyList.vue +++ b/subpkg/property/agencyList.vue @@ -12,7 +12,7 @@ - {{item.village_company_name}}提出租赁车辆一辆 + {{item.company_b_name}}提出租赁车辆一辆 diff --git a/subpkg/property/chosseCompany.vue b/subpkg/property/chosseCompany.vue index 6b2a47e..1641602 100644 --- a/subpkg/property/chosseCompany.vue +++ b/subpkg/property/chosseCompany.vue @@ -1,42 +1,62 @@ \ No newline at end of file diff --git a/utils/oahttp.js b/utils/oahttp.js index b61542c..97c06bb 100644 --- a/utils/oahttp.js +++ b/utils/oahttp.js @@ -51,10 +51,8 @@ function baseRequestTwo(url, method, data, { url: Url + '/api' + url, method: method || 'GET', header: { - ...header, - ...{ - 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' - } + ...header + }, data: method != 'GET' ? data || {} : {}, params: method == 'GET' ? data : {},