123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020 |
- <script setup>
- import {
- ref,
- getCurrentInstance
- } from "vue";
- import {
- onLoad,
- onPullDownRefresh,
- onReachBottom,
- onPageScroll
- } from "@dcloudio/uni-app";
- import {
- getJSDDlist,
- getHYFLlist,
- getJSXZlist,
- getXMLXlist,
- getProjectInfoList,
- getProjectGraphicList,
- } from "@/api/work/projectInfo.js";
- import {
- getInfo,
- } from "@/api/login.js"
- import {
- getXMXZlist,
- } from "@/api/home.js"
- import store from '@/store'
- import {
- timeFormat
- } from "@/utils/timeFormatter.js"
- let searchInfo = ref({
- pageNo: 1,
- pageSize: 10,
- subName: null,
- propKind: null,
- indusKind: null,
- subjectId: null,
- kind: null,
- orderType: null,
- })
- let listTotal = ref(0);
- let projectList = ref([{}]);
- const reSearch = function() {
- searchInfo.value.pageNo = 1;
- projectList.value = [];
- listTotal.value = 0;
- moreListFlag = true;
- getList();
- };
- let loading = ref(false);
- let moreListFlag = true;
- const getList = function() {
- const params = Object.assign({}, searchInfo.value);
- if (params.propKind) params.propKind = jsxzFull.find(item => item.value === params.propKind).key;
- if (params.indusKind) params.indusKind = hyflFull.find(item => item.value === params.indusKind).key;
- if (params.subjectId) params.subjectId = jsddFull.find(item => item.value === params.subjectId).key;
- if (params.kind) params.kind = xmlxFull.find(item => item.value === params.kind).key;
- if (params.orderType) params.orderType = orderFull.find(item => item.value === params.orderType).key;
- if (searchInfo.value.pageNo == 1) {
- loading.value = true
- };
- getProjectGraphicList(params).then(res => {
- loading.value = false
- projectList.value = projectList.value.concat(res.data.list);
- listTotal.value = res.data.total;
- if (res.data.total == searchInfo.value.pageNo * searchInfo.value.pageSize - (10 - res.data.list
- .length)) moreListFlag = false;
- }).catch(() => {
- loading.value = false
- })
- }
- // 建设性质
- let jsxzFull = [];
- let jsxzColumns = ref([]);
- const getJSXZ = function() {
- getJSXZlist().then(res => {
- jsxzFull = res.data.list;
- jsxzColumns.value = [res.data.list.map(item => item.value)];
- })
- };
- let jsxzShow = ref(false);
- const jsxzShowChoose = function() {
- jsxzShow.value = true;
- }
- const jsxzClose = function(e) {
- if (e) searchInfo.value.propKind = e.value[0];
- jsxzShow.value = false;
- }
- let hyflShow = ref(false);
- const hyflShowChoose = function() {
- hyflShow.value = true;
- }
- const hyflClose = function(e) {
- if (e) searchInfo.value.indusKind = e.value[0];
- hyflShow.value = false;
- }
- let jsddShow = ref(false);
- const jsddShowChoose = function() {
- jsddShow.value = true;
- }
- const jsddClose = function(e) {
- if (e) searchInfo.value.subjectId = e.value[0];
- jsddShow.value = false;
- }
- // 项目类型
- let xmlxFull = [];
- let xmlxShow = ref(false);
- const xmlxShowChoose = function() {
- xmlxShow.value = true;
- }
- const xmlxClose = function(e) {
- if (e) searchInfo.value.kind = e.value[0];
- xmlxShow.value = false;
- }
- // 按金额排序
- let orderFull = [{
- key: null,
- value: "默认"
- }, {
- key: "asc",
- value: "升序"
- }, {
- key: "desc",
- value: "降序"
- }];
- let orderColumns = ref([
- ["默认", "升序", "降序"]
- ]);
- let orderShow = ref(false);
- const orderShowChoose = () => {
- orderShow.value = true;
- }
- const orderClose = function(e) {
- if (e) searchInfo.value.orderType = e.value[0];
- orderShow.value = false;
- }
- let modalshow = ref(false)
- const clickItem = id => {
- // modalshow.value = true
- uni.navigateTo({
- url: `/pages/projectImageAndVideo/index?subId=${id}`
- })
- }
- // 折叠/展开
- const changeFoldItem = (status, id) => {
- let item = projectList.value.find(item => item.id === id);
- item.unfold = status;
- }
- //是否展开筛选条件
- let isUnfold = ref(false)
- //投资分析帅选条件
- let investmentAnalysisFrom = ref({
- kind: ''
- })
- let cardCurrut = ref(0)
- function onChangeCard(e) {
- if (cardCurrut.value == e) {
- projectList.value[cardCurrut.value].isOpen = !projectList.value[cardCurrut.value].isOpen
- } else {
- projectList.value[cardCurrut.value].isOpen = false
- projectList.value[e].isOpen = true
- cardCurrut.value = e
- }
- }
- let pageForm = ref({
- beginDateStart: null,
- beginDateEnd: null,
- kind: null,
- indusKind: null,
- propKind: null,
- subjectId: null,
- status: null,
- subName: null,
- startAmt: null,
- endAmt: null,
- isHide: null,
- light: ['红灯', '黄灯', '绿灯'],
- })
- // ====================================选择开始时间
- let beginDateStart = ref(null)
- let beginTimeShow = ref(false)
- function showBeginTimeChoose() {
- beginTimeShow.value = true
- }
- function beginTimeClose(e) {
- if (e) {
- let time = timeFormat(e.value)
- pageForm.value.beginDateStart = time
- }
- beginTimeShow.value = false
- }
- // ====================================选择结束时间
- let beginDateEnd = ref(null)
- let endTimeShow = ref(false)
- function showEndTimeChoose() {
- endTimeShow.value = true
- }
- function endTimeClose(e) {
- if (e) {
- let time = timeFormat(e.value)
- pageForm.value.beginDateEnd = time
- }
- endTimeShow.value = false
- }
- // ====================================选择项目类型
- let kindShow = ref(false);
- let kindColumns = ref([]);
- function showKindChoose() {
- kindShow.value = true
- }
- function kindClose(e) {
- if (e) pageForm.value.kind = e.value[0];
- kindShow.value = false;
- }
- let kindFull = [];
- const getXMLX = function() {
- getXMLXlist().then(res => {
- kindFull = res.data.list;
- kindFull.unshift({
- key: null,
- value: "所有类型"
- });
- kindColumns.value = [res.data.list.map(item => item.value)];
- })
- };
- // ====================================选择行业分类
- let industKindOrgin = []
- let IndustKindList = ref([])
- let IndustKindShow = ref(false)
- function showIndustKindChoose() {
- IndustKindShow.value = true
- }
- function IndustKindClose(e) {
- if (e) pageForm.value.indusKind = e.value[0];
- IndustKindShow.value = false
- }
- // ====================================选择行业状态
- // let statusList = ref([
- // ["请选择", "暂存", "项目申报", "待审批", "审批中", "核准备案中", "计划编制", "待开工", "施工中", "年度竣工", "不同意", "已竣工"]
- // ])
- let statusList = ref([
- ["请选择", "暂存", "项目前期", "待开工", "施工中", "暂停施工", "已竣工"]
- ])
- let statusShow = ref(false)
- function showStatusChoose() {
- statusShow.value = true
- }
- function statusClose(e) {
- if (e) pageForm.value.status = e.value[0];
- statusShow.value = false;
- }
- // ====================================选择隐藏状态
- let isHideNameList = ref([
- ["请选择",
- "正常",
- "隐藏"
- ]
- ])
- let isHideNameShow = ref(false)
- function showIsHideNameChoose() {
- isHideNameShow.value = true
- }
- function isHideNameClose(e) {
- if (e) pageForm.value.isHideName = e.value[0];
- isHideNameShow.value = false;
- }
- // =====================================地点
- let areaShow = ref(false);
- let areaColumns = ref([]);
- const showAreaChoose = function() {
- areaShow.value = true;
- }
- const areaClose = function(e) {
- if (e) pageForm.value.subjectId = e.value[0];
- areaShow.value = false;
- }
- let jsddFull = [];
- const getJSDD = function() {
- getJSDDlist().then(res => {
- jsddFull = res.data.list;
- jsddFull.push({
- key: null,
- value: "所有地区"
- });
- areaColumns.value = [res.data.list.map(item => item.value)];
- areaColumns.value[0].unshift("所有地区");
- })
- };
- // =====================================性质
- let xmxzShow = ref(false);
- let xmxzColumns = ref([]);
- const showXmxzChoose = function() {
- xmxzShow.value = true;
- }
- const xmxzClose = function(e) {
- if (e) pageForm.value.propKind = e.value[0];
- xmxzShow.value = false;
- }
- let xmxzFull = [];
- const getXMXZ = function() {
- getXMXZlist().then(res => {
- xmxzFull = res.data.list;
- xmxzFull.unshift({
- key: null,
- value: "所有性质"
- });
- xmxzColumns.value = [res.data.list.map(item => item.value)];
- })
- };
- // =====================================灯
- let lightShow = ref(false);
- const kindUnit = store.getters && store.getters.kindUnit;
- function judgeLightShow() {
- if ((kindUnit ?? '') === '') {
- // 为空就请求一下
- getInfo().then(res => {
- lightShow.value = res?.data?.user?.kindUnit === "1";
- })
- } else {
- lightShow.value = kindUnit === "1";
- }
- }
- function confirmParams() {
- // let statusObj = {
- // "请选择": "",
- // "暂存": "0",
- // "项目申报": "1",
- // "待审批": "2",
- // "审批中": "3",
- // "核准备案中": "4",
- // "计划编制": "5",
- // "待开工": "6",
- // "施工中": "7",
- // "不同意": "8",
- // "年度竣工": "9",
- // "已竣工": "A"
- // }
- let statusObj = {
- "请选择": "",
- "暂存": "0",
- "项目前期": "1",
- "待开工": "6",
- "施工中": "7",
- "暂停施工": "8",
- //"年度竣工": "9",
- "已竣工": "A"
- }
- let isHideNameObj = {
- "请选择": "",
- "正常": "0",
- "隐藏": "1",
- }
- let lightObj = {
- "绿灯": "0",
- "黄灯": "1",
- "红灯": "2"
- }
- let lightText = ""
- for (let i in pageForm.value.light) {
- lightText += lightObj[pageForm.value.light[i]] + ","
- }
- if (lightText.length > 0) lightText = lightText.substr(0, lightText.length - 1);
- let paramsData = {
- "beginDateStart": pageForm.value.beginDateStart,
- "beginDateEnd": pageForm.value.beginDateEnd,
- "kind": kindFull.find(item => item.value === pageForm.value.kind)?.key,
- "indusKind": industKindOrgin.find(item => item.value === pageForm.value.indusKind)?.key,
- "subjectId": jsddFull.find(item => item.value === pageForm.value.subjectId)?.key,
- "propKind": xmxzFull.find(item => item.value === pageForm.value.propKind)?.key,
- "status": statusObj[pageForm.value.status],
- "subName": pageForm.value.subName,
- "startAmt": pageForm.value.startAmt,
- "endAmt": pageForm.value.endAmt,
- "isHide": isHideNameObj[pageForm.value.isHideName],
- "light": lightText
- }
- searchInfo.value = Object.assign(searchInfo.value, paramsData);
- searchInfo.value.pageNo = 1;
- projectList.value = [];
- listTotal.value = 0;
- moreListFlag = true;
- console.log(searchInfo.value, '请求参数');
- getList();
- }
- let scrollTop = ref(0);
- onPageScroll((e) => {
- scrollTop.value = e.scrollTop
- })
- onPullDownRefresh(() => {
- try {
- reSearch();
- } finally {
- uni.stopPullDownRefresh()
- }
- })
- onLoad(async () => {
- let now = new Date();
- let year = now.getFullYear();
- // 开始时间
- beginDateStart.value = pageForm.value.beginDateStart = year + "/01/01";
- // 结束时间
- beginDateEnd.value = pageForm.value.beginDateEnd = year + "/12/31";
- // 行业分类列表
- const res = await getHYFLlist()
- industKindOrgin = res.data.list
- let titleList = res.data.list.map(item => item.value)
- titleList.unshift("请选择")
- IndustKindList.value = [titleList]
- getJSDD(); // 建设地点列表
- getXMXZ(); // 项目性质列表
- getXMLX(); // 项目类型列表
- judgeLightShow()
- getList();
- })
- onReachBottom(() => {
- if (!moreListFlag) {
- return uni.showToast({
- title: "已经到底了。",
- icon: "none",
- duration: 2000
- })
- }
- searchInfo.value.pageNo++;
- getList();
- })
- </script>
- <template>
- <view class="container">
- <page-title>项目形象进度({{listTotal}})</page-title>
- <view class="stats-layer-next">
- <view class="condition-btn">
- <view class="text">
- 2024
- </view>
- <image src="../../static/open-btn.png" mode="" :class="isUnfold ? 'open-btn':''"
- @click="isUnfold = !isUnfold"></image>
- </view>
- <view class="condition-from" :style="isUnfold ? {height:'800rpx'} :''">
- <view class="item">
- <view class="item-label">开始日期</view>
- <view class="item-text" @click="showBeginTimeChoose()">
- <view v-if="pageForm.beginDateStart">{{pageForm.beginDateStart}}</view>
- <view v-else class="text">请选择开始日期</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">结束日期</view>
- <view class="item-text" @click="showEndTimeChoose()">
- <view v-if="pageForm.beginDateEnd">{{pageForm.beginDateEnd}}</view>
- <view v-else class="text">请选择结束日期</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">项目类型</view>
- <view class="item-text" @click="showKindChoose()">
- <view v-if="pageForm.kind">{{pageForm.kind}}</view>
- <view v-else class="text">请选择类型</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">项目性质</view>
- <view class="item-text" @click="showXmxzChoose()">
- <view v-if="pageForm.propKind">{{pageForm.propKind}}</view>
- <view v-else class="text">请选择行业分类</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">建设地点</view>
- <view class="item-text" @click="showAreaChoose()">
- <view v-if="pageForm.subjectId">{{pageForm.subjectId}}</view>
- <view v-else class="text">请选择建设地点</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">行业分类</view>
- <view class="item-text" @click="showIndustKindChoose()">
- <view v-if="pageForm.indusKind">{{pageForm.indusKind}}</view>
- <view v-else class="text">请选择行业分类</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">状态</view>
- <view class="item-text" @click="showStatusChoose()">
- <view v-if="pageForm.status">{{pageForm.status}}</view>
- <view v-else class="text">请选择状态</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">隐藏状态</view>
- <view class="item-text" @click="showIsHideNameChoose()">
- <view v-if="pageForm.isHideName">{{pageForm.isHideName}}</view>
- <view v-else class="text">请选择隐藏状态</view>
- <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="item">
- <view class="item-label">金额范围</view>
- <view class="card-item-range">
- <input v-model="pageForm.startAmt" class="card-item-input center-input" placeholder="最小值"
- placeholder-style="color: #D8D8D8" maxlength="20" type="number" />
- ~
- <input v-model="pageForm.endAmt" class="card-item-input center-input" placeholder="最大值"
- placeholder-style="color: #D8D8D8" maxlength="20" type="number" />
- </view>
- </view>
- <view class="item">
- <view class="item-label">项目名称</view>
- <view class="card-item-range">
- <input v-model="pageForm.subName" class="card-item-input center-input" placeholder="请输入项目名称"
- placeholder-style="color: #D8D8D8" maxlength="20" type="number" />
- </view>
- </view>
- <!-- 红黄绿灯 -->
- <!-- <view style="margin-top: 20rpx;">
- <u-checkbox-group v-model="pageForm.light" style="width: 500rpx">
- <u-checkbox :customStyle="{display:'flex',justifyContent:'space-evenly',width:'32%'}"
- label-size="16px" iconColor='#fff' activeColor='#002F69' v-for="(item, index) in lightList"
- :key="index" :label="item.name" :name="item.name">
- </u-checkbox>
- </u-checkbox-group>
- </view> -->
- <view class="form-confrom" style="margin-top: 20rpx;" @click="confirmParams()">
- 确定
- </view>
- </view>
- </view>
- <view class="cards-list" :style="isUnfold ? {marginTop:'30rpx'} :''">
- <view v-for="(item,index) in projectList" :key="index">
- <view class="card">
- <view class="project-layer" :style="!item.isOpen ? {border:'none'}:''">
- <text class="card-name-num">{{(index+1<10?'0'+(index+1):index+1)}}</text>
- <view class="name">
- {{item.subName ?? "--"}}
- </view>
- </view>
- <view class="card-status" @click="onChangeCard(index)">
- <image class="status-light" src="../../static/images/red.svg" mode="" v-if="item.status_fgw=='2'"></image>
- <image class="status-light" src="../../static/images/green.svg" mode="" v-if="item.status_fgw=='0'||item.status_fgw==null"></image>
- <image class="status-light" src="../../static/images/yellow.svg" mode="" v-if="item.status_fgw=='1'"></image>
- {{item.status ?? "--"}}
- <image src="../../static/images/liaghtUp.svg" mode=""
- :class="item.isOpen ?'card-status-icon-change' :''"></image>
- </view>
- <view class="card-content-box" :style="item.isOpen ? {height:'300rpx'} :''">
- <view class="card-item" style="margin-top: 5rpx;">
- <view class="card-item-name">总 投 资 金 额</view>
- <view class="card-item-content">{{item.amtTotal ?? "--"}}</view>
- </view>
- <!-- 年度计划投资-申报单位(万元) -->
- <view class="card-item">
- <view class="card-item-name">年度计划投资</view>
- <view class="card-item-content">{{item.yearAmt ?? "--"}}</view>
- </view>
- <!-- 已完成投资(万元)-->
- <view class="card-item">
- <view class="card-item-name">年度完成投资</view>
- <view class="card-item-content">{{item.yearAmtSj ?? "--"}}</view>
- </view>
- <!-- 当前状态 -->
- <view class="card-item">
- <view class="card-item-name">项目状态</view>
- <view class="card-item-content content-red">{{item.status ?? "--"}}</view>
- </view>
- <view class="card-item" style="margin-top: 20rpx;">
- <view class="item-button" @click="clickItem(item.id)">
- 形象进度展示
- </view>
- </view>
- <!-- <view class="card-btn-list">
- <view class="button" @click="goToReport('weekly',item.id,item.subName)">
- 周报
- </view>
- <view class="button" @click="goToReport('monthly',item.id,item.subName)">
- 月报
- </view>
- <view class="button" v-if="!item.isAttention"
- @click="changeFocus(item.id,item.isAttention)">
- 关注
- </view>
- <view class="button" @click="changeFocus(item.id,item.isAttention)" v-else>
- 取消关注
- </view>
- <view class="button" v-if="item.usersub == 1" @click="goToDetail(item.id,item.subName)">
- 特殊查看
- </view>
- <view class="button" v-else @click="goToDetail(item.id,item.subName)">
- 查看
- </view>
- <view class="button" @click="goToReport('more',item.id,item.subName)">
- 更多
- </view>
- </view> -->
- </view>
- </view>
- </view>
- <empty-show v-if="projectList.length===0"></empty-show>
- </view>
- <!-- <view class="cards-list">
- <view class="card only-card">
- <view class="card-item first-card-item">
- <view class="card-item-name">项目名称</view>
- <input v-model="searchInfo.subName" class="card-item-input" placeholder="请填写项目名称"
- placeholder-style="color: #D8D8D8" maxlength="20" />
- </view>
- <view class="card-item" @click="jsxzShowChoose()">
- <view class="card-item-name">建设性质</view>
- <view class="card-item-description">
- <view v-if="searchInfo.propKind">{{searchInfo.propKind}}</view>
- <view v-else class="remind-text">请选择性质</view>
- <u-icon name="arrow-right" color="#343437" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="card-item" @click="hyflShowChoose()">
- <view class="card-item-name">行业分类</view>
- <view class="card-item-description">
- <view v-if="searchInfo.indusKind">{{searchInfo.indusKind}}</view>
- <view v-else class="remind-text">请选择分类</view>
- <u-icon name="arrow-right" color="#343437" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="card-item" @click="jsddShowChoose()">
- <view class="card-item-name">建设地点</view>
- <view class="card-item-description">
- <view v-if="searchInfo.subjectId">{{searchInfo.subjectId}}</view>
- <view v-else class="remind-text">请选择地点</view>
- <u-icon name="arrow-right" color="#343437" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="card-item" @click="xmlxShowChoose()">
- <view class="card-item-name">项目类型</view>
- <view class="card-item-description">
- <view v-if="searchInfo.kind">{{searchInfo.kind}}</view>
- <view v-else class="remind-text">请选择类型</view>
- <u-icon name="arrow-right" color="#343437" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- <view class="card-item" @click="orderShowChoose()">
- <view class="card-item-name">按金额排序</view>
- <view class="card-item-description">
- <view v-if="searchInfo.orderType">{{searchInfo.orderType}}</view>
- <view v-else class="remind-text">请选择排序</view>
- <u-icon name="arrow-right" color="#343437" size="16" customStyle="margin-left:10rpx"></u-icon>
- </view>
- </view>
- </view>
- <view class="search-btn" @click="reSearch()">确定</view>
- <view v-for="(item,index) in projectList" :key="index">
- <view class="card card-padding" v-if="item.unfold">
- <view class="card-item">
- <view class="card-item-name">项目名称</view>
- <view class="card-item-content">{{item.subName ?? "--"}}</view>
- </view>
- <view class="card-item">
- <view class="card-item-name">总投资(万元)</view>
- <view class="card-item-content">{{item.amtTotal ?? "--"}}</view>
- </view>
- <view class="card-item">
- <view class="card-item-name">年度计划投资-申报单位(万元)</view>
- <view class="card-item-content">{{item.yearAmt ?? "--"}}</view>
- </view>
- <view class="card-item">
- <view class="card-item-name">已完成投资(万元)</view>
- <view class="card-item-content">{{item.yearAmtSj ?? "--"}}</view>
- </view>
- <view class="card-item">
- <view class="card-item-name">当前状态</view>
- <view class="card-item-content">{{item.status ?? "--"}}</view>
- </view>
- <view class="card-item" @click="clickItem(item.id)">
- <view class="card-btn fat-btn">形象进度展示</view>
- </view>
- <view class="card-fold-option"
- :class="item.status_fgw === '2' ? 'card-fold-red' :item.status_fgw === '1' ?'card-fold-yellow':''">
- <view class="card-fold-count">{{index + 1}} / {{listTotal}}</view>
- <view class="card-fold-center" @click.stop="changeFoldItem(false,item.id)">
- <view class="card-fold-btn card-unfold-btn"></view>
- </view>
- <view class="card-fold-chaos"></view>
- </view>
- </view>
- <view class="card-fold" v-else>
- {{item.subName ?? "--"}}
- <view class="card-fold-option"
- :class="item.status_fgw === '2' ? 'card-fold-red' :item.status_fgw === '1' ?'card-fold-yellow':''">
- <view class="card-fold-count">{{index + 1}} / {{listTotal}}</view>
- <view class="card-fold-center" @click.stop="changeFoldItem(true, item.id)">
- <view class="card-fold-btn"></view>
- </view>
- <view class="card-fold-chaos"></view>
- </view>
- </view>
- </view>
- <empty-show v-if="projectList.length===0"></empty-show>
- </view> -->
- <!-- 开始时间 -->
- <u-datetime-picker :show="beginTimeShow" @confirm="beginTimeClose" @cancel="beginTimeClose"
- @close="beginTimeClose" v-model="beginDateStart" mode="date" closeOnClickOverlay></u-datetime-picker>
- <!-- 结束时间 -->
- <u-datetime-picker :show="endTimeShow" @confirm="endTimeClose" @cancel="endTimeClose" @close="endTimeClose"
- v-model="beginDateEnd" mode="date" closeOnClickOverlay></u-datetime-picker>
- <!-- 行业分类 -->
- <u-picker :show="IndustKindShow" :columns="IndustKindList" @confirm="IndustKindClose" @cancel="IndustKindClose"
- @close="IndustKindClose" closeOnClickOverlay></u-picker>
- <!-- 行业状态 -->
- <u-picker :show="statusShow" :columns="statusList" @confirm="statusClose" @cancel="statusClose"
- @close="statusClose" closeOnClickOverlay></u-picker>
- <!-- 地点选择 -->
- <u-picker :show="areaShow" :columns="areaColumns" @confirm="areaClose" @cancel="areaClose" @close="areaClose"
- closeOnClickOverlay></u-picker>
- <!-- 性质选择 -->
- <u-picker :show="xmxzShow" :columns="xmxzColumns" @confirm="xmxzClose" @cancel="xmxzClose" @close="xmxzClose"
- closeOnClickOverlay></u-picker>
- <!-- 项目类型 -->
- <u-picker :show="kindShow" :columns="kindColumns" @confirm="kindClose" @cancel="kindClose" @close="kindClose"
- closeOnClickOverlay></u-picker>
- <!-- 隐藏状态 -->
- <u-picker :show="isHideNameShow" :columns="isHideNameList" @confirm="isHideNameClose" @cancel="isHideNameClose"
- @close="isHideNameClose" closeOnClickOverlay></u-picker>
- <u-modal :show="modalshow" title="提示" confirmText='退出' content='智慧工地在线正在建设中,请耐心等待!'
- @confirm='modalshow = false'></u-modal>
- <u-toast ref="uToastRef"></u-toast>
- <u-loading-page :loading="loading"></u-loading-page>
- </view>
- </template>
- <style lang="scss" scoped>
- .search-btn {
- width: 98%;
- height: 84rpx;
- margin: 40rpx auto 56rpx;
- line-height: 84rpx;
- text-align: center;
- color: #FFFFFF;
- font-size: 36rpx;
- background: #1763E7;
- border-radius: 16rpx;
- }
- .card {
- padding-top: 0;
- // overflow: hidden;
- .card-value {
- position: absolute;
- top: 0;
- left: 0;
- width: 255rpx;
- height: 68rpx;
- padding-left: 40rpx;
- line-height: 68rpx;
- color: #1869F6;
- font-size: 32rpx;
- background: linear-gradient(90deg, #B2CEFF 0%, rgba(219, 232, 255, 0) 100%);
- }
- .card-online {
- position: absolute;
- bottom: 0;
- right: 0;
- width: 422rpx;
- height: 68rpx;
- padding-right: 40rpx;
- text-align: right;
- line-height: 68rpx;
- color: #00737B;
- font-size: 32rpx;
- background: linear-gradient(270deg, #96F8FF 0%, rgba(219, 232, 255, 0) 100%);
- }
- .last-card-item {
- margin-bottom: 40rpx
- }
- }
- .card-fold {
- position: relative;
- width: 100%;
- min-height: 152rpx;
- margin-bottom: 20rpx;
- padding: 24rpx 30rpx 52rpx;
- box-sizing: border-box;
- background: #FFFFFF;
- border-radius: 40rpx;
- overflow: hidden;
- }
- .card-fold-option {
- position: absolute;
- display: flex;
- justify-content: space-between;
- align-items: center;
- left: 0;
- bottom: 0;
- width: 100%;
- height: 38rpx;
- padding: 0 40rpx;
- box-sizing: border-box;
- background: linear-gradient(270deg, #CADDFF 4%, rgba(219, 232, 255, 0) 100%);
- z-index: 999;
- .card-fold-count {
- flex: 1;
- font-size: 28rpx;
- color: #1869F6;
- }
- .card-fold-center {
- flex: 1;
- .card-fold-btn {
- width: 32rpx;
- height: 20rpx;
- margin: 0 auto;
- background-image: url("@/static/icon-fold.png");
- background-size: 100% 100%;
- }
- .card-unfold-btn {
- transform: rotate(180deg);
- }
- }
- .card-fold-chaos {
- flex: 1;
- }
- }
- .card-fold-red {
- background: linear-gradient(270deg, #FF8080 0%, rgba(219, 232, 255, 0) 100%);
- .card-fold-count {
- color: #FF0000;
- }
- .card-fold-center {
- .card-fold-btn {
- background-image: url("@/static/icon-fold-red.png");
- }
- }
- }
- .card-fold-yellow {
- background: linear-gradient(270deg, #FFAA00 4%, rgba(219, 232, 255, 0) 100%);
- .card-fold-count {
- color: #E19703;
- }
- .card-fold-center {
- .card-fold-btn {
- background-image: url("@/static/icon-fold-yellow.png");
- }
- }
- }
- .card-padding {
- padding: 16rpx 40rpx 60rpx;
- overflow: hidden;
- }
-
-
- .card-name-num{
- width: 64rpx;
- height: 64rpx;
- border-radius:4rpx;
- border: 2rpx solid #F4F4F4;
- font-size: 24rpx;
- color: #B5B5B5;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .card .project-layer {
- justify-content: flex-start;
- .name{
- font-weight: 500;
- font-size: 28rpx;
- color: #222222;
-
- }
- }
- .card{
- padding-top: 20rpx !important;
- }
- .card .card-status{
- top: 32rpx;
- height: 64rpx;
- background: #F2F7FF;
- font-weight: 500;
- font-size: 12px;
- color: #98B7DC;
- }
-
- .status-light{
- width: 60rpx !important;
- height: 60rpx !important;
- position: absolute !important;
- right:0;
- top: -46rpx !important;
- }
-
- .card-item{
- .card-item-name{
- font-weight: 500;
- font-size: 24rpx;
- color: #999999;
- }
- .card-item-content{
- font-weight: 500;
- font-size: 24rpx;
- color: #444444;
- }
- .content-red{
- color:#E02020 !important;
- }
- }
- </style>
|