Commit f21b665b authored by 786817560's avatar 786817560

'提交代码'

parent 08676f2a
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-23 17:25:35 * @LastEditTime: 2019-10-23 18:37:15
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -172,6 +172,7 @@ export default { ...@@ -172,6 +172,7 @@ export default {
isshow: false, // 提示框的显示与隐藏 isshow: false, // 提示框的显示与隐藏
num: 0, num: 0,
project_id: '', project_id: '',
confirm_id: '',
conditionInfo: {}, conditionInfo: {},
check1: Check1, check1: Check1,
check2: Check2, check2: Check2,
...@@ -187,6 +188,7 @@ export default { ...@@ -187,6 +188,7 @@ export default {
if (from.name === 'ContractSigning') { if (from.name === 'ContractSigning') {
next(vm => { next(vm => {
vm.project_id = vm.$route.params.project_id vm.project_id = vm.$route.params.project_id
vm.confirm_id = vm.$route.params.confirm_id
vm.confirm_status = vm.$route.params.confirm_status vm.confirm_status = vm.$route.params.confirm_status
vm.conditionQuery() vm.conditionQuery()
}) })
...@@ -250,19 +252,22 @@ export default { ...@@ -250,19 +252,22 @@ export default {
console.log(typeof window.sessionStorage.getItem('add_status')) console.log(typeof window.sessionStorage.getItem('add_status'))
if (window.sessionStorage.getItem('add_status') === 'true') { if (window.sessionStorage.getItem('add_status') === 'true') {
// this.entry_info_flag = true // this.entry_info_flag = true
// let vm = this let vm = this
// let url = $config.basePath + 'con_bp_confirm' let url = $config.basePath + 'con_bp_confirm'
// let param = { let param = {
// project_id: this.$route.params.project_id, master: {
// } confirm_id: vm.confirm_id,
// vm.hlsHttp.post(url, param).then(function (res) { con_confirm_status: vm.confirm_status,
// console.log('商务条件', res) },
// if (res.result === 'S') { }
// vm.conditionInfo = res.info vm.hlsHttp.post(url, param).then(function (res) {
// } else { console.log('商务条件', res)
// hlsPopup.showLongCenter(res.message) // if (res.result === 'S') {
// } // vm.conditionInfo = res.info
// }) // } else {
// hlsPopup.showLongCenter(res.message)
// }
})
} else { } else {
this.isshow = true this.isshow = true
// this.entry_info_flag = false // this.entry_info_flag = false
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-23 16:59:58 * @LastEditTime: 2019-10-23 18:36:01
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<p class="incoming-num">进件号</p> <p class="incoming-num">进件号</p>
<p class="code">{{ item.project_number }}</p> <p class="code">{{ item.project_number }}</p>
</div> </div>
<div class="details" @click="goDetails(item.project_id,item.con_confirm_status)"> <div class="details" @click="goDetails(item.project_id,item.con_confirm_status,item.confirm_id)">
<div class="option"> <div class="option">
<p class="name">承租人</p> <p class="name">承租人</p>
<p class="full-name normal">{{ item.bp_name }}</p> <p class="full-name normal">{{ item.bp_name }}</p>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<p class="incoming-num">进件号</p> <p class="incoming-num">进件号</p>
<p class="code">{{ item.project_number }}</p> <p class="code">{{ item.project_number }}</p>
</div> </div>
<div class="details" @click="goDetails(item.project_id,item.con_confirm_status)"> <div class="details" @click="goDetails(item.project_id,item.con_confirm_status,item.confirm_id)">
<div class="option"> <div class="option">
<p class="name">承租人</p> <p class="name">承租人</p>
<p class="full-name normal">{{ item.bp_name }}</p> <p class="full-name normal">{{ item.bp_name }}</p>
...@@ -126,13 +126,14 @@ export default { ...@@ -126,13 +126,14 @@ export default {
}) })
}, },
// val: project_id, status: confirm_status // val: project_id, status: confirm_status
goDetails (val, status) { // 银行卡录入页面keep alive为true,根据project_id和add_status重置页面 goDetails (val, status, id) { // 银行卡录入页面keep alive为true,根据project_id和add_status重置页面
window.sessionStorage.setItem('add_status', false) window.sessionStorage.setItem('add_status', false)
this.$router.push({ this.$router.push({
name: 'ContractDetail', name: 'ContractDetail',
params: { params: {
project_id: val, project_id: val,
confirm_status: status, confirm_status: status,
confirm_id: id,
}, },
}) })
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip: 产品明细 * @Descrip: 产品明细
* @Author: your name * @Author: your name
* @Date: 2019-10-15 14:30:00 * @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-10-22 16:31:22 * @LastEditTime: 2019-10-23 20:06:47
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -97,8 +97,9 @@ ...@@ -97,8 +97,9 @@
</list-item> </list-item>
</h-content> </h-content>
<bottom-tab class="footer-button"> <bottom-tab class="footer-button">
<tab-button :class="{bgcolor: bgc_flag}" class="butt" <tab-button
@click.native="goTrial(baseInfo.plan_price,baseInfo.price_date_to)"><img :class="{bgcolor: bgc_flag}" class="butt"
@click.native="goTrial(baseInfo.plan_price,baseInfo.price_date_to)"><img
src="@/assets/productQuery/trial.png" alt=""> 试算 src="@/assets/productQuery/trial.png" alt=""> 试算
</tab-button> </tab-button>
<tab-button class="collect butt" @click.native="collect"><img :src="src" alt="">{{ text }}</tab-button> <tab-button class="collect butt" @click.native="collect"><img :src="src" alt="">{{ text }}</tab-button>
...@@ -111,92 +112,92 @@ ...@@ -111,92 +112,92 @@
</template> </template>
<script> <script>
import Tab from './tab' import Tab from './tab'
export default { export default {
name: 'ProDetailed', name: 'ProDetailed',
components: { components: {
Tab, Tab,
}, },
data() { data () {
return { return {
text: '', text: '',
tabNum: 0, tabNum: 0,
picLists: [], picLists: [],
baseInfo: {}, baseInfo: {},
show_text: '', show_text: '',
confgInfo: {}, confgInfo: {},
detailInfo: {}, detailInfo: {},
bgc_flag: true, bgc_flag: true,
collect_flag: false, collect_flag: false,
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
beforeRouteEnter(to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'ProductList' || from.name === 'MyProductList') { if (from.name === 'ProductList' || from.name === 'MyProductList') {
next(vm => { next(vm => {
vm.tabNum = 0 vm.tabNum = 0
vm.product_id = vm.$route.params.product_id vm.product_id = vm.$route.params.product_id
vm.baseMsg() vm.baseMsg()
vm.detailMsg() vm.detailMsg()
vm.confgMsg() vm.confgMsg()
}) })
} }
next() next()
}, },
created() { created () {
}, },
activated() { activated () {
console.log('collect........', window.sessionStorage.getItem('collect_status')) console.log('collect........', window.sessionStorage.getItem('collect_status'))
if (window.sessionStorage.getItem('collect_status') === 'Y') { if (window.sessionStorage.getItem('collect_status') === 'Y') {
this.src = require('@/assets/productQuery/coll-success.png') this.src = require('@/assets/productQuery/coll-success.png')
this.text = '取消收藏' this.text = '取消收藏'
} else { } else {
this.src = require('@/assets/productQuery/collect.png') this.src = require('@/assets/productQuery/collect.png')
this.text = '收藏' this.text = '收藏'
} }
}, },
methods: methods:
{ {
getTabNum(i) { getTabNum (i) {
console.log(i) console.log(i)
this.tabNum = i this.tabNum = i
}, },
// 收藏 // 收藏
collect() { collect () {
console.log('collect', window.sessionStorage.getItem('collect_status')) console.log('collect', window.sessionStorage.getItem('collect_status'))
if (window.sessionStorage.getItem('collect_status') === 'Y') { if (window.sessionStorage.getItem('collect_status') === 'Y') {
let vm = this let vm = this
this.hlsPopup.showConfirm({ // this.hlsPopup.showConfirm({
title: '提示', // title: '提示',
content: '您确认取消收藏吗?', // content: '您确认取消收藏吗?',
onConfirm: data => { // onConfirm: data => {
console.log(data) // console.log(data)
if (data) { // if (data) {
let url = $config.basePath + 'delete_collection' let url = $config.basePath + 'delete_collection'
let param = { let param = {
master: { master: {
product_id: vm.product_id, product_id: vm.product_id,
user_phone: window.localStorage.user_phone, user_phone: window.localStorage.user_phone,
},
}
vm.$post(url, param).then(function (res) {
console.log('取消收藏。。。。。。。。', res)
if (res.result === 'S') {
window.sessionStorage.setItem('collect_status', 'N')
vm.show_text = '取消成功'
vm.collect_flag = true
vm.src = require('@/assets/productQuery/collect.png')
setTimeout(() => {
vm.text = '收藏'
vm.collect_flag = false
}, 1500)
}
})
}
}, },
}
vm.$post(url, param).then(function (res) {
console.log('取消收藏。。。。。。。。', res)
if (res.result === 'S') {
window.sessionStorage.setItem('collect_status', 'N')
vm.show_text = '取消成功'
vm.collect_flag = true
vm.src = require('@/assets/productQuery/collect.png')
setTimeout(() => {
vm.text = '收藏'
vm.collect_flag = false
}, 1500)
// }
// })
// }
}
}) })
} else { } else {
this.show_text = '收藏成功' this.show_text = '收藏成功'
...@@ -226,7 +227,7 @@ ...@@ -226,7 +227,7 @@
} }
}, },
// 基本信息查询 // 基本信息查询
baseMsg() { baseMsg () {
let vm = this let vm = this
let url = $config.basePath + 'prd_product_info' let url = $config.basePath + 'prd_product_info'
let param = { let param = {
...@@ -242,7 +243,7 @@ ...@@ -242,7 +243,7 @@
}) })
}, },
// 详情查询 // 详情查询
detailMsg() { detailMsg () {
let vm = this let vm = this
let url = $config.basePath + 'prd_product_detial' let url = $config.basePath + 'prd_product_detial'
let param = { let param = {
...@@ -264,7 +265,7 @@ ...@@ -264,7 +265,7 @@
}) })
}, },
// 配置查询 // 配置查询
confgMsg() { confgMsg () {
let vm = this let vm = this
let url = $config.basePath + 'prd_product_conf' let url = $config.basePath + 'prd_product_conf'
let param = { let param = {
...@@ -280,7 +281,7 @@ ...@@ -280,7 +281,7 @@
}) })
}, },
// 试算price:产品参考价,date:有效日期 // 试算price:产品参考价,date:有效日期
goTrial(price, date) { goTrial (price, date) {
this.$router.push({ this.$router.push({
name: 'FinancingTrial', name: 'FinancingTrial',
params: { params: {
...@@ -290,7 +291,7 @@ ...@@ -290,7 +291,7 @@
}) })
}, },
}, },
} }
</script> </script>
<style lang='less'> <style lang='less'>
#detailed { #detailed {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip: 查询首页 * @Descrip: 查询首页
* @Author: your name * @Author: your name
* @Date: 2019-10-15 14:30:00 * @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-10-22 15:14:27 * @LastEditTime: 2019-10-23 20:09:16
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<div class="box" @click="goLists(item.division)"> <div class="box" @click="goLists(item.division)">
<div class="first"> <div class="first">
<img src="@/assets/productQuery/product-query.png" alt=""> <img src="@/assets/productQuery/product-query.png" alt="">
<p class="product-class">产品类别</p> <p class="product-class">主机厂</p>
<p class="product">{{ item.factory_bp_name }}</p> <p class="product">{{ item.factory_bp_name }}</p>
</div> </div>
<div class="second"> <div class="second">
......
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