Commit 6e8d3bc7 authored by linxin's avatar linxin

add

parent a70b7c30
...@@ -578,22 +578,22 @@ export default { ...@@ -578,22 +578,22 @@ export default {
} }
}, },
attachmentCheck () { attachmentCheck () {
let vm = this // let vm = this
let url = process.env.basePath + 'bp_attachment_check' // let url = process.env.basePath + 'bp_attachment_check'
let param = { // let param = {
bp_id: window.localStorage.getItem('bp_id'), // bp_id: window.localStorage.getItem('bp_id'),
} // }
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()
if (res.result === 'S') { // if (res.result === 'S') {
vm.$router.push({ this.$router.push({
name: 'NPBankInfo', name: 'NPBankInfo',
})
} else {
hlsPopup.showError(res.message)
}
}) })
// } else {
// hlsPopup.showError(res.message)
// }
// })
}, },
async getHouseInfo () { async getHouseInfo () {
let vm = this let vm = this
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</div> </div>
</div> </div>
<bottom-tab class="footer-button"> <bottom-tab class="footer-button">
<tab-button class="save" @click.native="handSubmit">提交</tab-button> <tab-button class="save" @click.native="addCheck">提交</tab-button>
</bottom-tab> </bottom-tab>
<h-modal ref="modal" v-model="showModalValue" position="bottom"> <h-modal ref="modal" v-model="showModalValue" position="bottom">
<h-view> <h-view>
...@@ -169,6 +169,29 @@ export default { ...@@ -169,6 +169,29 @@ export default {
}) })
}, },
methods: { methods: {
// 提交前校验
addCheck () {
let vm = this
let url = process.env.basePath + 'bp_attachment_check'
let param = {
bp_id: vm.$route.params.bp_id,
}
if (window.localStorage.getItem('authFlag') === 'true') {
console.log(11111111111)
vm.handSubmit()
} else {
console.log(2222222222)
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.handSubmit()
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
},
// 银行卡查询 // 银行卡查询
getBankInfo () { getBankInfo () {
let vm = this let vm = this
...@@ -276,7 +299,7 @@ export default { ...@@ -276,7 +299,7 @@ export default {
} }
}, },
putData () { putData () {
this.throttle(this.handSubmit(), 3000) this.throttle(this.addCheck(), 3000)
}, },
// 提交 // 提交
async handSubmit () { async handSubmit () {
......
...@@ -554,23 +554,6 @@ export default { ...@@ -554,23 +554,6 @@ export default {
}) })
}, },
methods: { methods: {
// 附件信息保存前校验
addCheck () {
let vm = this
let url = process.env.basePath + 'bp_attachment_check'
let param = {
bp_id: vm.bp_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
addRow (e, event) { addRow (e, event) {
// let num = Math.ceil((el.target.scrollHeight - 42) / 20) // let num = Math.ceil((el.target.scrollHeight - 42) / 20)
// if (num > 0) { // if (num > 0) {
......
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