Commit bde620c3 authored by 786817560's avatar 786817560

Merge branch 'ren' into develop

parents d0d3984b 664da302
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-22 09:43:48 * @LastEditTime: 2019-10-22 13:33:30
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</item> </item>
</list-item> </list-item>
<div class="repay-plan"> <div class="repay-plan">
<p>查看还款计划</p> <p @click="repayPlan">查看还款计划</p>
</div> </div>
<div class="equipment-list">设备清单</div> <div class="equipment-list">设备清单</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
...@@ -171,6 +171,7 @@ export default { ...@@ -171,6 +171,7 @@ export default {
return { return {
isshow: false, // 提示框的显示与隐藏 isshow: false, // 提示框的显示与隐藏
num: 0, num: 0,
project_id: '',
conditionInfo: {}, conditionInfo: {},
check1: Check1, check1: Check1,
check2: Check2, check2: Check2,
...@@ -183,6 +184,7 @@ export default { ...@@ -183,6 +184,7 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'ContractSigning') { if (from.name === 'ContractSigning') {
next(vm => { next(vm => {
vm.project_id = vm.$route.params.project_id
vm.conditionQuery() vm.conditionQuery()
}) })
} }
...@@ -205,6 +207,15 @@ export default { ...@@ -205,6 +207,15 @@ export default {
} }
}) })
}, },
// 还款计划
repayPlan () {
this.$router.push({
name: 'FinancDetails',
params: {
project_id: this.project_id,
},
})
},
// 跳转合同详情 // 跳转合同详情
goContractContent (name) { goContractContent (name) {
this.$router.push({ this.$router.push({
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-27 18:07:12 * @Date: 2019-09-27 18:07:12
* @LastEditTime: 2019-10-10 11:55:05 * @LastEditTime: 2019-10-22 13:38:33
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
} }
.top { .top {
width: 100%; width: 100%;
height: 250px; height: 260px;
background: url("../../assets/intoApproval/backtop.png") no-repeat; background: url("../../assets/intoApproval/backtop.png") no-repeat;
background-size: 100% 285px; background-size: 100% 285px;
.top-detail { .top-detail {
......
...@@ -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 10:28:25 * @LastEditTime: 2019-10-22 16:31:22
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<span>产品明细</span> <span>产品明细</span>
</div> </div>
</h-header> </h-header>
<Tab @getTabNum="getTabNum" /> <Tab :tabNums="tabNum" @getTabNum="getTabNum" />
<!-- 基本信息 --> <!-- 基本信息 -->
<h-content v-if="tabNum === 0"> <h-content v-if="tabNum === 0">
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
...@@ -77,6 +77,10 @@ ...@@ -77,6 +77,10 @@
<span slot="content"> {{ detailInfo.factory_bp_name }} </span> <span slot="content"> {{ detailInfo.factory_bp_name }} </span>
</item> </item>
</list-item> </list-item>
<div v-for="item in picLists" :key="item.product_attachment_id" class="proPic">
<img :src="item.url" alt="">
</div>
</h-content> </h-content>
<!-- 产品配置 --> <!-- 产品配置 -->
<h-content v-if="tabNum === 2"> <h-content v-if="tabNum === 2">
...@@ -114,6 +118,7 @@ export default { ...@@ -114,6 +118,7 @@ export default {
return { return {
text: '', text: '',
tabNum: 0, tabNum: 0,
picLists: [],
baseInfo: {}, baseInfo: {},
show_text: '', show_text: '',
confgInfo: {}, confgInfo: {},
...@@ -128,6 +133,7 @@ export default { ...@@ -128,6 +133,7 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'ProductList') { if (from.name === 'ProductList') {
next(vm => { next(vm => {
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()
...@@ -176,6 +182,7 @@ export default { ...@@ -176,6 +182,7 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
console.log('取消收藏。。。。。。。。', res) console.log('取消收藏。。。。。。。。', res)
if (res.result === 'S') { if (res.result === 'S') {
window.sessionStorage.setItem('collect_status', 'N')
vm.show_text = '取消成功' vm.show_text = '取消成功'
vm.collect_flag = true vm.collect_flag = true
vm.src = require('@/assets/productQuery/collect.png') vm.src = require('@/assets/productQuery/collect.png')
...@@ -203,6 +210,7 @@ export default { ...@@ -203,6 +210,7 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
console.log('收藏', res) console.log('收藏', res)
if (res.result === 'S') { if (res.result === 'S') {
window.sessionStorage.setItem('collect_status', 'Y')
vm.src = require('@/assets/productQuery/coll-success.png') vm.src = require('@/assets/productQuery/coll-success.png')
setTimeout(() => { setTimeout(() => {
vm.text = '取消收藏' vm.text = '取消收藏'
...@@ -241,6 +249,12 @@ export default { ...@@ -241,6 +249,12 @@ export default {
console.log('产品详情', res) console.log('产品详情', res)
if (res.result === 'S') { if (res.result === 'S') {
vm.detailInfo = res.info vm.detailInfo = res.info
// vm.picLists = res.lists
res.lists.forEach(item => {
item['url'] = process.env.filePath + 'attachment_id=' + item.product_attachment_id + '&access_token=' + window.localStorage.access_token
})
vm.picLists = res.lists
console.log('。。。。。。。。。。。。。。。', res.lists)
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -378,5 +392,12 @@ export default { ...@@ -378,5 +392,12 @@ export default {
margin-left: -4px; margin-left: -4px;
} }
} }
.proPic {
width: 100%;
img {
width: 94%;
margin-left: 10px
}
}
} }
</style> </style>
...@@ -58,11 +58,16 @@ export default { ...@@ -58,11 +58,16 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'QueryHome') { if (from.name === 'QueryHome') {
next(vm => { next(vm => {
vm.proQuery() // vm.proQuery()
// vm.division = vm.$route.params.division
}) })
} }
// this.proQuery()
next() next()
}, },
activated () {
this.proQuery()
},
methods: methods:
{ {
// 根据产品线查询列表 // 根据产品线查询列表
...@@ -70,7 +75,8 @@ export default { ...@@ -70,7 +75,8 @@ export default {
let vm = this let vm = this
let url = $config.basePath + 'prd_product_list' let url = $config.basePath + 'prd_product_list'
let param = { let param = {
division: vm.$route.params.division, division: window.sessionStorage.division,
user_phone: window.localStorage.user_phone,
} }
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
console.log(res) console.log(res)
......
...@@ -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-21 16:41:10 * @LastEditTime: 2019-10-22 15:14:27
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -85,11 +85,12 @@ export default { ...@@ -85,11 +85,12 @@ export default {
}, },
// 跳列表 val = 产品线 // 跳列表 val = 产品线
goLists (val) { goLists (val) {
window.sessionStorage.setItem('division', val)
this.$router.push({ this.$router.push({
name: 'ProductList', name: 'ProductList',
params: { // params: {
division: val, // division: val,
}, // },
}) })
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: 详情tab * @Description: 详情tab
* @Author: your name * @Author: your name
* @Date: 2019-09-25 19:47:59 * @Date: 2019-09-25 19:47:59
* @LastEditTime: 2019-10-17 10:55:24 * @LastEditTime: 2019-10-22 14:38:34
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -23,9 +23,15 @@ import unDetail from '@/assets/productQuery/unDetail.png' ...@@ -23,9 +23,15 @@ import unDetail from '@/assets/productQuery/unDetail.png'
import config from '@/assets/productQuery/config.png' import config from '@/assets/productQuery/config.png'
import unConfig from '@/assets/productQuery/unConfig.png' import unConfig from '@/assets/productQuery/unConfig.png'
export default { export default {
props: {
tabNums: {
type: Number,
default: 0,
},
},
data () { data () {
return { return {
tabNum: 0, tabNum: this.tabNums,
baseInfo: baseInfo, baseInfo: baseInfo,
unBaseInfo: unBaseInfo, unBaseInfo: unBaseInfo,
detail: detail, detail: detail,
...@@ -34,6 +40,11 @@ export default { ...@@ -34,6 +40,11 @@ export default {
unConfig: unConfig, unConfig: unConfig,
} }
}, },
watch: {
tabNums () {
this.tabNum = this.tabNums
},
},
methods: { methods: {
sendTabNum () { sendTabNum () {
this.$emit('getTabNum', this.tabNum) this.$emit('getTabNum', this.tabNum)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-24 12:34:06 * @Date: 2019-09-24 12:34:06
* @LastEditTime: 2019-10-18 10:14:00 * @LastEditTime: 2019-10-22 14:52:22
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
*/ */
import Vue from 'vue' import Vue from 'vue'
......
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