Commit fde3647a authored by 王建文's avatar 王建文

修改角色切换问题

parent c6c149fe
......@@ -116,6 +116,7 @@ export default {
},
next() {
let index = this.hasChecked;
console.log('JSON.stringify(this.list[index])'+JSON.stringify(this.list[index]))
if (index > -1) {
window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify(this.list[index]));
this.$router.push('tab');
......
......@@ -221,7 +221,7 @@
<!-- </item>-->
<item>
<div slot="name" class="font-color">担保人类型</div>
<input slot="content" v-model="item.guarantor_type_n" readonly>
<input slot="content" v-model="item.guarantor_type_n" readonly @click="saveGuarantor(item)">
</item>
<item>
<div slot="name" class="font-color">担保人名称</div>
......@@ -931,6 +931,12 @@ export default {
vm.itemInfo = item
vm.downNum = true
},
// 更新担保人
saveGuarantor (item) {
let vm = this
vm.guarantorInfo = item
vm.guarantorFlag = true
},
saveData () {
let vm = this
let url = $config.basePath + 'zm_prj_base_info_save'
......@@ -1323,6 +1329,7 @@ export default {
hlsPopup.showLoading('请稍候')
return vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
res.lists.forEach(item => {
item['url'] =
......@@ -1333,18 +1340,25 @@ export default {
window.localStorage.access_token
})
if (code === 'report') {
vm.upload_list_report = []
vm.dowload_list_report = res.lists
} if (code === 'product') {
} else if (code === 'product') {
vm.upload_list_product = []
vm.dowload_list_product = res.lists
} if (code === 'suggest') {
} else if (code === 'suggest') {
vm.upload_list_suggest = []
vm.dowload_list_suggest = res.lists
} if (code === 'contract') {
} else if (code === 'contract') {
vm.upload_list_contract = []
vm.dowload_list_contract = res.lists
} if (code === 'license') {
} else if (code === 'license') {
vm.upload_list_license = []
vm.dowload_list_license = res.lists
} if (code === 'credit') {
} else if (code === 'credit') {
vm.upload_list_credit = []
vm.dowload_list_credit = res.lists
} else {
vm.upload_list_mining = []
vm.dowload_list_mining = res.lists
}
}
......@@ -1736,6 +1750,8 @@ export default {
hlsPopup.showLongCenter('统一社会信用代码不能为空!')
} else if (!vm.baseInfo.registered_capital) {
hlsPopup.showLongCenter('注册资本不能为空!')
} else if (!vm.baseInfo.registered_place) {
hlsPopup.showLongCenter('注册地址不能为空!')
} else if (!vm.baseInfo.business_address) {
hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) {
......@@ -1812,6 +1828,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.guarantorInfo={}
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
......@@ -1837,6 +1854,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 {
......
......@@ -220,7 +220,7 @@
<!-- </item>-->
<item>
<div slot="name" class="font-color">担保人类型</div>
<input slot="content" v-model="item.guarantor_type_n" readonly>
<input slot="content" v-model="item.guarantor_type_n" readonly @click="saveGuarantor(item)">
</item>
<item>
<div slot="name" class="font-color">担保人名称</div>
......@@ -817,6 +817,12 @@ export default {
vm.itemInfo = item
vm.downNum = true
},
// 更新担保人
saveGuarantor (item) {
let vm = this
vm.guarantorInfo = item
vm.guarantorFlag = true
},
addRows (e) {
if (e) {
let len = 0
......@@ -1386,18 +1392,25 @@ export default {
window.localStorage.access_token
})
if (code === 'report') {
vm.upload_list_report = []
vm.dowload_list_report = res.lists
} if (code === 'product') {
} else if (code === 'product') {
vm.upload_list_product = []
vm.dowload_list_product = res.lists
} if (code === 'suggest') {
} else if (code === 'suggest') {
vm.upload_list_suggest = []
vm.dowload_list_suggest = res.lists
} if (code === 'contract') {
} else if (code === 'contract') {
vm.upload_list_contract = []
vm.dowload_list_contract = res.lists
} if (code === 'license') {
} else if (code === 'license') {
vm.upload_list_license = []
vm.dowload_list_license = res.lists
} if (code === 'credit') {
} else if (code === 'credit') {
vm.upload_list_credit = []
vm.dowload_list_credit = res.lists
} else {
vm.upload_list_mining = []
vm.dowload_list_mining = res.lists
}
}
......@@ -1462,6 +1475,8 @@ export default {
hlsPopup.showLongCenter('统一社会信用代码不能为空!')
} else if (!vm.baseInfo.registered_capital) {
hlsPopup.showLongCenter('注册资本不能为空!')
} else if (!vm.baseInfo.registered_place) {
hlsPopup.showLongCenter('注册地址不能为空!')
} else if (!vm.baseInfo.business_address) {
hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) {
......@@ -1535,6 +1550,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.guarantorInfo={}
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
......
This diff is collapsed.
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