index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. <template>
  2. <view class="content">
  3. <view class="headbgbox flex2">
  4. <view class="searchbox">
  5. <u-icon name="search" bold="true" size="25" color="rgb(246,185,78)"></u-icon>
  6. <input type="text" v-model="keywords" placeholder="合同名称/编号、承兑人名称或出票..." placeholder-style="color:#BBBCBE" />
  7. </view>
  8. <view class="screen" @click="show = true">
  9. <text>筛选</text>
  10. <view style="padding-left: 10rpx;">
  11. <u-icon name="arrow-down" color="#1F242A" size="14" bold="true"></u-icon>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="cardlist">
  16. <view>
  17. <view class="card" v-for="(item,index) in 4">
  18. <view class="passreview">
  19. <image src="../../static/img/resuccess.png" mode="aspectFill"></image>
  20. </view>
  21. <view class="timebox"><text>2022.06.25 08:10</text></view>
  22. <view class="innerbox">
  23. <view class="listicon">
  24. <image src="/static/img/listticon.png" mode="aspectFill"></image>
  25. </view>
  26. <text class="cardtitle">财享金融互联网公司</text>
  27. </view>
  28. <view class="contractmsg flex5">
  29. <text>合同编号:HTABC2022020450775A72</text>
  30. <text style="padding-top: 10rpx;">汇票状态:已上传</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="totalmanage ">
  36. <text style="color:#68625B;font-size: 28rpx;">合计:4份</text>
  37. <view class=" maboxtitls">
  38. <view class="managebox">
  39. <image src="/static/img/manage.png" mode="aspectFit"></image>
  40. </view>
  41. <text style="padding-left: 15rpx;">管理</text>
  42. </view>
  43. </view>
  44. <u-popup :show="show" @close="close" @open="open">
  45. <view class="popscreen">
  46. <view class="checklist" v-for="(item,index) in ctrstatus" :key="index">
  47. <view class="alllistbtn">
  48. <text class="btntitle" style="">{{item.title}}</text>
  49. <view class="yunbtn">
  50. <view class="btnchoose" v-for="(i,k) in item.list" :key="k" @click="choose(item.title,k)"
  51. :class="[contract_status == k?'active':'btnchoose']">
  52. <text>{{i.name}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="checklist" v-for="(item,index) in billstatus" :key="index">
  58. <view class="alllistbtn">
  59. <text class="btntitle" style="">{{item.title}}</text>
  60. <view class="yunbtn">
  61. <view class="btnchoose" v-for="(i,k) in item.list" :key="k" @click="choose(item.title,k)"
  62. :class="[draft_status == k?'active':'btnchoose']">
  63. <text>{{i.name}}</text>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="checklist" v-for="(item,index) in upstauts" :key="index">
  69. <view class="alllistbtn">
  70. <text class="btntitle" style="">{{item.title}}</text>
  71. <view class="yunbtn">
  72. <view class="btnchoose" v-for="(i,k) in item.list" :key="k" @click="choose(item.title,k)"
  73. :class="[time_status == k?'active':'btnchoose']">
  74. <text>{{i.name}}</text>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="flex4 custom">
  80. <text style="font-size: 26rpx;font-weight: 600;">自定义</text>
  81. <view class="custombox flex3">
  82. <view class="creatdata flex6">
  83. <text>开始日期</text>
  84. <view class="flex4 chodatain" @click="openDatePicker(1)">
  85. <text>{{creatTime}}</text>
  86. <u-icon name="arrow-right" color="#BEBDBB" bold="true" size="12"></u-icon>
  87. </view>
  88. </view>
  89. <view class="creatdata flex6">
  90. <text>结束日期</text>
  91. <view class="flex4 chodatain" @click="openDatePicker(2)">
  92. <text>{{endTime}}</text>
  93. <u-icon name="arrow-right" color="#BEBDBB" bold="true" size="12"></u-icon>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="aszs flex6">
  99. <view class="againbtn"><text>重置</text></view>
  100. <view class="againbtn" style="color: #D8AB5A;border: 1rpx solid #D8AB5A;"><text>确认</text></view>
  101. </view>
  102. </view>
  103. </u-popup>
  104. <u-datetime-picker :show="dateshow" v-model="value1" mode="year-month" @confirm="chooseDate"
  105. @cancel="closeDate"></u-datetime-picker>
  106. <tabbar></tabbar>
  107. </view>
  108. </template>
  109. <script>
  110. import tabbar from "@/componet/tabbar/tabbar.vue"
  111. export default {
  112. components:{
  113. tabbar
  114. },
  115. data() {
  116. return {
  117. keywords: '',
  118. show: false,
  119. dateshow: false,
  120. creatTime: "请选择",
  121. endTime: "请选择",
  122. value1: '',
  123. intime: 1,
  124. contract_status: '',
  125. draft_status: '',
  126. time_status: '',
  127. ctrstatus: [{
  128. title: "合同状态",
  129. list: [{
  130. name: "全部",
  131. },
  132. {
  133. name: "待审核",
  134. },
  135. {
  136. name: "成功",
  137. },
  138. {
  139. name: "失败",
  140. },
  141. {
  142. name: "已删除",
  143. },
  144. ]
  145. }],
  146. billstatus: [{
  147. title: "汇票状态",
  148. list: [{
  149. name: "全部",
  150. },
  151. {
  152. name: "待审核",
  153. },
  154. {
  155. name: "成功",
  156. },
  157. {
  158. name: "失败",
  159. },
  160. {
  161. name: "已删除",
  162. },
  163. ]
  164. }],
  165. upstauts: [{
  166. title: "上传日期",
  167. list: [{
  168. name: "全部",
  169. },
  170. {
  171. name: "今日",
  172. },
  173. {
  174. name: "昨日",
  175. },
  176. ]
  177. }],
  178. }
  179. },
  180. onLoad() {
  181. this.init()
  182. },
  183. methods: {
  184. init() {
  185. },
  186. chooseDate(e) {
  187. this.dateshow = false
  188. const timeFormat = uni.$u.timeFormat
  189. if (this.intime == 1) {
  190. this.creatTime = timeFormat(e.value, 'yyyy-mm')
  191. } else {
  192. this.endTime = timeFormat(e.value, 'yyyy-mm')
  193. }
  194. },
  195. openDatePicker(e) {
  196. console.log(e)
  197. if (e == 1) {
  198. this.intime = 1
  199. } else {
  200. this.intime = 2
  201. }
  202. this.dateshow = true
  203. },
  204. closeDate() {
  205. this.dateshow = false
  206. },
  207. open() {
  208. // console.log('open');
  209. },
  210. close() {
  211. this.show = false
  212. // console.log('close');
  213. },
  214. choose(title, k) {
  215. if (title == "合同状态") {
  216. this.contract_status = k
  217. } else if (title == "汇票状态") {
  218. this.draft_status = k
  219. } else if (title == "上传日期") {
  220. this.time_status = k
  221. }
  222. }
  223. }
  224. }
  225. </script>
  226. <style lang="scss">
  227. page {
  228. background-color: #F6F6F6 !important;
  229. }
  230. .headbgbox {
  231. background-color: #fff;
  232. padding: 23rpx 31rpx;
  233. box-sizing: border-box;
  234. position: fixed;
  235. top: 0;
  236. z-index: 999;
  237. width: 100%;
  238. .screen {
  239. display: flex;
  240. justify-content: center;
  241. align-items: center;
  242. padding-left: 30rpx;
  243. }
  244. }
  245. .searchbox {
  246. padding-left: 30rpx;
  247. box-sizing: border-box;
  248. background-color: #ECECEC;
  249. border-radius: 38rpx;
  250. // width: 688rpx;
  251. flex: 1;
  252. height: 75rpx;
  253. margin: 0 auto;
  254. display: flex;
  255. align-items: center;
  256. // justify-content: center;
  257. // margin-top: -10rpx;
  258. }
  259. .cardlist {
  260. display: flex;
  261. justify-content: center;
  262. flex-direction: column;
  263. // align-items: center;
  264. margin: 0 auto;
  265. margin-top: 120rpx;
  266. }
  267. .card {
  268. margin: 0 auto;
  269. overflow: hidden;
  270. margin-top: 20rpx;
  271. width: 690rpx;
  272. height: 315rpx;
  273. border-radius: 20rpx;
  274. background-color: #fff;
  275. position: relative;
  276. box-shadow: 0px 8rpx 20rpx 1rpx rgba(31, 36, 42, 0.08);
  277. .passreview {
  278. position: absolute;
  279. right: 30rpx;
  280. top: 30rpx;
  281. width: 141rpx;
  282. height: 123.5rpx;
  283. image {
  284. width: 100%;
  285. height: 100%;
  286. }
  287. }
  288. .innerbox {
  289. padding: 49rpx 0rpx;
  290. padding-bottom: 30rpx;
  291. margin: 0 30rpx;
  292. display: flex;
  293. align-items: center;
  294. border-bottom: 1rpx solid #E8E8E8;
  295. .listicon {
  296. width: 32rpx;
  297. height: 36rpx;
  298. image {
  299. width: 100%;
  300. height: 100%;
  301. }
  302. }
  303. }
  304. .cardtitle {
  305. font-size: 32rpx;
  306. font-weight: 600;
  307. padding-left: 10rpx;
  308. }
  309. .timebox {
  310. background-color: #FFF8E5;
  311. width: 100%;
  312. padding: 0 30rpx;
  313. box-sizing: border-box;
  314. color: #D8AB5A;
  315. font-size: 28rpx;
  316. height: 60rpx;
  317. line-height: 60rpx;
  318. }
  319. .contractmsg {
  320. padding: 30rpx;
  321. box-sizing: border-box;
  322. color: #68625B;
  323. font-size: 26rpx;
  324. }
  325. }
  326. .totalmanage {
  327. margin-top: 70rpx;
  328. // position: fixed;
  329. bottom: 0;
  330. display: flex;
  331. justify-content: space-between;
  332. align-items: center;
  333. width: 100%;
  334. padding: 0 30rpx;
  335. padding-bottom: 89rpx;
  336. box-sizing: border-box;
  337. .managebox {
  338. width: 23.8rpx;
  339. height: 29.7rpx;
  340. image {
  341. width: 100%;
  342. height: 100%;
  343. }
  344. }
  345. .maboxtitls {
  346. width: 160rpx;
  347. height: 60rpx;
  348. display: flex;
  349. align-items: center;
  350. justify-content: center;
  351. border-radius: 30rpx;
  352. background-color: #D9D9D9;
  353. // line-height: 60rpx;
  354. font-size: 28rpx;
  355. box-sizing: border-box;
  356. // align-items: center;
  357. }
  358. }
  359. .popscreen {
  360. padding-top: 47rpx;
  361. height: 1000rpx;
  362. overflow: auto;
  363. .checklist {
  364. .alllistbtn {
  365. .btntitle {
  366. padding: 0 30rpx;
  367. display: block;
  368. margin: 48rpx 0 30rpx;
  369. font-size: 32rpx;
  370. font-weight: 600;
  371. margin-top: 20rpx;
  372. }
  373. .yunbtn {
  374. display: flex;
  375. flex-direction: row;
  376. flex-wrap: wrap;
  377. margin-left: 30rpx;
  378. }
  379. .btnchoose {
  380. margin-bottom: 30rpx;
  381. margin-right: 41rpx;
  382. width: 200rpx;
  383. height: 68rpx;
  384. background-color: #F6F6F6;
  385. border-radius: 34rpx;
  386. font-size: 26rpx;
  387. color: #68625B;
  388. text-align: center;
  389. line-height: 68rpx;
  390. }
  391. .active {
  392. margin-bottom: 30rpx;
  393. margin-right: 41rpx;
  394. width: 200rpx;
  395. height: 68rpx;
  396. background-color: #FFF8E5;
  397. border-radius: 34rpx;
  398. font-size: 26rpx;
  399. color: #D8AB5A;
  400. border: 1rpx solid #D8AB5A;
  401. text-align: center;
  402. line-height: 68rpx;
  403. box-sizing: border-box;
  404. }
  405. }
  406. }
  407. .custom {
  408. margin: 50rpx 30rpx;
  409. margin-top: 20rpx;
  410. display: flex;
  411. align-items: center;
  412. .custombox {
  413. margin-left: 50rpx;
  414. flex: 1;
  415. .creatdata {
  416. color: #68625B;
  417. font-size: 28rpx;
  418. width: 100%;
  419. margin-bottom: 10rpx;
  420. padding: 20rpx 0;
  421. border-bottom: 1rpx solid #E8E8E8;
  422. }
  423. .chodatain {
  424. color: #BEBDBB;
  425. }
  426. }
  427. }
  428. .aszs {
  429. padding: 20rpx 0;
  430. border-top: 1rpx solid #E8E8E8;
  431. margin: 0 30rpx;
  432. margin-bottom: 20rpx;
  433. font-size: 28rpx;
  434. .againbtn {
  435. width: 335rpx;
  436. height: 88rpx;
  437. line-height: 88rpx;
  438. text-align: center;
  439. border-radius: 45rpx;
  440. border: 1rpx solid #E8E8E8;
  441. }
  442. }
  443. }
  444. </style>