Commit cf158cce authored by 李晓兵's avatar 李晓兵

'问题修复'

parent ed6810c4
Pipeline #4404 canceled with stages
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app"', appId: '"com.xcmg.app"',
currentVersion: '"1.0.0"' currentVersion: '"1.0.1"'
} }
...@@ -253,16 +253,37 @@ export default { ...@@ -253,16 +253,37 @@ export default {
}) })
}, },
methods: { methods: {
// 签约校验
async signCheck () {
let vm = this
let url = process.env.basePath + 'sign_check'
let param = {
confirm_id: vm.confirm_id,
data_class: 'LEASE_ITEM',
}
vm.hlsPopup.showLoading('请稍后!')
let res = vm.hlsHttp.post(url, param)
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
return true
} else {
// vm.hlsPopup.showLongCenter(res.message)
}
},
getTabNum (i) { getTabNum (i) {
this.tabNum = i this.tabNum = i
}, },
takePhonto () { takePhonto () {
let vm = this let vm = this
hlsPopup.showPopup({ hlsPopup.showConfirm({
title: '提示', title: '提示',
content: `请自拍一张`, content: '请自拍一张',
onConfirm: () => { onConfirm: function (index) {
vm.takePhontoOpenCamera() if (index === 1) {
vm.takePhontoOpenCamera()
} else {
}
}, },
}) })
}, },
...@@ -398,16 +419,20 @@ export default { ...@@ -398,16 +419,20 @@ export default {
hlsPopup.hideLoading() hlsPopup.hideLoading()
} }
}, },
isConfirm () { async isConfirm () {
this.hlsPopup.showConfirm({ let vm = this
title: '提示', let flag = await this.signCheck()
content: '您确定同意发车吗?', if (flag) { // 只有认证通过后方可进行签约操作
onConfirm: data => { this.hlsPopup.showConfirm({
if (data === 1) { title: '提示',
this.confirm() content: '您确定同意发车吗?',
} onConfirm: data => {
}, if (data === 1) {
}) this.confirm()
}
},
})
}
}, },
confirm () { confirm () {
let vm = this let vm = this
......
...@@ -2,22 +2,22 @@ ...@@ -2,22 +2,22 @@
<h-view id="create-rent-info"> <h-view id="create-rent-info">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="routeGoCustom()" > <img src="@/assets/userBind/arrow.png" @click="routeGoCustom()">
<span>租赁信息</span> <span>租赁信息</span>
</div> </div>
</h-header> </h-header>
<h-content> <h-content>
<div class="top"> <div class="top">
<div class="item"> <div class="item">
<img src="@/assets/contractCreate/finished.png" > <img src="@/assets/contractCreate/finished.png">
<p>基本信息</p> <p>基本信息</p>
</div> </div>
<span class="line" /> <span class="line"/>
<div class="item"> <div class="item">
<span>2</span> <span>2</span>
<p style="color: #383F45;">租赁信息</p> <p style="color: #383F45;">租赁信息</p>
</div> </div>
<span class="line" /> <span class="line"/>
<div class="item"> <div class="item">
<span>3</span> <span>3</span>
<p>附件信息</p> <p>附件信息</p>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<list-item :item-height="44"> <list-item :item-height="44">
<item v-if="!isReadOnly" :showArrow="true" @click.native="selectProductLine"> <item v-if="!isReadOnly" :showArrow="true" @click.native="selectProductLine">
<div slot="name">产品线</div> <div slot="name">产品线</div>
<input slot="content" v-model="saveInfo.division_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.division_n" readonly placeholder="请选择">
</item> </item>
<item v-if="isReadOnly"> <item v-if="isReadOnly">
<div slot="name">产品线</div> <div slot="name">产品线</div>
...@@ -35,51 +35,51 @@ ...@@ -35,51 +35,51 @@
</item> </item>
<item v-if="!isReadOnly" :showArrow="true" @click.native="getProduct"> <item v-if="!isReadOnly" :showArrow="true" @click.native="getProduct">
<div slot="name">产品型号</div> <div slot="name">产品型号</div>
<input slot="content" v-model="productInfo.product_id_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.product_id_n" readonly placeholder="请选择">
</item> </item>
<item v-if="isReadOnly" :showArrow="true"> <item v-if="isReadOnly" :showArrow="true">
<div slot="name">产品型号</div> <div slot="name">产品型号</div>
<input slot="content" v-model="productInfo.product_id_n" readonly > <input slot="content" v-model="saveInfo.product_id_n" readonly>
</item> </item>
<item> <item>
<div slot="name">产品数量</div> <div slot="name">产品数量</div>
<input slot="content" v-model="productInfo.product_num" :readonly="isReadOnly" placeholder="请填写产品数量" > <input slot="content" v-model="saveInfo.product_num" :readonly="isReadOnly" placeholder="请填写产品数量">
</item> </item>
</list-item> </list-item>
<div class="userInfo">融资信息</div> <div class="userInfo">融资信息</div>
<div class="hint-info"> <div class="hint-info">
<img src="@/assets/contractCreate/hint.png" >提示 以下为单个设备商务政策 <img src="@/assets/contractCreate/hint.png">提示 以下为单个设备商务政策
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item v-if="!isReadOnly" :showArrow="true" @click.native="getBusinessPolicy();showModalBusiness=true"> <item v-if="!isReadOnly" :showArrow="true" @click.native="getBusinessPolicy();showModalBusiness=true">
<div slot="name">商务政策</div> <div slot="name">商务政策</div>
<input slot="content" v-model="saveInfo.product_plan_name" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.product_plan_name" readonly placeholder="请选择">
</item> </item>
<item v-if="isReadOnly"> <item v-if="isReadOnly">
<div slot="name">商务政策</div> <div slot="name">商务政策</div>
<input slot="content" v-model="saveInfo.product_plan_name" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.product_plan_name" readonly placeholder="请选择">
</item> </item>
<item> <item>
<div slot="name">设备单价</div> <div slot="name">设备单价</div>
<CurrencyInput slot="content" v-model="saveInfo.equip_price" :readonly="isReadOnly" placeholder="0" /> <CurrencyInput slot="content" v-model="saveInfo.equip_price" :readonly="isReadOnly" placeholder="0"/>
</item> </item>
<item> <item>
<div slot="name">融资金额</div> <div slot="name">融资金额</div>
<CurrencyInput slot="content" v-model="finance_amount" :readonly="isReadOnly" placeholder="0" /> <CurrencyInput slot="content" v-model="finance_amount" :readonly="isReadOnly" placeholder="0"/>
</item> </item>
<item> <item>
<div slot="name">首付比例</div> <div slot="name">首付比例</div>
<input slot="content" v-model="saveInfo.down_payment_ratio_n" :readonly="isReadOnly" placeholder="%" > <input slot="content" v-model="saveInfo.down_payment_ratio_n" :readonly="isReadOnly" placeholder="%">
</item> </item>
<item> <item>
<div slot="name">首付款</div> <div slot="name">首付款</div>
<CurrencyInput <CurrencyInput
slot="content" v-model="saveInfo.down_payment" :readonly="isReadOnly" placeholder="0" slot="content" v-model="saveInfo.down_payment" :readonly="isReadOnly" placeholder="0"
@input="changeRatio" /> @input="changeRatio"/>
</item> </item>
<item> <item>
<div slot="name">保证金比例</div> <div slot="name">保证金比例</div>
<input slot="content" v-model="saveInfo.deposit_ratio_n" :readonly="isReadOnly" placeholder="%" > <input slot="content" v-model="saveInfo.deposit_ratio_n" :readonly="isReadOnly" placeholder="%">
</item> </item>
<item> <item>
<div slot="name">保证金</div> <div slot="name">保证金</div>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</item> </item>
<item> <item>
<div slot="name">手续费比例</div> <div slot="name">手续费比例</div>
<input slot="content" v-model="saveInfo.lease_charge_ratio_n" :readonly="isReadOnly" placeholder="%" > <input slot="content" v-model="saveInfo.lease_charge_ratio_n" :readonly="isReadOnly" placeholder="%">
</item> </item>
<item> <item>
<div slot="name">手续费</div> <div slot="name">手续费</div>
...@@ -99,55 +99,55 @@ ...@@ -99,55 +99,55 @@
</item> </item>
<item> <item>
<div slot="name">GPS费用</div> <div slot="name">GPS费用</div>
<CurrencyInput slot="content" v-model="saveInfo.gps_fee" :readonly="isReadOnly" placeholder="0" /> <CurrencyInput slot="content" v-model="saveInfo.gps_fee" :readonly="isReadOnly" placeholder="0"/>
</item> </item>
<item> <item>
<div slot="name">保险押金</div> <div slot="name">保险押金</div>
<CurrencyInput slot="content" v-model="saveInfo.insurance_fee" :readonly="isReadOnly" placeholder="0" /> <CurrencyInput slot="content" v-model="saveInfo.insurance_fee" :readonly="isReadOnly" placeholder="0"/>
</item> </item>
<item v-if="!isReadOnly" class="date-check" @click.native="showTime('YYYY-MM-DD')"> <item v-if="!isReadOnly" class="date-check" @click.native="showTime('YYYY-MM-DD')">
<div slot="name">预计付款日</div> <div slot="name">预计付款日</div>
<input slot="content" v-model="saveInfo.lease_start_date" readonly placeholder="请选择日期 " > <input slot="content" v-model="saveInfo.lease_start_date" readonly placeholder="请选择日期 ">
</item> </item>
<item v-if="isReadOnly" class="date-check"> <item v-if="isReadOnly" class="date-check">
<div slot="name">预计付款日</div> <div slot="name">预计付款日</div>
<input slot="content" v-model="saveInfo.lease_start_date" readonly> <input slot="content" v-model="saveInfo.lease_start_date" readonly>
</item> </item>
<item v-if="!isReadOnly" :showArrow="true" @click.native = "periodPull"> <item v-if="!isReadOnly" :showArrow="true" @click.native="periodPull">
<div slot="name">还款周期</div> <div slot="name">还款周期</div>
<input slot="content" v-model="saveInfo.annual_pay_times_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.annual_pay_times_n" readonly placeholder="请选择">
</item> </item>
<item v-if="isReadOnly"> <item v-if="isReadOnly">
<div slot="name">还款周期</div> <div slot="name">还款周期</div>
<input slot="content" v-model="saveInfo.annual_pay_times_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.annual_pay_times_n" readonly placeholder="请选择">
</item> </item>
<item> <item>
<div slot="name">租赁期数</div> <div slot="name">租赁期数</div>
<input slot="content" v-model="saveInfo.lease_times" :readonly="isReadOnly" placeholder="请填写租赁期数" > <input slot="content" v-model="saveInfo.lease_times" :readonly="isReadOnly" placeholder="请填写租赁期数">
</item> </item>
<item> <item>
<div slot="name">年利率</div> <div slot="name">年利率</div>
<input slot="content" v-model="saveInfo.int_rate_n" readonly placeholder="%" > <input slot="content" v-model="saveInfo.int_rate_n" readonly placeholder="%">
</item> </item>
<item v-if="!isReadOnly" :showArrow="true" @click.native="selectPayWay"> <item v-if="!isReadOnly" :showArrow="true" @click.native="selectPayWay">
<div slot="name">支付方式</div> <div slot="name">支付方式</div>
<input slot="content" v-model="saveInfo.pay_type_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.pay_type_n" readonly placeholder="请选择">
</item> </item>
<item v-if="isReadOnly"> <item v-if="isReadOnly">
<div slot="name">支付方式</div> <div slot="name">支付方式</div>
<input slot="content" v-model="saveInfo.pay_type_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.pay_type_n" readonly placeholder="请选择">
</item> </item>
<item> <item>
<div slot="name">逾期日利率</div> <div slot="name">逾期日利率</div>
<input slot="content" v-model="saveInfo.penalty_rate_n" readonly placeholder="%" > <input slot="content" v-model="saveInfo.penalty_rate_n" readonly placeholder="%">
</item> </item>
<item> <item>
<div slot="name">留购价</div> <div slot="name">留购价</div>
<CurrencyInput slot="content" v-model="saveInfo.residual_value" :readonly="isReadOnly" placeholder="请填写留购价" /> <CurrencyInput slot="content" v-model="saveInfo.residual_value" :readonly="isReadOnly" placeholder="请填写留购价"/>
</item> </item>
<item :showArrow="true" @click.native="goPlan"> <item :showArrow="true" @click.native="goPlan">
<div slot="name">查看还款计划</div> <div slot="name">查看还款计划</div>
<input slot="content" readonly > <input slot="content" readonly>
</item> </item>
</list-item> </list-item>
</h-content> </h-content>
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
</h-header> </h-header>
<h-content> <h-content>
<div class="search has-header"> <div class="search has-header">
<input v-model="keyWordProduct" placeholder="请输入产品名称" > <input v-model="keyWordProduct" placeholder="请输入产品名称">
</div> </div>
<div class="division-box"> <div class="division-box">
<scroll ref="scroll" :updateData="[divisionLists]" :pullUp="true" @pullingUp="loadMoreProduct"> <scroll ref="scroll" :updateData="[divisionLists]" :pullUp="true" @pullingUp="loadMoreProduct">
...@@ -191,7 +191,8 @@ ...@@ -191,7 +191,8 @@
</div> </div>
</item> </item>
</list-item> </list-item>
</scroll></div> </scroll>
</div>
</h-content> </h-content>
</h-view> </h-view>
</h-modal> </h-modal>
...@@ -203,14 +204,14 @@ ...@@ -203,14 +204,14 @@
</h-header> </h-header>
<h-content> <h-content>
<div class="search has-header"> <div class="search has-header">
<input v-model="policyKeyWord" placeholder="请输入商务政策名称" > <input v-model="policyKeyWord" placeholder="请输入商务政策名称">
</div> </div>
<scroll ref="scroll" :updateData="[businessLists]" :pullUp="true" @pullingUp="loadMorePolicy"> <scroll ref="scroll" :updateData="[businessLists]" :pullUp="true" @pullingUp="loadMorePolicy">
<div class="division-box"> <div class="division-box">
<section v-for="(item,index) in businessLists" :key="index" @click="selectBusinessPolicy(item)"> <section v-for="(item,index) in businessLists" :key="index" @click="selectBusinessPolicy(item)">
<div class="descript"> <div class="descript">
<img src="@/assets/trial/product.png" alt > <img src="@/assets/trial/product.png" alt>
<p class="produc">{{ item.product_plan_name }}</p> <p class="produc">{{ item.product_plan_name }}</p>
</div> </div>
<div class="tario"> <div class="tario">
...@@ -236,7 +237,8 @@ ...@@ -236,7 +237,8 @@
</div> </div>
</div> </div>
</section> </section>
</div></scroll> </div>
</scroll>
</h-content> </h-content>
</h-view> </h-view>
</h-modal> </h-modal>
...@@ -244,6 +246,7 @@ ...@@ -244,6 +246,7 @@
</template> </template>
<script> <script>
import CurrencyInput from '../../components/currencyInput' import CurrencyInput from '../../components/currencyInput'
export default { export default {
components: { components: {
CurrencyInput, CurrencyInput,
...@@ -270,14 +273,17 @@ export default { ...@@ -270,14 +273,17 @@ export default {
paywayLists: [], // 支付方式 paywayLists: [], // 支付方式
divisionLists: [], divisionLists: [],
productLine: [], // 产品线 productLine: [], // 产品线
productInfo: { /* productInfo: {
project_id: window.localStorage.project_id,
product_id: '',
product_id_n: '',
product_num: '',
}, */
saveInfo: {
project_id: window.localStorage.project_id, project_id: window.localStorage.project_id,
product_id: '', product_id: '',
product_id_n: '', product_id_n: '',
product_num: '', product_num: '',
},
saveInfo: {
project_id: window.localStorage.project_id,
product_plan_id: '', product_plan_id: '',
product_plan_name: '', product_plan_name: '',
equip_price: '', equip_price: '',
...@@ -355,11 +361,12 @@ export default { ...@@ -355,11 +361,12 @@ export default {
vm.pagenum = 1 vm.pagenum = 1
vm.pagenumPolicy = 1 vm.pagenumPolicy = 1
vm.saveInfo['project_id'] = window.localStorage.project_id // 重新赋值,防止缓存 vm.saveInfo['project_id'] = window.localStorage.project_id // 重新赋值,防止缓存
vm.productInfo['project_id'] = window.localStorage.project_id // 重新赋值,防止缓存 // vm.productInfo['project_id'] = window.localStorage.project_id // 重新赋值,防止缓存
if (from.name === 'CreateBaseInfo') { if (from.name === 'CreateBaseInfo') {
vm.isComputed = false vm.isComputed = false
vm.calculeFlag = false vm.calculeFlag = false
vm.salesEnter = vm.$route.params.salesEnter vm.salesEnter = vm.$route.params.salesEnter
vm.bp_agent_id = vm.$route.params.bp_agent_id
vm.saveTed = false vm.saveTed = false
if (vm.fromPage === 'sale') { if (vm.fromPage === 'sale') {
vm.fromList = false vm.fromList = false
...@@ -367,18 +374,17 @@ export default { ...@@ -367,18 +374,17 @@ export default {
vm.fromList = true vm.fromList = true
vm.rentInfoQuery() vm.rentInfoQuery()
} }
console.log('****************** '+JSON.stringify(vm.saveInfo))
Object.keys(vm.saveInfo).forEach(i => { // 置空saveInfo Object.keys(vm.saveInfo).forEach(i => { // 置空saveInfo
if (i !== 'project_id') { if (i !== 'project_id') {
vm.saveInfo[i] = '' vm.saveInfo[i] = ''
} }
}) })
console.log('@@@@@@@@@@@@@@@@@@'+JSON.stringify(vm.saveInfo)) /* console.log('@@@@@@@@@@@@@@@@@@'+JSON.stringify(vm.saveInfo))
Object.keys(vm.productInfo).forEach(i => { // 置空productInfo Object.keys(vm.productInfo).forEach(i => { // 置空productInfo
if (i !== 'project_id') { if (i !== 'project_id') {
vm.productInfo[i] = '' vm.productInfo[i] = ''
} }
}) }) */
setTimeout(() => { setTimeout(() => {
vm.getProductLine() // 产品线查询 vm.getProductLine() // 产品线查询
vm.repayPeriod()// 还款周期查询 vm.repayPeriod()// 还款周期查询
...@@ -427,9 +433,9 @@ export default { ...@@ -427,9 +433,9 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.saveInfo, res.info) Object.assign(vm.saveInfo, res.info)
vm.productInfo.product_num = res.info.product_num /* vm.productInfo.product_num = res.info.product_num
vm.productInfo.product_id = res.info.product_id vm.productInfo.product_id = res.info.product_id
vm.productInfo.product_id_n = res.info.product_id_n vm.productInfo.product_id_n = res.info.product_id_n */
vm.saveInfo.product_plan_name = res.info.product_plan_id_n vm.saveInfo.product_plan_name = res.info.product_plan_id_n
vm.saveInfo.division_n = res.info.product_name vm.saveInfo.division_n = res.info.product_name
} else { } else {
...@@ -456,7 +462,7 @@ export default { ...@@ -456,7 +462,7 @@ export default {
vm.showModalBusiness = false vm.showModalBusiness = false
}, 100) }, 100)
}, },
calculateBack(){ calculateBack () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_lease_info_save' let url = process.env.basePath + 'prj_lease_info_save'
vm.saveInfo.down_payment_ratio = (vm.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2) vm.saveInfo.down_payment_ratio = (vm.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2)
...@@ -469,13 +475,74 @@ export default { ...@@ -469,13 +475,74 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
// vm.isComputed = true // vm.isComputed = true
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
save () { save () {
let vm = this
if (!vm.saveInfo.division_n) {
hlsPopup.showLongCenter('产品线不能为空!')
} else if (!vm.saveInfo.product_id_n) {
hlsPopup.showLongCenter('产品型号不能为空!')
} else if (!vm.saveInfo.product_num) {
hlsPopup.showLongCenter('产品数量不能为空!')
} else if (!vm.saveInfo.product_plan_name) {
hlsPopup.showLongCenter('商务政策不能为空!')
} else if (!vm.saveInfo.equip_price) {
hlsPopup.showLongCenter('设备单价不能为空!')
} else if (!vm.saveInfo.down_payment_ratio_n) {
hlsPopup.showLongCenter('首付比例不能为空!')
} else if (!vm.saveInfo.down_payment) {
hlsPopup.showLongCenter('首付款不能为空!')
} else if (!vm.saveInfo.deposit_ratio_n) {
hlsPopup.showLongCenter('保证金比例不能为空!')
} else if (!vm.saveInfo.deposit) {
hlsPopup.showLongCenter('保证金不能为空!')
} else if (!vm.saveInfo.lease_charge_ratio_n) {
hlsPopup.showLongCenter('手续费比例不能为空!')
} else if (!vm.saveInfo.lease_charge) {
hlsPopup.showLongCenter('手续费不能为空!')
} else if (!vm.saveInfo.gps_fee) {
hlsPopup.showLongCenter('GPS费用不能为空!')
} else if (!vm.saveInfo.insurance_fee) {
hlsPopup.showLongCenter('保险押金不能为空!')
} else if (!vm.saveInfo.lease_start_date) {
hlsPopup.showLongCenter('预计付款日不能为空!')
} else if (!vm.saveInfo.annual_pay_times_n) {
hlsPopup.showLongCenter('还款周期不能为空!')
} else if (!vm.saveInfo.lease_times) {
hlsPopup.showLongCenter('租赁期数不能为空!')
} else if (!vm.saveInfo.pay_type_n) {
hlsPopup.showLongCenter('支付方式不能为空!')
} else if (!vm.saveInfo.residual_value) {
hlsPopup.showLongCenter('留购价不能为空!')
} else {
let url = process.env.basePath + 'prj_lease_info_save'
vm.saveInfo.down_payment_ratio = (vm.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2)
vm.saveInfo.lease_charge_ratio = (vm.saveInfo.lease_charge_ratio_n.replace('%', '') / 100).toFixed(2)
vm.saveInfo.deposit_ratio = (vm.saveInfo.deposit_ratio_n.replace('%', '') / 100).toFixed(2)
vm.saveInfo.finance_amount = vm.finance_amount
let param = {
master: vm.saveInfo,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.isComputed = true
vm.calculeFlag = true
hlsPopup.showLongCenter('计算成功')
vm.goPlan()
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
},
saveBack () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_lease_info_save' let url = process.env.basePath + 'prj_lease_info_save'
vm.saveInfo.down_payment_ratio = (vm.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2) vm.saveInfo.down_payment_ratio = (vm.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2)
...@@ -486,30 +553,6 @@ export default { ...@@ -486,30 +553,6 @@ export default {
master: vm.saveInfo, master: vm.saveInfo,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.isComputed = true
vm.calculeFlag = true
hlsPopup.showLongCenter('计算成功')
vm.goPlan()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
saveBack () {
let vm = this
vm.calculateBack() // 保存融资信息
let url = process.env.basePath + 'prj_product_info_save'
let param = {
master: {
division_n: vm.saveInfo.division_n,
bp_name: vm.$route.params.bp_name,
...vm.productInfo,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
...@@ -525,37 +568,90 @@ export default { ...@@ -525,37 +568,90 @@ export default {
if (vm.isReadOnly) { if (vm.isReadOnly) {
vm.$router.push({ vm.$router.push({
name: 'CreateEnclosureInfo', name: 'CreateEnclosureInfo',
// vm.$router.push({
// name: 'CreateEnclosureInfo',
// })
}) })
} else { } else {
if (vm.isComputed) { if (vm.isComputed) {
let url = process.env.basePath + 'prj_product_info_save' vm.saveTed = true
let param = { vm.$router.push({
master: { name: 'CreateEnclosureInfo',
division_n: vm.saveInfo.division_n,
bp_name: vm.$route.params.bp_name,
...vm.productInfo,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.saveTed = true
vm.$router.push({
name: 'CreateEnclosureInfo',
})
} else {
hlsPopup.showLongCenter(res.message)
}
}) })
} else { } else {
hlsPopup.showLongCenter('请先进行计算') hlsPopup.showLongCenter('请先进行计算')
} }
} }
}, },
// next () {
// let vm = this
// if (vm.isReadOnly) {
// vm.$router.push({
// name: 'CreateEnclosureInfo',
// // vm.$router.push({
// // name: 'CreateEnclosureInfo',
// // })
// })
// } else {
// if (vm.isComputed) {
// let url = process.env.basePath + 'prj_product_info_save'
// let param = {
// master: {
// division_n: vm.saveInfo.division_n,
// bp_name: vm.$route.params.bp_name,
// ...vm.productInfo,
// },
// }
// hlsPopup.showLoading('请稍候')
// vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// vm.saveTed = true
// vm.$router.push({
// name: 'CreateEnclosureInfo',
// })
// } else {
// hlsPopup.showLongCenter(res.message)
// }
// })
// } else {
// hlsPopup.showLongCenter('请先进行计算')
// }
// }
// },
/* next () {
let vm = this
if (vm.isReadOnly) {
vm.$router.push({
name: 'CreateEnclosureInfo',
// vm.$router.push({
// name: 'CreateEnclosureInfo',
// })
})
} else {
if (vm.isComputed) {
let url = process.env.basePath + 'prj_product_info_save'
let param = {
master: {
division_n: vm.saveInfo.division_n,
bp_name: vm.$route.params.bp_name,
...vm.productInfo,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.saveTed = true
vm.$router.push({
name: 'CreateEnclosureInfo',
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
} else {
hlsPopup.showLongCenter('请先进行计算')
}
}
}, */
showTime (format) { // 预计付款日 showTime (format) { // 预计付款日
let vm = this let vm = this
hlsPopup.showTime({ hlsPopup.showTime({
...@@ -643,12 +739,12 @@ export default { ...@@ -643,12 +739,12 @@ export default {
vm.pagenumSearchPolicy = 1 vm.pagenumSearchPolicy = 1
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = let url =
process.env.basePath + process.env.basePath +
'prj_product_plan_query' + 'prj_product_plan_query' +
'&index' + '&index' +
`'${randomString}'` `'${randomString}'`
let param = { let param = {
bp_agent_id: vm.$route.params.bp_agent_id, bp_agent_id: vm.bp_agent_id,
pagesize: 10, pagesize: 10,
pagenum: vm.pagenumSearchPolicy, pagenum: vm.pagenumSearchPolicy,
searchInput: vm.policyKeyWord, searchInput: vm.policyKeyWord,
...@@ -683,12 +779,12 @@ export default { ...@@ -683,12 +779,12 @@ export default {
vm.pagenumPolicy = 1 vm.pagenumPolicy = 1
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = let url =
process.env.basePath + process.env.basePath +
'prj_product_plan_query' + 'prj_product_plan_query' +
'&index' + '&index' +
`'${randomString}'` `'${randomString}'`
let param = { let param = {
bp_agent_id: vm.$route.params.bp_agent_id, bp_agent_id: vm.bp_agent_id,
pagesize: 10, pagesize: 10,
pagenum: vm.pagenumPolicy, pagenum: vm.pagenumPolicy,
searchInput: vm.policyKeyWord, searchInput: vm.policyKeyWord,
...@@ -721,8 +817,8 @@ export default { ...@@ -721,8 +817,8 @@ export default {
}, },
selectProduct (e) { selectProduct (e) {
let vm = this let vm = this
this.productInfo.product_id_n = e.product_name this.saveInfo.product_id_n = e.product_name
this.productInfo.product_id = e.product_id this.saveInfo.product_id = e.product_id
setTimeout(() => { setTimeout(() => {
vm.showModalValue = false vm.showModalValue = false
}, 100) }, 100)
...@@ -740,10 +836,10 @@ export default { ...@@ -740,10 +836,10 @@ export default {
vm.pagenumSearch = 1 vm.pagenumSearch = 1
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = let url =
process.env.basePath + process.env.basePath +
'prd_product_list' + 'prd_product_list' +
'&index' + '&index' +
`'${randomString}'` `'${randomString}'`
let param = { let param = {
division: vm.saveInfo.division, division: vm.saveInfo.division,
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
...@@ -784,11 +880,11 @@ export default { ...@@ -784,11 +880,11 @@ export default {
vm.showModalValue = true vm.showModalValue = true
let randomString = Math.floor(Math.random() * 21) let randomString = Math.floor(Math.random() * 21)
let url = let url =
process.env.basePath + process.env.basePath +
'prd_product_list' + 'prd_product_list' +
'&index' + '&index' +
`'${randomString}'` `'${randomString}'`
console.log('++++++++++++++++++++ '+vm.saveInfo.division) console.log('++++++++++++++++++++ ' + vm.saveInfo.division)
let param = { let param = {
division: vm.saveInfo.division, division: vm.saveInfo.division,
user_phone: window.localStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
...@@ -827,8 +923,8 @@ export default { ...@@ -827,8 +923,8 @@ export default {
}, },
selectProductLine (e) { selectProductLine (e) {
let vm = this let vm = this
vm.productInfo.product_id = '' vm.saveInfo.product_id = ''
vm.productInfo.product_id_n = '' vm.saveInfo.product_id_n = ''
vm.hlsPopup.selectList({ vm.hlsPopup.selectList({
list: vm.productLine, list: vm.productLine,
code: 'bp_type', code: 'bp_type',
...@@ -843,7 +939,7 @@ export default { ...@@ -843,7 +939,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'prj_product_division' let url = process.env.basePath + 'prj_product_division'
let param = { let param = {
bp_agent_id: vm.$route.params.bp_agent_id, bp_agent_id: vm.bp_agent_id,
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
...@@ -862,7 +958,7 @@ export default { ...@@ -862,7 +958,7 @@ export default {
this.$router.push({ this.$router.push({
name: 'ContractRepayPlan', name: 'ContractRepayPlan',
params: { params: {
product_num: this.productInfo.product_num, product_num: this.saveInfo.product_num,
project_id: window.localStorage.project_id, project_id: window.localStorage.project_id,
}, },
}) })
...@@ -872,346 +968,379 @@ export default { ...@@ -872,346 +968,379 @@ export default {
name: 'CreateEnclosureInfo', name: 'CreateEnclosureInfo',
}) })
}, },
}, }
,
} }
</script> </script>
<style lang="less"> <style lang="less">
#create-rent-info { #create-rent-info {
input{ input {
color:#333; color: #333;
} }
input::placeholder{
color: #666;
}
.flow {
z-index: 999;
}
.hls-list-item {
margin-bottom: 0px !important;
}
.h-header-right {
display: flex;
align-items: center;
}
#businuss-list {
.search {
background-color: #fff;
padding: 8px 12px;
width: 100%;
height: 1.02rem;
z-index: 100;
margin-bottom: 8px;
input {
background: url("../../assets/contractStart/search1.png") 320px
no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height: 36px;
line-height: 36px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
input::placeholder { input::placeholder {
font-family: PingFangSC-Regular; color: #666;
font-size: 14px; }
color: #888c8f;
letter-spacing: 0;
}
input:focus { .flow {
background: url("../../assets/contractStart/search2.png") 320px z-index: 999;
no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
}
} }
.descript {
width: 100%; .hls-list-item {
height: 44px; margin-bottom: 0px !important;
}
.h-header-right {
display: flex; display: flex;
flex-direction: row; align-items: center;
background: #fff; }
img { #businuss-list {
width: 30px; .search {
height: 30px; background-color: #fff;
margin-left: 10px; padding: 8px 12px;
margin-top: 8px; width: 100%;
// margin-right: 8px; height: 1.02rem;
} z-index: 100;
margin-bottom: 8px;
.linkPic { input {
width: 16px; background: url("../../assets/contractStart/search1.png") 320px no-repeat;
height: 16px; background-size: 16px 16px;
margin-top: 15px; background-color: rgba(239, 239, 239, 0.55);
margin-left: -7px; padding-left: 12px;
margin-right: 10px; height: 36px;
line-height: 36px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
input::placeholder {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
letter-spacing: 0;
}
input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
}
} }
.produc { .descript {
width: 100%;
height: 44px; height: 44px;
display: flex; display: flex;
flex: 1; flex-direction: row;
font-size: 15px; background: #fff;
color: #4b4a4b;
line-height: 44px;
font-weight: 500;
letter-spacing: 0;
margin-left: 10px;
font-family: PingFangSC-Semibold;
border-bottom: 1px solid #f3f3f7;
}
}
.tario {
width: 100%;
height: 60px;
position: relative;
background: #fff;
// margin-bottom: 8px;
.wrap:nth-of-type(1) {
height: 60px;
position: absolute;
left: 50px;
}
.wrap:nth-of-type(2) { img {
height: 60px; width: 30px;
position: absolute; height: 30px;
right: 30px; margin-left: 10px;
} margin-top: 8px;
// margin-right: 8px;
}
p { .linkPic {
height: 30px; width: 16px;
line-height: 30px; height: 16px;
font-family: PingFangSC-Regular; margin-top: 15px;
font-size: 13px; margin-left: -7px;
color: rgba(56, 63, 69, 0.6); margin-right: 10px;
}
span:nth-of-type(2) { .produc {
margin-left: 16px; height: 44px;
color: rgb(56, 63, 69); display: flex;
flex: 1;
font-size: 15px;
color: #4b4a4b;
line-height: 44px;
font-weight: 500;
letter-spacing: 0;
margin-left: 10px;
font-family: PingFangSC-Semibold;
border-bottom: 1px solid #f3f3f7;
} }
} }
}
} .tario {
#product-list {
.hls-list-item {
border-radius: 4px;
}
.item-pic {
width: 100px;
//height: 110px;
img {
width: 100%;
height: 100%;
}
}
.item-content {
width: 100%;
margin-left: 20px;
.pro-name {
height: 42px;
width: 100%; width: 100%;
height: 60px;
position: relative; position: relative;
border-bottom: 1px solid #f3f3f7; background: #fff;
.arrow { // margin-bottom: 8px;
.wrap:nth-of-type(1) {
height: 60px;
position: absolute; position: absolute;
width: 16px; left: 50px;
height: 16px;
right: 0;
top: 13px;
} }
.wrap:nth-of-type(2) {
height: 60px;
position: absolute;
right: 30px;
}
p { p {
height: 30px;
line-height: 30px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56, 63, 69, 0.6);
span:nth-of-type(2) {
margin-left: 16px;
color: rgb(56, 63, 69);
}
}
}
}
#product-list {
.hls-list-item {
border-radius: 4px;
}
.item-pic {
width: 100px;
//height: 110px;
img {
width: 100%;
height: 100%;
}
}
.item-content {
width: 100%;
margin-left: 20px;
.pro-name {
height: 42px; height: 42px;
line-height: 42px; width: 100%;
position: relative;
border-bottom: 1px solid #f3f3f7;
.arrow {
position: absolute;
width: 16px;
height: 16px;
right: 0;
top: 13px;
}
p {
height: 42px;
line-height: 42px;
font-family: PingFangSC-Semibold;
font-size: 15px;
color: #4b4a4b;
letter-spacing: 0;
font-weight: 600;
}
}
.centers {
font-family: PingFangSC-Semibold; font-family: PingFangSC-Semibold;
font-size: 15px; font-size: 13px;
color: #4b4a4b; color: rgba(56, 63, 69, 0.6);
letter-spacing: 0; letter-spacing: 0.5px;
font-weight: 600; display: flex;
flex-direction: row;
margin-top: 8px;
.firsts1 {
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56, 63, 69, 0.6);
}
.seconds1 {
width: 70%;
margin-left: 16px;
height: auto;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #4b4a4b;
}
} }
} }
.centers { .item {
font-family: PingFangSC-Semibold; width: 359px;
font-size: 13px; margin: 0 auto;
color: rgba(56, 63, 69, 0.6); }
letter-spacing: 0.5px;
display: flex; .search {
flex-direction: row; background-color: #fff;
margin-top: 8px; padding: 8px 12px;
.firsts1 { width: 100%;
width: 60px; height: 1.02rem;
height: 17px; z-index: 100;
margin-bottom: 8px;
input {
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height: 36px;
line-height: 36px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 14px;
color: rgba(56, 63, 69, 0.6); color: #888c8f;
} }
.seconds1 {
width: 70%; input::placeholder {
margin-left: 16px;
height: auto;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 14px;
color: #4b4a4b; color: #888c8f;
letter-spacing: 0;
}
input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
} }
} }
} }
.item {
width: 359px; .date-check {
margin: 0 auto; background: url("../../assets/trial/date.png") 350px no-repeat;
background-size: 16px 16px;
padding-right: 15px;
} }
.search {
background-color: #fff; .hint-info {
padding: 8px 12px;
width: 100%; width: 100%;
height: 1.02rem; height: 36px;
z-index: 100; font-family: PingFangSC-Regular;
margin-bottom: 8px; font-size: 14px;
input { color: #fcc800;
background: url("../../assets/contractStart/search1.png") 320px letter-spacing: 0.5px;
no-repeat; background-color: #faf5e0;
background-size: 16px 16px; display: flex;
background-color: rgba(239, 239, 239, 0.55); align-items: center;
padding-left: 12px;
height: 36px; img {
line-height: 36px; width: 16px;
border-radius: 4px; height: 16px;
width: 100%; margin-left: 17px;
font-family: PingFangSC-Regular; margin-right: 17px;
font-size: 14px;
color: #888c8f;
} }
}
input::placeholder { .add-box {
font-family: PingFangSC-Regular; .before {
font-size: 14px; border: 1px solid #fdb62f;
color: #888c8f; border-radius: 4px;
letter-spacing: 0; color: #fdb62f;
} }
input:focus { .next {
background: url("../../assets/contractStart/search2.png") 320px background: #1d3fff;
no-repeat; border-radius: 4px;
background-size: 16px 16px; color: #fff;
background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
} }
} }
}
.date-check { .userInfo:first-of-type {
background: url("../../assets/trial/date.png") 350px no-repeat; margin-top: 10px;
background-size: 16px 16px;
padding-right: 15px;
}
.hint-info {
width: 100%;
height: 36px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #fcc800;
letter-spacing: 0.5px;
background-color: #faf5e0;
display: flex;
align-items: center;
img {
width: 16px;
height: 16px;
margin-left: 17px;
margin-right: 17px;
}
}
.add-box {
.before {
border: 1px solid #fdb62f;
border-radius: 4px;
color: #fdb62f;
}
.next {
background: #1d3fff;
border-radius: 4px;
color: #fff;
} }
}
.userInfo:first-of-type { .userInfo {
margin-top: 10px; height: 40px;
} line-height: 40px;
.userInfo { color: @headerColor;
height: 40px; // margin-top: -10px;
line-height: 40px; font-size: 15px;
color: @headerColor; margin-left: 16px;
// margin-top: -10px; position: relative;
font-size: 15px;
margin-left: 16px;
position: relative;
}
.userInfo::before {
content: "";
display: block;
width: 4px;
height: 20px;
background-color: @headerColor;
position: absolute;
left: -15px;
top: 12px;
}
.top {
width: 100%;
height: 81px;
background-color: #faf5e0;
display: flex;
justify-content: center;
align-items: center;
.line {
display: inline-block;
width: 78px;
border-top: 1px solid #a4a4a4;
margin-bottom: 18px;
} }
.line:nth-of-type(1) {
border-top: 1px solid #ffa000; .userInfo::before {
content: "";
display: block;
width: 4px;
height: 20px;
background-color: @headerColor;
position: absolute;
left: -15px;
top: 12px;
} }
.item {
.top {
width: 100%;
height: 81px;
background-color: #faf5e0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-flow: column wrap;
font-family: PingFangSC-Semibold; .line {
font-size: 12px; display: inline-block;
color: rgba(56, 63, 69, 0.5); width: 78px;
letter-spacing: 0.43px; border-top: 1px solid #a4a4a4;
img { margin-bottom: 18px;
width: 18px;
} }
span {
display: block; .line:nth-of-type(1) {
text-align: center; border-top: 1px solid #ffa000;
line-height: 18px;
border-radius: 50%;
width: 18px;
height: 18px;
color: #fff;
background: #a4a4a4;
} }
p {
margin-top: 10px; .item {
display: flex;
justify-content: center;
align-items: center;
flex-flow: column wrap;
font-family: PingFangSC-Semibold;
font-size: 12px;
color: rgba(56, 63, 69, 0.5);
letter-spacing: 0.43px;
img {
width: 18px;
}
span {
display: block;
text-align: center;
line-height: 18px;
border-radius: 50%;
width: 18px;
height: 18px;
color: #fff;
background: #a4a4a4;
}
p {
margin-top: 10px;
}
} }
}
.item:not(:nth-of-type(3)) { .item:not(:nth-of-type(3)) {
font-family: PingFangSC-Semibold; font-family: PingFangSC-Semibold;
font-size: 12px; font-size: 12px;
color: rgba(56, 63, 69, 0.5); color: rgba(56, 63, 69, 0.5);
letter-spacing: 0.43px; letter-spacing: 0.43px;
span {
background-color: #ffa000; span {
background-color: #ffa000;
}
} }
} }
} }
}
</style> </style>
...@@ -406,6 +406,7 @@ export default { ...@@ -406,6 +406,7 @@ export default {
}) })
vm.selectUdertake = [] vm.selectUdertake = []
setTimeout(() => { setTimeout(() => {
vm.getSaveInfo()
vm.getBaseInfo() vm.getBaseInfo()
}, 0) }, 0)
} else if (from.name === 'ContractCreateList' && vm.status === 'false') { } else if (from.name === 'ContractCreateList' && vm.status === 'false') {
...@@ -445,7 +446,7 @@ export default { ...@@ -445,7 +446,7 @@ export default {
} }
}, },
}) })
} else{ } else {
vm.$routeGo() vm.$routeGo()
} }
}, },
...@@ -460,6 +461,7 @@ export default { ...@@ -460,6 +461,7 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.saveInfo, res.info) Object.assign(vm.saveInfo, res.info)
vm.selectUdertake = res.lists
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -531,9 +533,17 @@ export default { ...@@ -531,9 +533,17 @@ export default {
name: 'CreateRentInfo', name: 'CreateRentInfo',
params: { params: {
bp_agent_id: vm.bp_agent_id, bp_agent_id: vm.bp_agent_id,
salesEnter: vm.salesEnter salesEnter: vm.salesEnter,
}, },
}) })
} else if (!vm.saveInfo.np_industry_exp_n) {
hlsPopup.showLongCenter('行业情况不能为空!')
} else if (!vm.saveInfo.np_occupation_n) {
hlsPopup.showLongCenter('职业情况不能为空!')
} else if (!vm.saveInfo.house_type_n) {
hlsPopup.showLongCenter('房产信息不能为空!')
} else if (!vm.saveInfo.equip_value) {
hlsPopup.showLongCenter('设备价值不能为空!')
} else { } else {
let url = process.env.basePath + 'prj_base_info_save' let url = process.env.basePath + 'prj_base_info_save'
let param = { let param = {
...@@ -549,7 +559,7 @@ export default { ...@@ -549,7 +559,7 @@ export default {
params: { params: {
bp_agent_id: vm.bp_agent_id, bp_agent_id: vm.bp_agent_id,
bp_name: vm.NPBaseInfo.bp_name, bp_name: vm.NPBaseInfo.bp_name,
salesEnter: vm.salesEnter salesEnter: vm.salesEnter,
}, },
}) })
} else { } else {
......
...@@ -506,6 +506,7 @@ export default { ...@@ -506,6 +506,7 @@ export default {
let url = process.env.basePath + 'prj_project_submit' let url = process.env.basePath + 'prj_project_submit'
let param = { let param = {
project_id: window.localStorage.project_id, project_id: window.localStorage.project_id,
phone:window.localStorage.getItem('user_phone'),
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
......
...@@ -442,14 +442,26 @@ export default { ...@@ -442,14 +442,26 @@ export default {
// 销售信息保存 // 销售信息保存
confirmCreate () { confirmCreate () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_sales_info_save' if (!vm.lessee) {
window.localStorage.setItem('bp_id_tenant', this.salesInfo.bp_id_tenant) hlsPopup.showLongCenter('请选择承租人!')
let param = { } else if (!vm.business) {
master: vm.salesInfo, hlsPopup.showLongCenter('业务类型不能为空!')
} } else if (!vm.sales) {
if (!this.lessee) { hlsPopup.showLongCenter('销售人员不能为空!')
hlsPopup.showLongCenter('请选择承租人') } else if (!vm.office_name) {
hlsPopup.showLongCenter('办事处不能为空!')
} else if (!vm.factory_name) {
hlsPopup.showLongCenter('主机厂不能为空!')
} else if (!vm.manu_manager) {
hlsPopup.showLongCenter('主机厂业务员不能为空!')
} else if (!vm.salesInfo.dates) {
hlsPopup.showLongCenter('签约日期不能为空!')
} else { } else {
let url = process.env.basePath + 'prj_sales_info_save'
window.localStorage.setItem('bp_id_tenant', this.salesInfo.bp_id_tenant)
let param = {
master: vm.salesInfo,
}
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
<div class="center"> <div class="center">
<div><span>合同金额</span><p>{{ item.total_price|currency }}</p></div> <div><span>合同金额</span><p>{{ item.total_price|currency }}</p></div>
<div><span>已还金额</span><p class="bold">{{ item.recivied_amount|currency }}</p></div> <div><span>已还金额</span><p class="bold">{{ item.received_amount|currency }}</p></div>
<span v-if="item.overdue_status==='已逾期'" class="red">已逾期</span> <span v-if="item.overdue_status==='已逾期'" class="red">已逾期</span>
<section @click="toRepayDetails(item)"> <section @click="toRepayDetails(item)">
<img src="@/assets/contractRepayment/view.png" alt=""> <img src="@/assets/contractRepayment/view.png" alt="">
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
</h-view> </h-view>
</h-modal> </h-modal>
<!--活体检测--> <!--活体检测-->
<body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id"></body-check> <body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id"/>
</h-view> </h-view>
</template> </template>
...@@ -418,7 +418,6 @@ export default { ...@@ -418,7 +418,6 @@ export default {
vm.getLease() vm.getLease()
vm.getGuarantor() vm.getGuarantor()
vm.getContractLists() // 合同列表 vm.getContractLists() // 合同列表
vm.signCheck() // 签约校验
} else if (from.name === 'EntryInfo') { } else if (from.name === 'EntryInfo') {
vm.bankCardQuery() vm.bankCardQuery()
} }
...@@ -444,19 +443,21 @@ export default { ...@@ -444,19 +443,21 @@ export default {
}, */ }, */
methods: { methods: {
// 签约校验 // 签约校验
signCheck () { async signCheck () {
let vm = this let vm = this
let url = process.env.basePath + 'sign_check' let url = process.env.basePath + 'sign_check'
let param = { let param = {
confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
data_class: 'PRJ_PROJECT',
}
vm.hlsPopup.showLoading('请稍后!')
let res = vm.hlsHttp.post(url, param)
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
return true
} else {
// vm.hlsPopup.showLongCenter(res.message)
} }
vm.hlsHttp.post(url, param).then(function (res) {
if (res.result === 'E') {
vm.signCheckFlag = false
} else {
vm.signCheckFlag = true
}
})
}, },
// 征信查询 // 征信查询
creditCheck () { creditCheck () {
...@@ -478,13 +479,13 @@ export default { ...@@ -478,13 +479,13 @@ export default {
}, },
goBodyCheck (confirm_id) { // 活体检测 goBodyCheck (confirm_id) { // 活体检测
this.$refs.body.show() this.$refs.body.show()
/* this.$router.push({ /* this.$router.push({
name: 'BodyCheck', name: 'BodyCheck',
params: { params: {
check_id: this.$route.params.check_id, check_id: this.$route.params.check_id,
confirm_id: confirm_id, confirm_id: confirm_id,
}, },
})*/ }) */
}, },
/* goElectronicSign () { // 电子签 /* goElectronicSign () { // 电子签
let vm = this let vm = this
...@@ -524,11 +525,15 @@ export default { ...@@ -524,11 +525,15 @@ export default {
}, },
takePhonto () { takePhonto () {
let vm = this let vm = this
hlsPopup.showPopup({ hlsPopup.showConfirm({
title: '提示', title: '提示',
content: `请自拍一张`, content: '请自拍一张',
onConfirm: () => { onConfirm: function (index) {
vm.takePhontoOpenCamera() if (index === 1) {
vm.takePhontoOpenCamera()
} else {
}
}, },
}) })
}, },
...@@ -629,7 +634,7 @@ export default { ...@@ -629,7 +634,7 @@ export default {
// 进入活体检测页面 // 进入活体检测页面
vm.goBodyCheck(vm.confirm_id) vm.goBodyCheck(vm.confirm_id)
}, },
})*/ }) */
}, },
// 确认签约逻辑 // 确认签约逻辑
doConfirm (status) { doConfirm (status) {
...@@ -852,15 +857,14 @@ export default { ...@@ -852,15 +857,14 @@ export default {
}, },
}) })
}, },
inSure () { async inSure () {
if (this.signCheckFlag) { // 只有认证通过后方可进行签约操作 let flag = await this.signCheck()
if (flag) { // 只有认证通过后方可进行签约操作
if (!this.bank_flag && this.abc_deduction_flag === 'Y') { if (!this.bank_flag && this.abc_deduction_flag === 'Y') {
this.isshow = true // 未查到农行卡给出提示且勾选农行代扣 this.isshow = true // 未查到农行卡给出提示且勾选农行代扣
} else { } else {
this.showModalValue = true // 审批内容框显示 this.showModalValue = true // 审批内容框显示
} }
} else {
hlsPopup.showLongCenter('请先进行认证')
} }
}, },
......
...@@ -253,7 +253,6 @@ export default { ...@@ -253,7 +253,6 @@ export default {
vm.getGuarantor() vm.getGuarantor()
} }
vm.getLease() vm.getLease()
vm.signCheck() // 签约校验
} else if (from.name === 'ContractContent') { } else if (from.name === 'ContractContent') {
vm.tabNum = 2 vm.tabNum = 2
vm.agentPic = vm.readed vm.agentPic = vm.readed
...@@ -263,19 +262,21 @@ export default { ...@@ -263,19 +262,21 @@ export default {
created () {}, created () {},
methods: { methods: {
// 签约校验 // 签约校验
signCheck () { async signCheck () {
let vm = this let vm = this
let url = process.env.basePath + 'sign_check' let url = process.env.basePath + 'sign_check'
let param = { let param = {
confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
data_class: 'PRJ_PROJECT',
}
vm.hlsPopup.showLoading('请稍后!')
let res = vm.hlsHttp.post(url, param)
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
return true
} else {
// vm.hlsPopup.showLongCenter(res.message)
} }
vm.hlsHttp.post(url, param).then(function (res) {
if (res.result === 'E') {
vm.signCheckFlag = false
} else {
vm.signCheckFlag = true
}
})
}, },
goBodyCheck (confirm_id) { // 活体检测 goBodyCheck (confirm_id) { // 活体检测
this.$refs.body.show() this.$refs.body.show()
...@@ -310,9 +311,10 @@ export default { ...@@ -310,9 +311,10 @@ export default {
}) })
}, */ }, */
// 签约确认 // 签约确认
contractConfirm () { async contractConfirm () {
let vm = this let vm = this
if (this.signCheckFlag) { // 只有认证通过后方可进行签约操作 let flag = await this.signCheck()
if (flag) { // 只有认证通过后方可进行签约操作
this.hlsPopup.showConfirm({ this.hlsPopup.showConfirm({
title: '提示', title: '提示',
content: '您确认签约吗?', content: '您确认签约吗?',
...@@ -322,18 +324,20 @@ export default { ...@@ -322,18 +324,20 @@ export default {
} }
}, },
}) })
} else {
hlsPopup.showLongCenter('请先进行认证')
} }
}, },
takePhonto () { takePhonto () {
let vm = this let vm = this
hlsPopup.showPopup({ hlsPopup.showConfirm({
title: '提示', title: '提示',
content: `请自拍一张`, content: '请自拍一张',
onConfirm: () => { onConfirm: function (index) {
vm.takePhontoOpenCamera() if (index === 1) {
vm.takePhontoOpenCamera()
} else {
}
}, },
}) })
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" > <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
<span>合同记录</span> <span>首付还款明细</span>
</div> </div>
</h-header> </h-header>
<div class="my-content" style="margin-top:-1px"> <div class="my-content" style="margin-top:-1px">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" > <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
<span>合同记录</span> <span>租金还款明细</span>
</div> </div>
</h-header> </h-header>
<div style="margin-top:-1px;"> <div style="margin-top:-1px;">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="goHome" > <img src="@/assets/userBind/arrow.png" @click="goHome" >
<span>还款明细</span> <span>租金还款</span>
</div> </div>
</h-header> </h-header>
<h-content style="margin-top:-1px;"> <h-content style="margin-top:-1px;">
......
...@@ -729,12 +729,12 @@ export default { ...@@ -729,12 +729,12 @@ export default {
}, },
async saveWord () { async saveWord () {
let vm = this let vm = this
debugger
if (!vm.baseInfo.bp_type) { if (!vm.baseInfo.bp_type) {
vm.hlsPopup.showLongCenter('客户类型不能为空!') vm.hlsPopup.showLongCenter('客户类型不能为空!')
} else if (vm.isSelected && vm.isPaople && !vm.baseInfo.agent_username) { } else if (vm.isPaople && !vm.baseInfo.agent_username) {
vm.hlsPopup.showLongCenter('业务经办员工代码不能为空!') vm.hlsPopup.showLongCenter('业务经办员工代码不能为空!')
} else if ( } else if (
vm.isSelected &&
!vm.isPaople && !vm.isPaople &&
!vm.baseInfo.business_license_num !vm.baseInfo.business_license_num
) { ) {
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"></script><title>徐工融租</title><link href=./static/css/app.891dc19da1733fc7db7071712cea81e0.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.e547499500fbe65e7169.js></script><script type=text/javascript src=./static/js/app.2ea5061d831d7ce89173.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"></script><title>徐工融租</title><link href=./static/css/app.f077e854a2ebf290d10566b0c484f558.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.e547499500fbe65e7169.js></script><script type=text/javascript src=./static/js/app.4208bb23106267f01494.js></script></body></html>
\ No newline at end of file \ No newline at end of file
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