Commit 29a71db8 authored by 5359's avatar 5359

dev测试环境跳转接口调整

parent 98ca0260
......@@ -7,7 +7,9 @@
</div>
<div class="search" style="height:40%; width:100%">
<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>
</div>
</div>
......@@ -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.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">状态:<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>
</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="">
</router-link>
<button @click="download(index)">账单下载</button>
</article>
</div>
<div v-else-if="ListNum == 0" class="billList">
<div style="
<div
style="
width: 200px;
height: 160px;
position: relative;
......@@ -64,67 +68,64 @@ export default {
},
created () {
if (window.localStorage.openId) {
this.searchBill(window.localStorage.openId);
this.searchBill(window.localStorage.openId)
}
},
mounted () { },
methods: {
searchBill (openId) {
let vm = this;
let value = vm.searchCondition.input;
let url = process.env.basePath + 'getCmbConList';
console.log("请求数据")
// http://sign.hitachics.com/core/r/api?sysName=HCL_UPLOAD_FILE&apiName=getCmbConList
let vm = this
let value = vm.searchCondition.input
let url = process.env.basePath + 'getCmbConList'
// console.log('请求数据')
let params = {
openId:"oBdoRwAgUiwsQvNGYhBYks6JJLPE",
serialno:"JAEB0T100610",
openId: 'oBdoRwAgUiwsQvNGYhBYks6JJLPE',
// openId: openId,
// serialno: value,
};
serialno: value,
}
// console.log("请求");
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, params).then(function (res) {
vm.hlsPopup.hideLoading();
console.log(res)
vm.hlsPopup.hideLoading()
// console.log(res)
if (res.result.respCode === 'S') {
console.log(params);
console.log(res);
var dataInfo = JSON.parse(res.result.json)
// console.log('请求成功', dataInfo.lists)
vm.ListNum = dataInfo.lists.length;
vm.massages = dataInfo.lists;
vm.ListNum = dataInfo.lists.length
vm.massages = dataInfo.lists
} else {
vm.ListNum = 0;
vm.ListNum = 0
vm.hlsPopup.showLongCenter('查询合同列表失败' + res.result.respMsg)
}
})
},
download (index) {
console.log('下载')
download (contractno) {
// 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>
<style lang="less" type="text/less" scoped>
.title{
.title {
border-radius: 5px;
background-color: #ddd;
display: flex;
justify-content: space-around;
align-items: center;
div{
div {
height: 20px;
line-height: 20px;
font-size: 16px;
font-weight:bolder;
font-weight: bolder;
color: #11111187;
}
}
.search {
display: flex;
//height: 50px;
......@@ -134,6 +135,7 @@ export default {
position: relative;
border: 1px solid #cccccc;
border-radius: 20px;
.searchInput {
margin-left: 5%;
display: -webkit-flex;
......@@ -145,6 +147,7 @@ export default {
-webkit-box-align: center;
align-items: center;
-webkit-align-items: center;
input {
text-align: center;
width: 90%;
......@@ -158,7 +161,8 @@ export default {
//padding-left: 11px;
}
}
button{
button {
margin-right: -10px;
background-color: rgb(230, 230, 230);
border: 1px solid #cccccc;
......@@ -169,11 +173,13 @@ export default {
padding: 0px;
}
}
// 账单卡片列表
.billList {
//账单卡片
width: 100%;
padding-bottom: 30px;
.article {
position: relative;
border: 1px solid #d0d0d0;
......@@ -181,20 +187,23 @@ export default {
margin: 0 auto 12px;
height: 200px;
width: 98%;
.text {
float: left;
line-height: 16px;
margin-left: 5px;
margin-right: 0px;
position: relative;
top:50%;
top: 50%;
transform: translateY(-50%);
.cont-type{
.cont-type {
padding-top: 2px;
width: 97%;
word-wrap:break-word;
word-wrap: break-word;
}
}
.icon {
//左侧图标
position: relative;
......@@ -204,11 +213,13 @@ export default {
margin-right: 0;
top: 50%;
transform: translateY(-20px);
img {
width: 40px;
height: 40px;
}
}
button {
position: absolute;
bottom: 12px;
......@@ -220,14 +231,17 @@ export default {
background-color: rgb(0, 200, 0);
border: 2px solid rgb(0, 200, 0);
border-radius: 5px;
};
padding-right: 1px;
padding-left: 1px;
}
.more {
top:50%;
top: 50%;
transform: translateY(-50%);
position: relative;
float: left;
};
}
box-shadow: 3px 3px 3px 3px #b6b6b6;
};
}
}
</style>
......@@ -225,7 +225,8 @@ export default {
// vm.getWxUserInfo(window.localStorage.openId);
vm.hlsHttp.post(url, param).then(function (res) {
if (res.resultCode == '00') {
window.localStorage.openId = res.result
//window.localStorage.openId = res.result
window.localStorage.openId = 'oBdoRwAgUiwsQvNGYhBYks6JJLPE'
if (window.localStorage.openId) {
vm.getWxUserInfo(window.localStorage.openId)
vm.getUserInfo(window.localStorage.openId)
......
......@@ -44,6 +44,7 @@ import UploadImage from '@/pages/applications/userRegisters/uploadImage'
import ChinaUnionPay from '@/pages/applications/chinaUnionPay/chinaUnionPay'
// 招行聚合支付
import CmbPolyPay from '@/pages/applications/cmbPolyPay/cmbPolyPay'
// 招行聚合支付明细
import CmbPolyPayDetail from '@/pages/applications/cmbPolyPay/cmbPolyPayDetail'
Vue.use(Router)
......@@ -225,6 +226,7 @@ export default new Router({
keepAlive: false,
},
},
// 招行聚合支付合同明细
{
path: '/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