Commit 703d3c06 authored by 786817560's avatar 786817560

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents 7a658d08 dcc8490d
...@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService' ...@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import Jmessage from './scripts/jmessageService' import Jmessage from './scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') { // if (process.env.CONFIG_ENV === 'uat') {
const VConsole = require('vconsole') //const VConsole = require('vconsole')
new VConsole() // eslint-disable-line // new VConsole() // eslint-disable-line
// } // }
Vue.use(componentInstall) Vue.use(componentInstall)
......
...@@ -20,15 +20,15 @@ ...@@ -20,15 +20,15 @@
</tr> </tr>
<tr> <tr>
<td>本金</td> <td>本金</td>
<td>5,000.00</td> <td>{{ pop.principal|currency }}</td>
<td>5,000.00</td> <td>{{ pop.received_principal|currency }}</td>
<td>代扣;在线支付</td> <td>{{ pop.pay_method }}</td>
</tr> </tr>
<tr> <tr>
<td>本金</td> <td>利息</td>
<td>5,000.00</td> <td>{{ pop.interest|currency }}</td>
<td>5,000.00</td> <td>{{ pop.received_interest|currency }}</td>
<td>代扣;在线支付</td> <td>{{ pop.pay_method }}</td>
</tr> </tr>
</table> </table>
</div> </div>
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
v-for="(item,index) in lists" v-for="(item,index) in lists"
:key="index" :key="index"
:class="{'plan-list':true,'or':statu==='orange','bl':statu==='blue','gr':statu==='green'}" :class="{'plan-list':true,'or':statu==='orange','bl':statu==='blue','gr':statu==='green'}"
@click="showModel" @click="showModel(item)"
> >
<div <div
:class="{'period':true,'orange':statu==='orange','blue':statu==='blue','green':statu==='green'}" :class="{'period':true,'orange':statu==='orange','blue':statu==='blue','green':statu==='green'}"
>{{ index + 1 }}</div> >{{ item.times }}</div>
<img v-if="statu === 'black'" src="@/assets/contractInquire/black.png" alt class="left" > <img v-if="statu === 'black'" src="@/assets/contractInquire/black.png" alt class="left" >
<img v-if="statu === 'orange'" src="@/assets/contractInquire/orange.png" alt class="left" > <img v-if="statu === 'orange'" src="@/assets/contractInquire/orange.png" alt class="left" >
<img v-if="statu === 'blue'" src="@/assets/contractInquire/blue.png" alt class="left" > <img v-if="statu === 'blue'" src="@/assets/contractInquire/blue.png" alt class="left" >
...@@ -66,8 +66,8 @@ ...@@ -66,8 +66,8 @@
</div> </div>
<div class="message"> <div class="message">
<p class="top"> <p class="top">
现金流项目 款项
<span>{{ item.cf_item_name }}</span>&nbsp; &nbsp; 支付 <span>{{ item.cf_item_name }}</span>&nbsp; &nbsp; 付款方式
<span>{{ item.pay_method }}</span> <span>{{ item.pay_method }}</span>
</p> </p>
<div class="name"> <div class="name">
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
// 已结清 black , 逾期 orange , 还款中 blue , 未还款 green // 已结清 black , 逾期 orange , 还款中 blue , 未还款 green
statu: 'orange', statu: 'orange',
show: true, show: true,
pop: {},
info: {}, info: {},
lists: [], lists: [],
} }
...@@ -109,8 +110,11 @@ export default { ...@@ -109,8 +110,11 @@ export default {
}) })
}, },
methods: { methods: {
showModel () { showModel (e) {
this.show = true if (e.cf_item_name === '租金') {
this.show = true
this.pop = e
}
}, },
selectMonth (e) { selectMonth (e) {
return e.substring(5, 10) return e.substring(5, 10)
...@@ -174,7 +178,7 @@ export default { ...@@ -174,7 +178,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #1d3fff; color: #1d3fff;
font-weight: 600; font-weight: 600;
border-bottom: 1px solid #D9DBDF; border-bottom: 1px solid #d9dbdf;
} }
tr { tr {
width: 100%; width: 100%;
...@@ -182,10 +186,10 @@ export default { ...@@ -182,10 +186,10 @@ export default {
line-height: 36px; line-height: 36px;
text-align: center; text-align: center;
} }
td{ td {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #4B4A4B; color: #4b4a4b;
} }
} }
} }
...@@ -233,18 +237,19 @@ color: #4B4A4B; ...@@ -233,18 +237,19 @@ color: #4B4A4B;
.plan-content { .plan-content {
background-color: #fff; background-color: #fff;
padding: 0px 11px; padding: 0px 11px;
.plan-list { .plan-list {
position: relative; position: relative;
background-color: #f7f7f7; background-color: #f7f7f7;
height: 106px; height: 126px;
display: flex; display: flex;
padding-right: 20px; padding-right: 20px;
padding-left: 10px; padding-left: 10px;
padding-top: 16px; padding-top: 16px;
margin-bottom: 10px; margin-bottom: 10px;
padding-bottom: 20px;
.message { .message {
flex: 12; flex: 12;
height: 85%;
} }
.left { .left {
height: 30px; height: 30px;
...@@ -304,7 +309,7 @@ color: #4B4A4B; ...@@ -304,7 +309,7 @@ color: #4B4A4B;
} }
.time { .time {
flex: 3; flex: 3;
height: 85%;
p { p {
font-family: DIN-Regular; font-family: DIN-Regular;
font-size: 12px; font-size: 12px;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</item> </item>
<item> <item>
<div slot="name">租赁物数量</div> <div slot="name">租赁物数量</div>
<div slot="content">{{ detailInfo.lease_num }}</div> <div slot="content">{{ detailInfo.product_num }}</div>
</item> </item>
</list-item> </list-item>
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
division_n: '', division_n: '',
total_price: '', total_price: '',
product_plan_id_n: '', product_plan_id_n: '',
lease_num: '', product_num: '',
}, },
lists: [{ lists: [{
'lease_item_car_num': 'GH', 'lease_item_car_num': 'GH',
......
...@@ -128,18 +128,18 @@ ...@@ -128,18 +128,18 @@
<div slot="name">商务政策</div> <div slot="name">商务政策</div>
<input <input
slot="content" slot="content"
v-model="detail.product_plan_name" v-model="detail.product_plan_id_n"
placeholder="请选择合同政策" placeholder="请选择合同政策"
@click="selectProductPlan" @click="selectProductPlan"
> >
</item> </item>
<item v-if="read"> <item v-if="read">
<div slot="name">商务政策</div> <div slot="name">商务政策</div>
<input slot="content" v-model="detail.product_plan_name" readonly placeholder="暂无数据" > <input slot="content" v-model="detail.product_plan_id_n" readonly placeholder="暂无数据" >
</item> </item>
<item> <item>
<div slot="name">租赁物数量</div> <div slot="name">租赁物数量</div>
<input slot="content" v-model="detail.lease_num" readonly="read" placeholder="请输入租赁物数量" > <input slot="content" v-model="detail.product_num " readonly="read" placeholder="请输入租赁物数量" >
</item> </item>
</list-item> </list-item>
<div class="userInfo">设备清单</div> <div class="userInfo">设备清单</div>
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
departure_date: '', departure_date: '',
}, },
detail: { detail: {
lease_num: '', product_num: '',
first_pay: '', first_pay: '',
gps_fee: '', gps_fee: '',
bp_name: '', bp_name: '',
...@@ -302,7 +302,6 @@ export default { ...@@ -302,7 +302,6 @@ export default {
division: '', division: '',
division_n: '', division_n: '',
product_plan_id: '', product_plan_id: '',
product_plan_name: '',
project_id: '', project_id: '',
bp_id: '', bp_id: '',
}, },
...@@ -612,7 +611,7 @@ export default { ...@@ -612,7 +611,7 @@ export default {
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.detail.product_plan_id = obj.bp_type vm.detail.product_plan_id = obj.bp_type
vm.detail.product_plan_name = obj.bp_type_n vm.detail.product_plan_id_n = obj.bp_type_n
}, },
}) })
}, },
......
...@@ -202,7 +202,6 @@ export default { ...@@ -202,7 +202,6 @@ export default {
code_name: item.annual_pay_times_n, code_name: item.annual_pay_times_n,
} }
}) })
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
:key="index" :key="index"
class="file" class="file"
> >
<img :src="item.picture" @click="showBigPicture(item.picture)" > <img :src="item.picture" class="file-img" @click="showBigPicture(item.picture)" >
<div class="close" @click="remove_pic(item.attachment_id,index)"> <div class="close" @click="remove_pic(item.attachment_id,index)">
<img src="@/assets/userBind/deleteIcon.png" > <img src="@/assets/userBind/deleteIcon.png" >
</div> </div>
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
</h-view> </h-view>
</template> </template>
<script> <script>
import ps from '../../assets/constractSigning/bank.png'
export default { export default {
data () { data () {
return { return {
...@@ -333,7 +335,7 @@ export default { ...@@ -333,7 +335,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-left: 20px; margin-left: 20px;
img { .file-img {
width: 80px; width: 80px;
height: 80px; height: 80px;
} }
......
...@@ -178,14 +178,18 @@ export default { ...@@ -178,14 +178,18 @@ export default {
}, },
// 进入待签约功能,客户类型为经销商则进入经销商功能,非经销商则进入合同签约 // 进入待签约功能,客户类型为经销商则进入经销商功能,非经销商则进入合同签约
goSign () { goSign () {
if (this.user_bp_type === 'AGENT') { if (this.bp_id) {
this.$router.push({ if (this.user_bp_type === 'AGENT') {
name: 'ContractList', this.$router.push({
}) name: 'ContractList',
})
} else {
this.$router.push({
name: 'ContractSigning',
})
}
} else { } else {
this.$router.push({ hlsPopup.showLongCenter('请先进行用户绑定')
name: 'ContractSigning',
})
} }
}, },
// 进入待确认,(进件确认) // 进入待确认,(进件确认)
...@@ -199,9 +203,13 @@ export default { ...@@ -199,9 +203,13 @@ export default {
}, },
// 进入我的还款 // 进入我的还款
goReimburse () { goReimburse () {
this.$router.push({ if (this.bp_id) {
name: 'ReimburseMyselfList', this.$router.push({
}) name: 'ReimburseMyselfList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
// 进入我的收藏 // 进入我的收藏
goMyProduct () { goMyProduct () {
...@@ -211,20 +219,32 @@ export default { ...@@ -211,20 +219,32 @@ export default {
}, },
// 进入发车申请 // 进入发车申请
goStart () { goStart () {
this.$router.push({ if (this.bp_id) {
name: 'StartList', this.$router.push({
}) name: 'StartList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
// 进入发车确认 // 进入发车确认
goCarConfirm () { goCarConfirm () {
this.$router.push({ if (this.bp_id) {
name: 'ConfirmList', this.$router.push({
}) name: 'ConfirmList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
goVideoSign () { goVideoSign () {
this.$router.push({ if (this.bp_id) {
name: 'VideoSign', this.$router.push({
}) name: 'VideoSign',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
changeHelp () { changeHelp () {
this.$router.push({ this.$router.push({
...@@ -232,9 +252,13 @@ export default { ...@@ -232,9 +252,13 @@ export default {
}) })
}, },
changeDrawbackList () { changeDrawbackList () {
this.$router.push({ if (this.bp_id) {
name: 'DrawbackList', this.$router.push({
}) name: 'DrawbackList',
})
} else {
hlsPopup.showLongCenter('请先进行用户绑定')
}
}, },
changePay () { changePay () {
if (window.sessionStorage.getItem('bp_id') !== 'undefined') { if (window.sessionStorage.getItem('bp_id') !== 'undefined') {
...@@ -446,32 +470,36 @@ export default { ...@@ -446,32 +470,36 @@ export default {
// 认证入口 // 认证入口
async certification () { async certification () {
let vm = this let vm = this
if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO') { if (vm.bp_id) {
let authUrl = await vm.getNpCertificationUrl() if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO') {
if (authUrl) { let authUrl = await vm.getNpCertificationUrl()
vm.$router.push({ if (authUrl) {
name: 'Certification', vm.$router.push({
params: { name: 'Certification',
authUrl: authUrl, params: {
}, authUrl: authUrl,
}) },
} else { })
hlsPopup.showLongCenter('获取认证url失败') } else {
} hlsPopup.showLongCenter('获取认证url失败')
} else if (vm.bp_identity === 'ORG_NO') { }
let authUrl = await vm.getOrgCertificationUrl() } else if (vm.bp_identity === 'ORG_NO') {
if (authUrl) { let authUrl = await vm.getOrgCertificationUrl()
vm.$router.push({ if (authUrl) {
name: 'Certification', vm.$router.push({
params: { name: 'Certification',
authUrl: authUrl, params: {
}, authUrl: authUrl,
}) },
})
} else {
hlsPopup.showLongCenter('获取认证url失败')
}
} else { } else {
hlsPopup.showLongCenter('获取认证url失败') hlsPopup.showLongCenter('您已认证通过')
} }
} else { } else {
hlsPopup.showLongCenter('您已认证通过') hlsPopup.showLongCenter('请先进行用户绑定')
} }
}, },
// 获取个人认证url // 获取个人认证url
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
</div> </div>
</template> </template>
<script> <script>
import signed from '@/assets/distributorSign/icon-signed.png' import signed from '@/assets/contractStart/noY.png'
import finished from '@/assets/distributorSign/icon-finished.png' import finished from '@/assets/contractStart/confirmY.png'
import sign from '@/assets/distributorSign/icon-sign.png' import sign from '@/assets/contractStart/noN.png'
import finish from '@/assets/distributorSign/icon-finish.png' import finish from '@/assets/contractStart/confirmN.png'
export default { export default {
props: { props: {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
export default (Vue) => { export default (Vue) => {
Vue.filter('currency', function (val) { Vue.filter('currency', function (val) {
if (!val) return '0.00' if (!val) return '0.00'
// var intPart = Number(val).toFixed(0) // 获取整数部分
var intPart = Number(val).toFixed(0) // 获取整数部分 var intPart = val.toString().split('.')[0]
var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断 var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
var floatPart = '.00' // 预定义小数部分 var floatPart = '.00' // 预定义小数部分
......
<!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=CyOWd7pmPurvZ0PERgxEOlAlifG0y7Sp"></script><title>xcmg</title><link href=./static/css/app.84881c6cb7d5be64864b11323ab85fa6.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.efd596b798e6119ce4a4.js></script><script type=text/javascript src=./static/js/app.972addcd4e5bd52ea724.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=CyOWd7pmPurvZ0PERgxEOlAlifG0y7Sp"></script><title>xcmg</title><link href=./static/css/app.a4266b42e9e2d7359bb4ca6f12f1e0dd.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.efd596b798e6119ce4a4.js></script><script type=text/javascript src=./static/js/app.12d489fd8cb9b17cd278.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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