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

首页图片替换

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