Commit 29a71db8 authored by 5359's avatar 5359

dev测试环境跳转接口调整

parent 98ca0260
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
</div> </div>
<div class="search" style="height:40%; width:100%"> <div class="search" style="height:40%; width:100%">
<div class="searchInput"> <div class="searchInput">
<input v-model="searchCondition.input" placeholder="请输入机号信息" onfocus="this.placeholder=''" onblur="this.placeholder='请输入机号信息'"> <input
v-model="searchCondition.input" placeholder="请输入机号信息" onfocus="this.placeholder=''"
onblur="this.placeholder='请输入机号信息'">
<button style="position:absolute;right:10px" @click="detectSearchCondition()">搜索</button> <button style="position:absolute;right:10px" @click="detectSearchCondition()">搜索</button>
</div> </div>
</div> </div>
...@@ -24,17 +26,19 @@ ...@@ -24,17 +26,19 @@
<div class="cont-type" style="color: #5a5959;font-size: 14px">机号:{{ item.serialno }}</div> <div class="cont-type" style="color: #5a5959;font-size: 14px">机号:{{ item.serialno }}</div>
<div class="cont-type" style="color: #5a5959;font-size: 14px">租金总额:{{ item.contractamt }}</div> <div class="cont-type" style="color: #5a5959;font-size: 14px">租金总额:{{ item.contractamt }}</div>
<div class="cont-type" style="color: #5a5959;font-size: 14px">租赁开始日:{{ item.leasebgndt }}</div> <div class="cont-type" style="color: #5a5959;font-size: 14px">租赁开始日:{{ item.leasebgndt }}</div>
<div class="cont-type" style="color: #5a5959;font-size: 14px">状态:<span style="font-weight: 700; <div class="cont-type" style="color: #5a5959;font-size: 14px">状态:<span
style="font-weight: 700;
color: rgba(198, 0, 0, 0.5);">{{ item.status }}</span></div> color: rgba(198, 0, 0, 0.5);">{{ item.status }}</span></div>
</div> </div>
<router-link :to="{name:'CmbPolyPayDetail',query:{contractno:item.contractno}}" class="more"> <router-link :to="{ name: 'CmbPolyPayDetail', query: { contractno: item.contractno } }" class="more">
<img src="../../../assets\image\right-arrow@2x.png" alt=""> <img src="../../../assets\image\right-arrow@2x.png" alt="">
</router-link> </router-link>
<button @click="download(index)">账单下载</button> <button @click="download(index)">账单下载</button>
</article> </article>
</div> </div>
<div v-else-if="ListNum == 0" class="billList"> <div v-else-if="ListNum == 0" class="billList">
<div style=" <div
style="
width: 200px; width: 200px;
height: 160px; height: 160px;
position: relative; position: relative;
...@@ -64,67 +68,64 @@ export default { ...@@ -64,67 +68,64 @@ export default {
}, },
created () { created () {
if (window.localStorage.openId) { if (window.localStorage.openId) {
this.searchBill(window.localStorage.openId); this.searchBill(window.localStorage.openId)
} }
}, },
mounted () { }, mounted () { },
methods: { methods: {
searchBill (openId) { searchBill (openId) {
let vm = this; let vm = this
let value = vm.searchCondition.input; let value = vm.searchCondition.input
let url = process.env.basePath + 'getCmbConList'; let url = process.env.basePath + 'getCmbConList'
console.log("请求数据") // console.log('请求数据')
// http://sign.hitachics.com/core/r/api?sysName=HCL_UPLOAD_FILE&apiName=getCmbConList
let params = { let params = {
openId:"oBdoRwAgUiwsQvNGYhBYks6JJLPE", openId: 'oBdoRwAgUiwsQvNGYhBYks6JJLPE',
serialno:"JAEB0T100610",
// openId: openId, // openId: openId,
// serialno: value, serialno: value,
}; }
// console.log("请求"); // console.log("请求");
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, params).then(function (res) { vm.hlsHttp.post(url, params).then(function (res) {
vm.hlsPopup.hideLoading(); vm.hlsPopup.hideLoading()
console.log(res) // console.log(res)
if (res.result.respCode === 'S') { if (res.result.respCode === 'S') {
console.log(params);
console.log(res);
var dataInfo = JSON.parse(res.result.json) var dataInfo = JSON.parse(res.result.json)
// console.log('请求成功', dataInfo.lists) vm.ListNum = dataInfo.lists.length
vm.ListNum = dataInfo.lists.length; vm.massages = dataInfo.lists
vm.massages = dataInfo.lists;
} else { } else {
vm.ListNum = 0; vm.ListNum = 0
vm.hlsPopup.showLongCenter('查询合同列表失败' + res.result.respMsg) vm.hlsPopup.showLongCenter('查询合同列表失败' + res.result.respMsg)
} }
}) })
}, },
download (index) { download (contractno) {
console.log('下载') // console.log('下载')
window.open('http://sign.hitachics.com:8091/report/ReportServer?reportlet=/report/PAR015.cpt&CONTRACTNO=' + contractno + '&format=PDF&extype=simple', '_system')
},
detectSearchCondition () {
this.searchBill(window.localStorage.openId)
}, },
detectSearchCondition(){
this.searchBill (window.localStorage.openId);
}
}, },
} }
</script> </script>
<style lang="less" type="text/less" scoped> <style lang="less" type="text/less" scoped>
.title{ .title {
border-radius: 5px; border-radius: 5px;
background-color: #ddd; background-color: #ddd;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
div{
div {
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
font-size: 16px; font-size: 16px;
font-weight:bolder; font-weight: bolder;
color: #11111187; color: #11111187;
} }
} }
.search { .search {
display: flex; display: flex;
//height: 50px; //height: 50px;
...@@ -134,6 +135,7 @@ export default { ...@@ -134,6 +135,7 @@ export default {
position: relative; position: relative;
border: 1px solid #cccccc; border: 1px solid #cccccc;
border-radius: 20px; border-radius: 20px;
.searchInput { .searchInput {
margin-left: 5%; margin-left: 5%;
display: -webkit-flex; display: -webkit-flex;
...@@ -145,6 +147,7 @@ export default { ...@@ -145,6 +147,7 @@ export default {
-webkit-box-align: center; -webkit-box-align: center;
align-items: center; align-items: center;
-webkit-align-items: center; -webkit-align-items: center;
input { input {
text-align: center; text-align: center;
width: 90%; width: 90%;
...@@ -158,7 +161,8 @@ export default { ...@@ -158,7 +161,8 @@ export default {
//padding-left: 11px; //padding-left: 11px;
} }
} }
button{
button {
margin-right: -10px; margin-right: -10px;
background-color: rgb(230, 230, 230); background-color: rgb(230, 230, 230);
border: 1px solid #cccccc; border: 1px solid #cccccc;
...@@ -169,11 +173,13 @@ export default { ...@@ -169,11 +173,13 @@ export default {
padding: 0px; padding: 0px;
} }
} }
// 账单卡片列表 // 账单卡片列表
.billList { .billList {
//账单卡片 //账单卡片
width: 100%; width: 100%;
padding-bottom: 30px; padding-bottom: 30px;
.article { .article {
position: relative; position: relative;
border: 1px solid #d0d0d0; border: 1px solid #d0d0d0;
...@@ -181,20 +187,23 @@ export default { ...@@ -181,20 +187,23 @@ export default {
margin: 0 auto 12px; margin: 0 auto 12px;
height: 200px; height: 200px;
width: 98%; width: 98%;
.text { .text {
float: left; float: left;
line-height: 16px; line-height: 16px;
margin-left: 5px; margin-left: 5px;
margin-right: 0px; margin-right: 0px;
position: relative; position: relative;
top:50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
.cont-type{
.cont-type {
padding-top: 2px; padding-top: 2px;
width: 97%; width: 97%;
word-wrap:break-word; word-wrap: break-word;
} }
} }
.icon { .icon {
//左侧图标 //左侧图标
position: relative; position: relative;
...@@ -204,11 +213,13 @@ export default { ...@@ -204,11 +213,13 @@ export default {
margin-right: 0; margin-right: 0;
top: 50%; top: 50%;
transform: translateY(-20px); transform: translateY(-20px);
img { img {
width: 40px; width: 40px;
height: 40px; height: 40px;
} }
} }
button { button {
position: absolute; position: absolute;
bottom: 12px; bottom: 12px;
...@@ -220,14 +231,17 @@ export default { ...@@ -220,14 +231,17 @@ export default {
background-color: rgb(0, 200, 0); background-color: rgb(0, 200, 0);
border: 2px solid rgb(0, 200, 0); border: 2px solid rgb(0, 200, 0);
border-radius: 5px; border-radius: 5px;
}; padding-right: 1px;
padding-left: 1px;
}
.more { .more {
top:50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
position: relative; position: relative;
float: left; float: left;
}; }
box-shadow: 3px 3px 3px 3px #b6b6b6; box-shadow: 3px 3px 3px 3px #b6b6b6;
}; }
} }
</style> </style>
...@@ -225,7 +225,8 @@ export default { ...@@ -225,7 +225,8 @@ export default {
// vm.getWxUserInfo(window.localStorage.openId); // vm.getWxUserInfo(window.localStorage.openId);
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
if (res.resultCode == '00') { if (res.resultCode == '00') {
window.localStorage.openId = res.result //window.localStorage.openId = res.result
window.localStorage.openId = 'oBdoRwAgUiwsQvNGYhBYks6JJLPE'
if (window.localStorage.openId) { if (window.localStorage.openId) {
vm.getWxUserInfo(window.localStorage.openId) vm.getWxUserInfo(window.localStorage.openId)
vm.getUserInfo(window.localStorage.openId) vm.getUserInfo(window.localStorage.openId)
......
...@@ -44,6 +44,7 @@ import UploadImage from '@/pages/applications/userRegisters/uploadImage' ...@@ -44,6 +44,7 @@ import UploadImage from '@/pages/applications/userRegisters/uploadImage'
import ChinaUnionPay from '@/pages/applications/chinaUnionPay/chinaUnionPay' import ChinaUnionPay from '@/pages/applications/chinaUnionPay/chinaUnionPay'
// 招行聚合支付 // 招行聚合支付
import CmbPolyPay from '@/pages/applications/cmbPolyPay/cmbPolyPay' import CmbPolyPay from '@/pages/applications/cmbPolyPay/cmbPolyPay'
// 招行聚合支付明细
import CmbPolyPayDetail from '@/pages/applications/cmbPolyPay/cmbPolyPayDetail' import CmbPolyPayDetail from '@/pages/applications/cmbPolyPay/cmbPolyPayDetail'
Vue.use(Router) Vue.use(Router)
...@@ -225,6 +226,7 @@ export default new Router({ ...@@ -225,6 +226,7 @@ export default new Router({
keepAlive: false, keepAlive: false,
}, },
}, },
// 招行聚合支付合同明细
{ {
path: '/CmbPolyPayDetail', path: '/CmbPolyPayDetail',
component: CmbPolyPayDetail, component: CmbPolyPayDetail,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment