Commit a964340a authored by huangjie's avatar huangjie

集团详情-土地交易

parent 97683cfa
...@@ -150,3 +150,22 @@ export function memberListExport(data) { ...@@ -150,3 +150,22 @@ export function memberListExport(data) {
data: data data: data
}) })
} }
//集团商机-土地交易
export function landMarketPage(data) {
return request({
url: '/combine/info/landMarket/page',
method: 'post',
data: data
})
}
//集团商机-土地交易导出
export function landMarketExport(data) {
return request({
url: '/export/combine/landMarket',
method: 'post',
data: data
})
}
...@@ -16,7 +16,13 @@ ...@@ -16,7 +16,13 @@
class="detail-menu" class="detail-menu"
@open="handleOpen"> @open="handleOpen">
<template v-for="(item, index) in sideRoute"> <template v-for="(item, index) in sideRoute">
<template> <el-submenu :index="index.toString()" v-if="item.children">
<template slot="title">
<span>{{item.title}}</span>
</template>
<el-menu-item :index="index+'-'+idx" v-for="(it, idx) in item.children" :key="idx" @click="handleItem(it)">{{it.title}}</el-menu-item>
</el-submenu>
<template v-else>
<el-menu-item :index="index.toString()" :disabled="item.disabled" @click="handleItem(item)">{{item.title}}</el-menu-item> <el-menu-item :index="index.toString()" :disabled="item.disabled" @click="handleItem(item)">{{item.title}}</el-menu-item>
</template> </template>
</template> </template>
...@@ -56,6 +62,20 @@ export default { ...@@ -56,6 +62,20 @@ export default {
sideRoute: [ sideRoute: [
{title: '集团成员', pathName: 'members'}, {title: '集团成员', pathName: 'members'},
{title: '集团资质', pathName: 'qualifications'}, {title: '集团资质', pathName: 'qualifications'},
{title: '集团商机', pathName: '', children: [
{ title: '土地交易', pathName: 'landtransaction' },
]
},
{title: '集团业绩', pathName: 'performance'},
{title: '集团招标', pathName: 'zhaobiao'},
],
sideRoute1: [
{title: '集团成员', pathName: 'members'},
{title: '集团资质', pathName: 'qualifications'},
{title: '集团商机', pathName: '', children: [
{ title: '土地交易', pathName: 'landtransaction' },
]
},
{title: '集团业绩', pathName: 'performance'}, {title: '集团业绩', pathName: 'performance'},
{title: '集团招标', pathName: 'zhaobiao'}, {title: '集团招标', pathName: 'zhaobiao'},
], ],
...@@ -63,6 +83,7 @@ export default { ...@@ -63,6 +83,7 @@ export default {
customer:[ customer:[
'members', 'members',
'qualifications', 'qualifications',
'landtransaction',
'performance', 'performance',
'zhaobiao', 'zhaobiao',
], ],
...@@ -128,7 +149,21 @@ export default { ...@@ -128,7 +149,21 @@ export default {
}, },
handleItem(item){ handleItem(item){
this.$emit("currentPath", item) let obj = item;
for (var i in this.sideRoute1) {
if (this.sideRoute1[i].children) {
for (var j in this.sideRoute1[i].children) {
if (item.title == this.sideRoute1[i].children[j].title) {
obj.pathName = this.sideRoute1[i].children[j].pathName;
}
}
} else {
if (item.title == this.sideRoute1[i].title) {
obj.pathName = this.sideRoute1[i].pathName;
}
}
}
this.$emit("currentPath", obj)
}, },
handleSearch(flag){ handleSearch(flag){
if((this.searchText&&!flag) || (!this.searchText&&flag)){ if((this.searchText&&!flag) || (!this.searchText&&flag)){
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<div id="groupBox" v-if="customerId"> <div id="groupBox" v-if="customerId">
<Members v-if="currentPath.pathName=='members'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/> <Members v-if="currentPath.pathName=='members'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/>
<Qualifications v-if="currentPath.pathName=='qualifications'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/> <Qualifications v-if="currentPath.pathName=='qualifications'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/>
<Landtransaction v-if="currentPath.pathName=='landtransaction'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/>
<Performance v-if="currentPath.pathName=='performance'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/> <Performance v-if="currentPath.pathName=='performance'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/>
<Zhaobiao v-if="currentPath.pathName=='zhaobiao'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/> <Zhaobiao v-if="currentPath.pathName=='zhaobiao'" @handle-scroll="scrollToTop" :customer-id="customerId" :isSkeleton="isSkeleton" :combineName="name"/>
</div> </div>
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
import SideBar from "./component/Sidebar" import SideBar from "./component/Sidebar"
import Members from "./component/members" import Members from "./component/members"
import Qualifications from "./component/qualifications" import Qualifications from "./component/qualifications"
import Landtransaction from "./component/landtransaction"
import Performance from "./component/performance" import Performance from "./component/performance"
import Zhaobiao from "./component/zhaobiao" import Zhaobiao from "./component/zhaobiao"
import { infoHeader } from '@/api/detail/party-a/index' import { infoHeader } from '@/api/detail/party-a/index'
...@@ -34,7 +36,7 @@ ...@@ -34,7 +36,7 @@
export default { export default {
name: 'GroupAccount', name: 'GroupAccount',
components:{ components:{
SideBar,Members,Qualifications,Performance,Zhaobiao SideBar,Members,Qualifications,Landtransaction,Performance,Zhaobiao
}, },
data(){ data(){
return{ return{
......
...@@ -178,6 +178,14 @@ export default { ...@@ -178,6 +178,14 @@ export default {
startTime = new Date(endTime.getTime() - 3600 * 1000 * 24 * 15) startTime = new Date(endTime.getTime() - 3600 * 1000 * 24 * 15)
timeStr = [this.formatDate(startTime), this.formatDate(endTime)] timeStr = [this.formatDate(startTime), this.formatDate(endTime)]
break; break;
case '近1个月':
startTime = new Date(endTime.getTime() - 3600 * 1000 * 24 * 30)
timeStr = [this.formatDate(startTime), this.formatDate(endTime)]
break;
case '近半年':
startTime = new Date(endTime.getTime() - 3600 * 1000 * 24 * 180)
timeStr = [this.formatDate(startTime), this.formatDate(endTime)]
break;
case '近1年': case '近1年':
startTime = new Date().setFullYear(new Date().getFullYear() - 1) startTime = new Date().setFullYear(new Date().getFullYear() - 1)
if(this.dateTo){ if(this.dateTo){
......
...@@ -64,6 +64,16 @@ ...@@ -64,6 +64,16 @@
<el-cascader :class="[`select-adaptive-${form.uid}`]" ref="cascader" :options="form.options" :props="form.props" v-model="form.value" <el-cascader :class="[`select-adaptive-${form.uid}`]" ref="cascader" :options="form.options" :props="form.props" v-model="form.value"
@change="iptAdaptive(form.uid,true)" :placeholder="form.placeholder" collapse-tags clearable></el-cascader> @change="iptAdaptive(form.uid,true)" :placeholder="form.placeholder" collapse-tags clearable></el-cascader>
</template> </template>
<!-- 出让面积、自定义 -->
<template v-else-if="form.type==8">
<start-acreage-select :class="[`select-adaptive-${form.uid}`,'custom-select']" :startAcreageList="form.startAcreageList" v-model="form.value"
:placeholder="form.placeholder" @handle-search="iptAdaptive(form.uid)" />
</template>
<!-- 金额 (集团户详情)-->
<template v-else-if="form.type==9">
<group-money-select :class="[`select-adaptive-${form.uid}`,'custom-select']" :moneyList="form.moneyList" v-model="form.value"
:placeholder="form.placeholder" @handle-search="iptAdaptive(form.uid)" />
</template>
<!-- 自定义 --> <!-- 自定义 -->
<template v-if="form.type==0"> <template v-if="form.type==0">
<slot name="slot"></slot> <slot name="slot"></slot>
...@@ -78,7 +88,7 @@ ...@@ -78,7 +88,7 @@
</template> </template>
<div v-else class="flex-box"> <div v-else class="flex-box">
<span class="flex-box ability-total" v-if="isTotal">共有{{ total }}条</span> <span class="flex-box ability-total" v-if="isTotal">共有{{ total }}条</span>
<span class="flex-box ability-excel" v-hasPermi="['combine:info:export:win:bid','combine:info:export:bid']" v-if="isExcel && title ==='集团业绩'|| title ==='集团招标' " <span class="flex-box ability-excel" v-hasPermi="['combine:info:export:win:bid','combine:info:export:bid']" v-if="isExcel && title ==='集团业绩'|| title ==='集团招标' || title ==='土地交易明细'"
@click="clickEXCEL"><img src="@/assets/images/ability_excel.png">导出EXCEL</span> @click="clickEXCEL"><img src="@/assets/images/ability_excel.png">导出EXCEL</span>
<span class="flex-box ability-excel" v-else @click="clickEXCEL"><img src="@/assets/images/ability_excel.png">导出EXCEL</span> <span class="flex-box ability-excel" v-else @click="clickEXCEL"><img src="@/assets/images/ability_excel.png">导出EXCEL</span>
</div> </div>
...@@ -90,6 +100,8 @@ ...@@ -90,6 +100,8 @@
<script> <script>
import CustomTimeSelect from './CustomTimeSelect'; import CustomTimeSelect from './CustomTimeSelect';
import CustomMoneySelect from './CustomMoneySelect'; import CustomMoneySelect from './CustomMoneySelect';
import GroupMoneySelect from './GroupMoneySelect';
import StartAcreageSelect from './StartAcreageSelect';
import gsap from "gsap"; import gsap from "gsap";
export default { export default {
name: "HeadForm", name: "HeadForm",
...@@ -127,9 +139,18 @@ export default { ...@@ -127,9 +139,18 @@ export default {
default: false default: false
} }
}, },
watch: {
formData: {
handler(newValue) {
this.comFormData = newValue;
},
deep: true
}
},
data() { data() {
return { return {
showSearchBox: false showSearchBox: false,
comFormData: this.formData
}; };
}, },
created() { created() {
...@@ -137,7 +158,9 @@ export default { ...@@ -137,7 +158,9 @@ export default {
}, },
components: { components: {
CustomTimeSelect, CustomTimeSelect,
CustomMoneySelect CustomMoneySelect,
StartAcreageSelect,
GroupMoneySelect
}, },
methods: { methods: {
searchFocus(event, formData) { searchFocus(event, formData) {
...@@ -244,7 +267,7 @@ export default { ...@@ -244,7 +267,7 @@ export default {
textContainer.remove(); textContainer.remove();
}); });
dom.style.setProperty("width", `${width + 60}px`); dom.style.setProperty("width", `${width + 60}px`);
this.$emit('handle-search'); this.$emit('handle-search', this.comFormData);
return; return;
} }
textContainer.style.setProperty("visibility", "hidden"); textContainer.style.setProperty("visibility", "hidden");
...@@ -257,7 +280,7 @@ export default { ...@@ -257,7 +280,7 @@ export default {
let containerWidth = textContainer.offsetWidth + 12 + 8; let containerWidth = textContainer.offsetWidth + 12 + 8;
textContainer.remove(); textContainer.remove();
dom.style.setProperty("width", `${containerWidth}px`); dom.style.setProperty("width", `${containerWidth}px`);
this.$emit('handle-search'); this.$emit('handle-search', this.comFormData);
} }
} catch (error) { } catch (error) {
...@@ -287,16 +310,16 @@ export default { ...@@ -287,16 +310,16 @@ export default {
textContainer.remove(); textContainer.remove();
dom.style.setProperty("width", `${containerWidth}px`); dom.style.setProperty("width", `${containerWidth}px`);
} }
this.$emit('handle-search'); this.$emit('handle-search', this.comFormData);
} catch (error) { } catch (error) {
} }
}, },
changeSelect(e) { changeSelect(e) {
this.$emit('handle-search'); this.$emit('handle-search', this.comFormData);
}, },
clickEXCEL() { clickEXCEL() {
if (this.title === '集团业绩' || this.title === '集团招标' || this.title === '集团成员') { if (this.title === '集团业绩' || this.title === '集团招标' || this.title === '集团成员'|| this.title === '土地交易明细') {
this.$emit('handle-excel'); this.$emit('handle-excel');
} else { } else {
this.$message({ this.$message({
......
...@@ -352,7 +352,8 @@ ...@@ -352,7 +352,8 @@
], ],
page: 1, page: 1,
limit: 20, limit: 20,
acreageOptions: [{ acreageOptions: [
{
value: "不限", value: "不限",
label: "不限", label: "不限",
}, },
...@@ -385,7 +386,8 @@ ...@@ -385,7 +386,8 @@
label: "10万平以上", label: "10万平以上",
}, },
], ],
transactionPriceOptions: [{ transactionPriceOptions: [
{
value: "不限", value: "不限",
label: "不限", label: "不限",
}, },
......
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