Commit 29fe67b2 authored by 14699's avatar 14699

fix:融资方案变更修改

parent b132108b
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</item> </item>
</list-item> </list-item>
</div> </div>
<button @click="prjGuarantorSave">保存</button> <button @click="prjBaseInfoSave(true,false, false)">保存</button>
</div> </div>
</div> </div>
</transition> </transition>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<div :class="{ 'done': num === 0, 'undone': num !== 0 }" @click="num = 0;"> <div :class="{ 'done': num === 0, 'undone': num !== 0 }" @click="num = 0;">
<img :src="num === 0 ? check1 : uncheck1">基本信息 <img :src="num === 0 ? check1 : uncheck1">基本信息
</div> </div>
<div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1;"> <div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="prjBaseInfoSave(false,true, false)">
<img :src="num === 1 ? check3 : uncheck3">方案信息 <img :src="num === 1 ? check3 : uncheck3">方案信息
</div> </div>
</div> </div>
...@@ -110,6 +110,12 @@ ...@@ -110,6 +110,12 @@
slot="content" v-model="baseInfo.director" slot="content" v-model="baseInfo.director"
readonly> readonly>
</item> </item>
<item>
<div slot="name" class="font-color">金租审核进度</div>
<input
slot="content" v-model="approve_status_n"
readonly>
</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">
...@@ -708,11 +714,11 @@ ...@@ -708,11 +714,11 @@
</h-content> </h-content>
<bottom-tab class="add-box"> <bottom-tab class="add-box">
<tab-button class="next" @click.native="handleSave"> <tab-button class="next" @click.native="handleSave">
<img src="@/assets/intoApproval/approve.png" >保存 <img src="@/assets/intoApproval/approve.png" >提交
</tab-button>
<tab-button v-if="zm_project_status !== 'APPROVED' && director_flag === 'Y'" class="next" @click.native="handleSubmit">
提交复核
</tab-button> </tab-button>
<!-- <tab-button v-if="zm_project_status !== 'APPROVED' && director_flag === 'Y'" class="next" @click.native="handleSubmit">-->
<!-- 提交复核-->
<!-- </tab-button>-->
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
...@@ -882,6 +888,7 @@ export default { ...@@ -882,6 +888,7 @@ export default {
vm.confirm_id = vm.$route.params.item.confirm_id vm.confirm_id = vm.$route.params.item.confirm_id
vm.zm_project_status = vm.$route.params.item.zm_project_status // 复核状态 vm.zm_project_status = vm.$route.params.item.zm_project_status // 复核状态
vm.director_flag = vm.$route.params.item.director_flag // 是否复核岗位 vm.director_flag = vm.$route.params.item.director_flag // 是否复核岗位
vm.approve_status_n = vm.$route.params.item.approve_status_n // 金租审核进度
vm.agentPic = vm.unRead vm.agentPic = vm.unRead
vm.leasePic = vm.unRead vm.leasePic = vm.unRead
if (vm.$route.params.item.bp_class === 'NP') { if (vm.$route.params.item.bp_class === 'NP') {
...@@ -1756,44 +1763,7 @@ export default { ...@@ -1756,44 +1763,7 @@ export default {
// handleSave // handleSave
handleSave () { handleSave () {
if (this.num === 0) { if (this.num === 0) {
let vm = this this.prjBaseInfoSave(false, false, true)
if (!vm.baseInfo.bp_name) {
hlsPopup.showLongCenter('公司名称不能为空!')
} else if (!vm.baseInfo.organization_code) {
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) {
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('法人姓名不能为空!')
// } 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 { } else {
this.calculationSave() this.calculationSave()
} }
...@@ -1813,9 +1783,14 @@ export default { ...@@ -1813,9 +1783,14 @@ export default {
}, },
prjBaseInfoSubmit () { prjBaseInfoSubmit () {
let vm = this let vm = this
let projectStatus = 'APPROVING'
if (vm.director_flag === 'Y') {
projectStatus = 'APPROVED'
}
let url = $config.basePath + 'zm_prj_status_update' let url = $config.basePath + 'zm_prj_status_update'
let param = { let param = {
project_id: vm.project_id, project_id: vm.project_id,
zm_project_status: projectStatus,
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
...@@ -1830,9 +1805,26 @@ export default { ...@@ -1830,9 +1805,26 @@ export default {
} }
}) })
}, },
// 保存融租方案接口 // 保存基本信息接口
prjBaseInfoSave () { prjBaseInfoSave (isSaveGua = false, isClickTab = false, isSubmit = false) {
let vm = this let vm = this
if (!vm.baseInfo.bp_name) {
hlsPopup.showLongCenter('公司名称不能为空!')
} else if (!vm.baseInfo.organization_code) {
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) {
hlsPopup.showLongCenter('承租人联系电话能为空!')
} else if (!vm.baseInfo.bp_other_asset) {
hlsPopup.showLongCenter('承租人其他资产说明项不能为空!')
} else if (!vm.baseInfo.other_info) {
hlsPopup.showLongCenter('其他补充信息栏不能为空!')
} else {
let url = $config.basePath + 'zm_prj_base_info_save' let url = $config.basePath + 'zm_prj_base_info_save'
let master = { let master = {
...vm.baseInfo, ...vm.invoiceInfo, ...vm.baseInfo, ...vm.invoiceInfo,
...@@ -1846,10 +1838,22 @@ export default { ...@@ -1846,10 +1838,22 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
hlsPopup.showLongCenter('基本信息保存成功') hlsPopup.showLongCenter('基本信息保存成功')
if (isSaveGua) {
vm.prjGuarantorSave()
}
if (isClickTab) {
vm.num = 1
}
if (isSubmit) {
if (vm.zm_project_status !== 'APPROVED') {
vm.prjBaseInfoSubmit()
}
}
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}
}, },
// 保存担保人 // 保存担保人
prjGuarantorSave () { prjGuarantorSave () {
...@@ -1938,6 +1942,9 @@ export default { ...@@ -1938,6 +1942,9 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
vm.quotationInfo.quotation_id = res.quotation_id vm.quotationInfo.quotation_id = res.quotation_id
hlsPopup.showLongCenter('方案信息保存成功') hlsPopup.showLongCenter('方案信息保存成功')
if (vm.zm_project_status !== 'APPROVED') {
vm.prjBaseInfoSubmit()
}
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</item> --> </item> -->
</list-item> </list-item>
</div> </div>
<button @click="prjGuarantorSave">保存</button> <button @click="prjBaseInfoSave(true,false, false)">保存</button>
</div> </div>
</div> </div>
</transition> </transition>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<div :class="{ 'done': num === 0, 'undone': num !== 0 }" @click="num = 0;"> <div :class="{ 'done': num === 0, 'undone': num !== 0 }" @click="num = 0;">
<img :src="num === 0 ? check1 : uncheck1">基本信息 <img :src="num === 0 ? check1 : uncheck1">基本信息
</div> </div>
<div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1;"> <div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="prjBaseInfoSave(false,true, false)">
<img :src="num === 1 ? check3 : uncheck3">方案信息 <img :src="num === 1 ? check3 : uncheck3">方案信息
</div> </div>
</div> </div>
...@@ -126,6 +126,12 @@ ...@@ -126,6 +126,12 @@
slot="content" v-model="baseInfo.director" slot="content" v-model="baseInfo.director"
readonly> readonly>
</item> </item>
<item>
<div slot="name" class="font-color">金租审核进度</div>
<input
slot="content" v-model="approve_status_n"
readonly>
</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">
...@@ -680,7 +686,7 @@ ...@@ -680,7 +686,7 @@
</h-content> </h-content>
<bottom-tab class="add-box"> <bottom-tab class="add-box">
<tab-button class="next" @click.native="handleSave()"> <tab-button class="next" @click.native="handleSave()">
<img src="@/assets/intoApproval/approve.png">保存 <img src="@/assets/intoApproval/approve.png">提交
</tab-button> </tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
...@@ -751,6 +757,7 @@ export default { ...@@ -751,6 +757,7 @@ export default {
dowload_list_suggest: [], dowload_list_suggest: [],
upload_list_credit: [], upload_list_credit: [],
dowload_list_credit: [], dowload_list_credit: [],
approve_status_n: '待审核',
} }
}, },
computed: {}, computed: {},
...@@ -1499,46 +1506,8 @@ export default { ...@@ -1499,46 +1506,8 @@ export default {
// handleSave // handleSave
handleSave () { handleSave () {
// debugger
if (this.num === 0) { if (this.num === 0) {
let vm = this this.prjBaseInfoSave(false, false, true)
if (!vm.baseInfo.bp_name) {
hlsPopup.showLongCenter('公司名称不能为空!')
} else if (!vm.baseInfo.organization_code) {
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) {
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('法人姓名不能为空!')
// } 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 { } else {
this.calculationSave() this.calculationSave()
} }
...@@ -1559,7 +1528,6 @@ export default { ...@@ -1559,7 +1528,6 @@ export default {
} }
}) })
}, },
// 保存担保人 // 保存担保人
prjGuarantorSave () { prjGuarantorSave () {
let vm = this let vm = this
...@@ -1593,9 +1561,26 @@ export default { ...@@ -1593,9 +1561,26 @@ export default {
} }
}, },
// 保存融租方案接口 // 保存基本信息接口
prjBaseInfoSave () { prjBaseInfoSave (isSaveGua = false, isClickTab = false, isSubmit = false) {
let vm = this let vm = this
if (!vm.baseInfo.bp_name) {
hlsPopup.showLongCenter('公司名称不能为空!')
} else if (!vm.baseInfo.organization_code) {
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) {
hlsPopup.showLongCenter('承租人联系电话不能为空!')
} else if (!vm.baseInfo.bp_other_asset) {
hlsPopup.showLongCenter('承租人其他资产说明项不能为空!')
} else if (!vm.baseInfo.other_info) {
hlsPopup.showLongCenter('其他补充信息栏不能为空!')
} else {
let url = $config.basePath + 'zm_prj_base_info_save' let url = $config.basePath + 'zm_prj_base_info_save'
let master = { let master = {
...vm.baseInfo, ...vm.invoiceInfo, ...vm.baseInfo, ...vm.invoiceInfo,
...@@ -1610,7 +1595,9 @@ export default { ...@@ -1610,7 +1595,9 @@ 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') {
if (!isSaveGua && !isSaveGua) {
hlsPopup.showLongCenter('基本信息保存成功') hlsPopup.showLongCenter('基本信息保存成功')
}
vm.project_id = res.project_id vm.project_id = res.project_id
vm.getMiningLicenseList() vm.getMiningLicenseList()
vm.getFinancialStatementsList() vm.getFinancialStatementsList()
...@@ -1619,10 +1606,20 @@ export default { ...@@ -1619,10 +1606,20 @@ export default {
vm.getLicenseList() vm.getLicenseList()
vm.getProductLicenseList() vm.getProductLicenseList()
vm.getCreditLicenseList() vm.getCreditLicenseList()
if (isSaveGua) {
vm.prjGuarantorSave()
}
if (isClickTab) {
vm.num = 1
}
if (isSubmit) {
vm.prjBaseInfoSubmit()
}
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}
}, },
// 设备信息 // 设备信息
getLease () { getLease () {
...@@ -1673,6 +1670,10 @@ export default { ...@@ -1673,6 +1670,10 @@ export default {
hlsPopup.showLongCenter('请先保存基本信息') hlsPopup.showLongCenter('请先保存基本信息')
return return
} }
if (!vm.quotationInfo.equip_price) {
hlsPopup.showLongCenter('请输入设备总价')
return
}
let url = $config.basePath + 'zm_prj_quotation_save' let url = $config.basePath + 'zm_prj_quotation_save'
let master = { let master = {
'project_id': vm.project_id, 'project_id': vm.project_id,
...@@ -1701,6 +1702,7 @@ export default { ...@@ -1701,6 +1702,7 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
hlsPopup.showLongCenter('方案信息保存成功') hlsPopup.showLongCenter('方案信息保存成功')
vm.quotationInfo.quotation_id = res.quotation_id vm.quotationInfo.quotation_id = res.quotation_id
vm.prjBaseInfoSubmit()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -1711,6 +1713,26 @@ export default { ...@@ -1711,6 +1713,26 @@ export default {
vm.guarantorInfo = {} vm.guarantorInfo = {}
vm.guarantorFlag = true vm.guarantorFlag = true
}, },
prjBaseInfoSubmit () {
let vm = this
let url = $config.basePath + 'zm_prj_status_update'
let param = {
project_id: vm.project_id,
zm_project_status: 'APPROVING',
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.hlsPopup.showSuccess('提交成功')
// setTimeout(() => {
// vm.$router.go(-1)
// }, 1000)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
}, },
} }
</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