Commit a9ff1ebf authored by linxin's avatar linxin

解决冲突

parents d532419e 4948fad9
Pipeline #4455 canceled with stages
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<br >证件号 <br >证件号
</div> </div>
<div slot="content"> <div slot="content">
<input v-model="item.bp_name" placeholder="暂无信息" readonly > <input v-model="item.bp_guta_name" placeholder="暂无信息" readonly >
<input v-model="item.id_card_no" placeholder="暂无信息" readonly > <input v-model="item.id_card_no" placeholder="暂无信息" readonly >
</div> </div>
</item> </item>
......
...@@ -26,23 +26,23 @@ ...@@ -26,23 +26,23 @@
<div class="userInfo">租赁产品</div> <div class="userInfo">租赁产品</div>
<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" class="required">产品线</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" class="required">产品线</div>
<input slot="content" v-model="saveInfo.division_n" readonly> <input slot="content" v-model="saveInfo.division_n" readonly>
</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" class="required">产品型号</div>
<input slot="content" v-model="saveInfo.product_id_n" readonly placeholder="请选择"> <input slot="content" v-model="saveInfo.product_id_n" readonly placeholder="请选择">
</item> </item>
<item v-if="isReadOnly"> <item v-if="isReadOnly">
<div slot="name">产品型号</div> <div slot="name" class="required">产品型号</div>
<input slot="content" v-model="saveInfo.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" class="required">产品数量</div>
<input slot="content" v-model="saveInfo.product_num" :readonly="isReadOnly" placeholder="请输入产品数量"> <input slot="content" v-model="saveInfo.product_num" :readonly="isReadOnly" placeholder="请输入产品数量">
</item> </item>
</list-item> </list-item>
...@@ -52,97 +52,97 @@ ...@@ -52,97 +52,97 @@
</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" class="required">商务政策</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" class="required">商务政策</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" class="required">设备单价</div>
<CurrencyInput slot="content" v-model="saveInfo.equip_price" :readonly="isReadOnly" placeholder="请输入设备单价"/> <CurrencyInput slot="content" v-model="saveInfo.equip_price" :readonly="isReadOnly" placeholder="请输入设备单价"/>
</item> </item>
<item> <item>
<div slot="name">融资金额</div> <div slot="name" class="required">融资金额</div>
<CurrencyInput slot="content" v-model="finance_amount" :readonly="isReadOnly" placeholder="请输入融资信息"/> <CurrencyInput slot="content" v-model="finance_amount" :readonly="isReadOnly" placeholder="请输入融资信息"/>
</item> </item>
<item> <item>
<div slot="name">首付比例</div> <div slot="name" class="required">首付比例</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" class="required">首付款</div>
<CurrencyInput <CurrencyInput
slot="content" v-model="saveInfo.down_payment" :readonly="isReadOnly" placeholder="请输入首付款" slot="content" v-model="saveInfo.down_payment" :readonly="isReadOnly" placeholder="请输入首付款"
@input="changeRatio"/> @input="changeRatio"/>
</item> </item>
<item> <item>
<div slot="name">保证金比例</div> <div slot="name" class="required">保证金比例</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" class="required">保证金</div>
<CurrencyInput <CurrencyInput
slot="content" v-model="saveInfo.deposit" :readonly="isReadOnly" placeholder="请输入保证金" slot="content" v-model="saveInfo.deposit" :readonly="isReadOnly" placeholder="请输入保证金"
@input="changeDeposit"/> @input="changeDeposit"/>
</item> </item>
<item> <item>
<div slot="name">手续费比例</div> <div slot="name" class="required">手续费比例</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" class="required">手续费</div>
<CurrencyInput <CurrencyInput
slot="content" v-model="saveInfo.lease_charge" :readonly="isReadOnly" placeholder="请输入手续费" slot="content" v-model="saveInfo.lease_charge" :readonly="isReadOnly" placeholder="请输入手续费"
@input="changeLeaseCharge"/> @input="changeLeaseCharge"/>
</item> </item>
<item> <item>
<div slot="name">GPS费用</div> <div slot="name" class="required">GPS费用</div>
<CurrencyInput slot="content" v-model="saveInfo.gps_fee" :readonly="isReadOnly" placeholder="请输入GPS费用"/> <CurrencyInput slot="content" v-model="saveInfo.gps_fee" :readonly="isReadOnly" placeholder="请输入GPS费用"/>
</item> </item>
<item> <item>
<div slot="name">保险押金</div> <div slot="name" class="required">保险押金</div>
<CurrencyInput slot="content" v-model="saveInfo.insurance_fee" :readonly="isReadOnly" placeholder="请输入保险押金"/> <CurrencyInput slot="content" v-model="saveInfo.insurance_fee" :readonly="isReadOnly" placeholder="请输入保险押金"/>
</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" class="required">预计付款日</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" class="required">预计付款日</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" class="required">还款周期</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" class="required">还款周期</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" class="required">租赁期数</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" class="required">年利率</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" class="required">支付方式</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" class="required">支付方式</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" class="required">逾期日利率</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" class="required">留购价</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">
...@@ -154,6 +154,7 @@ ...@@ -154,6 +154,7 @@
<bottom-tab class="add-box"> <bottom-tab class="add-box">
<tab-button v-if="!isReadOnly && !calculeFlag" class="before" @click.native="save">计算</tab-button> <tab-button v-if="!isReadOnly && !calculeFlag" class="before" @click.native="save">计算</tab-button>
<tab-button v-if="!isReadOnly && calculeFlag" class="before" @click.native="save">重新计算</tab-button> <tab-button v-if="!isReadOnly && calculeFlag" class="before" @click.native="save">重新计算</tab-button>
<tab-button v-if="isReadOnly" class="before" @click.native="$routeGo()">上一步</tab-button>
<tab-button class="next" @click.native="next">下一步</tab-button> <tab-button class="next" @click.native="next">下一步</tab-button>
</bottom-tab> </bottom-tab>
<h-modal ref="modal" v-model="showModalValue" class="flow" position="bottom"> <h-modal ref="modal" v-model="showModalValue" class="flow" position="bottom">
...@@ -262,6 +263,7 @@ export default { ...@@ -262,6 +263,7 @@ export default {
fromPage: window.localStorage.fromPage, fromPage: window.localStorage.fromPage,
keyWordProduct: '', keyWordProduct: '',
policyKeyWord: '', policyKeyWord: '',
isReadOnly: false, // 是否只读
fromPutted: false, fromPutted: false,
fromList: false, // 判断是否从列表过来 fromList: false, // 判断是否从列表过来
pagenum: 1, // 产品型号页码 pagenum: 1, // 产品型号页码
...@@ -319,13 +321,15 @@ export default { ...@@ -319,13 +321,15 @@ export default {
'finance_amount' () { // 融资金额 'finance_amount' () { // 融资金额
return parseFloat(this.saveInfo.equip_price - this.saveInfo.equip_price * this.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2) return parseFloat(this.saveInfo.equip_price - this.saveInfo.equip_price * this.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2)
}, },
isReadOnly () { // isReadOnly () {
if (window.localStorage.contractReadonly === 'true' && this.fromPage === 'list') { // if (window.localStorage.contractReadonly === 'true' && this.fromPage === 'list') {
return true // debugger
} else { // return true
return false // } else {
} // debugger
}, // return false
// }
// },
}, },
watch: { watch: {
policyKeyWord (newVal, oldVal) { policyKeyWord (newVal, oldVal) {
...@@ -345,6 +349,9 @@ export default { ...@@ -345,6 +349,9 @@ export default {
'saveInfo.down_payment_ratio_n' (newVal, oldVal) { 'saveInfo.down_payment_ratio_n' (newVal, oldVal) {
this.saveInfo.down_payment = (this.saveInfo.equip_price * newVal.replace('%', '') / 100).toFixed(2) this.saveInfo.down_payment = (this.saveInfo.equip_price * newVal.replace('%', '') / 100).toFixed(2)
}, },
// 'saveInfo.down_payment' (newVal, oldVal) {
// this.saveInfo.down_payment_ratio_n = `${(newVal / this.saveInfo.equip_price * 100).toFixed(2)}%`
// },
'saveInfo.lease_charge_ratio_n' (newVal, oldVal) { 'saveInfo.lease_charge_ratio_n' (newVal, oldVal) {
this.saveInfo.lease_charge = parseFloat((this.saveInfo.equip_price - this.saveInfo.equip_price * this.saveInfo.down_payment_ratio_n.replace('%', '') / 100) * (this.saveInfo.lease_charge_ratio_n.replace('%', '') / 100)).toFixed(2) this.saveInfo.lease_charge = parseFloat((this.saveInfo.equip_price - this.saveInfo.equip_price * this.saveInfo.down_payment_ratio_n.replace('%', '') / 100) * (this.saveInfo.lease_charge_ratio_n.replace('%', '') / 100)).toFixed(2)
}, },
...@@ -372,7 +379,13 @@ export default { ...@@ -372,7 +379,13 @@ export default {
vm.saveTed = false vm.saveTed = false
if (vm.fromPage === 'sale') { if (vm.fromPage === 'sale') {
vm.fromList = false vm.fromList = false
vm.isReadOnly = false
} else if (vm.fromPage === 'list') { } else if (vm.fromPage === 'list') {
if (window.localStorage.contractReadonly === 'true') {
vm.isReadOnly = true
} else {
vm.isReadOnly = false
}
vm.fromList = true vm.fromList = true
vm.rentInfoQuery() vm.rentInfoQuery()
} }
...@@ -435,11 +448,9 @@ export default { ...@@ -435,11 +448,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_id = res.info.product_id
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
vm.saveInfo.down_payment = res.info.down_payment
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -566,8 +577,31 @@ export default { ...@@ -566,8 +577,31 @@ export default {
} }
}) })
}, },
isComputedCheck () {
let vm = this
let url = process.env.basePath + 'prj_product_cal_status'
let param = {
master: {
project_id: vm.saveInfo.product_id,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
if (res.info.success_flag === 'Y') {
vm.isComputed = true
} else {
vm.isComputed = false
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
next () { next () {
let vm = this let vm = this
vm.isComputedCheck()
if (vm.isReadOnly) { if (vm.isReadOnly) {
vm.$router.push({ vm.$router.push({
name: 'CreateEnclosureInfo', name: 'CreateEnclosureInfo',
...@@ -884,7 +918,7 @@ export default { ...@@ -884,7 +918,7 @@ export default {
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' + 'prj_product_list' +
'&index' + '&index' +
`'${randomString}'` `'${randomString}'`
let param = { let param = {
......
...@@ -81,71 +81,87 @@ ...@@ -81,71 +81,87 @@
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item v-if="!fromPutted" :showArrow="true"> <item v-if="!fromPutted" :showArrow="true">
<div slot="name">行业情况</div> <div slot="name" class="required">行业情况</div>
<input <input
slot="content" v-model="saveInfo.np_industry_exp_n" readonly placeholder="请选择" slot="content"
@click="selectBussinessSituation" > v-model="saveInfo.np_industry_exp_n"
readonly
placeholder="请选择"
@click="selectBussinessSituation"
>
</item> </item>
<item v-if="fromPutted"> <item v-if="fromPutted">
<div slot="name">行业情况</div> <div slot="name" class="required">行业情况</div>
<span slot="content">{{ saveInfo.np_industry_exp_n }}</span> <span slot="content">{{ saveInfo.np_industry_exp_n }}</span>
</item> </item>
<item v-if="!fromPutted" :showArrow="true" > <item v-if="!fromPutted" :showArrow="true">
<div slot="name">职业情况</div> <div slot="name" class="required">职业情况</div>
<input <input
slot="content" v-model="saveInfo.np_occupation_n" readonly placeholder="请选择" slot="content"
@click="selectJobSituation" > v-model="saveInfo.np_occupation_n"
readonly
placeholder="请选择"
@click="selectJobSituation"
>
</item> </item>
<item v-if="fromPutted"> <item v-if="fromPutted">
<div slot="name">职业情况</div> <div slot="name" class="required">职业情况</div>
<span slot="content">{{ saveInfo.np_occupation_n }}</span> <span slot="content">{{ saveInfo.np_occupation_n }}</span>
</item> </item>
<item v-if="!fromPutted" :showArrow="true"> <item v-if="!fromPutted" :showArrow="true">
<div slot="name">房产信息</div> <div slot="name" class="required">房产信息</div>
<input <input
slot="content" v-model="saveInfo.house_type_n" readonly placeholder="请选择" slot="content"
@click="selectHouseInfo"> v-model="saveInfo.house_type_n"
readonly
placeholder="请选择"
@click="selectHouseInfo"
>
</item> </item>
<item v-if="fromPutted"> <item v-if="fromPutted">
<div slot="name">房产信息</div> <div slot="name" class="required">房产信息</div>
<span slot="content">{{ saveInfo.house_type_n }}</span> <span slot="content">{{ saveInfo.house_type_n }}</span>
</item> </item>
<item v-if="!fromPutted" :showArrow="true"> <item v-if="!fromPutted" :showArrow="true">
<div slot="name">设备价值</div> <div slot="name" class="required">设备价值</div>
<input <input
slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly slot="content"
@click="selectEquipInfo"> v-model="saveInfo.equip_value"
placeholder="请选择"
readonly
@click="selectEquipInfo"
>
</item> </item>
<item v-if="fromPutted"> <item v-if="fromPutted">
<div slot="name">设备价值</div> <div slot="name" class="required">设备价值</div>
<span slot="content">{{ saveInfo.equip_value }}</span> <span slot="content">{{ saveInfo.equip_value }}</span>
</item> </item>
<item v-if="!fromPutted" class="check" @click.native="checked=!checked"> <item v-if="!fromPutted" class="check" @click.native="checked=!checked">
<div slot="name">农行代扣</div> <div slot="name" class="required">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted" class="check">
<div slot="name">农行代扣</div> <div slot="name" class="required">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="!fromPutted" class="check" @click.native="checkedApproved=!checkedApproved"> <item v-if="!fromPutted" class="check" @click.native="checkedApproved=!checkedApproved">
<div slot="name">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted" class="check">
<div slot="name">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item v-if="checkedApproved&&!fromPutted"> <item v-if="checkedApproved&&!fromPutted">
<div slot="name">特批事项</div> <div slot="name" class="required">特批事项</div>
<input slot="content" v-model="saveInfo.special_matter" placeholder="暂无信息"> <input slot="content" v-model="saveInfo.special_matter" placeholder="暂无信息" >
</item> </item>
<item v-if="checkedApproved&&fromPutted"> <item v-if="checkedApproved&&fromPutted">
<div slot="name">特批事项</div> <div slot="name" class="required">特批事项</div>
<span slot="content">{{ saveInfo.special_matter }}</span> <span slot="content">{{ saveInfo.special_matter }}</span>
</item> </item>
</list-item> </list-item>
...@@ -159,15 +175,30 @@ ...@@ -159,15 +175,30 @@
</item> </item>
<item> <item>
<div slot="name">企业类型</div> <div slot="name">企业类型</div>
<input slot="content" v-model="ORGBaseInfo.enterprise_type" readonly placeholder="暂无信息" > <input
slot="content"
v-model="ORGBaseInfo.enterprise_type"
readonly
placeholder="暂无信息"
>
</item> </item>
<item> <item>
<div slot="name">营业执照号</div> <div slot="name">营业执照号</div>
<input slot="content" v-model="ORGBaseInfo.organization_code" readonly placeholder="暂无信息" > <input
slot="content"
v-model="ORGBaseInfo.organization_code"
readonly
placeholder="暂无信息"
>
</item> </item>
<item> <item>
<div slot="name">注册资本</div> <div slot="name">注册资本</div>
<input slot="content" v-model="ORGBaseInfo.registered_capital" placeholder="暂无信息" readonly > <input
slot="content"
v-model="ORGBaseInfo.registered_capital"
placeholder="暂无信息"
readonly
>
</item> </item>
<item> <item>
<div slot="name">注册地址</div> <div slot="name">注册地址</div>
...@@ -198,7 +229,12 @@ ...@@ -198,7 +229,12 @@
</item> </item>
<item> <item>
<div slot="name">联系地址</div> <div slot="name">联系地址</div>
<input slot="content" v-model="ORGBaseInfo.living_address" placeholder="暂无信息" readonly > <input
slot="content"
v-model="ORGBaseInfo.living_address"
placeholder="暂无信息"
readonly
>
</item> </item>
</list-item> </list-item>
<div class="another-info"> <div class="another-info">
...@@ -206,77 +242,83 @@ ...@@ -206,77 +242,83 @@
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item v-if="!fromPutted" :showArrow="true" @click.native="selectORGEquipInfo"> <item v-if="!fromPutted" :showArrow="true" @click.native="selectORGEquipInfo">
<div slot="name">设备保有量</div> <div slot="name" class="required">设备保有量</div>
<input slot="content" v-model="saveInfo.equip_num_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.equip_num_n" readonly placeholder="请选择" >
</item> </item>
<item v-if="fromPutted" :showArrow="true"> <item v-if="fromPutted" :showArrow="true">
<div slot="name">设备保有量</div> <div slot="name" class="required">设备保有量</div>
<input slot="content" v-model="saveInfo.equip_num_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.equip_num_n" readonly placeholder="请选择" >
</item> </item>
<item v-if="!fromPutted" :showArrow="true" @click.native="selectORGEnge"> <item v-if="!fromPutted" :showArrow="true" @click.native="selectORGEnge">
<div slot="name">工程合同</div> <div slot="name" class="required">工程合同</div>
<input slot="content" v-model="saveInfo.engineer_con_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.engineer_con_n" readonly placeholder="请选择" >
</item> </item>
<item v-if="fromPutted" :showArrow="true"> <item v-if="fromPutted" :showArrow="true">
<div slot="name">工程合同</div> <div slot="name" class="required">工程合同</div>
<input slot="content" v-model="saveInfo.engineer_con_n" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.engineer_con_n" readonly placeholder="请选择" >
</item> </item>
<item v-if="!fromPutted" :showArrow="true" @click.native="selectORGnative"> <item v-if="!fromPutted" :showArrow="true" @click.native="selectORGnative">
<div slot="name">企业性质</div> <div slot="name" class="required">企业性质</div>
<input slot="content" v-model="saveInfo.enterpriese_nature_n" readonly placeholder="请选择" >
</item>
<item v-if="fromPutted" :showArrow="true">
<div slot="name">企业性质</div>
<input slot="content" v-model="saveInfo.enterpriese_nature_n" readonly placeholder="请选择" >
</item>
<item v-if="!fromPutted" :showArrow="true" @click.native="selectEquipInfo">
<div slot="name">设备价值</div>
<input <input
slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly slot="content"
v-model="saveInfo.enterpriese_nature_n"
readonly
placeholder="请选择"
> >
</item> </item>
<item v-if="fromPutted" :showArrow="true"> <item v-if="fromPutted" :showArrow="true">
<div slot="name">设备价值</div> <div slot="name" class="required">企业性质</div>
<input <input
slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly slot="content"
v-model="saveInfo.enterpriese_nature_n"
readonly
placeholder="请选择"
> >
</item> </item>
<item v-if="!fromPutted" :showArrow="true" @click.native="selectEquipInfo">
<div slot="name" class="required">设备价值</div>
<input slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly >
</item>
<item v-if="fromPutted" :showArrow="true">
<div slot="name" class="required">设备价值</div>
<input slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly >
</item>
<item v-if="!fromPutted" class="check" @click.native="checked=!checked"> <item v-if="!fromPutted" class="check" @click.native="checked=!checked">
<div slot="name">农行代扣</div> <div slot="name">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted" class="check">
<div slot="name">农行代扣</div> <div slot="name" class="required">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="!fromPutted" class="check" @click.native="checkedApproved=!checkedApproved"> <item v-if="!fromPutted" class="check" @click.native="checkedApproved=!checkedApproved">
<div slot="name">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted" class="check">
<div slot="name">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item v-if="checkedApproved&&!fromPutted"> <item v-if="checkedApproved&&!fromPutted">
<div slot="name">特批事项</div> <div slot="name" class="required">特批事项</div>
<input slot="content" v-model="saveInfo.special_matter" placeholder="暂无信息"> <input slot="content" v-model="saveInfo.special_matter" placeholder="暂无信息" >
</item> </item>
<item v-if="checkedApproved&&fromPutted"> <item v-if="checkedApproved&&fromPutted">
<div slot="name">特批事项</div> <div slot="name" class="required">特批事项</div>
<input slot="content" v-model="saveInfo.special_matter" readonly placeholder="暂无信息"> <input slot="content" v-model="saveInfo.special_matter" readonly placeholder="暂无信息" >
</item> </item>
</list-item> </list-item>
</div> </div>
<div class="another-info"> <div class="another-info">
<img src="@/assets/contractCreate/undertake.png" >担保人信息 <img src="@/assets/contractCreate/undertake.png" >担保人信息
<img v-if="!fromPutted" src="@/assets/contractCreate/add.png" @click="addPerson"> <img v-if="!fromPutted" src="@/assets/contractCreate/add.png" @click="addPerson" >
</div> </div>
</div> </div>
<div v-if="!fromPutted" > <div v-if="!fromPutted">
<item-option v-for="(item,index) in selectUdertake" :key="index" class="mySlider"> <item-option v-for="(item,index) in selectUdertake" :key="index" class="mySlider">
<list-item :item-height="68"> <list-item :item-height="68">
<item> <item>
...@@ -314,7 +356,7 @@ ...@@ -314,7 +356,7 @@
<tab-button class="before" @click.native="$routeGo()">上一步</tab-button> <tab-button class="before" @click.native="$routeGo()">上一步</tab-button>
<tab-button class="next" @click.native="save">下一步</tab-button> <tab-button class="next" @click.native="save">下一步</tab-button>
</bottom-tab> </bottom-tab>
<AddUnderTake ref="addperson" :bp_agent_id="bp_agent_id" @addUnder="addUnder"/> <AddUnderTake ref="addperson" :bp_agent_id="bp_agent_id" @addUnder="addUnder" />
</h-view> </h-view>
</template> </template>
<script> <script>
...@@ -346,7 +388,8 @@ export default { ...@@ -346,7 +388,8 @@ export default {
selectUdertake: [], // 已选择的担保人列表 selectUdertake: [], // 已选择的担保人列表
NPBaseInfo: {}, // 自然人基本信息 NPBaseInfo: {}, // 自然人基本信息
ORGBaseInfo: {}, // 企业基本信息 ORGBaseInfo: {}, // 企业基本信息
saveInfo: {// 需要保存的信息 saveInfo: {
// 需要保存的信息
project_id: window.localStorage.project_id, project_id: window.localStorage.project_id,
bp_id: '', bp_id: '',
bp_class: window.localStorage.bp_class_tenant, bp_class: window.localStorage.bp_class_tenant,
...@@ -370,7 +413,7 @@ export default { ...@@ -370,7 +413,7 @@ export default {
} }
}, },
watch: { watch: {
'checked': { checked: {
handler (newVal, oldVal) { handler (newVal, oldVal) {
if (newVal === false) { if (newVal === false) {
this.saveInfo.abc_deduction_flag = 'N' this.saveInfo.abc_deduction_flag = 'N'
...@@ -400,7 +443,7 @@ export default { ...@@ -400,7 +443,7 @@ export default {
}, },
immediate: true, immediate: true,
}, },
'checkedApproved': { checkedApproved: {
handler (newVal, oldVal) { handler (newVal, oldVal) {
if (newVal === false) { if (newVal === false) {
this.saveInfo.special_flag = 'N' this.saveInfo.special_flag = 'N'
...@@ -431,7 +474,13 @@ export default { ...@@ -431,7 +474,13 @@ export default {
vm.checked = false // 农行代扣 vm.checked = false // 农行代扣
vm.checkedApproved = false // 是否特批 vm.checkedApproved = false // 是否特批
Object.keys(vm.saveInfo).forEach(i => { Object.keys(vm.saveInfo).forEach(i => {
if (i !== 'project_id' && i !== 'bp_id' && i !== 'bp_class' && i !== 'abc_deduction_flag' && i !== 'special_flag') { if (
i !== 'project_id' &&
i !== 'bp_id' &&
i !== 'bp_class' &&
i !== 'abc_deduction_flag' &&
i !== 'special_flag'
) {
vm.saveInfo[i] = '' vm.saveInfo[i] = ''
} else if (i === 'abc_deduction_flag' || i === 'special_flag') { } else if (i === 'abc_deduction_flag' || i === 'special_flag') {
vm.saveInfo[i] = 'N' vm.saveInfo[i] = 'N'
...@@ -464,8 +513,7 @@ export default { ...@@ -464,8 +513,7 @@ export default {
} }
}) })
}, },
mounted () { mounted () {},
},
methods: { methods: {
// 自定义返回逻辑:第一次新建时返回判断是否保存数据,未保存提示保存 // 自定义返回逻辑:第一次新建时返回判断是否保存数据,未保存提示保存
routeGoCustom () { routeGoCustom () {
...@@ -486,6 +534,26 @@ export default { ...@@ -486,6 +534,26 @@ export default {
vm.$routeGo() vm.$routeGo()
} }
}, },
deleteGuta (e) {
let vm = this
let url = process.env.basePath + 'prj_bp_guta_delete'
let param = {
master: {
project_id: window.localStorage.project_id,
bp_guta_id: e.bp_guta_id,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
Object.assign(vm.saveInfo, res.info)
vm.selectUdertake = res.lists
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
getSaveInfo () { getSaveInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_base_info_query' let url = process.env.basePath + 'prj_base_info_query'
...@@ -505,7 +573,7 @@ export default { ...@@ -505,7 +573,7 @@ export default {
}, },
addUnder (e) { addUnder (e) {
let index = this.selectUdertake.findIndex(item => { let index = this.selectUdertake.findIndex(item => {
if (item.bp_name === e.bp_name) { if (item.bp_guta_name === e.bp_guta_name) {
return true return true
} }
}) })
...@@ -549,7 +617,7 @@ export default { ...@@ -549,7 +617,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'prj_base_info_save' let url = process.env.basePath + 'prj_base_info_save'
let param = { let param = {
master: {...vm.saveInfo, ...vm.makeData()}, master: { ...vm.saveInfo, ...vm.makeData() },
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -604,7 +672,7 @@ export default { ...@@ -604,7 +672,7 @@ export default {
let url = process.env.basePath + 'prj_base_info_save' let url = process.env.basePath + 'prj_base_info_save'
let isEmpty = vm.hasEmpty() let isEmpty = vm.hasEmpty()
let param = { let param = {
master: {...vm.saveInfo, ...vm.makeData()}, master: { ...vm.saveInfo, ...vm.makeData() },
} }
if (isEmpty) { if (isEmpty) {
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
...@@ -882,11 +950,12 @@ export default { ...@@ -882,11 +950,12 @@ export default {
deleteFun (e) { deleteFun (e) {
let deleteIndex let deleteIndex
this.selectUdertake.forEach((i, index, arr) => { this.selectUdertake.forEach((i, index, arr) => {
if (arr[index].bp_name.indexOf(e.bp_guta_name) !== -1) { if (arr[index].bp_guta_name.indexOf(e.bp_guta_name) !== -1) {
deleteIndex = index deleteIndex = index
} }
}) })
this.selectUdertake.splice(deleteIndex, 1) this.selectUdertake.splice(deleteIndex, 1)
this.deleteGuta(e)
}, },
}, },
} }
...@@ -899,8 +968,8 @@ export default { ...@@ -899,8 +968,8 @@ export default {
no-repeat; no-repeat;
background-size: 20px 20px; background-size: 20px 20px;
} }
.mySlider{ .mySlider {
height:68px; height: 68px;
} }
.hls-list-item { .hls-list-item {
margin-bottom: 0px !important; margin-bottom: 0px !important;
...@@ -990,14 +1059,14 @@ export default { ...@@ -990,14 +1059,14 @@ export default {
color: @headerColor; color: @headerColor;
display: flex; display: flex;
align-items: center; align-items: center;
img:nth-of-type(1){ img:nth-of-type(1) {
margin-left: 16px; margin-left: 16px;
width: 19px; width: 19px;
margin-right: 10px; margin-right: 10px;
} }
img:nth-of-type(2){ img:nth-of-type(2) {
margin-left:58%; margin-left: 58%;
width:19px; width: 19px;
} }
} }
.userInfo:first-of-type { .userInfo:first-of-type {
......
...@@ -522,11 +522,11 @@ export default { ...@@ -522,11 +522,11 @@ export default {
} }
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()
if (res.result === 'S') { if (res.result === 'S') {
vm.hlsPopup.showSuccess('提交成功') vm.hlsPopup.showSuccess('提交成功')
vm.$router.push({ vm.$router.push({
name: 'ContractCreateList', name: 'MyInfo',
}) })
} else { } else {
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
<h-content> <h-content>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item :showArrow="true" @click.native="picker"> <item :showArrow="true" @click.native="picker">
<div slot="name" class="font-color">承租人</div> <div slot="name" class="font-color required">承租人</div>
<input slot="content" v-model="lessee" placeholder="请选择"> <input slot="content" v-model="lessee" placeholder="请选择">
</item> </item>
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color">业务类型</div> <div slot="name" class="font-color required">业务类型</div>
<input <input
slot="content" slot="content"
v-model="business" v-model="business"
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
> >
</item> </item>
<item> <item>
<div slot="name" class="font-color">经销商</div> <div slot="name" class="font-color required">经销商</div>
<input v-if="user_bp_type === 'AGENT'" slot="content" v-model="bp_agent_name" readonly> <input v-if="user_bp_type === 'AGENT'" slot="content" v-model="bp_agent_name" readonly>
<input v-if="user_bp_type === 'OFFICE'" slot="content" placeholder="直销" readonly> <input v-if="user_bp_type === 'OFFICE'" slot="content" placeholder="直销" readonly>
</item> </item>
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color">销售人员</div> <div slot="name" class="font-color required">销售人员</div>
<input <input
slot="content" slot="content"
v-model="sales" v-model="sales"
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
> >
</item> </item>
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color">办事处</div> <div slot="name" class="font-color required">办事处</div>
<input <input
slot="content" slot="content"
v-model="office_name" v-model="office_name"
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
> >
</item> </item>
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color">主机厂</div> <div slot="name" class="font-color required">主机厂</div>
<input <input
slot="content" slot="content"
v-model="factory_name" v-model="factory_name"
...@@ -69,23 +69,23 @@ ...@@ -69,23 +69,23 @@
> >
</item> </item>
<item> <item>
<div slot="name" class="font-color">主机厂业务员</div> <div slot="name" class="font-color required">主机厂业务员</div>
<input slot="content" v-model="salesInfo.manu_manager" placeholder="请输入业务员姓名"> <input slot="content" v-model="salesInfo.manu_manager" placeholder="请输入业务员姓名">
</item> </item>
<item v-if="user_bp_type === 'AGENT'"> <item v-if="user_bp_type === 'AGENT'">
<div slot="name" class="font-color">授信额度</div> <div slot="name" class="font-color required">授信额度</div>
<CurrencyInput slot="content" v-model="inflow_line" :readonly="true" placeholder="授信额度"/> <CurrencyInput slot="content" v-model="inflow_line" readonly placeholder="授信额度"/>
</item> </item>
<item v-if="user_bp_type === 'AGENT'"> <item v-if="user_bp_type === 'AGENT'">
<div slot="name" class="font-color">已使用授信额度</div> <div slot="name" class="font-color required">已使用授信额度</div>
<CurrencyInput slot="content" v-model="inflow_used" :readonly="true" placeholder="已使用授信额度"/> <CurrencyInput slot="content" v-model="inflow_used" readonly placeholder="已使用授信额度"/>
</item> </item>
<item v-if="user_bp_type === 'AGENT'"> <item v-if="user_bp_type === 'AGENT'">
<div slot="name" class="font-color">剩余授信额度</div> <div slot="name" class="font-color required">剩余授信额度</div>
<CurrencyInput slot="content" v-model="inflow_reset" :readonly="true" placeholder="剩余授信额度"/> <CurrencyInput slot="content" v-model="inflow_reset" readonly placeholder="剩余授信额度"/>
</item> </item>
<item @click.native="showTime('YYYY-MM-DD')"> <item @click.native="showTime('YYYY-MM-DD')">
<div slot="name" class="font-color">签约日期</div> <div slot="name" class="font-color required">签约日期</div>
<input slot="content" v-model="salesInfo.sale_date" readonly> <input slot="content" v-model="salesInfo.sale_date" readonly>
<img src="@/assets/contractCreate/date.png" alt="" class="date-pic"> <img src="@/assets/contractCreate/date.png" alt="" class="date-pic">
</item> </item>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
</template> </template>
<script> <script>
import CurrencyInput from '../../components/currencyInput' import CurrencyInput from '../../components/currencyInput'
export default { export default {
components: { components: {
CurrencyInput, CurrencyInput,
......
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