index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  1. <script setup>
  2. import {
  3. ref
  4. } from 'vue'
  5. import {
  6. onLoad,
  7. onUnload,
  8. onPullDownRefresh,
  9. onReachBottom,
  10. onPageScroll
  11. } from "@dcloudio/uni-app"
  12. import {
  13. getProjectInfoList,
  14. } from "@/api/work/projectInfo.js"
  15. import {
  16. getInfo,
  17. } from "@/api/login.js"
  18. import {
  19. getJSDDlist,
  20. getXMLXlist,
  21. getHYFLlist,
  22. } from "@/api/work/projectInfo.js"
  23. import {
  24. getXMXZlist,
  25. } from "@/api/home.js"
  26. import store from '@/store'
  27. import {
  28. timeFormat
  29. } from "@/utils/timeFormatter.js"
  30. function backToBefore() {
  31. uni.reLaunch({
  32. url: "/pages/index"
  33. })
  34. };
  35. function searchClick() {
  36. goToPage('/pages/cbProject/search/index')
  37. }
  38. let scrollTop = ref(0)
  39. let loading = ref(true)
  40. // 参数
  41. let searchInfo = ref({
  42. pageNo: 1,
  43. pageSize: 10,
  44. queryType: 3,
  45. orderBy: "amtTotal",
  46. })
  47. // 获取列表
  48. function getList() {
  49. if (searchInfo.value.pageNo == 1) {
  50. loading.value = true
  51. }
  52. let params = Object.assign({
  53. orderType: orderByStatus.value
  54. }, searchInfo.value)
  55. getProjectInfoList(params).then(res => {
  56. loading.value = false
  57. projectList.value = projectList.value.concat(res.data.list);
  58. listTotal.value = res.data.total;
  59. if (res.data.total == searchInfo.value.pageNo * searchInfo.value.pageSize - (10 - res.data.list
  60. .length))
  61. moreListFlag = false;
  62. }).catch(() => {
  63. loading.value = false
  64. })
  65. }
  66. // 按金额排序
  67. let orderByStatus = ref(null)
  68. const changeOrderByStatus = () => {
  69. if (orderByStatus.value === "desc") {
  70. orderByStatus.value = "asc"
  71. } else if (orderByStatus.value === "asc") {
  72. orderByStatus.value = null
  73. } else {
  74. orderByStatus.value = "desc"
  75. }
  76. searchInfo.value.pageNo = 1;
  77. projectList.value = [];
  78. moreListFlag = true;
  79. getList();
  80. }
  81. // 触底加载flag
  82. let moreListFlag = true
  83. let projectList = ref([])
  84. let listTotal = ref(0)
  85. function goToDetail(id, subName) {
  86. uni.navigateTo({
  87. url: `/pages/projectInfo/detail/index?id=${id}&subName=${subName}`
  88. })
  89. }
  90. function goToPage(url) {
  91. uni.navigateTo({
  92. url
  93. })
  94. }
  95. function goToReport(type, subId, subName) {
  96. uni.navigateTo({
  97. url: `/pages/projectInfo/report/index?type=${type}&subId=${subId}&subName=${subName}`
  98. })
  99. }
  100. // 折叠/展开
  101. const changeFoldItem = (status, id) => {
  102. let item = projectList.value.find(item => item.id === id);
  103. item.unfold = status;
  104. }
  105. onUnload(() => {
  106. uni.$off('cbProjectSearch');
  107. })
  108. onPageScroll((e) => {
  109. scrollTop.value = e.scrollTop
  110. })
  111. onPullDownRefresh(() => {
  112. searchInfo.value.pageNo = 1;
  113. projectList.value = [];
  114. moreListFlag = true;
  115. try {
  116. getList();
  117. } finally {
  118. uni.stopPullDownRefresh()
  119. }
  120. })
  121. //是否展开筛选条件
  122. let isUnfold = ref(false)
  123. //投资分析帅选条件
  124. let investmentAnalysisFrom = ref({
  125. kind: ''
  126. })
  127. let cardCurrut = ref(0)
  128. function onChangeCard(e) {
  129. if (cardCurrut.value == e) {
  130. projectList.value[cardCurrut.value].isOpen = !projectList.value[cardCurrut.value].isOpen
  131. } else {
  132. projectList.value[cardCurrut.value].isOpen = false
  133. projectList.value[e].isOpen = true
  134. cardCurrut.value = e
  135. }
  136. }
  137. let pageForm = ref({
  138. beginDateStart: null,
  139. beginDateEnd: null,
  140. kind: null,
  141. indusKind: null,
  142. propKind: null,
  143. subjectId: null,
  144. status: null,
  145. subName: null,
  146. startAmt: null,
  147. endAmt: null,
  148. isHide: null,
  149. light: ['红灯', '黄灯', '绿灯'],
  150. })
  151. // ====================================选择开始时间
  152. let beginDateStart = ref(null)
  153. let beginTimeShow = ref(false)
  154. function showBeginTimeChoose() {
  155. beginTimeShow.value = true
  156. }
  157. function beginTimeClose(e) {
  158. if (e) {
  159. let time = timeFormat(e.value)
  160. pageForm.value.beginDateStart = time
  161. }
  162. beginTimeShow.value = false
  163. }
  164. // ====================================选择结束时间
  165. let beginDateEnd = ref(null)
  166. let endTimeShow = ref(false)
  167. function showEndTimeChoose() {
  168. endTimeShow.value = true
  169. }
  170. function endTimeClose(e) {
  171. if (e) {
  172. let time = timeFormat(e.value)
  173. pageForm.value.beginDateEnd = time
  174. }
  175. endTimeShow.value = false
  176. }
  177. // ====================================选择项目类型
  178. let kindShow = ref(false);
  179. let kindColumns = ref([]);
  180. function showKindChoose() {
  181. kindShow.value = true
  182. }
  183. function kindClose(e) {
  184. if (e) pageForm.value.kind = e.value[0];
  185. kindShow.value = false;
  186. }
  187. let kindFull = [];
  188. const getXMLX = function() {
  189. getXMLXlist().then(res => {
  190. kindFull = res.data.list;
  191. kindFull.unshift({
  192. key: null,
  193. value: "所有类型"
  194. });
  195. kindColumns.value = [res.data.list.map(item => item.value)];
  196. })
  197. };
  198. // ====================================选择行业分类
  199. let industKindOrgin = []
  200. let IndustKindList = ref([])
  201. let IndustKindShow = ref(false)
  202. function showIndustKindChoose() {
  203. IndustKindShow.value = true
  204. }
  205. function IndustKindClose(e) {
  206. if (e) pageForm.value.indusKind = e.value[0];
  207. IndustKindShow.value = false
  208. }
  209. // ====================================选择行业状态
  210. // let statusList = ref([
  211. // ["请选择", "暂存", "项目申报", "待审批", "审批中", "核准备案中", "计划编制", "待开工", "施工中", "年度竣工", "不同意", "已竣工"]
  212. // ])
  213. let statusList = ref([
  214. ["请选择", "暂存", "项目前期", "待开工", "施工中", "暂停施工", "已竣工"]
  215. ])
  216. let statusShow = ref(false)
  217. function showStatusChoose() {
  218. statusShow.value = true
  219. }
  220. function statusClose(e) {
  221. if (e) pageForm.value.status = e.value[0];
  222. statusShow.value = false;
  223. }
  224. // ====================================选择隐藏状态
  225. let isHideNameList = ref([
  226. ["请选择",
  227. "正常",
  228. "隐藏"
  229. ]
  230. ])
  231. let isHideNameShow = ref(false)
  232. function showIsHideNameChoose() {
  233. isHideNameShow.value = true
  234. }
  235. function isHideNameClose(e) {
  236. if (e) pageForm.value.isHideName = e.value[0];
  237. isHideNameShow.value = false;
  238. }
  239. // =====================================地点
  240. let areaShow = ref(false);
  241. let areaColumns = ref([]);
  242. const showAreaChoose = function() {
  243. areaShow.value = true;
  244. }
  245. const areaClose = function(e) {
  246. if (e) pageForm.value.subjectId = e.value[0];
  247. areaShow.value = false;
  248. }
  249. let jsddFull = [];
  250. const getJSDD = function() {
  251. getJSDDlist().then(res => {
  252. jsddFull = res.data.list;
  253. jsddFull.push({
  254. key: null,
  255. value: "所有地区"
  256. });
  257. areaColumns.value = [res.data.list.map(item => item.value)];
  258. areaColumns.value[0].unshift("所有地区");
  259. })
  260. };
  261. // =====================================性质
  262. let xmxzShow = ref(false);
  263. let xmxzColumns = ref([]);
  264. const showXmxzChoose = function() {
  265. xmxzShow.value = true;
  266. }
  267. const xmxzClose = function(e) {
  268. if (e) pageForm.value.propKind = e.value[0];
  269. xmxzShow.value = false;
  270. }
  271. let xmxzFull = [];
  272. const getXMXZ = function() {
  273. getXMXZlist().then(res => {
  274. xmxzFull = res.data.list;
  275. xmxzFull.unshift({
  276. key: null,
  277. value: "所有性质"
  278. });
  279. xmxzColumns.value = [res.data.list.map(item => item.value)];
  280. })
  281. };
  282. // =====================================灯
  283. let lightShow = ref(false);
  284. const kindUnit = store.getters && store.getters.kindUnit;
  285. function judgeLightShow() {
  286. if ((kindUnit ?? '') === '') {
  287. // 为空就请求一下
  288. getInfo().then(res => {
  289. lightShow.value = res?.data?.user?.kindUnit === "1";
  290. })
  291. } else {
  292. lightShow.value = kindUnit === "1";
  293. }
  294. }
  295. function confirmParams() {
  296. // let statusObj = {
  297. // "请选择": "",
  298. // "暂存": "0",
  299. // "项目申报": "1",
  300. // "待审批": "2",
  301. // "审批中": "3",
  302. // "核准备案中": "4",
  303. // "计划编制": "5",
  304. // "待开工": "6",
  305. // "施工中": "7",
  306. // "不同意": "8",
  307. // "年度竣工": "9",
  308. // "已竣工": "A"
  309. // }
  310. let statusObj = {
  311. "请选择": "",
  312. "暂存": "0",
  313. "项目前期": "1",
  314. "待开工": "6",
  315. "施工中": "7",
  316. "暂停施工": "8",
  317. //"年度竣工": "9",
  318. "已竣工": "A"
  319. }
  320. let isHideNameObj = {
  321. "请选择": "",
  322. "正常": "0",
  323. "隐藏": "1",
  324. }
  325. let lightObj = {
  326. "绿灯": "0",
  327. "黄灯": "1",
  328. "红灯": "2"
  329. }
  330. let lightText = ""
  331. for (let i in pageForm.value.light) {
  332. lightText += lightObj[pageForm.value.light[i]] + ","
  333. }
  334. if (lightText.length > 0) lightText = lightText.substr(0, lightText.length - 1);
  335. let paramsData = {
  336. "beginDateStart": pageForm.value.beginDateStart,
  337. "beginDateEnd": pageForm.value.beginDateEnd,
  338. "kind": kindFull.find(item => item.value === pageForm.value.kind)?.key,
  339. "indusKind": industKindOrgin.find(item => item.value === pageForm.value.indusKind)?.key,
  340. "subjectId": jsddFull.find(item => item.value === pageForm.value.subjectId)?.key,
  341. "propKind": xmxzFull.find(item => item.value === pageForm.value.propKind)?.key,
  342. "status": statusObj[pageForm.value.status],
  343. "subName": pageForm.value.subName,
  344. "startAmt": pageForm.value.startAmt,
  345. "endAmt": pageForm.value.endAmt,
  346. "isHide": isHideNameObj[pageForm.value.isHideName],
  347. "light": lightText
  348. }
  349. searchInfo.value = Object.assign(searchInfo.value, paramsData);
  350. searchInfo.value.pageNo = 1;
  351. projectList.value = [];
  352. listTotal.value = 0;
  353. moreListFlag = true;
  354. console.log(searchInfo.value, '请求参数');
  355. getList();
  356. }
  357. onLoad(async () => {
  358. let now = new Date();
  359. let year = now.getFullYear();
  360. // 开始时间
  361. beginDateStart.value = pageForm.value.beginDateStart = year + "/01/01";
  362. // 结束时间
  363. beginDateEnd.value = pageForm.value.beginDateEnd = year + "/12/31";
  364. // 行业分类列表
  365. const res = await getHYFLlist()
  366. industKindOrgin = res.data.list
  367. let titleList = res.data.list.map(item => item.value)
  368. titleList.unshift("请选择")
  369. IndustKindList.value = [titleList]
  370. getJSDD(); // 建设地点列表
  371. getXMXZ(); // 项目性质列表
  372. getXMLX(); // 项目类型列表
  373. judgeLightShow()
  374. getList();
  375. })
  376. onReachBottom(() => {
  377. if (!moreListFlag) {
  378. return uni.showToast({
  379. title: "已经到底了。",
  380. icon: "none",
  381. duration: 2000
  382. })
  383. }
  384. searchInfo.value.pageNo++;
  385. getList();
  386. })
  387. </script>
  388. <template>
  389. <view class="container">
  390. <page-title @searchClick='searchClick'>储备项目({{listTotal}})</page-title>
  391. <view class="stats-layer-next">
  392. <view class="condition-btn">
  393. <view class="text">
  394. 2024
  395. </view>
  396. <image src="../../static/images/interArrow.svg" mode="" :class="isUnfold ? 'open-btn':''"
  397. @click="isUnfold = !isUnfold">
  398. </image>
  399. </view>
  400. <view class="condition-from" :style="isUnfold ? {height:'800rpx'} :''">
  401. <view class="item" style="margin-top: 50rpx;">
  402. <view class="item-label">开始日期</view>
  403. <view class="item-text" @click="showBeginTimeChoose()">
  404. <view v-if="pageForm.beginDateStart">{{pageForm.beginDateStart}}</view>
  405. <view v-else class="text">请选择开始日期</view>
  406. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  407. </view>
  408. </view>
  409. <view class="item">
  410. <view class="item-label">结束日期</view>
  411. <view class="item-text" @click="showEndTimeChoose()">
  412. <view v-if="pageForm.beginDateEnd">{{pageForm.beginDateEnd}}</view>
  413. <view v-else class="text">请选择结束日期</view>
  414. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  415. </view>
  416. </view>
  417. <view class="item">
  418. <view class="item-label">项目类型</view>
  419. <view class="item-text" @click="showKindChoose()">
  420. <view v-if="pageForm.kind">{{pageForm.kind}}</view>
  421. <view v-else class="text">请选择类型</view>
  422. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  423. </view>
  424. </view>
  425. <view class="item">
  426. <view class="item-label">项目性质</view>
  427. <view class="item-text" @click="showXmxzChoose()">
  428. <view v-if="pageForm.propKind">{{pageForm.propKind}}</view>
  429. <view v-else class="text">请选择行业分类</view>
  430. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  431. </view>
  432. </view>
  433. <view class="item">
  434. <view class="item-label">建设地点</view>
  435. <view class="item-text" @click="showAreaChoose()">
  436. <view v-if="pageForm.subjectId">{{pageForm.subjectId}}</view>
  437. <view v-else class="text">请选择建设地点</view>
  438. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  439. </view>
  440. </view>
  441. <view class="item">
  442. <view class="item-label">行业分类</view>
  443. <view class="item-text" @click="showIndustKindChoose()">
  444. <view v-if="pageForm.indusKind">{{pageForm.indusKind}}</view>
  445. <view v-else class="text">请选择行业分类</view>
  446. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  447. </view>
  448. </view>
  449. <view class="item">
  450. <view class="item-label">状态</view>
  451. <view class="item-text" @click="showStatusChoose()">
  452. <view v-if="pageForm.status">{{pageForm.status}}</view>
  453. <view v-else class="text">请选择状态</view>
  454. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  455. </view>
  456. </view>
  457. <view class="item">
  458. <view class="item-label">隐藏状态</view>
  459. <view class="item-text" @click="showIsHideNameChoose()">
  460. <view v-if="pageForm.isHideName">{{pageForm.isHideName}}</view>
  461. <view v-else class="text">请选择隐藏状态</view>
  462. <u-icon name="arrow-right" color="#DDDDDD" size="16" customStyle="margin-left:10rpx"></u-icon>
  463. </view>
  464. </view>
  465. <view class="item">
  466. <view class="item-label">金额范围</view>
  467. <view class="card-item-range">
  468. <input v-model="pageForm.startAmt" class="card-item-input center-input" placeholder="最小值"
  469. placeholder-style="color: #D8D8D8;font-size:28rpx;" maxlength="20" type="number" />
  470. ~
  471. <input v-model="pageForm.endAmt" class="card-item-input center-input" placeholder="最大值"
  472. placeholder-style="color: #D8D8D8;font-size:28rpx;" maxlength="20" type="number" />
  473. </view>
  474. </view>
  475. <view class="item">
  476. <view class="item-label">项目名称</view>
  477. <view class="card-item-range">&nbsp;
  478. <input v-model="pageForm.subName" class="card-item-input center-input"
  479. placeholder="请输入项目名称&nbsp;&nbsp;&nbsp;&nbsp;"
  480. placeholder-style="color: #D8D8D8;font-size:28rpx;text-align:right;" maxlength="20"
  481. type="number" />
  482. </view>
  483. </view>
  484. <!-- 红黄绿灯 -->
  485. <!-- <view style="margin-top: 20rpx;">
  486. <u-checkbox-group v-model="pageForm.light" style="width: 500rpx">
  487. <u-checkbox :customStyle="{display:'flex',justifyContent:'space-evenly',width:'32%'}"
  488. label-size="16px" iconColor='#fff' activeColor='#002F69' v-for="(item, index) in lightList"
  489. :key="index" :label="item.name" :name="item.name">
  490. </u-checkbox>
  491. </u-checkbox-group>
  492. </view> -->
  493. <view class="form-confrom" style="margin-top: 20rpx;" @click="confirmParams()">
  494. 确定
  495. </view>
  496. </view>
  497. </view>
  498. <view class="cards-list" :style="isUnfold ? {marginTop:'30rpx'} :''">
  499. <view v-for="(item,index) in projectList" :key="index">
  500. <view class="card" :style="!item.isOpen ? '':{paddingBottom:'0 !important'}">
  501. <view class="project-layer" :style="!item.isOpen ? {border:'none'}:''">
  502. <text class="card-name-num">{{(index+1<10?'0'+(index+1):index+1)}}</text>
  503. <view class="name">
  504. {{item.subName ?? "--"}}
  505. </view>
  506. <view class="card-status" @click="onChangeCard(index)">
  507. <image class="status-light" src="../../static/images/red.svg" mode=""
  508. v-if="item.status_fgw=='2'"></image>
  509. <image class="status-light" src="../../static/images/green.svg" mode=""
  510. v-if="item.status_fgw=='0'||item.status_fgw==null"></image>
  511. <image class="status-light" src="../../static/images/yellow.svg" mode=""
  512. v-if="item.status_fgw=='1'">
  513. </image>
  514. <view class="status-name">
  515. {{item.status ?? "--"}}
  516. </view>
  517. <image class="status-switch" src="../../static/images/liaghtUp.svg" mode=""
  518. :class="item.isOpen ?'card-status-icon-change' :''">
  519. </image>
  520. </view>
  521. </view>
  522. <view class="card-content-box" :style="item.isOpen ? {height:'370rpx'} :''">
  523. <view class="line">
  524. </view>
  525. <view class="card-item" style="margin-top: 5rpx;">
  526. <view class="card-item-name">总 投 资 金 额</view>
  527. <view class="card-item-content">{{item.amtTotal ?? "--"}}万</view>
  528. </view>
  529. <!-- 年度计划投资-申报单位(万元) -->
  530. <view class="card-item">
  531. <view class="card-item-name">年度计划投资</view>
  532. <view class="card-item-content">{{item.yearAmt ?? "--"}}万</view>
  533. </view>
  534. <!-- 已完成投资(万元)-->
  535. <view class="card-item">
  536. <view class="card-item-name">年度完成投资</view>
  537. <view class="card-item-content">{{item.yearAmtSj ?? "--"}}万</view>
  538. </view>
  539. <!-- 计划开工日期-->
  540. <view class="card-item">
  541. <view class="card-item-name">计划开工日期</view>
  542. <view class="card-item-content">{{item.yearAmtSj ?? "--"}}</view>
  543. </view>
  544. <!-- 计划竣工日期-->
  545. <view class="card-item">
  546. <view class="card-item-name">计划竣工日期</view>
  547. <view class="card-item-content">{{item.yearAmtSj ?? "--"}}</view>
  548. </view>
  549. <!-- 当前状态 -->
  550. <view class="card-item">
  551. <view class="card-item-name">项目状态</view>
  552. <view class="card-item-content content-red">{{item.status ?? "--"}}</view>
  553. </view>
  554. <view class="card-btn-list">
  555. <view class="button" @click="goToReport('weekly',item.id,item.subName)">
  556. 周报
  557. </view>
  558. <view class="button" @click="goToReport('monthly',item.id,item.subName)">
  559. 月报
  560. </view>
  561. <view class="button" v-if="!item.isAttention"
  562. @click="goToReport('yearly',item.id,item.subName)">
  563. 年度计划
  564. </view>
  565. <!-- <view class="button" @click="changeFocus(item.id,item.isAttention)" v-else>
  566. 取消关注
  567. </view> -->
  568. <!-- <view class="button" v-if="item.usersub == 1" @click="goToDetail(item.id,item.subName)">
  569. 特殊查看
  570. </view> -->
  571. <view class="button" @click="goToDetail(item.id,item.subName)">
  572. 查看
  573. </view>
  574. <!-- <view class="button" @click="goToReport('more',item.id,item.subName)">
  575. 更多
  576. </view> -->
  577. </view>
  578. </view>
  579. </view>
  580. </view>
  581. <empty-show v-if="projectList.length===0"></empty-show>
  582. </view>
  583. <u-back-top :scroll-top="scrollTop"></u-back-top>
  584. <u-loading-page :loading="loading"></u-loading-page>
  585. <!-- 开始时间 -->
  586. <u-datetime-picker :show="beginTimeShow" @confirm="beginTimeClose" @cancel="beginTimeClose"
  587. @close="beginTimeClose" v-model="beginDateStart" mode="date" closeOnClickOverlay></u-datetime-picker>
  588. <!-- 结束时间 -->
  589. <u-datetime-picker :show="endTimeShow" @confirm="endTimeClose" @cancel="endTimeClose" @close="endTimeClose"
  590. v-model="beginDateEnd" mode="date" closeOnClickOverlay></u-datetime-picker>
  591. <!-- 行业分类 -->
  592. <u-picker :show="IndustKindShow" :columns="IndustKindList" @confirm="IndustKindClose" @cancel="IndustKindClose"
  593. @close="IndustKindClose" closeOnClickOverlay></u-picker>
  594. <!-- 行业状态 -->
  595. <u-picker :show="statusShow" :columns="statusList" @confirm="statusClose" @cancel="statusClose"
  596. @close="statusClose" closeOnClickOverlay></u-picker>
  597. <!-- 地点选择 -->
  598. <u-picker :show="areaShow" :columns="areaColumns" @confirm="areaClose" @cancel="areaClose" @close="areaClose"
  599. closeOnClickOverlay></u-picker>
  600. <!-- 性质选择 -->
  601. <u-picker :show="xmxzShow" :columns="xmxzColumns" @confirm="xmxzClose" @cancel="xmxzClose" @close="xmxzClose"
  602. closeOnClickOverlay></u-picker>
  603. <!-- 项目类型 -->
  604. <u-picker :show="kindShow" :columns="kindColumns" @confirm="kindClose" @cancel="kindClose" @close="kindClose"
  605. closeOnClickOverlay></u-picker>
  606. <!-- 隐藏状态 -->
  607. <u-picker :show="isHideNameShow" :columns="isHideNameList" @confirm="isHideNameClose" @cancel="isHideNameClose"
  608. @close="isHideNameClose" closeOnClickOverlay></u-picker>
  609. </view>
  610. </template>
  611. <style lang="scss" scoped>
  612. .card-light {
  613. display: flex;
  614. align-items: center;
  615. justify-content: center;
  616. }
  617. .card-light-bottom {
  618. justify-content: center;
  619. width: 282rpx;
  620. height: 76rpx;
  621. background-size: 100% 100%;
  622. }
  623. .light-red {
  624. background-image: url('@/static/icon-light-red.png');
  625. }
  626. .light-yellow {
  627. background-image: url('@/static/icon-light-yellow.png');
  628. }
  629. .light-green {
  630. background-image: url('@/static/icon-light-green.png');
  631. }
  632. .card-fold {
  633. position: relative;
  634. width: 100%;
  635. min-height: 152rpx;
  636. margin-bottom: 20rpx;
  637. padding: 24rpx 30rpx 52rpx;
  638. box-sizing: border-box;
  639. background: #FFFFFF;
  640. border-radius: 40rpx;
  641. overflow: hidden;
  642. }
  643. .card-fold-option {
  644. position: absolute;
  645. display: flex;
  646. justify-content: space-between;
  647. align-items: center;
  648. left: 0;
  649. bottom: 0;
  650. width: 100%;
  651. height: 38rpx;
  652. padding: 0 40rpx;
  653. box-sizing: border-box;
  654. background: linear-gradient(270deg, #CADDFF 4%, rgba(219, 232, 255, 0) 100%);
  655. z-index: 999;
  656. .card-fold-count {
  657. flex: 1;
  658. font-size: 28rpx;
  659. color: #1869F6;
  660. }
  661. .card-fold-center {
  662. flex: 1;
  663. .card-fold-btn {
  664. width: 32rpx;
  665. height: 20rpx;
  666. margin: 0 auto;
  667. background-image: url("@/static/icon-fold.png");
  668. background-size: 100% 100%;
  669. }
  670. .card-unfold-btn {
  671. transform: rotate(180deg);
  672. }
  673. }
  674. .card-fold-chaos {
  675. flex: 1;
  676. }
  677. }
  678. .card-fold-red {
  679. background: linear-gradient(270deg, #FF8080 0%, rgba(219, 232, 255, 0) 100%);
  680. .card-fold-count {
  681. color: #FF0000;
  682. }
  683. .card-fold-center {
  684. .card-fold-btn {
  685. background-image: url("@/static/icon-fold-red.png");
  686. }
  687. }
  688. }
  689. .card-fold-yellow {
  690. background: linear-gradient(270deg, #FFAA00 4%, rgba(219, 232, 255, 0) 100%);
  691. .card-fold-count {
  692. color: #E19703;
  693. }
  694. .card-fold-center {
  695. .card-fold-btn {
  696. background-image: url("@/static/icon-fold-yellow.png");
  697. }
  698. }
  699. }
  700. .card {
  701. padding-top: 0;
  702. // overflow: hidden;
  703. }
  704. .order-by {
  705. display: flex;
  706. align-items: center;
  707. justify-content: space-between;
  708. width: 100%;
  709. height: 106rpx;
  710. margin-bottom: 34rpx;
  711. padding: 0 40rpx;
  712. border-radius: 40rpx;
  713. background: #FFF;
  714. .order-by-item {
  715. flex: 1;
  716. display: flex;
  717. justify-content: center;
  718. align-items: center;
  719. font-size: 32rpx;
  720. color: #343437;
  721. .order-by-icon {
  722. width: 22rpx;
  723. height: 46rpx;
  724. margin-left: 24rpx;
  725. background-image: url("@/static/orderBy-none.png");
  726. background-size: 100% 100%;
  727. }
  728. .desc {
  729. background-image: url("@/static/orderBy-desc.png");
  730. }
  731. .asc {
  732. background-image: url("@/static/orderBy-asc.png");
  733. }
  734. }
  735. }
  736. </style>