Commit 2490cf2a authored by linxin's avatar linxin

add

parent 6f78a0b3
...@@ -13,7 +13,6 @@ export default { ...@@ -13,7 +13,6 @@ export default {
name: 'CurrencyInput', name: 'CurrencyInput',
props: { props: {
value: { value: {
type: Number,
default: 0, default: 0,
}, },
disable: { disable: {
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<span>发车确认</span> <span>发车确认</span>
</div> </div>
</h-header> </h-header>
<Tab @getTabNum="getTabNum" /> <Tab :title="text" @getTabNum="getTabNum" />
<div class="search has-header"> <div class="search has-header">
<input v-model="keyWord" placeholder="请输入合同号/产品名称/承租人名称" > <input v-model="keyWord" placeholder="请输入合同号/产品名称/承租人名称" >
</div> </div>
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
}, },
data () { data () {
return { return {
text: {first: '待签约', second: '已签约'},
tabNum: 0, tabNum: 0,
keyWord: '', keyWord: '',
status: '', status: '',
...@@ -139,6 +140,8 @@ export default { ...@@ -139,6 +140,8 @@ export default {
params: { params: {
project_id: e.project_id, project_id: e.project_id,
confirm_status: e.confirm_status, confirm_status: e.confirm_status,
check_id: e.check_id,
confirm_id: e.confirm_id,
}, },
}) })
}, },
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
<template> <template>
<div class="tab-style"> <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 <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 <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> </div>
</template> </template>
<script> <script>
...@@ -20,6 +20,14 @@ import sign from '@/assets/contractStart/noN.png' ...@@ -20,6 +20,14 @@ import sign from '@/assets/contractStart/noN.png'
import finish from '@/assets/contractStart/confirmN.png' import finish from '@/assets/contractStart/confirmN.png'
export default { export default {
props: {
title: {
type: Function,
default: function () {
return {}
},
},
},
data () { data () {
return { return {
tabNum: 0, tabNum: 0,
......
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
</item> </item>
<item :showArrow="true" @click.native="getProduct"> <item :showArrow="true" @click.native="getProduct">
<div slot="name">产品型号</div> <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>
<item> <item>
<div slot="name">产品数量</div> <div slot="name">产品数量</div>
<input slot="content" v-model="saveInfo.product_num" placeholder="请填写产品数量" > <input slot="content" v-model="productInfo.product_num" placeholder="请填写产品数量" >
</item> </item>
</list-item> </list-item>
<div class="userInfo">融资信息</div> <div class="userInfo">融资信息</div>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<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 :showArrow="true" @click.native="getBusinessPolicy"> <item :showArrow="true" @click.native="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>
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
</list-item> </list-item>
</h-content> </h-content>
<bottom-tab class="add-box"> <bottom-tab class="add-box">
<tab-button class="before">计算</tab-button> <tab-button class="before" @click.native="save">计算</tab-button>
<tab-button class="next" @click.native="save">下一步</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">
<h-view id="product-list"> <h-view id="product-list">
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<p class="seconds1">{{ item.bp_name }}</p> <p class="seconds1">{{ item.bp_name }}</p>
</div> </div>
<div class="centers"> <div class="centers">
<p class="firsts1">参数项</p> <p class="firsts1">设备识别号</p>
<p class="seconds1">{{ item.product_code }}</p> <p class="seconds1">{{ item.product_code }}</p>
</div> </div>
</div> </div>
...@@ -174,8 +174,9 @@ ...@@ -174,8 +174,9 @@
<div class="search has-header"> <div class="search has-header">
<input v-model="policyKeyWord" placeholder="请输入商务政策名称" > <input v-model="policyKeyWord" placeholder="请输入商务政策名称" >
</div> </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)"> <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 >
...@@ -204,7 +205,7 @@ ...@@ -204,7 +205,7 @@
</div> </div>
</div> </div>
</section> </section>
</scroll></div> </div></scroll>
</h-content> </h-content>
</h-view> </h-view>
</h-modal> </h-modal>
...@@ -220,6 +221,7 @@ export default { ...@@ -220,6 +221,7 @@ export default {
return { return {
showModalValue: false, showModalValue: false,
showModalBusiness: false, showModalBusiness: false,
isComputed: false,
keyWordProduct: '', keyWordProduct: '',
keyWord: '', keyWord: '',
policyKeyWord: '', policyKeyWord: '',
...@@ -251,13 +253,16 @@ export default { ...@@ -251,13 +253,16 @@ export default {
url: '', url: '',
}], }],
productLine: [], // 产品线 productLine: [], // 产品线
saveInfo: { productInfo: {
project_id: window.localStorage.project_id, project_id: window.localStorage.project_id,
product_plan_id: '',
product_plan_name: '',
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_name: '',
equip_price: '', equip_price: '',
int_rate: '', int_rate: '',
int_rate_n: '', int_rate_n: '',
...@@ -285,17 +290,24 @@ export default { ...@@ -285,17 +290,24 @@ export default {
}, },
} }
}, },
watch: {
policyKeyWord (newVal, oldVal) {
this.getBusinessPolicy()
},
},
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
vm.showModalBusiness = false vm.showModalBusiness = false
vm.showModalValue = false vm.showModalValue = false
vm.businessLists = []
if (from.name === 'CreateBaseInfo') { if (from.name === 'CreateBaseInfo') {
vm.businessLists = []
vm.pagenum = 1 vm.pagenum = 1
vm.pagenumPolicy = 1 vm.pagenumPolicy = 1
vm.isComputed = false
vm.getProductLine() // 产品线查询 vm.getProductLine() // 产品线查询
vm.repayPeriod()// 还款周期查询 vm.repayPeriod()// 还款周期查询
vm.getPayWay()// 支付方式查询 vm.getPayWay()// 支付方式查询
vm.getBusinessPolicy()// 获取商务政策
} }
}) })
}, },
...@@ -327,17 +339,34 @@ export default { ...@@ -327,17 +339,34 @@ 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.$router.push({ vm.isComputed = true
// name: 'CreateRentInfo',
// params: {
// bp_agent_id: vm.bp_agent_id,
// },
// })
} else { } else {
hlsPopup.showLongCenter(res.message) 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) { // 预计付款日 showTime (format) { // 预计付款日
let vm = this let vm = this
hlsPopup.showTime({ hlsPopup.showTime({
...@@ -412,9 +441,48 @@ export default { ...@@ -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 () { getBusinessPolicy () {
let vm = this let vm = this
vm.showModalBusiness = 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 +
...@@ -455,8 +523,8 @@ export default { ...@@ -455,8 +523,8 @@ export default {
}, },
selectProduct (e) { selectProduct (e) {
let vm = this let vm = this
this.saveInfo.product_id_n = e.product_name this.productInfo.product_id_n = e.product_name
this.saveInfo.product_id = e.product_id this.productInfo.product_id = e.product_id
setTimeout(() => { setTimeout(() => {
vm.showModalValue = false vm.showModalValue = false
}, 100) }, 100)
...@@ -540,8 +608,8 @@ export default { ...@@ -540,8 +608,8 @@ export default {
this.$router.push({ this.$router.push({
name: 'ContractRepayPlan', name: 'ContractRepayPlan',
params: { params: {
product_num: 2, product_num: this.productInfo.product_num,
project_id: 123, project_id: this.project_id,
}, },
}) })
}, },
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
</div> </div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">参数项</div> <div slot="name" class="font-color">设备识别号</div>
<input slot="content" v-model="info.product_code" readonly > <input slot="content" v-model="info.product_code" readonly >
</item> </item>
<item> <item>
...@@ -561,7 +561,7 @@ export default { ...@@ -561,7 +561,7 @@ export default {
// 人脸比对 // 人脸比对
faceIdentify (faceImg, idCardImgUrl) { faceIdentify (faceImg, idCardImgUrl) {
let vm = this let vm = this
/* let obj = { /* let obj = {
fileUrl: faceImg, fileUrl: faceImg,
idCardImgUrl: idCardImgUrl, idCardImgUrl: idCardImgUrl,
} }
...@@ -583,18 +583,18 @@ export default { ...@@ -583,18 +583,18 @@ export default {
} else { } else {
hlsPopup.showLongCenter('比对失败,请保证和绑定时是同一个人') hlsPopup.showLongCenter('比对失败,请保证和绑定时是同一个人')
} }
})*/ }) */
vm.save_picture(vm.faceListUpload) vm.save_picture(vm.faceListUpload)
let identifyScore = 90 let identifyScore = 90
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '提示', title: '提示',
content: `识别分数为${identifyScore},请进行活体检测`, content: `识别分数为${identifyScore},请进行活体检测`,
onConfirm: () => { onConfirm: () => {
// 进入活体检测页面 // 进入活体检测页面
vm.goBodyCheck(vm.confirm_id) vm.goBodyCheck(vm.confirm_id)
}, },
}) })
}, },
// 确认签约逻辑 // 确认签约逻辑
doConfirm (status) { doConfirm (status) {
......
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
<div class="bottom-top"> <div class="bottom-top">
<input placeholder="请输入产品名称" > <input placeholder="请输入产品名称" >
<img src="@/assets/contractStart/delete.png" > <img src="@/assets/contractStart/delete.png" >
<input placeholder="请输入参数项" > <input placeholder="请输入设备识别号" >
<img src="@/assets/contractStart/delete.png" > <img src="@/assets/contractStart/delete.png" >
<span /> <span />
</div> </div>
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
</span> </span>
</li> </li>
<li> <li>
<span class="name">参数项</span>&ensp; &ensp; GTZ226 <span class="name">设备识别号</span>&ensp; &ensp; GTZ226
<span class="to-right"> <span class="to-right">
<span class="name">产品名称</span>&ensp; &ensp; ***** <span class="name">产品名称</span>&ensp; &ensp; *****
</span> </span>
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<p>设备清单</p></div> <p>设备清单</p></div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">参数项</div> <div slot="name" class="font-color">设备识别号</div>
<input slot="content" v-model="info.product_code" readonly> <input slot="content" v-model="info.product_code" readonly>
</item> </item>
<item> <item>
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
}, },
}) })
}, },
/* goElectronicSign () { // 电子签 /* goElectronicSign () { // 电子签
let vm = this let vm = this
let url = process.env.basePath + 'get_sign_url' let url = process.env.basePath + 'get_sign_url'
let param = { let param = {
...@@ -283,7 +283,7 @@ export default { ...@@ -283,7 +283,7 @@ export default {
vm.hlsPopup.showLongCenter(res.info.msg) vm.hlsPopup.showLongCenter(res.info.msg)
} }
}) })
},*/ }, */
// 签约确认 // 签约确认
contractConfirm () { contractConfirm () {
let vm = this let vm = this
...@@ -419,7 +419,7 @@ export default { ...@@ -419,7 +419,7 @@ export default {
}, },
// 图片保存 // 图片保存
save_picture (list) { save_picture (list) {
//alert('list' + JSON.stringify(list)) // alert('list' + JSON.stringify(list))
let vm = this let vm = this
if (list.length) { if (list.length) {
// hlsPopup.showLoading('图片上传请稍候') // hlsPopup.showLoading('图片上传请稍候')
...@@ -440,7 +440,7 @@ export default { ...@@ -440,7 +440,7 @@ export default {
if (list[j].filePath === res.response.filePath) { if (list[j].filePath === res.response.filePath) {
list[j].attachment_id = res.response.attachment_id list[j].attachment_id = res.response.attachment_id
vm.faceListUpload.push(list[j]) vm.faceListUpload.push(list[j])
//alert('faceListUpload' + JSON.stringify(vm.faceListUpload)) // alert('faceListUpload' + JSON.stringify(vm.faceListUpload))
break break
} }
} }
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<div class="top">{{ list.product_name }}</div> <div class="top">{{ list.product_name }}</div>
<img src="@/assets/homePage/hot.png" class="hot"> <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.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 class="center"><span class="firsts">地址</span> <span class="seconds">{{ list.province_id_n + list.city_id_n + list.district_id_n }}</span></div>
</div> </div>
</item> </item>
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</div> </div>
<list-item> <list-item>
<item> <item>
<div slot="name">参数项</div> <div slot="name">设备识别号</div>
<input slot="content" v-model="rentInfo.product_code" readonly> <input slot="content" v-model="rentInfo.product_code" readonly>
</item> </item>
<item> <item>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<!-- 搜索 --> <!-- 搜索 -->
<div class="search has-header"> <div class="search has-header">
<input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/参数项"> <input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/设备识别号">
</div> </div>
<scroll <scroll
ref="scroll" ref="scroll"
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<p class="seconds1">{{ item.bp_name }}</p> <p class="seconds1">{{ item.bp_name }}</p>
</div> </div>
<div class="centers"> <div class="centers">
<p class="firsts1">参数项</p> <p class="firsts1">设备识别号</p>
<p class="seconds1">{{ item.product_code }}</p> <p class="seconds1">{{ item.product_code }}</p>
</div> </div>
</div> </div>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</div> </div>
<div class="list"> <div class="list">
<div> <div>
<span>参数项</span> <span>设备识别号</span>
<span>{{ detail.product_code }}</span> <span>{{ detail.product_code }}</span>
</div> </div>
<div> <div>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</swipe> </swipe>
<div class="base-content"> <div class="base-content">
<div class="top-code"> <div class="top-code">
<div>参数项 &nbsp;{{ baseInfo.product_code }}</div> <div>设备识别号 &nbsp;{{ baseInfo.product_code }}</div>
<div>{{ baseInfo.division_n }}</div> <div>{{ baseInfo.division_n }}</div>
</div> </div>
<div class="pro-name">{{ baseInfo.product_name }}</div> <div class="pro-name">{{ baseInfo.product_name }}</div>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</h-header> </h-header>
<!-- 搜索 --> <!-- 搜索 -->
<div class="search has-header"> <div class="search has-header">
<input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/参数项"> <input v-model="searchInput" type="text" placeholder="请输入经销商/产品名称/设备识别号">
</div> </div>
<scroll <scroll
ref="scroll" ref="scroll"
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<p class="seconds1">{{ item.bp_name }}</p> <p class="seconds1">{{ item.bp_name }}</p>
</div> </div>
<div class="centers"> <div class="centers">
<p class="firsts1">参数项</p> <p class="firsts1">设备识别号</p>
<p class="seconds1">{{ item.product_code }}</p> <p class="seconds1">{{ item.product_code }}</p>
</div> </div>
</div> </div>
......
...@@ -174,6 +174,7 @@ export default { ...@@ -174,6 +174,7 @@ export default {
}, },
showModal () { showModal () {
this.showModalValue = true this.showModalValue = true
this.bankImg = ''
}, },
async checkElectonic () { async checkElectonic () {
let vm = this let vm = this
......
...@@ -123,6 +123,10 @@ export default { ...@@ -123,6 +123,10 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.invoiceInfo = res.info 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 { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
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