Commit 5e439375 authored by 王建文's avatar 王建文

首页图片替换

parent fc15b8e6
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV), CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: true, debug: false,
isMobilePlatform: true, isMobilePlatform: false,
loginPath: '"http://210.12.156.64:9090/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ', loginPath: '"http://210.12.156.64:9090/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ',
basePath: '"http://210.12.156.64:9090/r/api/interface?sysName=XCMG_UAT&apiName="', basePath: '"http://210.12.156.64:9090/r/api/interface?sysName=XCMG_UAT&apiName="',
rootPath: '"http://210.12.156.64:9090/r/api"', rootPath: '"http://210.12.156.64:9090/r/api"',
......
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://210.12.156.64:9090/r/api"', ocrPath:'"http://210.12.156.64:9090/r/api"',
fileUploadSvcPath:'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"3.6.2"' currentVersion: '"3.6.6"'
} }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<template> <template>
<input <input
:value="formatValue" :readonly="disable" type="text" :value="formatValue" :readonly="disable" type="text"
@blur="onBlur" @click="keyboradShow();onFocus($event)"> @focus="onFocus" @blur="onBlur" @click="keyboradShow">
</template> </template>
<script> <script>
...@@ -15,10 +15,20 @@ export default { ...@@ -15,10 +15,20 @@ export default {
value: { value: {
default: '', default: '',
}, },
check: {
default: '',
},
allCheck: {
default: '',
},
// disable: { // disable: {
// type: Boolean, // type: Boolean,
// default: true, // default: true,
// }, // },
readonly: {
type: Boolean,
default: false,
},
content: { content: {
type: String, type: String,
default: '', default: '',
...@@ -34,8 +44,8 @@ export default { ...@@ -34,8 +44,8 @@ export default {
}, },
filter: { filter: {
uncurrency (val) { uncurrency (val) {
if (!val) return '' if (!val) return null
return Number((val).replace(/,|%/gi, '')) return (Number((val).replace(/,/gi, ''))) === 0 ? 0 : Number((val).replace(/,/gi, ''))
}, },
}, },
computed: { computed: {
...@@ -43,7 +53,7 @@ export default { ...@@ -43,7 +53,7 @@ export default {
let currency = this.$options.filters['rate'] let currency = this.$options.filters['rate']
if (!this.focused) { if (!this.focused) {
if (this.value !== '' && this.value !== null) { if (this.value !== '' && this.value !== null) {
return `${currency(this.value*100)}%` return `${currency(this.value)}%`
} }
} else { } else {
return this.value return this.value
...@@ -53,31 +63,35 @@ export default { ...@@ -53,31 +63,35 @@ export default {
methods: { methods: {
keyboradShow () { keyboradShow () {
let vm = this let vm = this
hlsPopup.showNumberKeyborad({ if (!vm.readonly) {
title: '数字键盘', hlsPopup.showNumberKeyborad({
keyDown: (text) => { title: '数字键盘',
vm.onInput(text) keyDown: (text) => {
}, vm.onInput(text)
keyDelete: () => { },
vm.onDelete() keyDelete: () => {
}, vm.onDelete()
}) },
})
}
}, },
onInput (value) { onInput (value) {
// if (this.disable) return // if (this.disable) return
// let uncurrency = this.$options.filter['uncurrency'] if (this.value === '0' || this.value === '0.00') {
// this.newVal = uncurrency(this.value) this.newVal = ''
this.newVal = this.value
if (this.newVal !=''&&this.newVal.includes('.') && value === '.') {
} else {
this.newVal += ('' + value) this.newVal += ('' + value)
} else {
this.newVal = this.value
if (this.newVal.includes('.') && value === '.') {
} else {
this.newVal += ('' + value)
}
} }
this.$emit('input', this.newVal/100) this.$emit('input', this.newVal)
}, },
onDelete () { onDelete () {
this.newVal = '' this.newVal = ''
this.$emit('input', this.newVal/100) this.$emit('input', this.newVal)
}, },
// onInput: function (value) { // onInput: function (value) {
// if (this.disable) return // if (this.disable) return
...@@ -87,13 +101,12 @@ export default { ...@@ -87,13 +101,12 @@ export default {
// }, // },
onFocus (event) { onFocus (event) {
// if (this.disable) return // if (this.disable) return
debugger
let vm = this let vm = this
this.focused = true this.focused = true
let value = (event.target.value).trim() let value = event.target.value
let uncurrency = this.$options.filter['uncurrency'] event.target.value = ''
let newVal = uncurrency(value) event.target.value = value
event.target.value = newVal
setTimeout(function () { setTimeout(function () {
let dom = document.querySelector('.content') let dom = document.querySelector('.content')
let veiwHeight = vm.getClientHeight() let veiwHeight = vm.getClientHeight()
...@@ -108,26 +121,37 @@ export default { ...@@ -108,26 +121,37 @@ export default {
ele.setAttribute('class', 'add-height') ele.setAttribute('class', 'add-height')
ele.style.height = (fontS - result + 44) + 'px' ele.style.height = (fontS - result + 44) + 'px'
ele.style.background = '#fff' ele.style.background = '#fff'
// setTimeout(() => { // setTimeout(() => {
dom.appendChild(ele) dom.appendChild(ele)
// }, 100) // }, 100)
dom.scrollTop = scrollTop + (fontS - result + 44) dom.scrollTop = scrollTop + (fontS - result + 44)
// dom.scrollTo(dom.scrollLeft, scrollTop + (256 - result)) // dom.scrollTo(dom.scrollLeft, scrollTop + (256 - result))
} }
console.log(veiwHeight, eleHeight, scrollTop, result) console.log(veiwHeight, eleHeight, scrollTop, result, fontS)
event.target.type = 'text' event.target.type = 'text'
event.target.value = newVal event.target.focus()
// event.target.focus()
}, 0) }, 0)
}, },
onBlur (event) { onBlur (event) {
// if (this.disable) return // if (this.disable) return
if (this.check && this.check < 1000) {
hlsPopup.showLongCenter('设备单价不能小于1000元!')
}
if (this.allCheck && this.allCheck < 1000) {
hlsPopup.showLongCenter('设备总价不能小于1000元!')
}
if (document.querySelector('.add-height')) { if (document.querySelector('.add-height')) {
document.querySelector('.content').removeChild(document.querySelector('.add-height')) document.querySelector('.content').removeChild(document.querySelector('.add-height'))
} }
event.target.type = 'text' event.target.type = 'text'
event.target.blur()
this.focused = false this.focused = false
setTimeout(function () {
document.getElementsByTagName('body')[0].style.height = window.innerHeight + 'px'
}, 50)
}, },
// 取窗口可视范围的高度 // 取窗口可视范围的高度
getClientHeight () { getClientHeight () {
var clientHeight = 0 var clientHeight = 0
...@@ -138,7 +162,6 @@ export default { ...@@ -138,7 +162,6 @@ export default {
} }
return clientHeight return clientHeight
}, },
// 取窗口滚动条高度
getOffsetTop (obj) { getOffsetTop (obj) {
var tmp = obj.offsetTop var tmp = obj.offsetTop
var node = obj.offsetParent var node = obj.offsetParent
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<input slot="content" v-model="baseInfo.phone"> <input slot="content" v-model="baseInfo.phone">
</item> </item>
<item> <item>
<div slot="name" class="font-color required">联合承租人</div> <div slot="name" class="font-color">联合承租人</div>
<input slot="content" v-model="baseInfo.union_bp"> <input slot="content" v-model="baseInfo.union_bp">
</item> </item>
<item> <item>
...@@ -138,50 +138,50 @@ ...@@ -138,50 +138,50 @@
<div slot="name" class="font-color required">其他补充信息栏</div> <div slot="name" class="font-color required">其他补充信息栏</div>
<input slot="content" v-model="baseInfo.other_info"> <input slot="content" v-model="baseInfo.other_info">
</item> </item>
<item> <!-- <item>
<div slot="name" class="font-color">是否授权</div> <div slot="name" class="font-color">是否授权</div>
<h-switch slot="content" v-model="baseInfo.auth_flag"/> <h-switch slot="content" v-model="baseInfo.auth_flag"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">是否征信授权</div> <div slot="name" class="font-color">是否征信授权</div>
<h-switch slot="content" v-model="baseInfo.credit_flag"/> <h-switch slot="content" v-model="baseInfo.credit_flag"/>
</item> </item> -->
</list-item> </list-item>
<div class="equipment-list">法定代表人</div> <div class="equipment-list">法定代表人</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color required">姓名</div> <div slot="name" class="font-color">姓名</div>
<input slot="content" v-model="baseInfo.legal_person" > <input slot="content" v-model="baseInfo.legal_person" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">证件号</div> <div slot="name" class="font-color">证件号</div>
<input slot="content" v-model="baseInfo.id_card_no" > <input slot="content" v-model="baseInfo.id_card_no" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">手机号码</div> <div slot="name" class="font-color">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" > <input slot="content" v-model="baseInfo.cell_phone" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">联系地址</div> <div slot="name" class="font-color">联系地址</div>
<textarea slot="content" v-model="baseInfo.living_address"/> <textarea slot="content" v-model="baseInfo.living_address"/>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">实控人</div> <div class="equipment-list">实控人</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color required">姓名</div> <div slot="name" class="font-color">姓名</div>
<input slot="content" v-model="baseInfo.control_person" > <input slot="content" v-model="baseInfo.control_person" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">证件号</div> <div slot="name" class="font-color">证件号</div>
<input slot="content" v-model="baseInfo.control_id_card_no" > <input slot="content" v-model="baseInfo.control_id_card_no" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">手机号码</div> <div slot="name" class="font-color">手机号码</div>
<input slot="content" v-model="baseInfo.control_cell_phone" > <input slot="content" v-model="baseInfo.control_cell_phone" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">联系地址</div> <div slot="name" class="font-color">联系地址</div>
<textarea slot="content" v-model="baseInfo.control_living_address"/> <textarea slot="content" v-model="baseInfo.control_living_address"/>
</item> </item>
</list-item> </list-item>
...@@ -223,37 +223,7 @@ ...@@ -223,37 +223,7 @@
<input slot="content" v-model="item.guarantor_name" readonly> <input slot="content" v-model="item.guarantor_name" readonly>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">
采矿权许可证
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_mining"
v-if="item.check_id === miningCheckId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)">
<div class="close" @click="remove_pic(item.attachment_id,index,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_mining" :key="index+'mining'">
<div v-if="pic.check_id==miningCheckId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)">
<div class="close" @click="delete_pic(pic.attachment_id,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('采矿权许可证',miningCheckId,'mining')">
<img src="@/assets/userBind/camera.png" class="upload-btn">
</div>
</div>
</list-item>
<div class="equipment-list"> <div class="equipment-list">
开票信息 开票信息
</div> </div>
...@@ -390,6 +360,37 @@ ...@@ -390,6 +360,37 @@
<input slot="content" v-model="baseInfo.contact_adds" placeholder="请输入联系地址"> <input slot="content" v-model="baseInfo.contact_adds" placeholder="请输入联系地址">
</item> </item>
</list-item> </list-item>
<div class="equipment-list">
征信授权书
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_credit"
v-if="item.check_id === creditCheckId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)">
<div class="close" @click="remove_pic(item.attachment_id,index,'credit')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_credit" :key="index+'credit'">
<div v-if="pic.check_id==creditCheckId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)">
<div class="close" @click="delete_pic(pic.attachment_id,'credit')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('征信授权书',creditCheckId,'credit')">
<img src="@/assets/userBind/camera.png" class="upload-btn">
</div>
</div>
</list-item>
<div class="equipment-list"> <div class="equipment-list">
财务报表 财务报表
</div> </div>
...@@ -421,6 +422,37 @@ ...@@ -421,6 +422,37 @@
</div> </div>
</div> </div>
</list-item> </list-item>
<div class="equipment-list">
采矿权许可证
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_mining"
v-if="item.check_id === miningCheckId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)">
<div class="close" @click="remove_pic(item.attachment_id,index,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_mining" :key="index+'mining'">
<div v-if="pic.check_id==miningCheckId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)">
<div class="close" @click="delete_pic(pic.attachment_id,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('采矿权许可证',miningCheckId,'mining')">
<img src="@/assets/userBind/camera.png" class="upload-btn">
</div>
</div>
</list-item>
<div class="equipment-list"> <div class="equipment-list">
安全生产许可证 安全生产许可证
</div> </div>
...@@ -646,9 +678,10 @@ ...@@ -646,9 +678,10 @@
<!-- <div slot="name" class="font-color">设备识别号</div>--> <!-- <div slot="name" class="font-color">设备识别号</div>-->
<!-- <input slot="content" v-model="info.product_code" readonly />--> <!-- <input slot="content" v-model="info.product_code" readonly />-->
<!-- </item>--> <!-- </item>-->
<item> <item >
<img @click="deleteProduct(item)" src="../../assets/contractCreate/delete.png" style="padding-left: 10px;margin-top: 12px;height: 20px;"/>
<div slot="name" class="font-color">产品名称</div> <div slot="name" class="font-color">产品名称</div>
<input slot="content" v-model="item.ref_v02" readonly> <input slot="content" v-model="item.ref_v02" readonly @click="saveProduct(item)">
</item> </item>
<item> <item>
<div slot="name" class="font-color">产品数量</div> <div slot="name" class="font-color">产品数量</div>
...@@ -768,6 +801,8 @@ export default { ...@@ -768,6 +801,8 @@ export default {
dowload_list_contract: [], dowload_list_contract: [],
upload_list_suggest: [], upload_list_suggest: [],
dowload_list_suggest: [], dowload_list_suggest: [],
upload_list_credit: [],
dowload_list_credit: [],
} }
}, },
computed: {}, computed: {},
...@@ -788,24 +823,24 @@ export default { ...@@ -788,24 +823,24 @@ export default {
debugger debugger
console.log('newVal' + newVal) console.log('newVal' + newVal)
if (this.quotationInfo.deposit_ratio) { if (this.quotationInfo.deposit_ratio) {
this.quotationInfo.deposit = newVal * this.quotationInfo.deposit_ratio this.quotationInfo.deposit = newVal * this.quotationInfo.deposit_ratio/100
} }
if (this.quotationInfo.lease_charge_ratio) { if (this.quotationInfo.lease_charge_ratio) {
this.quotationInfo.lease_charge = newVal * this.quotationInfo.lease_charge_ratio this.quotationInfo.lease_charge = newVal * this.quotationInfo.lease_charge_ratio/100
} }
}, },
'quotationInfo.deposit_ratio' (newVal, oldVal) { 'quotationInfo.deposit_ratio' (newVal, oldVal) {
debugger debugger
console.log('newVal' + newVal) console.log('newVal' + newVal)
if (this.quotationInfo.equip_price) { if (this.quotationInfo.equip_price) {
this.quotationInfo.deposit = this.quotationInfo.equip_price * newVal this.quotationInfo.deposit = this.quotationInfo.equip_price * newVal/100
} }
}, },
'quotationInfo.lease_charge_ratio' (newVal, oldVal) { 'quotationInfo.lease_charge_ratio' (newVal, oldVal) {
debugger debugger
console.log('newVal' + newVal) console.log('newVal' + newVal)
if (this.quotationInfo.equip_price) { if (this.quotationInfo.equip_price) {
this.quotationInfo.lease_charge = this.quotationInfo.equip_price * newVal this.quotationInfo.lease_charge = this.quotationInfo.equip_price * newVal/100
} }
}, },
}, },
...@@ -850,6 +885,7 @@ export default { ...@@ -850,6 +885,7 @@ export default {
vm.getProjectApprover() vm.getProjectApprover()
vm.getGuarantorList() vm.getGuarantorList()
vm.getGuarantorInfo() vm.getGuarantorInfo()
vm.getCreditLicenseList()
} }
}) })
}, },
...@@ -863,6 +899,34 @@ export default { ...@@ -863,6 +899,34 @@ export default {
this.repayPeriod() this.repayPeriod()
}, },
methods: { methods: {
//删除设备
deleteProduct (item) {
let vm = this
let url = $config.basePath + 'zm_prj_lease_item_delete'
let param = {
master: {
lists: [{
'project_lease_item_id': item.project_lease_item_id
}],
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('设备删除成功')
vm.getLease()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 更新产品
saveProduct (item) {
let vm = this
vm.itemInfo = item
vm.downNum = true
},
saveData () { saveData () {
let vm = this let vm = this
let url = $config.basePath + 'zm_prj_base_info_save' let url = $config.basePath + 'zm_prj_base_info_save'
...@@ -1104,6 +1168,21 @@ export default { ...@@ -1104,6 +1168,21 @@ export default {
} }
}) })
}, },
getCreditLicenseList () {
let vm = this
let url = process.env.basePath + 'bp_mining_license_query_s5'
let param = {
project_id: vm.project_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.creditCheckId = res.lists[0].check_id
vm.getAttachmentList(vm.creditCheckId, 'credit')
}
})
},
getLicenseList () { getLicenseList () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_mining_license_query_s2' let url = process.env.basePath + 'bp_mining_license_query_s2'
...@@ -1243,6 +1322,8 @@ export default { ...@@ -1243,6 +1322,8 @@ export default {
vm.dowload_list_contract = res.lists vm.dowload_list_contract = res.lists
} if (code === 'license') { } if (code === 'license') {
vm.dowload_list_license = res.lists vm.dowload_list_license = res.lists
} if (code === 'credit') {
vm.dowload_list_credit = res.lists
} else { } else {
vm.dowload_list_mining = res.lists vm.dowload_list_mining = res.lists
} }
...@@ -1446,6 +1527,21 @@ export default { ...@@ -1446,6 +1527,21 @@ export default {
} else if (code === 'mining') { } else if (code === 'mining') {
vm.upload_list_mining.push(list[j]) vm.upload_list_mining.push(list[j])
break break
} else if (code === 'suggest') {
vm.upload_list_suggest.push(list[j])
break
} else if (code === 'product') {
vm.upload_list_product.push(list[j])
break
} else if (code === 'license') {
vm.upload_list_license.push(list[j])
break
} else if (code === 'contract') {
vm.upload_list_contract.push(list[j])
break
} else if (code === 'credit') {
vm.upload_list_credit.push(list[j])
break
} }
} }
} }
...@@ -1491,6 +1587,21 @@ export default { ...@@ -1491,6 +1587,21 @@ export default {
} else if (code === 'mining') { } else if (code === 'mining') {
vm.upload_list_mining.remove(index) vm.upload_list_mining.remove(index)
vm.upload_list_mining.sort() vm.upload_list_mining.sort()
} else if (code === 'product') {
vm.upload_list_product.remove(index)
vm.upload_list_product.sort()
} else if (code === 'license') {
vm.upload_list_license.remove(index)
vm.upload_list_license.sort()
} else if (code === 'contract') {
vm.upload_list_contract.remove(index)
vm.upload_list_contract.sort()
} else if (code === 'suggest') {
vm.upload_list_suggest.remove(index)
vm.upload_list_suggest.sort()
} else if (code === 'credit') {
vm.upload_list_credit.remove(index)
vm.upload_list_credit.sort()
} }
}, },
// 删除图片 // 删除图片
...@@ -1525,6 +1636,26 @@ export default { ...@@ -1525,6 +1636,26 @@ export default {
vm.dowload_list_mining = vm.dowload_list_mining.filter(item => { vm.dowload_list_mining = vm.dowload_list_mining.filter(item => {
return item.attachment_id !== attachment_id return item.attachment_id !== attachment_id
}) })
} else if (code === 'product') {
vm.dowload_list_product = vm.dowload_list_product.filter(item => {
return item.attachment_id !== attachment_id
})
} else if (code === 'license') {
vm.dowload_list_license = vm.dowload_list_license.filter(item => {
return item.attachment_id !== attachment_id
})
} else if (code === 'contract') {
vm.dowload_list_contract = vm.dowload_list_contract.filter(item => {
return item.attachment_id !== attachment_id
})
} else if (code === 'suggest') {
vm.dowload_list_suggest = vm.dowload_list_suggest.filter(item => {
return item.attachment_id !== attachment_id
})
} else if (code === 'credit') {
vm.dowload_list_credit = vm.dowload_list_credit.filter(item => {
return item.attachment_id !== attachment_id
})
} }
}, },
// 还款周期查询 // 还款周期查询
...@@ -1589,23 +1720,25 @@ export default { ...@@ -1589,23 +1720,25 @@ export default {
hlsPopup.showLongCenter('经营地址不能为空!') hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) { } else if (!vm.baseInfo.phone) {
hlsPopup.showLongCenter('承租人联系电话能为空!') hlsPopup.showLongCenter('承租人联系电话能为空!')
} else if (!vm.baseInfo.legal_person) { }
hlsPopup.showLongCenter('法人姓名不能为空!') // else if (!vm.baseInfo.legal_person) {
} else if (!vm.baseInfo.id_card_no) { // hlsPopup.showLongCenter('法人姓名不能为空!')
hlsPopup.showLongCenter('法人证件号不能为空!') // } else if (!vm.baseInfo.id_card_no) {
} else if (!vm.baseInfo.cell_phone) { // hlsPopup.showLongCenter('法人证件号不能为空!')
hlsPopup.showLongCenter('法人手机号码不能为空!') // } else if (!vm.baseInfo.cell_phone) {
} else if (!vm.baseInfo.living_address) { // hlsPopup.showLongCenter('法人手机号码不能为空!')
hlsPopup.showLongCenter('法人联系地址不能为空!') // } else if (!vm.baseInfo.living_address) {
} else if (!vm.baseInfo.control_person) { // hlsPopup.showLongCenter('法人联系地址不能为空!')
hlsPopup.showLongCenter('实控人姓名不能为空!') // } else if (!vm.baseInfo.control_person) {
} else if (!vm.baseInfo.control_id_card_no) { // hlsPopup.showLongCenter('实控人姓名不能为空!')
hlsPopup.showLongCenter('实控人证件号不能为空!') // } else if (!vm.baseInfo.control_id_card_no) {
} else if (!vm.baseInfo.control_cell_phone) { // hlsPopup.showLongCenter('实控人证件号不能为空!')
hlsPopup.showLongCenter('实控人手机号码不能为空!') // } else if (!vm.baseInfo.control_cell_phone) {
} else if (!vm.baseInfo.control_living_address) { // hlsPopup.showLongCenter('实控人手机号码不能为空!')
hlsPopup.showLongCenter('实控人联系地址不能为空!') // } else if (!vm.baseInfo.control_living_address) {
} else { // hlsPopup.showLongCenter('实控人联系地址不能为空!')
// }
else {
this.prjBaseInfoSave() this.prjBaseInfoSave()
} }
} else { } else {
......
...@@ -64,6 +64,22 @@ ...@@ -64,6 +64,22 @@
placeholder="请输入担保人名称" placeholder="请输入担保人名称"
> >
</item> </item>
<!-- <item>
<div slot="name" class="required">统一社会信用代码</div>
<input
slot="content"
v-model="guarantorInfo.guarantor_name"
placeholder="请输入统一社会信用代码"
>
</item>
<item>
<div slot="name" class="required">担保人名称</div>
<input
slot="content"
v-model="guarantorInfo.guarantor_name"
placeholder="请输入担保人名称"
>
</item> -->
</list-item> </list-item>
</div> </div>
<button @click="prjGuarantorSave">保存</button> <button @click="prjGuarantorSave">保存</button>
...@@ -127,7 +143,7 @@ ...@@ -127,7 +143,7 @@
<input slot="content" v-model="baseInfo.phone"> <input slot="content" v-model="baseInfo.phone">
</item> </item>
<item> <item>
<div slot="name" class="font-color required">联合承租人</div> <div slot="name" class="font-color ">联合承租人</div>
<input slot="content" v-model="baseInfo.union_bp"> <input slot="content" v-model="baseInfo.union_bp">
</item> </item>
<item> <item>
...@@ -138,52 +154,52 @@ ...@@ -138,52 +154,52 @@
<div slot="name" class="font-color required">其他补充信息栏</div> <div slot="name" class="font-color required">其他补充信息栏</div>
<input slot="content" v-model="baseInfo.other_info"> <input slot="content" v-model="baseInfo.other_info">
</item> </item>
<item> <!-- <item>
<div slot="name" class="font-color">是否授权</div> <div slot="name" class="font-color">是否授权</div>
<h-switch slot="content" v-model="baseInfo.auth_flag"/> <h-switch slot="content" v-model="baseInfo.auth_flag"/> -->
<!-- <h-switch slot="content" v-model="baseInfo.auth_flag"/> --> <!-- <h-switch slot="content" v-model="baseInfo.auth_flag"/> -->
</item> <!-- </item>
<item> <item> -->
<div slot="name" class="font-color">是否征信授权</div> <!-- <div slot="name" class="font-color">是否征信授权</div>
<h-switch slot="content" v-model="baseInfo.credit_flag"/> <h-switch slot="content" v-model="baseInfo.credit_flag"/> -->
<!-- <h-switch slot="content" v-model="baseInfo.credit_flag"/> --> <!-- <h-switch slot="content" v-model="baseInfo.credit_flag"/> -->
</item> <!-- </item> -->
</list-item> </list-item>
<div class="equipment-list">法定代表人</div> <div class="equipment-list">法定代表人</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color required">姓名</div> <div slot="name" class="font-color">姓名</div>
<input slot="content" v-model="baseInfo.legal_person" > <input slot="content" v-model="baseInfo.legal_person" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">证件号</div> <div slot="name" class="font-color">证件号</div>
<input slot="content" v-model="baseInfo.id_card_no" > <input slot="content" v-model="baseInfo.id_card_no" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">手机号码</div> <div slot="name" class="font-color">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" > <input slot="content" v-model="baseInfo.cell_phone" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">联系地址</div> <div slot="name" class="font-color">联系地址</div>
<textarea slot="content" v-model="baseInfo.living_address"/> <textarea slot="content" v-model="baseInfo.living_address"/>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">实控人</div> <div class="equipment-list">实控人</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color required">姓名</div> <div slot="name" class="font-color">姓名</div>
<input slot="content" v-model="baseInfo.control_person" > <input slot="content" v-model="baseInfo.control_person" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">证件号</div> <div slot="name" class="font-color">证件号</div>
<input slot="content" v-model="baseInfo.control_id_card_no" > <input slot="content" v-model="baseInfo.control_id_card_no" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">手机号码</div> <div slot="name" class="font-color">手机号码</div>
<input slot="content" v-model="baseInfo.control_cell_phone" > <input slot="content" v-model="baseInfo.control_cell_phone" >
</item> </item>
<item> <item>
<div slot="name" class="font-color required">联系地址</div> <div slot="name" class="font-color">联系地址</div>
<textarea slot="content" v-model="baseInfo.control_living_address"/> <textarea slot="content" v-model="baseInfo.control_living_address"/>
</item> </item>
</list-item> </list-item>
...@@ -206,37 +222,6 @@ ...@@ -206,37 +222,6 @@
<input slot="content" v-model="item.guarantor_name" readonly> <input slot="content" v-model="item.guarantor_name" readonly>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">
采矿权许可证
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_mining"
v-if="item.check_id === miningCheckId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)">
<div class="close" @click="remove_pic(item.attachment_id,index,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_mining" :key="index+'mining'">
<div v-if="pic.check_id==miningCheckId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)">
<div class="close" @click="delete_pic(pic.attachment_id,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('采矿权许可证',miningCheckId,'mining')">
<img src="@/assets/userBind/camera.png" class="upload-btn">
</div>
</div>
</list-item>
<div class="equipment-list"> <div class="equipment-list">
开票信息 开票信息
</div> </div>
...@@ -373,6 +358,37 @@ ...@@ -373,6 +358,37 @@
<input slot="content" v-model="baseInfo.contact_adds" placeholder="请输入联系地址"> <input slot="content" v-model="baseInfo.contact_adds" placeholder="请输入联系地址">
</item> </item>
</list-item> </list-item>
<div class="equipment-list">
征信授权书
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_credit"
v-if="item.check_id === creditCheckId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)">
<div class="close" @click="remove_pic(item.attachment_id,index,'credit')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_credit" :key="index+'credit'">
<div v-if="pic.check_id==creditCheckId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)">
<div class="close" @click="delete_pic(pic.attachment_id,'credit')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('征信授权书',creditCheckId,'credit')">
<img src="@/assets/userBind/camera.png" class="upload-btn">
</div>
</div>
</list-item>
<div class="equipment-list"> <div class="equipment-list">
财务报表 财务报表
</div> </div>
...@@ -404,6 +420,37 @@ ...@@ -404,6 +420,37 @@
</div> </div>
</div> </div>
</list-item> </list-item>
<div class="equipment-list">
采矿权许可证
</div>
<list-item :item-height="76">
<div class="house spec">
<!--待上传图片列表-->
<div
v-for="(item, index) in upload_list_mining"
v-if="item.check_id === miningCheckId"
:key="index+'info2'"
class="card-upload"
>
<img :src="item.picture" @click="showBigPicture(item.picture)">
<div class="close" @click="remove_pic(item.attachment_id,index,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
<!--特批 从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list_mining" :key="index+'mining'">
<div v-if="pic.check_id==miningCheckId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)">
<div class="close" @click="delete_pic(pic.attachment_id,'mining')">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
</div>
<div class="card-upload plus" @click="ocrShow('采矿权许可证',miningCheckId,'mining')">
<img src="@/assets/userBind/camera.png" class="upload-btn">
</div>
</div>
</list-item>
<div class="equipment-list"> <div class="equipment-list">
安全生产许可证 安全生产许可证
</div> </div>
...@@ -603,9 +650,10 @@ ...@@ -603,9 +650,10 @@
<!-- <div slot="name" class="font-color">设备识别号</div>--> <!-- <div slot="name" class="font-color">设备识别号</div>-->
<!-- <input slot="content" v-model="info.product_code" readonly />--> <!-- <input slot="content" v-model="info.product_code" readonly />-->
<!-- </item>--> <!-- </item>-->
<item> <item >
<img src="../../assets/contractCreate/delete.png" style="padding-left: 10px;margin-top: 12px;height: 20px;" @click="deleteProduct(item)">
<div slot="name" class="font-color">产品名称</div> <div slot="name" class="font-color">产品名称</div>
<input slot="content" v-model="item.ref_v02" readonly> <input slot="content" v-model="item.ref_v02" readonly @click="saveProduct(item)">
</item> </item>
<item> <item>
<div slot="name" class="font-color">产品数量</div> <div slot="name" class="font-color">产品数量</div>
...@@ -683,6 +731,8 @@ export default { ...@@ -683,6 +731,8 @@ export default {
dowload_list_contract: [], dowload_list_contract: [],
upload_list_suggest: [], upload_list_suggest: [],
dowload_list_suggest: [], dowload_list_suggest: [],
upload_list_credit: [],
dowload_list_credit: [],
} }
}, },
computed: {}, computed: {},
...@@ -695,24 +745,24 @@ export default { ...@@ -695,24 +745,24 @@ export default {
debugger debugger
console.log('newVal' + newVal) console.log('newVal' + newVal)
if (this.quotationInfo.deposit_ratio) { if (this.quotationInfo.deposit_ratio) {
this.quotationInfo.deposit = newVal * this.quotationInfo.deposit_ratio this.quotationInfo.deposit = newVal * this.quotationInfo.deposit_ratio / 100
} }
if (this.quotationInfo.lease_charge_ratio) { if (this.quotationInfo.lease_charge_ratio) {
this.quotationInfo.lease_charge = newVal * this.quotationInfo.lease_charge_ratio this.quotationInfo.lease_charge = newVal * this.quotationInfo.lease_charge_ratio / 100
} }
}, },
'quotationInfo.deposit_ratio' (newVal, oldVal) { 'quotationInfo.deposit_ratio' (newVal, oldVal) {
debugger debugger
console.log('newVal' + newVal) console.log('newVal' + newVal)
if (this.quotationInfo.equip_price) { if (this.quotationInfo.equip_price) {
this.quotationInfo.deposit = this.quotationInfo.equip_price * newVal this.quotationInfo.deposit = this.quotationInfo.equip_price * newVal / 100
} }
}, },
'quotationInfo.lease_charge_ratio' (newVal, oldVal) { 'quotationInfo.lease_charge_ratio' (newVal, oldVal) {
debugger debugger
console.log('newVal' + newVal) console.log('newVal' + newVal)
if (this.quotationInfo.equip_price) { if (this.quotationInfo.equip_price) {
this.quotationInfo.lease_charge = this.quotationInfo.equip_price * newVal this.quotationInfo.lease_charge = this.quotationInfo.equip_price * newVal / 100
} }
}, },
}, },
...@@ -728,11 +778,37 @@ export default { ...@@ -728,11 +778,37 @@ export default {
this.getGuarantorType() this.getGuarantorType()
}, },
methods: { methods: {
// 删除设备
deleteProduct (item) {
let vm = this
let url = $config.basePath + 'zm_prj_lease_item_delete'
let param = {
master: {
lists: [{
'project_lease_item_id': item.project_lease_item_id,
}],
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('设备删除成功')
vm.getLease()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
dateConverse (date) { dateConverse (date) {
return date.replace(/\//g, '-') return date.replace(/\//g, '-')
}, },
// 更新产品
saveProduct (item) {
let vm = this
vm.itemInfo = item
vm.downNum = true
},
addRows (e) { addRows (e) {
if (e) { if (e) {
let len = 0 let len = 0
...@@ -1054,6 +1130,9 @@ export default { ...@@ -1054,6 +1130,9 @@ export default {
} else if (code === 'contract') { } else if (code === 'contract') {
vm.upload_list_contract.push(list[j]) vm.upload_list_contract.push(list[j])
break break
} else if (code === 'credit') {
vm.upload_list_credit.push(list[j])
break
} }
} }
} }
...@@ -1111,6 +1190,9 @@ export default { ...@@ -1111,6 +1190,9 @@ export default {
} else if (code === 'suggest') { } else if (code === 'suggest') {
vm.upload_list_suggest.remove(index) vm.upload_list_suggest.remove(index)
vm.upload_list_suggest.sort() vm.upload_list_suggest.sort()
} else if (code === 'credit') {
vm.upload_list_credit.remove(index)
vm.upload_list_credit.sort()
} }
}, },
// 删除图片 // 删除图片
...@@ -1161,6 +1243,10 @@ export default { ...@@ -1161,6 +1243,10 @@ export default {
vm.dowload_list_suggest = vm.dowload_list_suggest.filter(item => { vm.dowload_list_suggest = vm.dowload_list_suggest.filter(item => {
return item.attachment_id !== attachment_id return item.attachment_id !== attachment_id
}) })
} else if (code === 'credit') {
vm.dowload_list_credit = vm.dowload_list_credit.filter(item => {
return item.attachment_id !== attachment_id
})
} }
}, },
getMiningLicenseList () { getMiningLicenseList () {
...@@ -1193,6 +1279,21 @@ export default { ...@@ -1193,6 +1279,21 @@ export default {
} }
}) })
}, },
getCreditLicenseList () {
let vm = this
let url = process.env.basePath + 'bp_mining_license_query_s5'
let param = {
project_id: vm.project_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.creditCheckId = res.lists[0].check_id
vm.getAttachmentList(vm.creditCheckId, 'credit')
}
})
},
getLicenseList () { getLicenseList () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_mining_license_query_s2' let url = process.env.basePath + 'bp_mining_license_query_s2'
...@@ -1282,6 +1383,8 @@ export default { ...@@ -1282,6 +1383,8 @@ export default {
vm.dowload_list_contract = res.lists vm.dowload_list_contract = res.lists
} if (code === 'license') { } if (code === 'license') {
vm.dowload_list_license = res.lists vm.dowload_list_license = res.lists
} if (code === 'credit') {
vm.dowload_list_credit = res.lists
} else { } else {
vm.dowload_list_mining = res.lists vm.dowload_list_mining = res.lists
} }
...@@ -1351,23 +1454,25 @@ export default { ...@@ -1351,23 +1454,25 @@ export default {
hlsPopup.showLongCenter('经营地址不能为空!') hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) { } else if (!vm.baseInfo.phone) {
hlsPopup.showLongCenter('承租人联系电话能为空!') hlsPopup.showLongCenter('承租人联系电话能为空!')
} else if (!vm.baseInfo.legal_person) { }
hlsPopup.showLongCenter('法人姓名不能为空!') // else if (!vm.baseInfo.legal_person) {
} else if (!vm.baseInfo.id_card_no) { // hlsPopup.showLongCenter('法人姓名不能为空!')
hlsPopup.showLongCenter('法人证件号不能为空!') // } else if (!vm.baseInfo.id_card_no) {
} else if (!vm.baseInfo.cell_phone) { // hlsPopup.showLongCenter('法人证件号不能为空!')
hlsPopup.showLongCenter('法人手机号码不能为空!') // } else if (!vm.baseInfo.cell_phone) {
} else if (!vm.baseInfo.living_address) { // hlsPopup.showLongCenter('法人手机号码不能为空!')
hlsPopup.showLongCenter('法人联系地址不能为空!') // } else if (!vm.baseInfo.living_address) {
} else if (!vm.baseInfo.control_person) { // hlsPopup.showLongCenter('法人联系地址不能为空!')
hlsPopup.showLongCenter('实控人姓名不能为空!') // } else if (!vm.baseInfo.control_person) {
} else if (!vm.baseInfo.control_id_card_no) { // hlsPopup.showLongCenter('实控人姓名不能为空!')
hlsPopup.showLongCenter('实控人证件号不能为空!') // } else if (!vm.baseInfo.control_id_card_no) {
} else if (!vm.baseInfo.control_cell_phone) { // hlsPopup.showLongCenter('实控人证件号不能为空!')
hlsPopup.showLongCenter('实控人手机号码不能为空!') // } else if (!vm.baseInfo.control_cell_phone) {
} else if (!vm.baseInfo.control_living_address) { // hlsPopup.showLongCenter('实控人手机号码不能为空!')
hlsPopup.showLongCenter('实控人联系地址不能为空!') // } else if (!vm.baseInfo.control_living_address) {
} else { // hlsPopup.showLongCenter('实控人联系地址不能为空!')
// }
else {
this.prjBaseInfoSave() this.prjBaseInfoSave()
} }
} else { } else {
...@@ -1428,7 +1533,7 @@ export default { ...@@ -1428,7 +1533,7 @@ export default {
} }
master.user_phone = window.localStorage.user_phone master.user_phone = window.localStorage.user_phone
// master.phone= window.localStorage.user_phone // master.phone= window.localStorage.user_phone
// master.project_id=vm.project_id master.project_id = vm.project_id
let param = { let param = {
master, master,
} }
...@@ -1444,6 +1549,7 @@ export default { ...@@ -1444,6 +1549,7 @@ export default {
vm.getContractLicenseList() vm.getContractLicenseList()
vm.getLicenseList() vm.getLicenseList()
vm.getProductLicenseList() vm.getProductLicenseList()
vm.getCreditLicenseList()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -1482,6 +1588,7 @@ export default { ...@@ -1482,6 +1588,7 @@ export default {
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.itemInfo = {}
hlsPopup.showLongCenter('设备保存成功') hlsPopup.showLongCenter('设备保存成功')
vm.getLease() vm.getLease()
} else { } else {
......
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
padding: 0 6px; padding: 0 6px;
.card { .card {
background: url("../../assets/homePage/home-card@2x.png") no-repeat; background: url("../../assets/homePage/home-card1@2x.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
height: 160px; height: 160px;
......
...@@ -313,7 +313,7 @@ export default { ...@@ -313,7 +313,7 @@ export default {
opacity: 0; opacity: 0;
} }
#login { #login {
background: url("../assets/login/background@3x.png") no-repeat; background: url("../assets/login/background1@3x.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
background-position-x: 0px; background-position-x: 0px;
color: #ffffff; color: #ffffff;
......
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
#register { #register {
.content { .content {
background: url("../assets/login/register-back@3x.png") no-repeat; background: url("../assets/login/register-back1@3x.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
...@@ -395,7 +395,6 @@ export default { ...@@ -395,7 +395,6 @@ export default {
} }
} }
.return { .return {
opacity: 1; opacity: 1;
background: #fff; background: #fff;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<p>推荐使用农行卡,农行卡支付免收手续费!</p> <p>推荐使用农行卡,农行卡支付免收手续费!</p>
</div> </div>
<div class="my-card"> <div class="my-card">
<div class="top"> <!-- <div class="top">
<div class="left"> <div class="left">
<img src="@/assets/userBind/bankIcon.png" class="icon" > <img src="@/assets/userBind/bankIcon.png" class="icon" >
<span class="top-word"> <span class="top-word">
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
</span> </span>
</div> </div>
<img src="@/assets/userBind/add.png" class="icon-right" @click="sendFlag" > <img src="@/assets/userBind/add.png" class="icon-right" @click="sendFlag" >
</div> </div> -->
<div class="clear" /> <!-- <div class="clear" />
<div class="card-content"> <div class="card-content">
<ul> <ul>
<li v-for="(item,index) in getBankList" :key="index"> <li v-for="(item,index) in getBankList" :key="index">
...@@ -48,63 +48,108 @@ ...@@ -48,63 +48,108 @@
</li> </li>
</ul> </ul>
</div> </div>
</div> </div> -->
<bottom-tab class="footer-button"> <div class="modal-content">
<tab-button class="save" @click.native="addCheck">提交</tab-button> <div class="modal-content-add-top">
</bottom-tab> <span>添加银行卡</span>
<h-modal ref="modal" v-model="showModalValue" position="bottom"> <!-- <img src="@/assets/userBind/close.png" @click="hideModal"> -->
<h-view>
<div class="modal-content">
<div class="modal-content-add-top">
<span>添加银行卡</span>
<img src="@/assets/userBind/close.png" @click="hideModal">
</div>
<!-- <img-->
<!-- v-if="!bankImg"-->
<!-- src="@/assets/userBind/addBack.png"-->
<!-- class="addBack"-->
<!-- @click="ocrShow('bankCard', '')"-->
<!-- >-->
<!-- <img-->
<!-- v-if="bankImg"-->
<!-- :src="bankImg"-->
<!-- class="addBack"-->
<!-- style="height: 38%;"-->
<!-- @click="ocrShow('bankCard', '')"-->
<!-- >-->
<list-item :item-height="44" class="card-Info" style="margin-top: 50px;">
<item>
<div slot="name">账户名称</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">开户行</div>
<input
slot="content"
v-model="bank_lists.bank_full_name"
placeholder="请输入开户行"
>
</item>
<item>
<div slot="name">银行账号</div>
<input
slot="content"
v-model="bank_lists.bank_account_num"
placeholder="请输入银行账号"
>
</item>
<item>
<div slot="name">联行号</div>
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联行号">
</item>
</list-item>
</div> </div>
</h-view> <!-- <img-->
<bottom-tab class="add-box"> <!-- v-if="!bankImg"-->
<tab-button class="add-card" @click.native="addBankInfo">添加</tab-button> <!-- src="@/assets/userBind/addBack.png"-->
<!-- class="addBack"-->
<!-- @click="ocrShow('bankCard', '')"-->
<!-- >-->
<!-- <img-->
<!-- v-if="bankImg"-->
<!-- :src="bankImg"-->
<!-- class="addBack"-->
<!-- style="height: 38%;"-->
<!-- @click="ocrShow('bankCard', '')"-->
<!-- >-->
<list-item :item-height="44" class="card-Info" style="margin-top: 50px;">
<item>
<div slot="name">账户名称</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">开户行</div>
<input
slot="content"
v-model="bank_lists.bank_full_name"
placeholder="请输入开户行"
>
</item>
<item>
<div slot="name">银行账号</div>
<input
slot="content"
v-model="bank_lists.bank_account_num"
placeholder="请输入银行账号"
>
</item>
<item>
<div slot="name">联行号</div>
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联行号">
</item>
</list-item>
</div>
<bottom-tab class="footer-button">
<tab-button class="save" @click.native="addCheck">提交</tab-button>
</bottom-tab> </bottom-tab>
</h-modal> <h-modal ref="modal" v-model="showModalValue" position="bottom">
</h-view> <h-view>
<div class="modal-content">
<div class="modal-content-add-top">
<span>添加银行卡</span>
<!-- <img src="@/assets/userBind/close.png" @click="hideModal"> -->
</div>
<!-- <img-->
<!-- v-if="!bankImg"-->
<!-- src="@/assets/userBind/addBack.png"-->
<!-- class="addBack"-->
<!-- @click="ocrShow('bankCard', '')"-->
<!-- >-->
<!-- <img-->
<!-- v-if="bankImg"-->
<!-- :src="bankImg"-->
<!-- class="addBack"-->
<!-- style="height: 38%;"-->
<!-- @click="ocrShow('bankCard', '')"-->
<!-- >-->
<list-item :item-height="44" class="card-Info" style="margin-top: 50px;">
<item>
<div slot="name">账户名称</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">开户行</div>
<input
slot="content"
v-model="bank_lists.bank_full_name"
placeholder="请输入开户行"
>
</item>
<item>
<div slot="name">银行账号</div>
<input
slot="content"
v-model="bank_lists.bank_account_num"
placeholder="请输入银行账号"
>
</item>
<item>
<div slot="name">联行号</div>
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联行号">
</item>
</list-item>
</div>
</h-view>
<bottom-tab class="add-box">
<tab-button class="add-card" @click.native="addBankInfo">添加</tab-button>
</bottom-tab>
</h-modal>
</div></h-view>
</template> </template>
<script> <script>
import backImg1 from '@/assets/userBind/nong.png' import backImg1 from '@/assets/userBind/nong.png'
...@@ -159,20 +204,47 @@ export default { ...@@ -159,20 +204,47 @@ export default {
// 提交前校验 // 提交前校验
addCheck () { addCheck () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_attachment_check'
let param = { if (!this.bank_lists.bank_account_num || !this.bank_lists.bank_account_name || !this.bank_lists.bank_full_name) {
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id, this.bank_card_flag = false
} this.hlsPopup.showLongCenter('银行信息不完整!')
if (window.localStorage.getItem('authFlag') === 'true') {
vm.handSubmit()
} else { } else {
hlsPopup.showLoading('请稍候') this.bank_card_flag = true
vm.$post(url, param).then(function (res) { }
vm.hlsPopup.hideLoading() // 银行卡验证this.hlsUtil.isBankAccount(this.bank.bank_account_num)
if (this.hlsUtil.isBankAccount(this.bank_lists.bank_account_num)) {
this.bank_card_flag = false
this.hlsPopup.showLongCenter('请输入正确银行账号!')
}
if (this.bank_card_flag) {
this.hlsPopup.showLoading('请稍候')
let url = $config.basePath + 'bp_bank_save'
let param = {
master: {
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bank_lists: [this.bank_lists],
},
}
let vm = this
vm.hlsHttp.post(url, param).then(function (res) {
if (res.result === 'S') { if (res.result === 'S') {
vm.handSubmit() let url = process.env.basePath + 'bp_attachment_check'
} else { let param = {
hlsPopup.showLongCenter(res.message) bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
}
if (window.localStorage.getItem('authFlag') === 'true') {
vm.handSubmit()
} else {
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.handSubmit()
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
} }
}) })
} }
...@@ -341,8 +413,8 @@ export default { ...@@ -341,8 +413,8 @@ export default {
// }, // },
// }) // })
// } else { // } else {
// 已认证过的用户直接提交 // 已认证过的用户直接提交
vm.submitBind() vm.submitBind()
// } // }
} }
}, },
...@@ -383,7 +455,7 @@ export default { ...@@ -383,7 +455,7 @@ export default {
let url = $config.basePath + 'auth_user_sign' let url = $config.basePath + 'auth_user_sign'
let param = { let param = {
phone: window.localStorage.user_phone, phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
...@@ -536,9 +608,9 @@ export default { ...@@ -536,9 +608,9 @@ export default {
} }
.modal-content { .modal-content {
width: 100%; width: 100%;
height: 75%; // height: 75%;
position: absolute; // position: absolute;
top: 25%; // top: 25%;
background-color: #fff; background-color: #fff;
overflow-y: scroll; overflow-y: scroll;
......
...@@ -17,39 +17,39 @@ ...@@ -17,39 +17,39 @@
<h-content class="content"> <h-content class="content">
<div> <div>
<list-item :item-height="44"> <list-item :item-height="44">
<!-- <item v-if="!isApproved" :showArrow="true">--> <!-- <item v-if="!isApproved" :showArrow="true">-->
<!-- <div slot="name" class="font-color required">客户类型</div>--> <!-- <div slot="name" class="font-color required">客户类型</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="baseInfo.bp_type_n"--> <!-- v-model="baseInfo.bp_type_n"-->
<!-- placeholder="请选择"--> <!-- placeholder="请选择"-->
<!-- type="text"--> <!-- type="text"-->
<!-- readonly--> <!-- readonly-->
<!-- @click="selectIdTypeOnly()"--> <!-- @click="selectIdTypeOnly()"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<item> <item>
<div slot="name" class="required">客户类型</div> <div slot="name" class="required">客户类型</div>
<span slot="content">{{ baseInfo.bp_type_n }}</span> <span slot="content">{{ baseInfo.bp_type_n }}</span>
</item> </item>
<!-- <item v-if="(isApproved && isMultiRole&&!hasMultiRole)" :showArrow="true" @click.native="selectIdType">--> <!-- <item v-if="(isApproved && isMultiRole&&!hasMultiRole)" :showArrow="true" @click.native="selectIdType">-->
<!-- <div slot="name" class="required">客户类型</div>--> <!-- <div slot="name" class="required">客户类型</div>-->
<!-- <div slot="content" class="typeBP">--> <!-- <div slot="content" class="typeBP">-->
<!-- <span>{{ baseInfo.bp_type_n }}</span>--> <!-- <span>{{ baseInfo.bp_type_n }}</span>-->
<!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>--> <!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>-->
<!-- <span v-for="(item,index) in multiBpTypeSelectList" :key="item.bp_type">--> <!-- <span v-for="(item,index) in multiBpTypeSelectList" :key="item.bp_type">-->
<!-- {{ item.bp_type_n }}--> <!-- {{ item.bp_type_n }}-->
<!-- <img v-if="item.bp_type_n" src="@/assets/userBind/deleteTag.png" @click.stop @click="deleteBP(item)" >--> <!-- <img v-if="item.bp_type_n" src="@/assets/userBind/deleteTag.png" @click.stop @click="deleteBP(item)" >-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- </item>--> <!-- </item>-->
<!-- <item v-if="isApproved&&isMultiRole&&hasMultiRole" :showArrow="true">--> <!-- <item v-if="isApproved&&isMultiRole&&hasMultiRole" :showArrow="true">-->
<!-- <div slot="name" class="required">客户类型</div>--> <!-- <div slot="name" class="required">客户类型</div>-->
<!-- <div slot="content" class="typeBP">--> <!-- <div slot="content" class="typeBP">-->
<!-- <span>{{ baseInfo.bp_type_n }}</span>--> <!-- <span>{{ baseInfo.bp_type_n }}</span>-->
<!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>--> <!-- <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>-->
<!-- </div>--> <!-- </div>-->
<!-- </item>--> <!-- </item>-->
<item v-if="bp_type_flag"> <item v-if="bp_type_flag">
<div slot="name" class="required">业务经办人</div> <div slot="name" class="required">业务经办人</div>
<input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" > <input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" >
...@@ -64,29 +64,29 @@ ...@@ -64,29 +64,29 @@
:placeholder="type" :placeholder="type"
v-model="baseInfo.agent_username" v-model="baseInfo.agent_username"
> --> > -->
<!-- <input v-if="!bpClass_flag" slot="content" :placeholder="type" v-model="baseInfo.business_license_num" > --> <!-- <input v-if="!bpClass_flag" slot="content" :placeholder="type" v-model="baseInfo.business_license_num" > -->
<!-- </item> --> <!-- </item> -->
<!-- <button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button>--> <!-- <button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button>-->
</list-item> </list-item>
<div class="userInfo martop">企业信息</div> <div class="userInfo martop">企业信息</div>
<!-- <div class="upload-id-card">--> <!-- <div class="upload-id-card">-->
<!-- <span class="font-color">营业执照照片上传</span>--> <!-- <span class="font-color">营业执照照片上传</span>-->
<!-- <div class="upload-box1">--> <!-- <div class="upload-box1">-->
<!-- <div v-if="!licenseImg" @click="ocrShow('license', '')">--> <!-- <div v-if="!licenseImg" @click="ocrShow('license', '')">-->
<!-- <img src="@/assets/userBind/camera.png">--> <!-- <img src="@/assets/userBind/camera.png">-->
<!-- </div>--> <!-- </div>-->
<!-- <div--> <!-- <div-->
<!-- v-if="licenseImg && !isApproved" style="width: 100%;height: 100%" class="licenseBox"--> <!-- v-if="licenseImg && !isApproved" style="width: 100%;height: 100%" class="licenseBox"-->
<!-- @click="ocrShow('license', '')">--> <!-- @click="ocrShow('license', '')">-->
<!-- <img :src="licenseImg" style="width: 100%;height: 100%;margin: 0">--> <!-- <img :src="licenseImg" style="width: 100%;height: 100%;margin: 0">-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-if="isApproved" class="licenseBox">&lt;!&ndash;v-if="licenseImg && isApproved"&ndash;&gt;--> <!-- <div v-if="isApproved" class="licenseBox">&lt;!&ndash;v-if="licenseImg && isApproved"&ndash;&gt;-->
<!-- <img--> <!-- <img-->
<!-- v-if="licenseImg" :src="licenseImg" style="width: 100%;height: 100%;margin: 0"--> <!-- v-if="licenseImg" :src="licenseImg" style="width: 100%;height: 100%;margin: 0"-->
<!-- @click="showBigPicture(licenseImg)">--> <!-- @click="showBigPicture(licenseImg)">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- 营业执照识别信息 --> <!-- 营业执照识别信息 -->
...@@ -149,46 +149,46 @@ ...@@ -149,46 +149,46 @@
@input="addRows(baseInfo.registered_place)" @input="addRows(baseInfo.registered_place)"
/> />
</item> </item>
<item> <!-- <item>
<div slot="name" class="required">资产信息</div> <div slot="name" class="required">资产信息</div>
<input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" > <input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" >
</item> </item> -->
<!-- <item :showArrow="true">--> <!-- <item :showArrow="true">-->
<!-- <div slot="name" class="required">业务办理省</div>--> <!-- <div slot="name" class="required">业务办理省</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="baseInfo.province_name"--> <!-- v-model="baseInfo.province_name"-->
<!-- placeholder="请选择"--> <!-- placeholder="请选择"-->
<!-- type="text"--> <!-- type="text"-->
<!-- readonly--> <!-- readonly-->
<!-- onfocus="this.blur()"--> <!-- onfocus="this.blur()"-->
<!-- @click="selectProvince()"--> <!-- @click="selectProvince()"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item :showArrow="true">--> <!-- <item :showArrow="true">-->
<!-- <div slot="name" class="required">业务办理市</div>--> <!-- <div slot="name" class="required">业务办理市</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="baseInfo.city_name"--> <!-- v-model="baseInfo.city_name"-->
<!-- placeholder="请选择"--> <!-- placeholder="请选择"-->
<!-- type="text"--> <!-- type="text"-->
<!-- readonly--> <!-- readonly-->
<!-- onfocus="this.blur()"--> <!-- onfocus="this.blur()"-->
<!-- @click="selectCity()"--> <!-- @click="selectCity()"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item :showArrow="true">--> <!-- <item :showArrow="true">-->
<!-- <div slot="name" class="required">业务办理区/县</div>--> <!-- <div slot="name" class="required">业务办理区/县</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="baseInfo.district_name"--> <!-- v-model="baseInfo.district_name"-->
<!-- placeholder="请选择"--> <!-- placeholder="请选择"-->
<!-- type="text"--> <!-- type="text"-->
<!-- readonly--> <!-- readonly-->
<!-- onfocus="this.blur()"--> <!-- onfocus="this.blur()"-->
<!-- @click="selectDistrict()"--> <!-- @click="selectDistrict()"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<item :proportion="[2,2]"> <item :proportion="[2,2]">
<div slot="name" class="font-color required">经营地址</div> <div slot="name" class="font-color required">经营地址</div>
<textarea <textarea
...@@ -209,105 +209,105 @@ ...@@ -209,105 +209,105 @@
</item> </item>
</list-item> </list-item>
<!-- 法定代表人信息--> <!-- 法定代表人信息-->
<!-- <div class="userInfo types">法定代表人</div>--> <!-- <div class="userInfo types">法定代表人</div>-->
<!-- <div class="upload-id-cards">--> <!-- <div class="upload-id-cards">-->
<!-- <span>身份证照片上传</span>--> <!-- <span>身份证照片上传</span>-->
<!-- <div class="upload-box">--> <!-- <div class="upload-box">-->
<!-- <div v-if="!idCardFront" @click="ocrShow('idCard', 'front')">--> <!-- <div v-if="!idCardFront" @click="ocrShow('idCard', 'front')">-->
<!-- <img src="@/assets/userBind/org/front.png">--> <!-- <img src="@/assets/userBind/org/front.png">-->
<!-- <p>正面</p>--> <!-- <p>正面</p>-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')">--> <!-- <div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')">-->
<!-- <img :src="idCardFront" style="width: 100%;height: 100%;margin: 0">--> <!-- <img :src="idCardFront" style="width: 100%;height: 100%;margin: 0">-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-if="isApproved && idCardFront">--> <!-- <div v-if="isApproved && idCardFront">-->
<!-- <img--> <!-- <img-->
<!-- v-if="idCardFront" :src="idCardFront" style="width: 100%;height: 100%;margin: 0"--> <!-- v-if="idCardFront" :src="idCardFront" style="width: 100%;height: 100%;margin: 0"-->
<!-- @click="showBigPicture(idCardFront)">--> <!-- @click="showBigPicture(idCardFront)">-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-if="!idCardBack" @click="ocrShow('idCard', 'back')">--> <!-- <div v-if="!idCardBack" @click="ocrShow('idCard', 'back')">-->
<!-- <img src="@/assets/userBind/org/back.png">--> <!-- <img src="@/assets/userBind/org/back.png">-->
<!-- <p>反面</p>--> <!-- <p>反面</p>-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')">--> <!-- <div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')">-->
<!-- <img :src="idCardBack" style="width: 100%;height: 100%;margin: 0">--> <!-- <img :src="idCardBack" style="width: 100%;height: 100%;margin: 0">-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-if="isApproved && idCardBack">--> <!-- <div v-if="isApproved && idCardBack">-->
<!-- <img--> <!-- <img-->
<!-- v-if="idCardBack" :src="idCardBack" style="width: 100%;height: 100%;margin: 0"--> <!-- v-if="idCardBack" :src="idCardBack" style="width: 100%;height: 100%;margin: 0"-->
<!-- @click="showBigPicture(idCardBack)">--> <!-- @click="showBigPicture(idCardBack)">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <list-item :item-height="44" class="second-part">--> <!-- <list-item :item-height="44" class="second-part">-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">姓名</div>--> <!-- <div slot="name" class="font-color required">姓名</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="legal_personMsg.bp_legal_name"--> <!-- v-model="legal_personMsg.bp_legal_name"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">身份证号</div>--> <!-- <div slot="name" class="font-color required">身份证号</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="legal_personMsg.id_card_no"--> <!-- v-model="legal_personMsg.id_card_no"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="required">身份证有效期从</div>--> <!-- <div slot="name" class="required">身份证有效期从</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="legal_personMsg.id_card_date_from"--> <!-- v-model="legal_personMsg.id_card_date_from"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="required">身份证有效期到</div>--> <!-- <div slot="name" class="required">身份证有效期到</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="legal_personMsg.id_card_date_to"--> <!-- v-model="legal_personMsg.id_card_date_to"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">手机号</div>--> <!-- <div slot="name" class="font-color required">手机号</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content" v-model="legal_personMsg.cell_phone" placeholder="请输入手机号"--> <!-- slot="content" v-model="legal_personMsg.cell_phone" placeholder="请输入手机号"-->
<!-- @blur="phoneCheck(legal_personMsg.cell_phone)">--> <!-- @blur="phoneCheck(legal_personMsg.cell_phone)">-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">联系地址</div>--> <!-- <div slot="name" class="font-color required">联系地址</div>-->
<!-- <textarea--> <!-- <textarea-->
<!-- ref="address"--> <!-- ref="address"-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="legal_personMsg.living_address"--> <!-- v-model="legal_personMsg.living_address"-->
<!-- cols="30"--> <!-- cols="30"-->
<!-- rows="1"--> <!-- rows="1"-->
<!-- placeholder="请输入联系地址"--> <!-- placeholder="请输入联系地址"-->
<!-- @input="addAddressRows(legal_personMsg.living_address)"--> <!-- @input="addAddressRows(legal_personMsg.living_address)"-->
<!-- />--> <!-- />-->
<!-- </item>--> <!-- </item>-->
<!-- </list-item>--> <!-- </list-item>-->
<!-- 授权切换 --> <!-- 授权切换 -->
<!-- <div class="authorize">--> <!-- <div class="authorize">-->
<!-- <p class="authorize-select font-color">是否授权</p>--> <!-- <p class="authorize-select font-color">是否授权</p>-->
<!-- <div class="authorize-checklist" @click="authorizeChange">--> <!-- <div class="authorize-checklist" @click="authorizeChange">-->
<!-- <div v-if="flag"/>--> <!-- <div v-if="flag"/>-->
<!-- <img v-if="!flag" src="@/assets/userBind/org/checklist.png" alt>--> <!-- <img v-if="!flag" src="@/assets/userBind/org/checklist.png" alt>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<div v-if="!flag" class="userInfo types">授权人信息</div> <div v-if="!flag" class="userInfo types">授权人信息</div>
<div v-if="!flag" class="upload-id-cards"> <div v-if="!flag" class="upload-id-cards">
<span>身份证照片上传</span> <span>身份证照片上传</span>
...@@ -341,77 +341,77 @@ ...@@ -341,77 +341,77 @@
</div> </div>
</div> </div>
<!-- 已授权 --> <!-- 已授权 -->
<!-- <list-item v-if="!flag" :item-height="44" class="second-part">--> <!-- <list-item v-if="!flag" :item-height="44" class="second-part">-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">姓名</div>--> <!-- <div slot="name" class="font-color required">姓名</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="authMsg.auth_person_name"--> <!-- v-model="authMsg.auth_person_name"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">身份证号</div>--> <!-- <div slot="name" class="font-color required">身份证号</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="authMsg.auth_person_id_card"--> <!-- v-model="authMsg.auth_person_id_card"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="required">身份证有效期从</div>--> <!-- <div slot="name" class="required">身份证有效期从</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="authMsg.auth_id_card_date_from"--> <!-- v-model="authMsg.auth_id_card_date_from"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="required">身份证有效期到</div>--> <!-- <div slot="name" class="required">身份证有效期到</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content"--> <!-- slot="content"-->
<!-- v-model="authMsg.auth_id_card_date_to"--> <!-- v-model="authMsg.auth_id_card_date_to"-->
<!-- readonly--> <!-- readonly-->
<!-- placeholder="上传身份证自动填充"--> <!-- placeholder="上传身份证自动填充"-->
<!-- class="auto"--> <!-- class="auto"-->
<!-- >--> <!-- >-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">手机号</div>--> <!-- <div slot="name" class="font-color required">手机号</div>-->
<!-- <input--> <!-- <input-->
<!-- slot="content" v-model="authMsg.auth_cell_phone" placeholder="请输入手机号"--> <!-- slot="content" v-model="authMsg.auth_cell_phone" placeholder="请输入手机号"-->
<!-- @blur="phoneCheck(authMsg.auth_cell_phone)">--> <!-- @blur="phoneCheck(authMsg.auth_cell_phone)">-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">公司职务</div>--> <!-- <div slot="name" class="font-color required">公司职务</div>-->
<!-- <input slot="content" v-model="authMsg.auth_person_position" placeholder="请输入公司职务">--> <!-- <input slot="content" v-model="authMsg.auth_person_position" placeholder="请输入公司职务">-->
<!-- </item>--> <!-- </item>-->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color required">授权事项</div>--> <!-- <div slot="name" class="font-color required">授权事项</div>-->
<!-- <input slot="content" v-model="authMsg.auth_person_matter" placeholder="请输入授权事项">--> <!-- <input slot="content" v-model="authMsg.auth_person_matter" placeholder="请输入授权事项">-->
<!-- </item>--> <!-- </item>-->
<!-- </list-item>--> <!-- </list-item>-->
<!-- <div v-if="!flag" class="upload-id-card" style="margin-bottom: 30px;">--> <!-- <div v-if="!flag" class="upload-id-card" style="margin-bottom: 30px;">-->
<!-- <span>授权书证件上传</span>--> <!-- <span>授权书证件上传</span>-->
<!-- <div class="upload-box1">--> <!-- <div class="upload-box1">-->
<!-- <div v-if="!laImg" @click="LaUpload()">--> <!-- <div v-if="!laImg" @click="LaUpload()">-->
<!-- <img src="@/assets/userBind/camera.png">--> <!-- <img src="@/assets/userBind/camera.png">-->
<!-- </div>--> <!-- </div>-->
<!-- <div v-if="laImg" class="licenseBox" @click="LaUpload()">--> <!-- <div v-if="laImg" class="licenseBox" @click="LaUpload()">-->
<!-- <img :src="laImg" style="width: 100%;height: 100%;margin: 0">--> <!-- <img :src="laImg" style="width: 100%;height: 100%;margin: 0">-->
<!-- </div>--> <!-- </div>-->
<!-- &lt;!&ndash; <div v-if="isApproved" class="licenseBox">--> <!-- &lt;!&ndash; <div v-if="isApproved" class="licenseBox">-->
<!-- <img v-if="laImg" :src="laImg" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(laImg)">--> <!-- <img v-if="laImg" :src="laImg" style="width: 100%;height: 100%;margin: 0" @click="showBigPicture(laImg)">-->
<!-- </div> &ndash;&gt;--> <!-- </div> &ndash;&gt;-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <!--
<div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake"> <div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake">
<img src="@/assets/userBind/tax.png" class="left-img"> <img src="@/assets/userBind/tax.png" class="left-img">
...@@ -615,7 +615,7 @@ export default { ...@@ -615,7 +615,7 @@ export default {
created () {}, created () {},
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
vm.$route.meta.keepAlive = true; vm.$route.meta.keepAlive = true
vm.getBpType() vm.getBpType()
vm.getProvince() vm.getProvince()
vm.isAddNewType = false vm.isAddNewType = false
...@@ -636,7 +636,7 @@ export default { ...@@ -636,7 +636,7 @@ export default {
vm.isApproved = true vm.isApproved = true
window.localStorage.setItem('isApproved', vm.isApproved) window.localStorage.setItem('isApproved', vm.isApproved)
} }
vm.isMultiRole = JSON.parse(window.localStorage.getItem('handleUser')).isMultiRole; vm.isMultiRole = JSON.parse(window.localStorage.getItem('handleUser')).isMultiRole
window.localStorage.setItem('from', true) window.localStorage.setItem('from', true)
vm.baseInfo = { vm.baseInfo = {
agent_username: '', agent_username: '',
...@@ -672,7 +672,7 @@ export default { ...@@ -672,7 +672,7 @@ export default {
} }
vm.multiBpTypeSelectList = []// 选择的角色 vm.multiBpTypeSelectList = []// 选择的角色
vm.multiRoleList = []// 查询的角色 vm.multiRoleList = []// 查询的角色
vm.bp_id = JSON.parse(window.localStorage.getItem('handleUser')).bp_id vm.bp_id = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
vm.idCardFrontUpload = '' vm.idCardFrontUpload = ''
vm.idCardBackUpload = '' vm.idCardBackUpload = ''
vm.authidCardFrontUpload = '' vm.authidCardFrontUpload = ''
...@@ -981,7 +981,7 @@ export default { ...@@ -981,7 +981,7 @@ export default {
} }
}, },
handSubmit () { handSubmit () {
let bp_id = this.from ? JSON.parse(window.localStorage.getItem('handleUser')).bp_id : this.bp_id let bp_id = this.from ? JSON.parse(window.localStorage.getItem('handleUser')).bp_id : this.bp_id
if (bp_id) { if (bp_id) {
this.hlsPopup.showConfirm({ this.hlsPopup.showConfirm({
title: '提示', title: '提示',
...@@ -1033,13 +1033,13 @@ export default { ...@@ -1033,13 +1033,13 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
window.localStorage.setItem('handleUser', JSON.stringify({ window.localStorage.setItem('handleUser', JSON.stringify({
...JSON.parse( window.localStorage.getItem('handleUser')), ...JSON.parse(window.localStorage.getItem('handleUser')),
bp_id: vm.bp_id, bp_id: vm.bp_id,
organization_code: vm.baseInfo.organization_code, organization_code: vm.baseInfo.organization_code,
from: vm.from, from: vm.from,
bp_name: vm.baseInfo.bp_name, bp_name: vm.baseInfo.bp_name,
multiRoleList: [...vm.multiRoleList.map(item => item.bp_type), ...vm.multiBpTypeSelectList.map(item => item.bp_type), vm.baseInfo.bp_type] multiRoleList: [...vm.multiRoleList.map(item => item.bp_type), ...vm.multiBpTypeSelectList.map(item => item.bp_type), vm.baseInfo.bp_type],
})); }))
vm.$router.push({ vm.$router.push({
name: 'Invoice', name: 'Invoice',
// params: { // params: {
...@@ -1096,11 +1096,11 @@ export default { ...@@ -1096,11 +1096,11 @@ export default {
// vm.hlsPopup.showLongCenter('业务办理市不能为空!') // vm.hlsPopup.showLongCenter('业务办理市不能为空!')
// return // return
// } // }
if (!vm.baseInfo.capital) { // if (!vm.baseInfo.capital) {
vm.hlsPopup.showLongCenter('资产信息不能为空!') // vm.hlsPopup.showLongCenter('资产信息不能为空!')
return // return
} // }
var reg = new RegExp("^[0-9]*$"); var reg = new RegExp('^[0-9]*$')
if (vm.baseInfo.registered_capital.indexOf('万元') == -1 || !reg.test(vm.baseInfo.registered_capital.replace('万元', '')) || vm.baseInfo.registered_capital.replace('万元', '').length == 0) { if (vm.baseInfo.registered_capital.indexOf('万元') == -1 || !reg.test(vm.baseInfo.registered_capital.replace('万元', '')) || vm.baseInfo.registered_capital.replace('万元', '').length == 0) {
vm.hlsPopup.showLongCenter('请输入正确格式的注册资本!(例如:3000万元)') vm.hlsPopup.showLongCenter('请输入正确格式的注册资本!(例如:3000万元)')
return return
...@@ -1335,8 +1335,7 @@ export default { ...@@ -1335,8 +1335,7 @@ export default {
// window.localStorage.setItem('bp_type', vm.baseInfo.bp_type) // window.localStorage.setItem('bp_type', vm.baseInfo.bp_type)
// window.localStorage.setItem('bp_id', res.bp_id) // window.localStorage.setItem('bp_id', res.bp_id)
window.localStorage.setItem('handleUser', JSON.stringify({...JSON.parse(window.localStorage.getItem('handleUser')), bp_id: res.bp_id, bp_type: vm.baseInfo.bp_type})); window.localStorage.setItem('handleUser', JSON.stringify({...JSON.parse(window.localStorage.getItem('handleUser')), bp_id: res.bp_id, bp_type: vm.baseInfo.bp_type}))
vm.loadCheckIdAndSaveAtt(res.bp_id) vm.loadCheckIdAndSaveAtt(res.bp_id)
} else { } else {
...@@ -1345,14 +1344,14 @@ export default { ...@@ -1345,14 +1344,14 @@ export default {
}) })
} }
}, },
loadCheckIdAndSaveAtt(bp_id){ loadCheckIdAndSaveAtt (bp_id) {
console.log('获取checkId并保存附件') console.log('获取checkId并保存附件')
let vm = this let vm = this
let type; let type
if (vm.baseInfo.auth_flag === 'Y') { if (vm.baseInfo.auth_flag === 'Y') {
type = 'HLS_ORG_AUTH'; type = 'HLS_ORG_AUTH'
} else if (vm.baseInfo.auth_flag === 'N') { } else if (vm.baseInfo.auth_flag === 'N') {
type = 'HLS_ORG_NAUTH'; type = 'HLS_ORG_NAUTH'
} }
let bpId = bp_id let bpId = bp_id
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
...@@ -1394,13 +1393,13 @@ export default { ...@@ -1394,13 +1393,13 @@ export default {
} }
}) })
} }
}).then(function (res){ }).then(function (res) {
console.log('保存附件开始') console.log('保存附件开始')
vm.saveAttatchment()//保存附件 vm.saveAttatchment()// 保存附件
console.log('保存附件结束') console.log('保存附件结束')
}).then(function (res){ }).then(function (res) {
console.log('跳转页面开始') console.log('跳转页面开始')
vm.bindCheck()//校验+跳转 vm.bindCheck()// 校验+跳转
console.log('跳转页面结束') console.log('跳转页面结束')
}) })
}, },
...@@ -1790,7 +1789,7 @@ export default { ...@@ -1790,7 +1789,7 @@ export default {
let url = process.env.basePath + 'bp_type_save' let url = process.env.basePath + 'bp_type_save'
let param = { let param = {
master: { master: {
bp_id:JSON.parse(window.localStorage.getItem('handleUser')).bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bp_type: vm.multiBpType.bp_type, bp_type: vm.multiBpType.bp_type,
}, },
} }
...@@ -1913,27 +1912,27 @@ export default { ...@@ -1913,27 +1912,27 @@ export default {
if (cardType === 'idCard') { // 法定代表人 if (cardType === 'idCard') { // 法定代表人
// 未授权 身份证有效期从,身份证有效期到 // 未授权 身份证有效期从,身份证有效期到
vm.legal_personMsg.id_card_date_from = vm.timeFormat(result.签发日期.words) vm.legal_personMsg.id_card_date_from = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){ if (result.失效日期.words.indexOf('长期') != -1) {
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '提示', title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`, content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {}, onConfirm: () => {},
}) })
vm.legal_personMsg.id_card_date_to = '9999-12-31' vm.legal_personMsg.id_card_date_to = '9999-12-31'
}else{ } else {
vm.legal_personMsg.id_card_date_to = vm.timeFormat(result.失效日期.words) vm.legal_personMsg.id_card_date_to = vm.timeFormat(result.失效日期.words)
} }
} else { } else {
// 已授权 身份证有效期从,身份证有效期到 // 已授权 身份证有效期从,身份证有效期到
vm.authMsg.auth_id_card_date_from = vm.timeFormat(result.签发日期.words) vm.authMsg.auth_id_card_date_from = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){ if (result.失效日期.words.indexOf('长期') != -1) {
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '提示', title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`, content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {}, onConfirm: () => {},
}) })
vm.authMsg.auth_id_card_date_to = '9999-12-31' vm.authMsg.auth_id_card_date_to = '9999-12-31'
}else{ } else {
vm.authMsg.auth_id_card_date_to = vm.timeFormat(result.失效日期.words) vm.authMsg.auth_id_card_date_to = vm.timeFormat(result.失效日期.words)
} }
} }
......
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