Commit c6c149fe authored by 14699's avatar 14699

fix:测试问题修改

parent d7a3157b
......@@ -13,7 +13,7 @@
<div class="down-content">
<list-item :item-height="44">
<item>
<div slot="name" class="required">产品名称</div>
<div slot="name">产品名称</div>
<input
slot="content"
v-model="itemInfo.ref_v02"
......@@ -21,7 +21,7 @@
>
</item>
<item>
<div slot="name" class="required">产品数量</div>
<div slot="name">产品数量</div>
<input
slot="content"
v-model="itemInfo.quantity"
......@@ -212,7 +212,7 @@
<div class="equipment-list-fund" style="color:#00469c">
<span/>
<p>担保人信息</p>
<div style="width: 75%;text-align: right;" @click="guarantorFlag=true">新增</div>
<div style="width: 75%;text-align: right;" @click="addGuarantor()">新增</div>
</div>
<list-item v-for="(item, index) in guarantorList" :item-height="76" :key="index" class="second-part">
<!-- <item>-->
......@@ -1165,7 +1165,7 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.miningCheckId = res.lists[0].check_id
vm.getAttachmentList(vm.reportCheckId, 'mining')
vm.getAttachmentList(vm.miningCheckId, 'mining')
}
})
},
......@@ -1272,7 +1272,11 @@ export default {
if (res.lists.length == 0) {
vm.quotationInfo = {}
} else {
vm.quotationInfo = res.lists[0]
let quotationInfo = res.lists[0]
if (res.lists[0].annual_pay_times) {
quotationInfo.annual_pay_times_n = res.lists[0].annual_pay_times
}
vm.quotationInfo = quotationInfo
}
}
})
......@@ -1736,6 +1740,10 @@ export default {
hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) {
hlsPopup.showLongCenter('承租人联系电话能为空!')
} else if (!vm.baseInfo.bp_other_asset) {
hlsPopup.showLongCenter('承租人其他资产说明项不能为空!')
} else if (!vm.baseInfo.other_info) {
hlsPopup.showLongCenter('其他补充信息栏不能为空!')
}
// else if (!vm.baseInfo.legal_person) {
// hlsPopup.showLongCenter('法人姓名不能为空!')
......@@ -1786,25 +1794,31 @@ export default {
// 保存担保人
prjGuarantorSave () {
let vm = this
let url = $config.basePath + 'zm_prj_ref_info_save'
let param = {
master: {
lists: [{
'project_id': vm.project_id,
...vm.guarantorInfo,
}],
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
hlsPopup.showLongCenter(res.message)
if (!vm.guarantorInfo.guarantor_type) {
hlsPopup.showLongCenter('担保人类型不能为空!')
} else if (!vm.guarantorInfo.guarantor_name) {
hlsPopup.showLongCenter('担保人名称不能为空!')
} else {
let url = $config.basePath + 'zm_prj_ref_info_save'
let param = {
master: {
lists: [{
'project_id': vm.project_id,
...vm.guarantorInfo,
}],
},
}
})
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
},
// 保存设备
prjLeaseItemSave () {
......@@ -1877,6 +1891,11 @@ export default {
// }
// })
},
addGuarantor () {
let vm = this
vm.guarantorInfo = {}
vm.guarantorFlag = true
},
},
}
</script>
......
......@@ -13,7 +13,7 @@
<div class="down-content">
<list-item :item-height="44">
<item>
<div slot="name" class="required">产品名称</div>
<div slot="name">产品名称</div>
<input
slot="content"
v-model="itemInfo.ref_v02"
......@@ -21,7 +21,7 @@
>
</item>
<item>
<div slot="name" class="required">产品数量</div>
<div slot="name">产品数量</div>
<input
slot="content"
v-model="itemInfo.quantity"
......@@ -211,7 +211,7 @@
<div class="equipment-list-fund" style="color:#00469c">
<span/>
<p>担保人信息</p>
<div style="width: 75%;text-align: right;" @click="guarantorFlag=true">新增</div>
<div style="width: 75%;text-align: right;" @click="addGuarantor()">新增</div>
</div>
<list-item v-for="(item, index) in guarantorList" :item-height="76" :key="index" class="second-part">
<!-- <item>-->
......@@ -1272,7 +1272,7 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.miningCheckId = res.lists[0].check_id
vm.getAttachmentList(vm.reportCheckId, 'mining')
vm.getAttachmentList(vm.miningCheckId, 'mining')
}
})
},
......@@ -1465,7 +1465,11 @@ export default {
} else if (!vm.baseInfo.business_address) {
hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) {
hlsPopup.showLongCenter('承租人联系电话能为空!')
hlsPopup.showLongCenter('承租人联系电话不能为空!')
} else if (!vm.baseInfo.bp_other_asset) {
hlsPopup.showLongCenter('承租人其他资产说明项不能为空!')
} else if (!vm.baseInfo.other_info) {
hlsPopup.showLongCenter('其他补充信息栏不能为空!')
}
// else if (!vm.baseInfo.legal_person) {
// hlsPopup.showLongCenter('法人姓名不能为空!')
......@@ -1513,27 +1517,31 @@ export default {
let vm = this
if (!vm.project_id) {
hlsPopup.showLongCenter('请先保存基本信息')
return
}
let url = $config.basePath + 'zm_prj_ref_info_save'
let param = {
master: {
lists: [{
'project_id': vm.project_id,
...vm.guarantorInfo,
}],
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
hlsPopup.showLongCenter(res.message)
} else if (!vm.guarantorInfo.guarantor_type) {
hlsPopup.showLongCenter('担保人类型不能为空!')
} else if (!vm.guarantorInfo.guarantor_name) {
hlsPopup.showLongCenter('担保人名称不能为空!')
} else {
let url = $config.basePath + 'zm_prj_ref_info_save'
let param = {
master: {
lists: [{
'project_id': vm.project_id,
...vm.guarantorInfo,
}],
},
}
})
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
},
// 保存融租方案接口
......@@ -1649,6 +1657,11 @@ export default {
}
})
},
addGuarantor () {
let vm = this
vm.guarantorInfo = {}
vm.guarantorFlag = true
},
},
}
</script>
......
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