Commit d4831045 authored by Hello's avatar Hello

三期需求修改

parent a08a43b1
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"3.0.3"' currentVersion: '"3.0.6"'
} }
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"3.0.3"' currentVersion: '"3.0.6"'
} }
...@@ -6,37 +6,38 @@ ...@@ -6,37 +6,38 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
<template> <template>
<h-view id="contract-create-list"> <h-view id="my-contract">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>我的合同</span> <span>我的合同</span>
</div> </div>
</h-header> </h-header>
<div class="my-contractlist"> <h-content class="my-contractlist">
<div class="contract-item" @click="goSign()"> <div v-if="user_bp_type == 'AGENT' || user_bp_type == 'OFFICE'" class="contract-item" @click="goCreate()">
<img src="@/assets/myInfo/contractCreate.png" >
<span>融租方案创建</span>
</div>
<div v-if="user_bp_type !== 'MANAGER'" class="contract-item" @click="goSign()">
<p v-if="signCount > 0" :class="{'content-wrap-class-width':signCount > 99, 'content-wrap-class':signCount < 99}">{{ signCount > 99 ? '99+' : signCount }}</p> <p v-if="signCount > 0" :class="{'content-wrap-class-width':signCount > 99, 'content-wrap-class':signCount < 99}">{{ signCount > 99 ? '99+' : signCount }}</p>
<img src="@/assets/myInfo/unSign.png" > <img src="@/assets/myInfo/unSign.png" >
<span>融租方案确认</span> <span>融租方案确认</span>
</div> </div>
<div v-if="multipleRole == 'TENANT' || multipleRole == 'GUTA'|| user_bp_type == 'AGENT'" class="contract-item" @click="goCarConfirm()"> <div v-if="user_bp_type == 'GUTA'|| user_bp_type == 'TENANT' || user_bp_type == 'AGENT'" class="contract-item" @click="goCarConfirm()">
<p v-if="carCount > 0" :class="{'content-wrap-class-width':carCount > 99, 'content-wrap-class':carCount < 99}">{{ carCount > 99 ? '99+' : carCount }}</p> <p v-if="carCount > 0" :class="{'content-wrap-class-width':carCount > 99, 'content-wrap-class':carCount < 99}">{{ carCount > 99 ? '99+' : carCount }}</p>
<img src="@/assets/myInfo/carConfirm.png" > <img src="@/assets/myInfo/carConfirm.png" >
<span>合同签订</span> <span>合同签订</span>
</div> </div>
<div v-if="multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')" class="contract-item" @click="goCreate()">
<img src="@/assets/myInfo/contractCreate.png" > <div v-if="user_bp_type == 'GUTA'" class="contract-item" @click="changeContract('GUTA')">
<span>融租方案创建</span>
</div>
<div v-if="multipleRole == 'GUTA'" class="contract-item" @click="changeContract('GUTA')">
<img src="@/assets/myInfo/under.png" > <img src="@/assets/myInfo/under.png" >
<span>我担保的合同</span> <span>我担保的合同</span>
</div> </div>
<div v-if="multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')" class="contract-item" @click="goContract()"> <div v-if="user_bp_type == 'AGENT' || user_bp_type == 'OFFICE' || user_bp_type == 'MANAGER'" class="contract-item" @click="goContract()">
<img src="@/assets/myInfo/agent.png" > <img src="@/assets/myInfo/agent.png" >
<span>我办理的合同</span> <span>我办理的合同</span>
</div> </div>
</div> </h-content>
</h-view> </h-view>
</template> </template>
...@@ -134,18 +135,14 @@ export default { ...@@ -134,18 +135,14 @@ export default {
}) })
}, },
goContract () { goContract () {
if (this.user_bp_type === 'OFFICE') { this.changeContract(this.user_bp_type)
this.changeContract('OFFICE')
} else {
this.changeContract('AGENT')
}
}, },
}, },
} }
</script> </script>
<style lang="less" type="text/less"> <style lang="less" type="text/less">
#contract-create-list{ #my-contract{
.my-contractlist { .my-contractlist {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
......
...@@ -576,7 +576,7 @@ export default { ...@@ -576,7 +576,7 @@ export default {
// margin-top:50px; // margin-top:50px;
// } // }
.scroll-content{ .scroll-content{
top:100px; //top:100px;
} }
.date-pic { .date-pic {
height: 17px; height: 17px;
......
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
let name = '' let name = ''
if (vm.bp_type === 'TENANT') { if (vm.bp_type === 'TENANT') {
name = 'con_contract_list_tenant' name = 'con_contract_list_tenant'
} else if (vm.bp_type === 'AGENT' || vm.bp_type === 'OFFICE') { } else if (vm.bp_type === 'AGENT' || vm.bp_type === 'OFFICE' || vm.bp_type === 'MANAGER') {
name = 'con_contract_list_saleman' name = 'con_contract_list_saleman'
} else if (vm.bp_type === 'GUTA') { } else if (vm.bp_type === 'GUTA') {
name = 'con_contract_list_guta' name = 'con_contract_list_guta'
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-10-31 09:49:57 * @Date: 2019-10-31 09:49:57
* @LastEditTime : 2019-12-23 14:11:26 * @LastEditTime : 2019-12-23 14:11:26
* @LastEditors : Please set LastEditors * @LastEditors : Please set LastEditors
* @Description: 合同查询--明细 * @Description: 合同查询--明细
* @FilePath: * @FilePath:
--> -->
<template> <template>
<h-view id="repay-detail" class="public-style"> <h-view id="repay-detail" class="public-style">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>合同明细</span> <span>合同明细</span>
</div> </div>
</h-header> </h-header>
<div ref="content" class="repay-content">
<h-content ref="content" class="repay-content"> <div class="header">
<div class="header"> 合同单据
合同单据 <div class="download" @click="downLoad">电子版下载 <img src="@/assets/contractInquire/download.png" alt=""></div>
<div class="download" @click="downLoad">电子版下载 <img src="@/assets/contractInquire/download.png" alt=""></div> </div>
</div> <list-item :item-height="44" class="invoice">
<list-item :item-height="44" class="invoice"> <item>
<item> <div slot="name">合同号</div>
<div slot="name">合同号</div> <div slot="content">{{ detailInfo.project_number }}</div>
<div slot="content">{{ detailInfo.project_number }}</div> </item>
</item> <item>
<item> <div slot="name">{{ detailInfo.bp_agent_name?'经销商':'办事处' }}</div>
<div slot="name">{{ detailInfo.bp_agent_name?'经销商':'办事处' }}</div> <div slot="content">{{ detailInfo.bp_agent_name?detailInfo.bp_agent_name:detailInfo.office_name }}</div>
<div slot="content">{{ detailInfo.bp_agent_name?detailInfo.bp_agent_name:detailInfo.office_name }}</div> </item>
</item> <item>
<item> <div slot="name">承租人</div>
<div slot="name">承租人</div> <div slot="content">{{ detailInfo.bp_name }}</div>
<div slot="content">{{ detailInfo.bp_name }}</div> </item>
</item> <item>
<item> <div slot="name">产品名称</div>
<div slot="name">产品名称</div> <div slot="content">{{ detailInfo.division_n }}</div>
<div slot="content">{{ detailInfo.division_n }}</div> </item>
</item> <item>
<item> <div slot="name">产品型号</div>
<div slot="name">产品型号</div> <div slot="content">{{ detailInfo.product_code }}</div>
<div slot="content">{{ detailInfo.product_code }}</div> </item>
</item> <item>
<item> <div slot="name">合同金额</div>
<div slot="name">合同金额</div> <div slot="content">{{ detailInfo.total_price | currency }}</div>
<div slot="content">{{ detailInfo.total_price | currency }}</div> </item>
</item> <item>
<item> <div slot="name">商务政策</div>
<div slot="name">商务政策</div> <div slot="content">{{ detailInfo.product_plan_id_n }}</div>
<div slot="content">{{ detailInfo.product_plan_id_n }}</div> </item>
</item> <item>
<item> <div slot="name">租赁物数量</div>
<div slot="name">租赁物数量</div> <div slot="content">{{ detailInfo.product_num }}</div>
<div slot="content">{{ detailInfo.product_num }}</div> </item>
</item>
</list-item>
</list-item> </div>
<div class="header">设备清单</div> <scroll
<scroll ref="scroll"
ref="scroll" :updateData="[lists]"
:updateData="[lists]" :pullUp="true"
:pullUp="true" @pullingUp="loadMore">
@pullingUp="loadMore"> <div class="header">设备清单</div>
<list-item :item-height="104" class="equipment-list"> <list-item :item-height="104" class="equipment-list">
<item v-for="(item,index) in lists" :proportion="[2,1]" :key="index"> <item v-for="(item,index) in lists" :proportion="[2,1]" :key="index">
<div slot="name" class="parameters"> <div slot="name" class="parameters">
<div class="list"> <div class="list">
<p>设备识别号</p> <p>设备识别号</p>
<span class="bold">{{ item.product_code }}-{{ index+1|lengthCheck }}</span> <span class="bold">{{ item.product_code }}-{{ index+1|lengthCheck }}</span>
</div> </div>
<div class="list"> <div class="list">
<p>发动机号</p> <p>发动机号</p>
<span>{{ item.lease_item_engine_num }}</span> <span>{{ item.lease_item_engine_num }}</span>
</div> </div>
<div class="list"> <div class="list">
<p>车辆型号</p> <p>车辆型号</p>
<span>{{ item.vehicle_model }}</span> <span>{{ item.vehicle_model }}</span>
</div> </div>
<div class="list"> <div class="list">
<p>合格证编号</p> <p>合格证编号</p>
<span>{{ item.certificate_number }}</span> <span>{{ item.certificate_number }}</span>
</div> </div>
</div> </div>
<div slot="content"> <div slot="content">
<span v-if="item.overdue_times != 0" :class="['status','red']">逾期{{ item.overdue_times }}</span> <span v-if="item.overdue_times != 0" :class="['status','red']">逾期{{ item.overdue_times }}</span>
<div class="plan" @click="toRepayPlans(item.contract_id)"> <div class="plan" @click="toRepayPlans(item.contract_id)">
<img src="@/assets/contractRepayment/plan.png" alt=""> <img src="@/assets/contractRepayment/plan.png" alt="">
<span>还款计划</span> <span>还款计划</span>
</div> </div>
</div> </div>
</item> </item>
</list-item> </list-item>
</scroll> </scroll>
</h-content> </h-view>
</h-view> </template>
</template>
<script>
<script>
export default {
export default { name: 'RepayDetail',
name: 'RepayDetail', filters: {
filters: { lengthCheck: function (value) {
lengthCheck: function (value) { if ((value.toString()).length === 1) {
if ((value.toString()).length === 1) { return `0${value}`
return `0${value}` } else {
} else { return value
return value }
} },
}, },
}, data () {
data () { return {
return { lists: [],
lists: [], pagenum: 1,
pagenum: 1, hidden: false,
hidden: false, detailInfo: {},
detailInfo: {}, fileArray: [],
fileArray: [], }
} },
}, computed: {},
computed: { watch: {},
beforeRouteEnter (to, from, next) {
}, next(vm => {
watch: {}, if (from.name === 'ContractRecords') {
beforeRouteEnter (to, from, next) { vm.pagenum = 1
next(vm => { vm.detailQuery()
if (from.name === 'ContractRecords') { vm.equipQuery()
vm.pagenum = 1 }
vm.detailQuery() })
vm.equipQuery() },
} methods: {
}) // val: contract_id
}, toRepayPlans (val) {
methods: { this.$router.push({
// val: contract_id name: 'RepayPlans',
toRepayPlans (val) { params: {
this.$router.push({ contract_id: val,
name: 'RepayPlans', lease_num: this.detailInfo.lease_num,
params: { },
contract_id: val, })
lease_num: this.detailInfo.lease_num, },
}, downLoad () {
}) let vm = this
}, let url = $config.basePath + 'get_download_app'
downLoad () { let param = {
let vm = this project_id: vm.$route.params.project_id,
let url = $config.basePath + 'get_download_app' phone: window.localStorage.user_phone,
let param = { }
project_id: vm.$route.params.project_id, vm.hlsPopup.showLoading('数据加载中')
phone: window.localStorage.user_phone, vm.hlsHttp.post(url, param).then(function (res) {
} vm.hlsPopup.hideLoading()
vm.hlsPopup.showLoading('数据加载中') if (res.result === 'S') {
vm.hlsHttp.post(url, param).then(function (res) { vm.fileArray = res.info
vm.hlsPopup.hideLoading() vm.fileArray.forEach(i => {
if (res.result === 'S') { cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
vm.fileArray = res.info })
vm.fileArray.forEach(i => { // vm.pdfDownload()
cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top') } else {
}) hlsPopup.showLongCenter(res.message)
// vm.pdfDownload() }
} else { })
hlsPopup.showLongCenter(res.message) },
} pdfDownload () {
}) // 下载pdf文件
}, let vm = this
pdfDownload () { vm.fileArray.forEach(element => {
// 下载pdf文件 if (element.fileUrl) {
let vm = this console.log('vm.$refs.pdf' + vm.$refs.pdf)
vm.fileArray.forEach(element => { // debugger
if (element.fileUrl) { vm.$refs.pdf.downloadPDF(element.fileUrl, element.fileName)
console.log('vm.$refs.pdf' + vm.$refs.pdf) }
// debugger })
vm.$refs.pdf.downloadPDF(element.fileUrl, element.fileName) },
} // 合同明细
}) detailQuery () {
}, let vm = this
// 合同明细 let url = $config.basePath + 'con_contract_detial'
detailQuery () { let param = {
let vm = this project_id: vm.$route.params.project_id,
let url = $config.basePath + 'con_contract_detial' }
let param = { vm.hlsPopup.showLoading('数据加载中')
project_id: vm.$route.params.project_id, vm.hlsHttp.post(url, param).then(function (res) {
} vm.hlsPopup.hideLoading()
vm.hlsPopup.showLoading('数据加载中') if (res.result === 'S') {
vm.hlsHttp.post(url, param).then(function (res) { vm.detailInfo = res.info
vm.hlsPopup.hideLoading() } else {
if (res.result === 'S') { hlsPopup.showLongCenter(res.message)
vm.detailInfo = res.info }
} else { })
hlsPopup.showLongCenter(res.message) },
} // 设备清单
}) equipQuery () {
}, let vm = this
// 设备清单 let url = $config.basePath + 'con_equip_list'
equipQuery () { let param = {
let vm = this pagesize: 10,
let url = $config.basePath + 'con_equip_list' pagenum: vm.pagenum,
let param = { project_id: vm.$route.params.project_id,
pagesize: 10, }
pagenum: vm.pagenum, vm.hlsPopup.showLoading('数据加载中')
project_id: vm.$route.params.project_id, vm.hlsHttp.post(url, param).then(function (res) {
} vm.hlsPopup.hideLoading()
vm.hlsPopup.showLoading('数据加载中') if (res.result === 'S') {
vm.hlsHttp.post(url, param).then(function (res) { vm.lists = res.lists
vm.hlsPopup.hideLoading() if (res.lists.length >= 0 && res.lists.length < 10) {
if (res.result === 'S') { vm.$refs.scroll.update(true)
vm.lists = res.lists } else if (res.lists.length === 10) {
if (res.lists.length >= 0 && res.lists.length < 10) { vm.$refs.scroll.update(false)
vm.$refs.scroll.update(true) }
} else if (res.lists.length === 10) { } else {
vm.$refs.scroll.update(false) hlsPopup.showLongCenter(res.message)
} }
} else { })
hlsPopup.showLongCenter(res.message) },
} loadMore () {
}) let vm = this
}, let url = $config.basePath + 'con_equip_list'
loadMore () { vm.pagenum++
let vm = this let param = {
let url = $config.basePath + 'con_equip_list' pagesize: 10,
vm.pagenum++ pagenum: vm.pagenum,
let param = { project_id: vm.$route.params.project_id,
pagesize: 10, }
pagenum: vm.pagenum, vm.hlsPopup.showLoading('请稍候')
project_id: vm.$route.params.project_id, vm.$post(url, param).then(function (res) {
} vm.hlsPopup.hideLoading()
vm.hlsPopup.showLoading('请稍候') if (res.result === 'S') {
vm.$post(url, param).then(function (res) { let returnData = []
vm.hlsPopup.hideLoading() returnData = res.lists
if (res.result === 'S') { if (returnData.length === 0) {
let returnData = [] vm.$refs.scroll.update(true)
returnData = res.lists } else if (returnData.length > 0 && returnData.length < 10) {
if (returnData.length === 0) { vum.forEach(returnData, function (data, index, array) {
vm.$refs.scroll.update(true) vm.lists.push(array[index])
} else if (returnData.length > 0 && returnData.length < 10) { })
vum.forEach(returnData, function (data, index, array) { vm.$refs.scroll.update(true)
vm.lists.push(array[index]) } else if (returnData.length === 10) {
}) vum.forEach(returnData, function (data, index, array) {
vm.$refs.scroll.update(true) vm.lists.push(array[index])
} else if (returnData.length === 10) { })
vum.forEach(returnData, function (data, index, array) { vm.$refs.scroll.update(false)
vm.lists.push(array[index]) }
}) } else {
vm.$refs.scroll.update(false) hlsPopup.showLongCenter(res.message)
} }
} else { })
hlsPopup.showLongCenter(res.message) },
} },
}) }
}, </script>
}, <style lang='less'>
} #repay-detail {
</script> .status {
<style lang='less' > margin-bottom: 20px;
#repay-detail { display: inline-block;
.status{ }
margin-bottom:20px;
display: inline-block; .red {
} color: red;
.red{ border-bottom: 1px solid red;
color: red; }
border-bottom: 1px solid red;
} .repay-content {
.repay-content { overflow: hidden;
overflow: hidden; position: absolute;
.header { z-index: 10;
position: relative; width: 100%;
height: 40px;
line-height: 40px; .header {
font-size: 14px; //position: relative;
color: #1D3FFF; background-color: #fafafa;
text-indent: 1em; height: 40px;
border-bottom: 1px solid #F1F0F5; line-height: 40px;
font-size: 14px;
.download { color: #1D3FFF;
position: absolute; text-indent: 1em;
padding-left: 12px; border-bottom: 1px solid #F1F0F5;
right: 12px;
top: 8px; .download {
background: #FFFFFF; position: absolute;
border-radius: 5px; padding-left: 12px;
height: 24px; right: 12px;
line-height: 24px; top: 8px;
// width: 93px; background: #FFFFFF;
font-family: PingFangSC-Regular; border-radius: 5px;
font-size: 11px; height: 24px;
color: #1D3FFF; line-height: 24px;
letter-spacing: 0.34px; // width: 93px;
font-family: PingFangSC-Regular;
img { font-size: 11px;
position: absolute; color: #1D3FFF;
height: 15px; letter-spacing: 0.34px;
left: 6px;
top: 6px; img {
} position: absolute;
} height: 15px;
left: 6px;
&:before { top: 6px;
content: ""; }
position: absolute; }
top: 12px;
left: 0; &:before {
width: 4px; content: "";
height: 16px; position: absolute;
background: #1D3FFF; top: 12px;
} left: 0;
} width: 4px;
height: 16px;
.invoice { background: #1D3FFF;
margin-bottom: 0px; }
}
.hls-item{
.contents{ .invoice {
.add-name { margin-bottom: 0px;
font-family: PingFangSC-Regular;
font-size: 14px; .hls-item {
color: #656464; .contents {
} .add-name {
font-family: PingFangSC-Regular;
.add-content { font-size: 14px;
font-family: PingFangSC-Regular; color: #656464;
font-size: 14px; }
color: rgba(56,63,69,0.60);
} .add-content {
} font-family: PingFangSC-Regular;
} font-size: 14px;
} color: rgba(56, 63, 69, 0.60);
}
.equipment-list { }
border-top: none; }
background-color: transparent; }
.hls-item { }
border-top: 1px solid #D9DBDF;
border-bottom: 1px solid #D9DBDF; .scrollContent {
background-color: #fff; //padding-bottom: 400px;
margin-bottom: 10px; .header {
//position: relative;
.contents { background-color: #fafafa;
padding-top: 8px; height: 40px;
.add-name{ line-height: 40px;
display: flex; font-size: 14px;
flex-direction: column; color: #1D3FFF;
text-indent: 1em;
.parameters { border-bottom: 1px solid #F1F0F5;
width: 100%;
margin-left: -40px; .download {
position: absolute;
.list { padding-left: 12px;
display: flex; right: 12px;
margin-bottom:0; top: 8px;
background: #FFFFFF;
p { border-radius: 5px;
font-family: PingFangSC-Regular; height: 24px;
font-size: 13px; line-height: 24px;
color: rgba(56,63,69,0.60); // width: 93px;
letter-spacing: 0.4px; font-family: PingFangSC-Regular;
text-align: right; font-size: 11px;
flex: 1; color: #1D3FFF;
} letter-spacing: 0.34px;
span { img {
flex:1; position: absolute;
margin-left: 15px; height: 15px;
font-family: PingFangSC-Regular; left: 6px;
font-size: 13px; top: 6px;
color: #383F45; }
letter-spacing: 0.4px; }
}
&:before {
span.bold { content: "";
font-family: PingFangSC-Semibold; position: absolute;
font-weight: 700; top: 12px;
} left: 0;
} width: 4px;
} height: 16px;
} background: #1D3FFF;
}
.add-content { }
.plan {
position: relative; .equipment-list {
width: 100px; border-top: none;
height: 30px; background-color: transparent;
background: rgba(29, 63, 255,.2);
border-radius: 4px; .hls-item {
border-top: 1px solid #D9DBDF;
img { border-bottom: 1px solid #D9DBDF;
height: 14px; background-color: #fff;
position: absolute; margin-bottom: 10px;
top: 8px;
left: 12px; .contents {
} padding-top: 8px;
span { .add-name {
font-family: PingFangSC-Regular; display: flex;
font-size: 13px; flex-direction: column;
color: #1D3FFF;
letter-spacing: 0.4px; .parameters {
position: absolute; width: 100%;
top: 5px; margin-left: -40px;
left: 32px;
} .list {
} display: flex;
} margin-bottom: 0;
} p {
} font-family: PingFangSC-Regular;
} font-size: 13px;
} color: rgba(56, 63, 69, 0.60);
letter-spacing: 0.4px;
.scrollContent { text-align: right;
padding-bottom: 400px; flex: 1;
} }
.tab-style {
width: 100%; span {
position: absolute; flex: 1;
} margin-left: 15px;
} font-family: PingFangSC-Regular;
.platform-ios { font-size: 13px;
#repay-detail { color: #383F45;
.scrollContent { letter-spacing: 0.4px;
// padding-top: 3.32rem; }
}
} span.bold {
} font-family: PingFangSC-Semibold;
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) { font-weight: 700;
.platform-ios { }
#repay-detail{ }
.scrollContent { }
// padding-top: 3.72rem; }
}
} .add-content {
} .plan {
} position: relative;
// iPhoneXR适配 width: 100px;
@media (device-width: 414px) and (device-height: 896px) { height: 30px;
.platform-ios { background: rgba(29, 63, 255, .2);
#repay-detail{ border-radius: 4px;
.scrollContent {
// padding-top: 3.72rem; img {
} height: 14px;
} position: absolute;
} top: 8px;
} left: 12px;
</style> }
span {
font-family: PingFangSC-Regular;
font-size: 13px;
color: #1D3FFF;
letter-spacing: 0.4px;
position: absolute;
top: 5px;
left: 32px;
}
}
}
}
}
}
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.32rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
</style>
...@@ -606,7 +606,7 @@ export default { ...@@ -606,7 +606,7 @@ export default {
let vm = this let vm = this
hlsPopup.showActionSheet({ hlsPopup.showActionSheet({
titleText: '请选择证件类型', titleText: '请选择证件类型',
buttonArray: ['徐工重型合格证', '车辆登记证', '出厂合格证'], buttonArray: ['标准车辆合格证(徐工重型、施维英)', '车辆登记证', '出厂合格证'],
callback: (index) => { callback: (index) => {
if (index === 0) { if (index === 0) {
vm.certificationType = 'NORMAL' vm.certificationType = 'NORMAL'
......
...@@ -192,10 +192,15 @@ export default { ...@@ -192,10 +192,15 @@ export default {
window.localStorage.setItem('bp_name', res.info.user_bp_name) window.localStorage.setItem('bp_name', res.info.user_bp_name)
window.localStorage.setItem('bp_identity', res.info.bp_identity) window.localStorage.setItem('bp_identity', res.info.bp_identity)
window.localStorage.setItem('bp_class', res.info.user_bp_class) window.localStorage.setItem('bp_class', res.info.user_bp_class)
window.localStorage.setItem('bp_type', res.info.user_bp_type) // 有角色信息就不设置缓存,可能在角色切换时做了处理,此处不设置角色
window.localStorage.setItem('multipleRole', res.info.user_bp_type) if (localStorage.bp_type || localStorage.multipleRole) {
vm.user_bp_type = res.info.user_bp_type vm.user_bp_type = localStorage.bp_type
vm.bp_type_n = res.info.user_bp_type_n } else {
window.localStorage.setItem('bp_type', res.info.user_bp_type)
window.localStorage.setItem('multipleRole', res.info.user_bp_type)
vm.user_bp_type = res.info.user_bp_type
}
// vm.bp_type_n = res.info.user_bp_type_n
vm.user_bp_name = res.info.user_bp_name vm.user_bp_name = res.info.user_bp_name
vm.user_phone = res.info.user_phone vm.user_phone = res.info.user_phone
if (vm.user_bp_type === 'TENANT') { if (vm.user_bp_type === 'TENANT') {
...@@ -364,7 +369,7 @@ export default { ...@@ -364,7 +369,7 @@ export default {
userBind () { userBind () {
// .首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!” // .首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!”
if (this.user_bp_type === 'MANAGER') { if (this.user_bp_type === 'MANAGER') {
hlsPopup.showLongCenter('当前角色非承租人或担保人,无法使用该功能!') hlsPopup.showLongCenter('业务经理无需进行用户绑定!')
return return
} }
window.localStorage.setItem('from', true) window.localStorage.setItem('from', true)
......
...@@ -103,20 +103,22 @@ export default { ...@@ -103,20 +103,22 @@ export default {
let twoHeight = 40 let twoHeight = 40
this.textHeight = `${twoHeight}px` this.textHeight = `${twoHeight}px`
let txtDom = this.$refs.textContainer let txtDom = this.$refs.textContainer
for (let i = 0; i < txtDom.length; i++) { if (txtDom) {
let curHeight = txtDom[i].offsetHeight for (let i = 0; i < txtDom.length; i++) {
if (curHeight > twoHeight) { let curHeight = txtDom[i].offsetHeight
this.$set( if (curHeight > twoHeight) {
this.list, this.$set(
i, this.list,
Object.assign({}, this.list[i], { status: true }) i,
) Object.assign({}, this.list[i], { status: true })
} else { )
this.$set( } else {
this.list, this.$set(
i, this.list,
Object.assign({}, this.list[i], { status: null }) i,
) Object.assign({}, this.list[i], { status: null })
)
}
} }
} }
}, },
......
...@@ -29,39 +29,8 @@ ...@@ -29,39 +29,8 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <div v-if="multipleRole!=='GUTA'&&user_bp_type!=='GUTA'" class="card"> -->
<!-- <div class="card">
<div class="card-info">
<div class="card-bottom">
<div v-if="((user_bp_type!=='TENANT')&&(user_bp_type!=='GUTA')&&(multipleRole!=='GUTA')&&(multipleRole!=='TENANT'))||multipleRole==='AGENT'" @click="goStart">
<img src="@/assets/myInfo/car.png" >
<p>融租合同创建</p>
</div>
<div v-if="((user_bp_type==='TENANT')&&(multipleRole==='TENANT'))||(multipleRole==='TENANT')||((user_bp_type==='TENANT')&&(!multipleRole))" @click="changePay">
<img src="@/assets/myInfo/pay.png" >
<p>首付还款</p>
</div>
<div v-if="((user_bp_type==='TENANT')&&(multipleRole==='TENANT'))||(multipleRole==='TENANT')||((user_bp_type==='TENANT')&&(!multipleRole))" @click="changeRent">
<img src="@/assets/myInfo/refund.png" >
<p>租金还款</p>
</div>
<div v-if="(user_bp_type==='AGENT')&&(user_bp_class==='ORG')&&(user_bp_status === 'APPROVED')" @click="changeCash">
<img src="@/assets/myInfo/promise.png" >
<p>缴纳保证金</p>
</div>
<div v-if="((user_bp_type==='GUTA')&&(multipleRole==='GUTA'))||(multipleRole==='GUTA')||((user_bp_type==='GUTA')&&(!multipleRole))" @click="changeContract('GUTA')">
<img src="@/assets/myInfo/under.png" >
<p>我担保的合同</p>
</div>
<div v-if="((user_bp_type==='AGENT')&&(multipleRole==='AGENT'))||(multipleRole==='AGENT')||((user_bp_type==='AGENT')&&(!multipleRole))||(user_bp_type==='OFFICE')" @click="goContract">
<img src="@/assets/myInfo/agent.png" >
<p>我办理的合同</p>
</div>
</div>
</div>
</div> -->
</div> </div>
<h-content class="my-content"> <h-content class="my-content has-footer">
<div class="content-top"> <div class="content-top">
<list-item :item-height="44" class="list"> <list-item :item-height="44" class="list">
<item @click.native="goContract"> <item @click.native="goContract">
...@@ -375,17 +344,10 @@ export default { ...@@ -375,17 +344,10 @@ export default {
// 选择角色后确定 // 选择角色后确定
roleConfirm (role) { roleConfirm (role) {
this.roleSwitchFlag = false this.roleSwitchFlag = false
if (role.bp_type === 'TENANT') { window.localStorage.setItem('multipleRole', role.bp_type)
window.localStorage.setItem('multipleRole', 'TENANT') this.multipleRole = role.bp_type
this.multipleRole = 'TENANT'
} else if (role.bp_type === 'GUTA') {
window.localStorage.setItem('multipleRole', 'GUTA')
this.multipleRole = 'GUTA'
} else if (role.bp_type === 'AGENT') {
window.localStorage.setItem('multipleRole', 'AGENT')
this.multipleRole = 'AGENT'
}
console.log('选择后的角色为:' + role) console.log('选择后的角色为:' + role)
window.localStorage.setItem('bp_type', role.bp_type)
}, },
typeConfirm (e) { typeConfirm (e) {
// 选择操作方式后 // 选择操作方式后
...@@ -957,28 +919,20 @@ export default { ...@@ -957,28 +919,20 @@ export default {
vm.app_user_id = res.info.app_user_id vm.app_user_id = res.info.app_user_id
window.localStorage.removeItem('bp_id') window.localStorage.removeItem('bp_id')
window.localStorage.setItem('bp_id', res.info.user_bp_id) window.localStorage.setItem('bp_id', res.info.user_bp_id)
window.localStorage.setItem( window.localStorage.setItem('user_bp_status', res.info.user_bp_status)
'user_bp_status',
res.info.user_bp_status
)
window.localStorage.setItem('bp_name', res.info.user_bp_name) window.localStorage.setItem('bp_name', res.info.user_bp_name)
window.localStorage.setItem('bp_identity', res.info.bp_identity) window.localStorage.setItem('bp_identity', res.info.bp_identity)
window.localStorage.setItem('bp_class', res.info.user_bp_class) window.localStorage.setItem('bp_class', res.info.user_bp_class)
window.localStorage.setItem('bp_type', res.info.user_bp_type) if (localStorage.bp_type || localStorage.multipleRole) {
} else {
window.localStorage.setItem('bp_type', res.info.user_bp_type)
window.localStorage.setItem('multipleRole', res.info.user_bp_type)
}
vm.user_bp_name = res.info.user_bp_name vm.user_bp_name = res.info.user_bp_name
vm.user_bp_type = res.info.user_bp_type vm.user_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone vm.user_phone = res.info.user_phone
vm.bp_type_n = res.info.user_bp_type_n vm.bp_type_n = res.info.user_bp_type_n
if (window.localStorage.multipleRole) {
} else {
if (res.info.user_bp_type === 'TENANT') {
window.localStorage.setItem('multipleRole', 'TENANT')
} else if (res.info.user_bp_type === 'GUTA') {
window.localStorage.setItem('multipleRole', 'GUTA')
} else if (res.info.user_bp_type === 'AGENT') {
window.localStorage.setItem('multipleRole', 'AGENT')
}
}
vm.watchBpStatus() vm.watchBpStatus()
vm.getHead() vm.getHead()
vm.getMultipleRole() vm.getMultipleRole()
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</item> </item>
</list-item> </list-item>
<list-item :item-height="50" class="list"> <list-item :item-height="50" class="list">
<item v-if="bpId!=='undefined'" @click.native="changePageHead()"> <item v-if="bpId!=='undefined'" v-show="user_bp_type!='MANAGER'" @click.native="changePageHead()">
<div slot="name" style="color:#656464;">修改信息</div> <div slot="name" style="color:#656464;">修改信息</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div> <div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item> </item>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div slot="name" style="color:#656464;">角色切换</div> <div slot="name" style="color:#656464;">角色切换</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div> <div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item> </item>
<item @click.native="resetPwd()"> <item v-if="user_bp_type!='MANAGER'" @click.native="resetPwd()">
<div slot="name" style="color:red;">修改密码</div> <div slot="name" style="color:red;">修改密码</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div> <div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item> </item>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div slot="right-icon" style="float:right;color:#383F45;opacity:0.4;">当前版本&nbsp;&nbsp;{{ currentVersion }}</div> <div slot="right-icon" style="float:right;color:#383F45;opacity:0.4;">当前版本&nbsp;&nbsp;{{ currentVersion }}</div>
</item> </item>
<item @click.native="unBind()"> <item v-if="user_bp_type!='MANAGER'" @click.native="unBind()">
<div slot="name" style="color:#656464;">解除绑定</div> <div slot="name" style="color:#656464;">解除绑定</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div> <div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item> </item>
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
}, },
computed: { computed: {
roleList () { roleList () {
let roleObj = {'TENANT': '主承租人', 'GUTA': '担保人', 'FACTORY': '主机厂', 'AGENT': '经销商', 'OFFICE': '办事处'} let roleObj = {'TENANT': '主承租人', 'GUTA': '担保人', 'FACTORY': '主机厂', 'AGENT': '经销商', 'OFFICE': '办事处', 'MANAGER': '业务经理'}
let obj = { let obj = {
bp_type: this.user_bp_type, bp_type: this.user_bp_type,
bp_type_n: roleObj[this.user_bp_type], bp_type_n: roleObj[this.user_bp_type],
......
...@@ -164,19 +164,20 @@ export default { ...@@ -164,19 +164,20 @@ export default {
</script> </script>
<style lang='less'> <style lang='less'>
@import "../../styles/vue-1px"; @import "../../styles/vue-1px";
.display {
position: fixed;
top: 0;
img {
width: 100%;
height: 100%;
// margin-top: -70px;
}
}
#newList { #newList {
.display {
position: fixed;
top: 0;
img {
width: 100%;
height: 100%;
// margin-top: -70px;
}
}
background: #efefef; background: #efefef;
.scroll-content { .scroll-content {
top: 50px; //top: 50px;
} }
.pay-content { .pay-content {
width: 96%; width: 96%;
......
<template> <template>
<h-view id="prolist" class="public-style" title="产品查询"> <h-view id="entity-list" class="public-style" title="产品查询">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<script> <script>
import noImg from '../../assets/productQuery/none.png' import noImg from '../../assets/productQuery/none.png'
export default { export default {
name: 'ProductList', name: 'EntityList',
data () { data () {
return { return {
lists: [], lists: [],
...@@ -198,9 +198,12 @@ export default { ...@@ -198,9 +198,12 @@ export default {
} }
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
#prolist { #entity-list {
.content{
background-color: #f5f5f5;
}
.scroll-content{ .scroll-content{
margin-top: 100px; //margin-top: 100px;
} }
.display { .display {
position: fixed; position: fixed;
......
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
config: config, config: config,
unConfig: unConfig, unConfig: unConfig,
height: 0, height: 0,
src: '',
} }
}, },
computed: {}, computed: {},
...@@ -161,7 +162,7 @@ export default { ...@@ -161,7 +162,7 @@ export default {
this.src = require('@/assets/productQuery/collect.png') this.src = require('@/assets/productQuery/collect.png')
} }
}, },
methods:{ methods: {
startScroll () { startScroll () {
this.slide = true this.slide = true
}, },
......
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
#prolist { #prolist {
background: rgba(239, 239, 239, 0.55); background: rgba(239, 239, 239, 0.55);
.scroll-content { .scroll-content {
top: 50px; //top: 50px;
} }
.display { .display {
position: fixed; position: fixed;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
<h-view id="query" class="public-style" title="产品查询"> <h-view id="query-home" class="public-style" title="产品查询">
<h-header v-if="$route.path=='/query-home'" :proportion="[5,1,1]" class="bar-custom"> <h-header v-if="$route.path=='/query-home'" :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="first"> <div class="first">
<p class="product">{{ item.factory_bp_name }}</p> <p class="product">{{ item.factory_bp_name }}</p>
</div> </div>
<img class="arrow" src="@/assets/productQuery/getIn.png" alt="" > <img class="arrow" src="@/assets/productQuery/getIn.png" alt="">
</div> </div>
</div> </div>
</div> </div>
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
<script> <script>
import noImg from '../../assets/productQuery/none.png' import noImg from '../../assets/productQuery/none.png'
export default { export default {
name: 'QueryHome', name: 'QueryHome',
data () { data () {
...@@ -70,164 +71,159 @@ export default { ...@@ -70,164 +71,159 @@ export default {
}, },
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'HomePage' ||from.name === 'FunctionCenter') { next(vm => {
next(vm => { vm.searchInput = ''
vm.searchInput = '' vm.pagenum = 1
vm.pagenum = 1 vm.proQuery()
vm.proQuery() })
})
}
next()
}, },
methods: methods: {
{ // 初始产品查询
// 初始产品查询 proQuery () {
proQuery () { let vm = this
let vm = this let url = $config.basePath + 'prd_product_type_list'
let url = $config.basePath + 'prd_product_type_list' let param = {
let param = { searchInput: vm.searchInput,
searchInput: vm.searchInput, pagenum: vm.pagenum,
pagenum: vm.pagenum, pagesize: 10,
pagesize: 10, }
} vm.hlsPopup.showLoading('数据加载中')
vm.hlsPopup.showLoading('数据加载中') vm.$post(url, param).then(function (res) {
vm.$post(url, param).then(function (res) { vm.hlsPopup.hideLoading()
vm.hlsPopup.hideLoading() if (res.result === 'S') {
if (res.result === 'S') { vm.prolists = res.lists
vm.prolists = res.lists if (vm.prolists.length === 0) {
if (vm.prolists.length === 0) { vm.$refs.scrollLists.update(true)
vm.$refs.scrollLists.update(true) } else if (vm.prolists.length > 0 && vm.prolists.length < 10) {
} else if (vm.prolists.length > 0 && vm.prolists.length < 10) { vm.prolists.forEach(item => {
vm.prolists.forEach(item => { item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg })
}) vm.$refs.scrollLists.update(true)
vm.$refs.scrollLists.update(true) } else if (vm.prolists.length === 10) {
} else if (vm.prolists.length === 10) { vm.prolists.forEach(item => {
vm.prolists.forEach(item => { item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg })
}) vm.$refs.scrollLists.update(false)
vm.$refs.scrollLists.update(false) }
} console.log(vm.prolists)
console.log(vm.prolists) } else {
} else { hlsPopup.showLongCenter(res.message)
hlsPopup.showLongCenter(res.message) }
} })
}) },
}, // 跳列表 val = 产品线
// 跳列表 val = 产品线 goLists (val) {
goLists (val) { this.$router.push({
this.$router.push({ name: 'ProductList',
name: 'ProductList', params: {
params: { factory_bp_id: val,
factory_bp_id: val, },
}, })
}) },
},
loadMore () { loadMore () {
let vm = this let vm = this
vm.pagenum = vm.pagenum + 1 vm.pagenum = vm.pagenum + 1
let url = $config.basePath + 'prd_product_type_list' let url = $config.basePath + 'prd_product_type_list'
let param = { let param = {
searchInput: vm.searchInput, searchInput: vm.searchInput,
pagenum: vm.pagenum, pagenum: vm.pagenum,
pagesize: 10, pagesize: 10,
} }
vm.hlsPopup.showLoading('数据加载中') vm.hlsPopup.showLoading('数据加载中')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
let returnData = [] let returnData = []
if (res.result === 'S') { if (res.result === 'S') {
returnData = res.lists returnData = res.lists
if (returnData.length === 0) { if (returnData.length === 0) {
vm.$refs.scrollLists.update(true) vm.$refs.scrollLists.update(true)
} else if (returnData.length > 0 && returnData.length < 10) { } else if (returnData.length > 0 && returnData.length < 10) {
returnData.forEach((data, index, array) => { returnData.forEach((data, index, array) => {
vm.prolists.push(array[index]) vm.prolists.push(array[index])
}) })
vm.prolists.forEach(item => { vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
}) })
vm.$refs.scrollLists.update(true) vm.$refs.scrollLists.update(true)
} else if (returnData.length === 10) { } else if (returnData.length === 10) {
returnData.forEach((data, index, array) => { returnData.forEach((data, index, array) => {
vm.prolists.push(array[index]) vm.prolists.push(array[index])
}) })
vm.prolists.forEach(item => { vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
}) })
vm.$refs.scrollLists.update(false) vm.$refs.scrollLists.update(false)
} }
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
// 搜索 // 搜索
search () { search () {
let vm = this let vm = this
vm.pagenum = 1 vm.pagenum = 1
let url = $config.basePath + 'prd_product_type_list' let url = $config.basePath + 'prd_product_type_list'
let param = { let param = {
pagesize: 10, pagesize: 10,
pagenum: vm.pagenum, pagenum: vm.pagenum,
searchInput: vm.searchInput, searchInput: vm.searchInput,
} }
vm.hlsPopup.showLoading('数据加载中') vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
vm.prolists = res.lists vm.prolists = res.lists
if (vm.prolists.length >= 0 && vm.prolists.length < 10) { if (vm.prolists.length >= 0 && vm.prolists.length < 10) {
vm.prolists.forEach(item => { vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
}) })
vm.$refs.scrollLists.update(true) vm.$refs.scrollLists.update(true)
} else if (vm.lists.length === 10) { } else if (vm.lists.length === 10) {
vm.prolists.forEach(item => { vm.prolists.forEach(item => {
item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg item['url'] = item.factory_attachment_id ? process.env.filePath + 'attachment_id=' + item.factory_attachment_id + '&access_token=' + window.localStorage.access_token : noImg
}) })
vm.$refs.scrollLists.update(false) vm.$refs.scrollLists.update(false)
} }
}) })
}, },
// 产品线查询val=主机厂id,ind=产品列表索引 // 产品线查询val=主机厂id,ind=产品列表索引
queryDivision (val, ind) { queryDivision (val, ind) {
let vm = this let vm = this
let url = $config.basePath + 'prd_product_division_list' let url = $config.basePath + 'prd_product_division_list'
let param = { let param = {
factory_bp_id: val, factory_bp_id: val,
} }
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
console.log(res) console.log(res)
if (res.result === 'S') { if (res.result === 'S') {
vm.divisionList = res.lists.map(item => { vm.divisionList = res.lists.map(item => {
return { return {
code: item.division, code: item.division,
code_name: item.product_line, code_name: item.product_line,
} }
}) })
// vm.divisionList = res.lists // vm.divisionList = res.lists
vm.hlsPopup.selectList({ vm.hlsPopup.selectList({
list: vm.divisionList, // 下拉列表 list: vm.divisionList, // 下拉列表
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
// 更改产品线(division)和 产品线描述(division_n) // 更改产品线(division)和 产品线描述(division_n)
vm.prolists[ind].division_n = obj.bp_type_n vm.prolists[ind].division_n = obj.bp_type_n
vm.prolists[ind].division = obj.bp_type vm.prolists[ind].division = obj.bp_type
}, },
}) })
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
},
},
} }
</script> </script>
<style lang='less'> <style lang='less'>
#query { #query-home {
.search { .search {
background-color: #fff; background-color: #fff;
padding: 8px 12px; padding: 8px 12px;
...@@ -235,6 +231,7 @@ export default { ...@@ -235,6 +231,7 @@ export default {
width: 100%; width: 100%;
z-index: 100; z-index: 100;
margin-bottom: 8px; margin-bottom: 8px;
input { input {
padding-left: 12px; padding-left: 12px;
height: 36px; height: 36px;
...@@ -248,12 +245,14 @@ export default { ...@@ -248,12 +245,14 @@ export default {
background-size: 16px 16px; background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55); background-color: rgba(239, 239, 239, 0.55);
} }
input::placeholder { input::placeholder {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 14px;
color: #888C8F; color: #888C8F;
letter-spacing: 0; letter-spacing: 0;
} }
input:focus { input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat; background: url("../../assets/contractStart/search2.png") 320px no-repeat;
background-size: 16px 16px; background-size: 16px 16px;
...@@ -261,9 +260,11 @@ export default { ...@@ -261,9 +260,11 @@ export default {
border: 2px solid #bcc6ff; border: 2px solid #bcc6ff;
} }
} }
.scroll-box { .scroll-box {
padding: 8px; padding: 8px;
} }
.box { .box {
width: 100%; width: 100%;
height: 80px; height: 80px;
...@@ -274,20 +275,24 @@ export default { ...@@ -274,20 +275,24 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 20px; padding: 20px;
.leftPic { .leftPic {
height: 40px; height: 40px;
width: 40px; width: 40px;
border-radius: 8px; border-radius: 8px;
img { img {
height: 40px; height: 40px;
width: 40px; width: 40px;
} }
} }
.first { .first {
flex-grow: 1; flex-grow: 1;
height: 84px; height: 84px;
line-height: 84px; line-height: 84px;
text-indent: 20px; text-indent: 20px;
.product { .product {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 14px;
...@@ -295,27 +300,32 @@ export default { ...@@ -295,27 +300,32 @@ export default {
text-align: left; text-align: left;
} }
} }
.arrow { .arrow {
height: 16px; height: 16px;
width: 16px; width: 16px;
} }
} }
.content { .content {
position: absolute; position: absolute;
top:0; top: 0;
} }
.scrollContent { .scrollContent {
padding-top: 1.92rem; //padding-top: 1.92rem;
padding-bottom: 20px; padding-bottom: 20px;
} }
} }
.platform-ios {
.platform-ios {
#query { #query {
.scrollContent { .scrollContent {
padding-top: 2.32rem; padding-top: 2.32rem;
} }
} }
} }
// iPhoneX适配 // iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) { @media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios { .platform-ios {
...@@ -326,6 +336,7 @@ export default { ...@@ -326,6 +336,7 @@ export default {
} }
} }
} }
// iPhoneXR适配 // iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) { @media (device-width: 414px) and (device-height: 896px) {
.platform-ios { .platform-ios {
...@@ -333,21 +344,21 @@ export default { ...@@ -333,21 +344,21 @@ export default {
.scrollContent { .scrollContent {
padding-top: 2.72rem; padding-top: 2.72rem;
} }
.search { .search {
input { input {
background: url("../../assets/contractStart/search1.png") 320px background: url("../../assets/contractStart/search1.png") 320px no-repeat;
no-repeat; background-size: 16px 16px;
background-size: 16px 16px; background-color: rgba(239, 239, 239, 0.55);
background-color: rgba(239, 239, 239, 0.55); padding: 8px 12px;
padding: 8px 12px; border-radius: 4px;
border-radius: 4px; width: 100%;
width: 100%; font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular; font-size: 14px;
font-size: 14px; color: #888c8f;
color: #888c8f; }
} }
} }
}
} }
} }
</style> </style>
...@@ -314,7 +314,7 @@ export default new Router({ ...@@ -314,7 +314,7 @@ export default new Router({
{path: '/np-bank-info', component: NPBankInfo, name: 'NPBankInfo', meta: {keepAlive: false}}, {path: '/np-bank-info', component: NPBankInfo, name: 'NPBankInfo', meta: {keepAlive: false}},
{path: '/accessory-info', component: AccessoryInfo, name: 'AccessoryInfo', meta: {keepAlive: true}}, {path: '/accessory-info', component: AccessoryInfo, name: 'AccessoryInfo', meta: {keepAlive: true}},
// 我的合同 // 我的合同
{path: '/my-contract', component: MyContract, name: 'MyContract', meta: {keepAlive: true}}, {path: '/my-contract', component: MyContract, name: 'MyContract', meta: {keepAlive: false}},
// 合同创建 // 合同创建
{path: '/contract-create-list', component: ContractCreateList, name: 'ContractCreateList', meta: {keepAlive: true}}, {path: '/contract-create-list', component: ContractCreateList, name: 'ContractCreateList', meta: {keepAlive: true}},
{path: '/sales-info', component: SalesInfo, name: 'SalesInfo', meta: {keepAlive: true}}, {path: '/sales-info', component: SalesInfo, name: 'SalesInfo', meta: {keepAlive: true}},
......
...@@ -94,6 +94,18 @@ axios.interceptors.response.use(response => { ...@@ -94,6 +94,18 @@ axios.interceptors.response.use(response => {
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '登录失效,重新登录', title: '登录失效,重新登录',
onConfirm: () => { onConfirm: () => {
let width = window.localStorage.getItem('width')
let height = window.localStorage.getItem('height')
if (window.localStorage.isReadPolicy === 'false') {
window.localStorage.clear()
} else if (window.localStorage.isReadPolicy === 'true') {
window.localStorage.clear()
window.localStorage.setItem('isReadPolicy', true)
} else {
window.localStorage.clear()
}
window.localStorage.setItem('width', width)
window.localStorage.setItem('height', height)
router.push({name: 'Login'}) router.push({name: 'Login'})
}, },
}) })
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=./cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.639b6df732adf63dae328f1593b59570.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.218b13cb8652090c3877.js></script><script type=text/javascript src=./static/js/vendor.cf2df294c770beff4ed8.js></script><script type=text/javascript src=./static/js/app.65c453c4bb4f8e7f93fe.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=./cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.639b6df732adf63dae328f1593b59570.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.56e966ab03c8841ad724.js></script><script type=text/javascript src=./static/js/vendor.cf2df294c770beff4ed8.js></script><script type=text/javascript src=./static/js/app.c0fdd7ccc95590344674.js></script></body></html>
\ No newline at end of file \ No newline at end of file
...@@ -3995,7 +3995,7 @@ hex-color-regex@^1.1.0: ...@@ -3995,7 +3995,7 @@ hex-color-regex@^1.1.0:
"hls-easy-ui@https://hel.hand-china.com/easyUI/hls-easy-ui.git#keyboard": "hls-easy-ui@https://hel.hand-china.com/easyUI/hls-easy-ui.git#keyboard":
version "0.0.5" version "0.0.5"
resolved "https://hel.hand-china.com/easyUI/hls-easy-ui.git#63c1508ec00db07f6e3c1de556ece91da2559c0a" resolved "https://hel.hand-china.com/easyUI/hls-easy-ui.git#70307428700b184a43334bab764e38d7bdf40d35"
dependencies: dependencies:
autosize "^3.0.20" autosize "^3.0.20"
better-scroll "^1.10.3" better-scroll "^1.10.3"
......
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