Commit 9a7b239c authored by 李晓兵's avatar 李晓兵

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents ac2eb505 ea126845
Pipeline #4299 canceled with stages
......@@ -13,7 +13,6 @@ export default {
name: 'CurrencyInput',
props: {
value: {
type: Number,
default: 0,
},
disable: {
......
This diff is collapsed.
......@@ -6,7 +6,7 @@
<span>发车确认</span>
</div>
</h-header>
<Tab @getTabNum="getTabNum" />
<Tab :title="text" @getTabNum="getTabNum" />
<div class="search has-header">
<input v-model="keyWord" placeholder="请输入合同号/产品名称/承租人名称" >
</div>
......@@ -51,6 +51,7 @@ export default {
},
data () {
return {
text: {first: '待签约', second: '已签约'},
tabNum: 0,
keyWord: '',
status: '',
......@@ -139,6 +140,8 @@ export default {
params: {
project_id: e.project_id,
confirm_status: e.confirm_status,
check_id: e.check_id,
confirm_id: e.confirm_id,
},
})
},
......
......@@ -8,9 +8,9 @@
<template>
<div class="tab-style">
<div :class="{'tab-content-bg':tabNum == 0}" class="tab-content" @click="tabNum = 0;sendTabNum()"><img :src="tabNum == 0?signed:sign"><span
:class="{'colored':tabNum == 0}">待确认</span></div>
:class="{'colored':tabNum == 0}">{{ title.first }}</span></div>
<div :class="{'tab-content-bg':tabNum == 1}" class="tab-content" @click="tabNum = 1;sendTabNum()"><img :src="tabNum == 1?finished:finish"><span
:class="{'colored':tabNum == 1}">已确认</span></div>
:class="{'colored':tabNum == 1}">{{ title.second }}</span></div>
</div>
</template>
<script>
......@@ -20,6 +20,14 @@ import sign from '@/assets/contractStart/noN.png'
import finish from '@/assets/contractStart/confirmN.png'
export default {
props: {
title: {
type: Function,
default: function () {
return {}
},
},
},
data () {
return {
tabNum: 0,
......
......@@ -31,11 +31,11 @@
</item>
<item :showArrow="true" @click.native="getProduct">
<div slot="name">产品型号</div>
<input slot="content" v-model="saveInfo.product_id_n" readonly placeholder="请选择" >
<input slot="content" v-model="productInfo.product_id_n" readonly placeholder="请选择" >
</item>
<item>
<div slot="name">产品数量</div>
<input slot="content" v-model="saveInfo.product_num" placeholder="请填写产品数量" >
<input slot="content" v-model="productInfo.product_num" placeholder="请填写产品数量" >
</item>
</list-item>
<div class="userInfo">融资信息</div>
......@@ -43,7 +43,7 @@
<img src="@/assets/contractCreate/hint.png" >提示 以下为单个设备商务政策
</div>
<list-item :item-height="44">
<item :showArrow="true" @click.native="getBusinessPolicy">
<item :showArrow="true" @click.native="showModalBusiness=true">
<div slot="name">商务政策</div>
<input slot="content" v-model="saveInfo.product_plan_name" readonly placeholder="请选择" >
</item>
......@@ -122,8 +122,8 @@
</list-item>
</h-content>
<bottom-tab class="add-box">
<tab-button class="before">计算</tab-button>
<tab-button class="next" @click.native="save">下一步</tab-button>
<tab-button class="before" @click.native="save">计算</tab-button>
<tab-button class="next" @click.native="next">下一步</tab-button>
</bottom-tab>
<h-modal ref="modal" v-model="showModalValue" class="flow" position="bottom">
<h-view id="product-list">
......@@ -154,7 +154,7 @@
<p class="seconds1">{{ item.bp_name }}</p>
</div>
<div class="centers">
<p class="firsts1">参数项</p>
<p class="firsts1">设备识别号</p>
<p class="seconds1">{{ item.product_code }}</p>
</div>
</div>
......@@ -174,8 +174,9 @@
<div class="search has-header">
<input v-model="policyKeyWord" placeholder="请输入商务政策名称" >
</div>
<div class="division-box">
<scroll ref="scroll" :updateData="[businessLists]" :pullUp="true" @pullingUp="getBusinessPolicy">
<scroll ref="scroll" :updateData="[businessLists]" :pullUp="true" @pullingUp="getBusinessPolicy">
<div class="division-box">
<section v-for="(item,index) in businessLists" :key="index" @click="selectBusinessPolicy(item)">
<div class="descript">
<img src="@/assets/trial/product.png" alt >
......@@ -204,7 +205,7 @@
</div>
</div>
</section>
</scroll></div>
</div></scroll>
</h-content>
</h-view>
</h-modal>
......@@ -220,6 +221,7 @@ export default {
return {
showModalValue: false,
showModalBusiness: false,
isComputed: false,
keyWordProduct: '',
keyWord: '',
policyKeyWord: '',
......@@ -251,13 +253,16 @@ export default {
url: '',
}],
productLine: [], // 产品线
saveInfo: {
productInfo: {
project_id: window.localStorage.project_id,
product_plan_id: '',
product_plan_name: '',
product_id: '',
product_id_n: '',
product_num: '',
},
saveInfo: {
project_id: window.localStorage.project_id,
product_plan_id: '',
product_plan_name: '',
equip_price: '',
int_rate: '',
int_rate_n: '',
......@@ -285,17 +290,24 @@ export default {
},
}
},
watch: {
policyKeyWord (newVal, oldVal) {
this.getBusinessPolicy()
},
},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.showModalBusiness = false
vm.showModalValue = false
vm.businessLists = []
if (from.name === 'CreateBaseInfo') {
vm.businessLists = []
vm.pagenum = 1
vm.pagenumPolicy = 1
vm.isComputed = false
vm.getProductLine() // 产品线查询
vm.repayPeriod()// 还款周期查询
vm.getPayWay()// 支付方式查询
vm.getBusinessPolicy()// 获取商务政策
}
})
},
......@@ -327,17 +339,34 @@ export default {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
// vm.$router.push({
// name: 'CreateRentInfo',
// params: {
// bp_agent_id: vm.bp_agent_id,
// },
// })
vm.isComputed = true
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
next () {
let vm = this
if (vm.isComputed) {
let url = process.env.basePath + 'prj_product_info_save'
let param = {
master: vm.productInfo,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'CreateEnclosureInfo',
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
} else {
hlsPopup.showLongCenter('请先进行计算')
}
},
showTime (format) { // 预计付款日
let vm = this
hlsPopup.showTime({
......@@ -412,9 +441,48 @@ export default {
},
})
},
searchBusinessPolicy () {
let vm = this
let randomString = Math.floor(Math.random() * 21)
let url =
process.env.basePath +
'prj_product_plan_query' +
'&index' +
`'${randomString}'`
let param = {
bp_agent_id: vm.$route.params.bp_agent_id,
pagesize: 10,
pagenumPolicy: vm.pagenumPolicy,
searchInput: vm.policyKeyWord,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
let returnData = []
returnData = res.lists
if (returnData.length === 0) {
vm.$refs.scroll.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
vum.forEach(returnData, function (data, index, array) {
vm.businessLists.push(array[index])
})
vm.pagenumPolicy++
vm.$refs.scroll.update(true)
} else if (returnData.length === 10) {
vum.forEach(returnData, function (data, index, array) {
vm.businessLists.push(array[index])
})
vm.pagenumPolicy++
vm.$refs.scroll.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
getBusinessPolicy () {
let vm = this
vm.showModalBusiness = true
let randomString = Math.floor(Math.random() * 21)
let url =
process.env.basePath +
......@@ -455,8 +523,8 @@ export default {
},
selectProduct (e) {
let vm = this
this.saveInfo.product_id_n = e.product_name
this.saveInfo.product_id = e.product_id
this.productInfo.product_id_n = e.product_name
this.productInfo.product_id = e.product_id
setTimeout(() => {
vm.showModalValue = false
}, 100)
......@@ -540,8 +608,8 @@ export default {
this.$router.push({
name: 'ContractRepayPlan',
params: {
product_num: 2,
project_id: 123,
product_num: this.productInfo.product_num,
project_id: this.project_id,
},
})
},
......
......@@ -506,6 +506,7 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.ORGBaseInfo = res.info
window.localStorage.setItem('auth_flag', res.info.auth_flag)
} else {
hlsPopup.showLongCenter(res.message)
}
......
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-11-15 09:40:02
* @LastEditors: Please set LastEditors
* @LastEditTime : 2019-12-24 18:28:09
* @LastEditors : Please set LastEditors
* @Description: 还款
* @FilePath:
-->
......@@ -46,13 +46,22 @@
<p>{{ item.due_date.substr(0,4) }}</p>
<span>{{ dateConverse(item.due_date).substr(5,10) }}</span>
</div>
<div class="name">
<span>款项</span>
<span>租金</span>
</div>
<div class="number">
<span>应还金额</span>
<span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental |currency }}</span>
<div>
<span>本金</span>
<span>{{ item.principal |currency }}</span>
</div>
<div>
<span>租金</span>
<span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental |currency }}</span>
</div>
</div>
<div class="name">
<!-- <span>款项</span>
<span>租金</span> -->
<p>利息</p>
<p>{{ item.interest }}</p>
</div>
<img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status">
<img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status">
......@@ -347,7 +356,7 @@ export default {
font-family: PingFangSC-Regular;
font-size: 13px;
color: #4B4A4B;
padding-top: 20px;
//padding-top: 20px;
margin-left: 22px;
span:nth-of-type(2) {
margin-left: 8px;
......@@ -359,10 +368,13 @@ export default {
.number {
// flex: 9;
display: flex;
flex-direction: column;
justify-content: space-evenly;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #4B4A4B;
padding-top: 20px;
//padding-top: 20px;
margin-left: 40px;
span:nth-of-type(2) {
margin-left: 8px;
......
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-12-04 19:39:24
* @LastEditors: Please set LastEditors
* @LastEditTime : 2019-12-24 16:52:59
* @LastEditors : Please set LastEditors
* @Description: In User Settings Edit
-->
<template>
......@@ -20,7 +20,7 @@
<img v-show="name === '融资租赁合同'" src="@/assets/constractSigning/contract-icon.png" alt="">
<h1>{{ name }}</h1>
<Distributors v-if="name === '经销商担保协议' || '农行代扣授权书'"/>
<Distributors v-if="name === '经销商担保协议'"/>
<Lessee v-if="name === '承租人确认意见'"/>
<Transfer v-if="name === '租赁物所有权转移及接收确认书'"/>
<LeasingContract v-if="name === '融资租赁合同'&&business_type === 'LEASE'"/>
......
......@@ -190,7 +190,7 @@
<div class="bottom-top">
<input placeholder="请输入产品名称" >
<img src="@/assets/contractStart/delete.png" >
<input placeholder="请输入参数项" >
<input placeholder="请输入设备识别号" >
<img src="@/assets/contractStart/delete.png" >
<span />
</div>
......@@ -211,7 +211,7 @@
</span>
</li>
<li>
<span class="name">参数项</span>&ensp; &ensp; GTZ226
<span class="name">设备识别号</span>&ensp; &ensp; GTZ226
<span class="to-right">
<span class="name">产品名称</span>&ensp; &ensp; *****
</span>
......
......@@ -53,7 +53,7 @@
<div class="top">{{ list.product_name }}</div>
<img src="@/assets/homePage/hot.png" class="hot">
<div class="center"><span class="firsts">经销商</span> <span class="seconds">{{ list.bp_name }}</span></div>
<div class="center"><span class="firsts">参数项</span> <span class="seconds">{{ list.product_code }}</span></div>
<div class="center"><span class="firsts">设备识别号</span> <span class="seconds">{{ list.product_code }}</span></div>
<div class="center"><span class="firsts">地址</span> <span class="seconds">{{ list.province_id_n + list.city_id_n + list.district_id_n }}</span></div>
</div>
</item>
......
......@@ -76,7 +76,7 @@
</div>
<list-item>
<item>
<div slot="name">参数项</div>
<div slot="name">设备识别号</div>
<input slot="content" v-model="rentInfo.product_code" readonly>
</item>
<item>
......
......@@ -14,7 +14,7 @@
<!-- 搜索 -->
<div class="search has-header">
<input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/参数项">
<input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/设备识别号">
</div>
<scroll
ref="scroll"
......@@ -39,7 +39,7 @@
<p class="seconds1">{{ item.bp_name }}</p>
</div>
<div class="centers">
<p class="firsts1">参数项</p>
<p class="firsts1">设备识别号</p>
<p class="seconds1">{{ item.product_code }}</p>
</div>
</div>
......
......@@ -43,7 +43,7 @@
</div>
<div class="list">
<div>
<span>参数项</span>
<span>设备识别号</span>
<span>{{ detail.product_code }}</span>
</div>
<div>
......
......@@ -35,7 +35,7 @@
</swipe>
<div class="base-content">
<div class="top-code">
<div>参数项 &nbsp;{{ baseInfo.product_code }}</div>
<div>设备识别号 &nbsp;{{ baseInfo.product_code }}</div>
<div>{{ baseInfo.division_n }}</div>
</div>
<div class="pro-name">{{ baseInfo.product_name }}</div>
......
......@@ -13,7 +13,7 @@
</h-header>
<!-- 搜索 -->
<div class="search has-header">
<input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/参数项">
<input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/设备识别号">
</div>
<scroll
ref="scroll"
......@@ -39,7 +39,7 @@
<p class="seconds1">{{ item.bp_name }}</p>
</div>
<div class="centers">
<p class="firsts1">参数项</p>
<p class="firsts1">设备识别号</p>
<p class="seconds1">{{ item.product_code }}</p>
</div>
</div>
......
......@@ -174,6 +174,7 @@ export default {
},
showModal () {
this.showModalValue = true
this.bankImg = ''
},
async checkElectonic () {
let vm = this
......
......@@ -123,6 +123,10 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.invoiceInfo = res.info
console.log(111111111111111111, res.info.invoice_title)
if (res.info.invoice_title == '' || res.info.invoice_title == null || res.info.invoice_title == undefined) {
vm.invoiceInfo.invoice_title = window.localStorage.bp_name
}
} else {
hlsPopup.showLongCenter(res.message)
}
......
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-24 21:29:35
* @LastEditTime : 2019-12-23 09:26:37
* @LastEditTime : 2019-12-24 16:25:09
* @LastEditors : Please set LastEditors
-->
<template>
......@@ -468,6 +468,15 @@ export default {
vm.hlsPopup.hideLoading()
vm.showModalValue = false
vm.hlsPopup.showSuccess('添加成功')
vm.bankImg = ''
vm.bank_card_flag = false
vm.bank_lists = {
bank_account_num: '', // 卡号
bank_account_name: '', // 账户姓名
bank_card_type: '', // 类型(信用卡/借记卡/未知)
bank_full_name: '', // 银行名称
bank_branch_name: '', // 支行
}
vm.getBankInfo()
}
})
......
......@@ -2,8 +2,8 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-19 09:31:19
* @LastEditTime: 2019-12-18 16:35:21
* @LastEditors: Please set LastEditors
* @LastEditTime : 2019-12-24 15:36:17
* @LastEditors : Please set LastEditors
-->
<template>
<h-view id="base-info" class="public-style" title="基本信息">
......@@ -951,6 +951,7 @@ export default {
bp_id: vm.bp_id,
organization_code: vm.baseInfo.organization_code,
from: vm.from,
bp_name: vm.baseInfo.bp_name,
},
})
// 查询资料清单
......
......@@ -2,8 +2,8 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-20 09:35:11
* @LastEditTime: 2019-12-19 12:29:29
* @LastEditors: Please set LastEditors
* @LastEditTime : 2019-12-24 15:42:01
* @LastEditors : Please set LastEditors
-->
<template>
<h-view id="invoice" class="public-style">
......@@ -111,7 +111,7 @@ export default {
invoice_kind: '',
invoice_kind_n: '',
taxpayer_type: '',
invoice_title: '',
invoice_title: vm.$route.params.bp_name,
taxpayer_type_n: '',
organization_code: '',
invoice_adds: '',
......@@ -119,6 +119,7 @@ export default {
open_bank: '',
open_account: '',
}
// vm.invoiceInfo.invoice_title = vm.$route.params.bp_name
vm.bp_id = vm.$route.params.bp_id
vm.invoiceInfo.organization_code = vm.$route.params.organization_code
vm.getInvoiceType()
......@@ -145,6 +146,7 @@ export default {
if (res.result === 'S') {
console.log('invoiceInfo', res.info)
vm.invoiceInfo = res.info
vm.invoiceInfo.invoice_title = vm.$route.params.bp_name
// Object.assign(vm.invoiceInfo, res.info)
}
})
......
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