Commit c6c149fe authored by 14699's avatar 14699

fix:测试问题修改

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