Commit 3d96e323 authored by jiacheng.mao's avatar jiacheng.mao

ios版本0.4.9

新增字段保证金收取方式
parent 4217fcf3
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://www.xcmgfs.com:8087/r/api"',
fileUploadSvcPath:'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="',
appId: '"com.xcmg.app"',
currentVersion: '"0.4.8"'
currentVersion: '"0.4.9"'
}
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.7.3"'
currentVersion: '"4.2.8"'
}
......@@ -350,13 +350,13 @@
<div slot="name" class="required">留购价</div>
<span slot="content">{{ saveInfo.residual_value | currency }}</span>
</item>
<item v-if="!isReadOnly" :showArrow="true" @click.native="selectDownPDeposit">
<div slot="name" class="required">首付款是否计入保证金计算</div>
<input slot="content" v-model="saveInfo.down_payment_deposit_n" readonly placeholder="请选择">
<item v-if="!isReadOnly" :showArrow="true" @click.native="selectDepositCollectionMethod">
<div slot="name" class="required">保证金收取方式</div>
<input slot="content" v-model="saveInfo.deposit_collection_method_n" readonly placeholder="请选择">
</item>
<item v-if="isReadOnly">
<div slot="name" class="required">首付款是否计入保证金计算</div>
<input slot="content" v-model="saveInfo.down_payment_deposit_n" readonly placeholder="请选择">
<div slot="name" class="required">保证金收取方式</div>
<input slot="content" v-model="saveInfo.deposit_collection_method_n" readonly placeholder="请选择">
</item>
<item :showArrow="true" @click.native="goPlan">
<div slot="name">查看还款计划</div>
......@@ -502,6 +502,7 @@ export default {
periodLists: [], // 还款周期
paywayLists: [], // 支付方式
yesNoList: [], // 是否值集
depositCollectionMethodList: [], // 保证金收取方式值集
divisionLists: [],
productLine: [], // 产品线
depositDeductionLine: [], // 保证金抵扣方式
......@@ -575,8 +576,8 @@ export default {
management_money: '',
pay_type: '',
pay_type_n: '',
down_payment_deposit_n: '',
down_payment_deposit: '',
deposit_collection_method_n: '',
deposit_collection_method: '',
residual_value: '',
division_n: '',
division: '',
......@@ -639,10 +640,10 @@ export default {
'saveInfo.down_payment_ratio_n' (newVal, oldVal) {
this.saveInfo.down_payment = (this.saveInfo.equip_price * newVal.replace('%', '') / 100).toFixed(2)
},
'saveInfo.down_payment_deposit' (newVal, oldVal) {
if (newVal === 'Y') {
'saveInfo.deposit_collection_method' (newVal, oldVal) {
if (newVal === 'FINANCING_AMOUNT') {
this.saveInfo.deposit = ((this.saveInfo.equip_price - this.saveInfo.down_payment) * this.saveInfo.deposit_ratio_n.replace('%', '') / 100).toFixed(2)
} else if (newVal === 'N') {
} else if (newVal === 'EQUIPMENT_AMOUNT') {
this.saveInfo.deposit = (this.saveInfo.equip_price * this.saveInfo.deposit_ratio_n.replace('%', '') / 100).toFixed(2)
}
},
......@@ -722,6 +723,7 @@ export default {
vm.repayPeriod()// 还款周期查询
vm.getPayWay()// 支付方式查询
vm.getYesNoList() // 是否值集获取
vm.getDepositCollectionMethodListList() // 保证金收取方式值集获取
vm.getDepositDeduction()// 保证金抵扣方式
vm.getHandlingPolicy()// 手续费政策
}, 0)
......@@ -1234,8 +1236,8 @@ export default {
hlsPopup.showLongCenter('租赁期数不能为空!')
} else if (!vm.saveInfo.pay_type_n) {
hlsPopup.showLongCenter('支付方式不能为空!')
} else if (!vm.saveInfo.down_payment_deposit_n) {
hlsPopup.showLongCenter('首付款是否计入保证金计算不能为空!')
} else if (!vm.saveInfo.deposit_collection_method_n) {
hlsPopup.showLongCenter('保证金收取方式不能为空!')
} else if (!vm.saveInfo.residual_value) {
hlsPopup.showLongCenter('留购价不能为空!')
} else if (vm.saveInfo.equip_price < 1000) {
......@@ -1318,8 +1320,8 @@ export default {
hlsPopup.showLongCenter('租赁期数不能为空!')
} else if (!vm.saveInfo.pay_type_n) {
hlsPopup.showLongCenter('支付方式不能为空!')
} else if (!vm.saveInfo.down_payment_deposit_n) {
hlsPopup.showLongCenter('首付款是否计入保证金计算不能为空!')
} else if (!vm.saveInfo.deposit_collection_method_n) {
hlsPopup.showLongCenter('保证金收取方式不能为空!')
} else if (!vm.saveInfo.residual_value) {
hlsPopup.showLongCenter('留购价不能为空!')
} else if (!vm.saveInfo.int_rate_n) {
......@@ -1577,6 +1579,22 @@ export default {
}
})
},
getDepositCollectionMethodListList () { // 保证金收取方式值集获取
let vm = this
let url = $config.basePath + 'app_get_syscode'
let param = {
'DEPOSIT_COLLECTION_METHOD': 'DEPOSIT_COLLECTION_METHOD',
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.return_status === 'S') {
vm.depositCollectionMethodList = res.DEPOSIT_COLLECTION_METHOD
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// async getYesNoList () { // 是否值集获取
// let url = $config.basePath + 'app_get_syscode'
// let param = {
......@@ -1603,15 +1621,15 @@ export default {
})
},
// 首付款是否计入保证金计算
selectDownPDeposit () {
selectDepositCollectionMethod () {
let vm = this
vm.hlsPopup.selectList({
list: vm.yesNoList, // 下拉列表
list: vm.depositCollectionMethodList, // 下拉列表
code: 'type',
object: {},
returnItem: function (index, obj) {
vm.saveInfo.down_payment_deposit_n = obj.type_n
vm.saveInfo.down_payment_deposit = obj.type
vm.saveInfo.deposit_collection_method_n = obj.type_n
vm.saveInfo.deposit_collection_method = obj.type
},
})
},
......
<!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.fb52dd271f35e6cb942abb94eb5f18bb.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.a435add3c2f8225db0b3.js></script><script type=text/javascript src=./static/js/vendor.6fb9a8a9e3d7464e35f7.js></script><script type=text/javascript src=./static/js/app.fd7e69b1aa475ce239ed.js></script></body></html>
\ No newline at end of file
<!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.fb52dd271f35e6cb942abb94eb5f18bb.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.eecb7fb2ed3197255ab9.js></script><script type=text/javascript src=./static/js/vendor.b2b00151a0abc83a0b0e.js></script><script type=text/javascript src=./static/js/app.e26975a330778662748a.js></script></body></html>
\ No newline at end of file
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