Commit cf158cce authored by 李晓兵's avatar 李晓兵

'问题修复'

parent ed6810c4
Pipeline #4404 canceled with stages
...@@ -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"', appId: '"com.xcmg.app"',
currentVersion: '"1.0.0"' currentVersion: '"1.0.1"'
} }
...@@ -253,16 +253,37 @@ export default { ...@@ -253,16 +253,37 @@ export default {
}) })
}, },
methods: { methods: {
// 签约校验
async signCheck () {
let vm = this
let url = process.env.basePath + 'sign_check'
let param = {
confirm_id: vm.confirm_id,
data_class: 'LEASE_ITEM',
}
vm.hlsPopup.showLoading('请稍后!')
let res = vm.hlsHttp.post(url, param)
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
return true
} else {
// vm.hlsPopup.showLongCenter(res.message)
}
},
getTabNum (i) { getTabNum (i) {
this.tabNum = i this.tabNum = i
}, },
takePhonto () { takePhonto () {
let vm = this let vm = this
hlsPopup.showPopup({ hlsPopup.showConfirm({
title: '提示', title: '提示',
content: `请自拍一张`, content: '请自拍一张',
onConfirm: () => { onConfirm: function (index) {
if (index === 1) {
vm.takePhontoOpenCamera() vm.takePhontoOpenCamera()
} else {
}
}, },
}) })
}, },
...@@ -398,7 +419,10 @@ export default { ...@@ -398,7 +419,10 @@ export default {
hlsPopup.hideLoading() hlsPopup.hideLoading()
} }
}, },
isConfirm () { async isConfirm () {
let vm = this
let flag = await this.signCheck()
if (flag) { // 只有认证通过后方可进行签约操作
this.hlsPopup.showConfirm({ this.hlsPopup.showConfirm({
title: '提示', title: '提示',
content: '您确定同意发车吗?', content: '您确定同意发车吗?',
...@@ -408,6 +432,7 @@ export default { ...@@ -408,6 +432,7 @@ export default {
} }
}, },
}) })
}
}, },
confirm () { confirm () {
let vm = this let vm = this
......
...@@ -406,6 +406,7 @@ export default { ...@@ -406,6 +406,7 @@ export default {
}) })
vm.selectUdertake = [] vm.selectUdertake = []
setTimeout(() => { setTimeout(() => {
vm.getSaveInfo()
vm.getBaseInfo() vm.getBaseInfo()
}, 0) }, 0)
} else if (from.name === 'ContractCreateList' && vm.status === 'false') { } else if (from.name === 'ContractCreateList' && vm.status === 'false') {
...@@ -445,7 +446,7 @@ export default { ...@@ -445,7 +446,7 @@ export default {
} }
}, },
}) })
} else{ } else {
vm.$routeGo() vm.$routeGo()
} }
}, },
...@@ -460,6 +461,7 @@ export default { ...@@ -460,6 +461,7 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.saveInfo, res.info) Object.assign(vm.saveInfo, res.info)
vm.selectUdertake = res.lists
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -531,9 +533,17 @@ export default { ...@@ -531,9 +533,17 @@ export default {
name: 'CreateRentInfo', name: 'CreateRentInfo',
params: { params: {
bp_agent_id: vm.bp_agent_id, bp_agent_id: vm.bp_agent_id,
salesEnter: vm.salesEnter salesEnter: vm.salesEnter,
}, },
}) })
} else if (!vm.saveInfo.np_industry_exp_n) {
hlsPopup.showLongCenter('行业情况不能为空!')
} else if (!vm.saveInfo.np_occupation_n) {
hlsPopup.showLongCenter('职业情况不能为空!')
} else if (!vm.saveInfo.house_type_n) {
hlsPopup.showLongCenter('房产信息不能为空!')
} else if (!vm.saveInfo.equip_value) {
hlsPopup.showLongCenter('设备价值不能为空!')
} else { } else {
let url = process.env.basePath + 'prj_base_info_save' let url = process.env.basePath + 'prj_base_info_save'
let param = { let param = {
...@@ -549,7 +559,7 @@ export default { ...@@ -549,7 +559,7 @@ export default {
params: { params: {
bp_agent_id: vm.bp_agent_id, bp_agent_id: vm.bp_agent_id,
bp_name: vm.NPBaseInfo.bp_name, bp_name: vm.NPBaseInfo.bp_name,
salesEnter: vm.salesEnter salesEnter: vm.salesEnter,
}, },
}) })
} else { } else {
......
...@@ -506,6 +506,7 @@ export default { ...@@ -506,6 +506,7 @@ export default {
let url = process.env.basePath + 'prj_project_submit' let url = process.env.basePath + 'prj_project_submit'
let param = { let param = {
project_id: window.localStorage.project_id, project_id: window.localStorage.project_id,
phone:window.localStorage.getItem('user_phone'),
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
......
...@@ -442,14 +442,26 @@ export default { ...@@ -442,14 +442,26 @@ export default {
// 销售信息保存 // 销售信息保存
confirmCreate () { confirmCreate () {
let vm = this let vm = this
if (!vm.lessee) {
hlsPopup.showLongCenter('请选择承租人!')
} else if (!vm.business) {
hlsPopup.showLongCenter('业务类型不能为空!')
} else if (!vm.sales) {
hlsPopup.showLongCenter('销售人员不能为空!')
} else if (!vm.office_name) {
hlsPopup.showLongCenter('办事处不能为空!')
} else if (!vm.factory_name) {
hlsPopup.showLongCenter('主机厂不能为空!')
} else if (!vm.manu_manager) {
hlsPopup.showLongCenter('主机厂业务员不能为空!')
} else if (!vm.salesInfo.dates) {
hlsPopup.showLongCenter('签约日期不能为空!')
} else {
let url = process.env.basePath + 'prj_sales_info_save' let url = process.env.basePath + 'prj_sales_info_save'
window.localStorage.setItem('bp_id_tenant', this.salesInfo.bp_id_tenant) window.localStorage.setItem('bp_id_tenant', this.salesInfo.bp_id_tenant)
let param = { let param = {
master: vm.salesInfo, master: vm.salesInfo,
} }
if (!this.lessee) {
hlsPopup.showLongCenter('请选择承租人')
} else {
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()
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
<div class="center"> <div class="center">
<div><span>合同金额</span><p>{{ item.total_price|currency }}</p></div> <div><span>合同金额</span><p>{{ item.total_price|currency }}</p></div>
<div><span>已还金额</span><p class="bold">{{ item.recivied_amount|currency }}</p></div> <div><span>已还金额</span><p class="bold">{{ item.received_amount|currency }}</p></div>
<span v-if="item.overdue_status==='已逾期'" class="red">已逾期</span> <span v-if="item.overdue_status==='已逾期'" class="red">已逾期</span>
<section @click="toRepayDetails(item)"> <section @click="toRepayDetails(item)">
<img src="@/assets/contractRepayment/view.png" alt=""> <img src="@/assets/contractRepayment/view.png" alt="">
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
</h-view> </h-view>
</h-modal> </h-modal>
<!--活体检测--> <!--活体检测-->
<body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id"></body-check> <body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id"/>
</h-view> </h-view>
</template> </template>
...@@ -418,7 +418,6 @@ export default { ...@@ -418,7 +418,6 @@ export default {
vm.getLease() vm.getLease()
vm.getGuarantor() vm.getGuarantor()
vm.getContractLists() // 合同列表 vm.getContractLists() // 合同列表
vm.signCheck() // 签约校验
} else if (from.name === 'EntryInfo') { } else if (from.name === 'EntryInfo') {
vm.bankCardQuery() vm.bankCardQuery()
} }
...@@ -444,19 +443,21 @@ export default { ...@@ -444,19 +443,21 @@ export default {
}, */ }, */
methods: { methods: {
// 签约校验 // 签约校验
signCheck () { async signCheck () {
let vm = this let vm = this
let url = process.env.basePath + 'sign_check' let url = process.env.basePath + 'sign_check'
let param = { let param = {
confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
data_class: 'PRJ_PROJECT',
} }
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsPopup.showLoading('请稍后!')
if (res.result === 'E') { let res = vm.hlsHttp.post(url, param)
vm.signCheckFlag = false vm.hlsPopup.hideLoading()
if (res.result === 'S') {
return true
} else { } else {
vm.signCheckFlag = true // vm.hlsPopup.showLongCenter(res.message)
} }
})
}, },
// 征信查询 // 征信查询
creditCheck () { creditCheck () {
...@@ -484,7 +485,7 @@ export default { ...@@ -484,7 +485,7 @@ export default {
check_id: this.$route.params.check_id, check_id: this.$route.params.check_id,
confirm_id: confirm_id, confirm_id: confirm_id,
}, },
})*/ }) */
}, },
/* goElectronicSign () { // 电子签 /* goElectronicSign () { // 电子签
let vm = this let vm = this
...@@ -524,11 +525,15 @@ export default { ...@@ -524,11 +525,15 @@ export default {
}, },
takePhonto () { takePhonto () {
let vm = this let vm = this
hlsPopup.showPopup({ hlsPopup.showConfirm({
title: '提示', title: '提示',
content: `请自拍一张`, content: '请自拍一张',
onConfirm: () => { onConfirm: function (index) {
if (index === 1) {
vm.takePhontoOpenCamera() vm.takePhontoOpenCamera()
} else {
}
}, },
}) })
}, },
...@@ -629,7 +634,7 @@ export default { ...@@ -629,7 +634,7 @@ export default {
// 进入活体检测页面 // 进入活体检测页面
vm.goBodyCheck(vm.confirm_id) vm.goBodyCheck(vm.confirm_id)
}, },
})*/ }) */
}, },
// 确认签约逻辑 // 确认签约逻辑
doConfirm (status) { doConfirm (status) {
...@@ -852,15 +857,14 @@ export default { ...@@ -852,15 +857,14 @@ export default {
}, },
}) })
}, },
inSure () { async inSure () {
if (this.signCheckFlag) { // 只有认证通过后方可进行签约操作 let flag = await this.signCheck()
if (flag) { // 只有认证通过后方可进行签约操作
if (!this.bank_flag && this.abc_deduction_flag === 'Y') { if (!this.bank_flag && this.abc_deduction_flag === 'Y') {
this.isshow = true // 未查到农行卡给出提示且勾选农行代扣 this.isshow = true // 未查到农行卡给出提示且勾选农行代扣
} else { } else {
this.showModalValue = true // 审批内容框显示 this.showModalValue = true // 审批内容框显示
} }
} else {
hlsPopup.showLongCenter('请先进行认证')
} }
}, },
......
...@@ -253,7 +253,6 @@ export default { ...@@ -253,7 +253,6 @@ export default {
vm.getGuarantor() vm.getGuarantor()
} }
vm.getLease() vm.getLease()
vm.signCheck() // 签约校验
} else if (from.name === 'ContractContent') { } else if (from.name === 'ContractContent') {
vm.tabNum = 2 vm.tabNum = 2
vm.agentPic = vm.readed vm.agentPic = vm.readed
...@@ -263,19 +262,21 @@ export default { ...@@ -263,19 +262,21 @@ export default {
created () {}, created () {},
methods: { methods: {
// 签约校验 // 签约校验
signCheck () { async signCheck () {
let vm = this let vm = this
let url = process.env.basePath + 'sign_check' let url = process.env.basePath + 'sign_check'
let param = { let param = {
confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
data_class: 'PRJ_PROJECT',
} }
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsPopup.showLoading('请稍后!')
if (res.result === 'E') { let res = vm.hlsHttp.post(url, param)
vm.signCheckFlag = false vm.hlsPopup.hideLoading()
if (res.result === 'S') {
return true
} else { } else {
vm.signCheckFlag = true // vm.hlsPopup.showLongCenter(res.message)
} }
})
}, },
goBodyCheck (confirm_id) { // 活体检测 goBodyCheck (confirm_id) { // 活体检测
this.$refs.body.show() this.$refs.body.show()
...@@ -310,9 +311,10 @@ export default { ...@@ -310,9 +311,10 @@ export default {
}) })
}, */ }, */
// 签约确认 // 签约确认
contractConfirm () { async contractConfirm () {
let vm = this let vm = this
if (this.signCheckFlag) { // 只有认证通过后方可进行签约操作 let flag = await this.signCheck()
if (flag) { // 只有认证通过后方可进行签约操作
this.hlsPopup.showConfirm({ this.hlsPopup.showConfirm({
title: '提示', title: '提示',
content: '您确认签约吗?', content: '您确认签约吗?',
...@@ -322,18 +324,20 @@ export default { ...@@ -322,18 +324,20 @@ export default {
} }
}, },
}) })
} else {
hlsPopup.showLongCenter('请先进行认证')
} }
}, },
takePhonto () { takePhonto () {
let vm = this let vm = this
hlsPopup.showPopup({ hlsPopup.showConfirm({
title: '提示', title: '提示',
content: `请自拍一张`, content: '请自拍一张',
onConfirm: () => { onConfirm: function (index) {
if (index === 1) {
vm.takePhontoOpenCamera() vm.takePhontoOpenCamera()
} else {
}
}, },
}) })
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<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-content" style="margin-top:-1px"> <div class="my-content" style="margin-top:-1px">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<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 style="margin-top:-1px;"> <div style="margin-top:-1px;">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<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="goHome" > <img src="@/assets/userBind/arrow.png" @click="goHome" >
<span>还款明细</span> <span>租金还款</span>
</div> </div>
</h-header> </h-header>
<h-content style="margin-top:-1px;"> <h-content style="margin-top:-1px;">
......
...@@ -729,12 +729,12 @@ export default { ...@@ -729,12 +729,12 @@ export default {
}, },
async saveWord () { async saveWord () {
let vm = this let vm = this
debugger
if (!vm.baseInfo.bp_type) { if (!vm.baseInfo.bp_type) {
vm.hlsPopup.showLongCenter('客户类型不能为空!') vm.hlsPopup.showLongCenter('客户类型不能为空!')
} else if (vm.isSelected && vm.isPaople && !vm.baseInfo.agent_username) { } else if (vm.isPaople && !vm.baseInfo.agent_username) {
vm.hlsPopup.showLongCenter('业务经办员工代码不能为空!') vm.hlsPopup.showLongCenter('业务经办员工代码不能为空!')
} else if ( } else if (
vm.isSelected &&
!vm.isPaople && !vm.isPaople &&
!vm.baseInfo.business_license_num !vm.baseInfo.business_license_num
) { ) {
......
<!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=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"></script><title>徐工融租</title><link href=./static/css/app.891dc19da1733fc7db7071712cea81e0.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.e547499500fbe65e7169.js></script><script type=text/javascript src=./static/js/app.2ea5061d831d7ce89173.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=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"></script><title>徐工融租</title><link href=./static/css/app.f077e854a2ebf290d10566b0c484f558.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.e547499500fbe65e7169.js></script><script type=text/javascript src=./static/js/app.4208bb23106267f01494.js></script></body></html>
\ No newline at end of file \ 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