billDetails1.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view class="white-box">
  6. <view class="tx">
  7. <view class="tx-grid">
  8. <view class="tx-grid-text">
  9. <view class="title">预收账户</view>
  10. <view class="money">
  11. <text>{{ advanceMoney }}</text>
  12. <text class="money-b">元</text>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="palace palace-one">
  18. <view class="palace-grid">
  19. <view class="palace-grid-text active">
  20. <view class="palace-grid-text-data">
  21. <text>{{ carAdvanceMoney }}</text>
  22. <text class="palace-grid-text-data-b">元</text>
  23. </view>
  24. <view class="palace-grid-text-name">车险预收</view>
  25. </view>
  26. </view>
  27. <view class="palace-grid">
  28. <view class="palace-grid-text">
  29. <view class="palace-grid-text-data">
  30. <text>{{ lifeAdvanceMoney }}</text>
  31. <text class="palace-grid-text-data-b">元</text>
  32. </view>
  33. <view class="palace-grid-text-name">寿险预收</view>
  34. </view>
  35. </view>
  36. <view class="palace-grid">
  37. <view class="palace-grid-text">
  38. <view class="palace-grid-text-data">
  39. <text>{{ accidentAdvanceMoney }}</text>
  40. <text class="palace-grid-text-data-b">元</text>
  41. </view>
  42. <view class="palace-grid-text-name">意外险预收</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <z-paging auto-show-back-to-top ref="paging" @query="getOrdersList" :list.sync="list" :default-page-size="10" :mounted-auto-call-reload="true" :style="getHeight">
  48. <view class="list-view">
  49. <!-- 查询区域Start -->
  50. <view class="queryView d-flex">
  51. <view class="d-flex a-center j-center" >
  52. <picker @change="bindPickerTypeChange" :value="typeIndex" :range="typeArray">
  53. <view class="d-flex a-center">{{typeArray[typeIndex]}} <view class="icon iconfont icon-xiala"></view></view>
  54. </picker>
  55. </view>
  56. <view class="d-flex a-center j-center">
  57. <picker @change="bindPickerYearChange" :value="yearIndex" :range="yearArray">
  58. <view class="d-flex a-center">{{yearArray[yearIndex]}}年 <view class="icon iconfont icon-xiala"></view></view>
  59. </picker>
  60. </view>
  61. <view class="d-flex a-center j-center">
  62. <picker @change="bindPickerMonthChange" :value="monthIndex" :range="monthArray">
  63. <view class="d-flex a-center">{{monthArray[monthIndex]}}月 <view class="icon iconfont icon-xiala"></view></view>
  64. </picker>
  65. </view>
  66. <view class="d-flex a-center j-center">
  67. <picker @change="bindPickerDateChange" :value="dateIndex" :range="dateArray">
  68. <view class="d-flex a-center">{{dateArray[dateIndex]}}日 <view class="icon iconfont icon-xiala"></view></view>
  69. </picker>
  70. </view>
  71. <view class="d-flex a-center j-center">
  72. <view class="d-flex a-center px-2">合计:0.00</view>
  73. </view>
  74. </view>
  75. <!-- 查询区域End -->
  76. <block v-for="(item,index) in list" :key="index">
  77. <view class="list-item" >
  78. <view class="content-box">
  79. <view class="des-box">
  80. <view class="tit">订单号:{{item.orderno }}</view>
  81. <view class="tit">投保公司:{{item.inscompany}}</view>
  82. <view class="tit">车牌号:{{ item.licenseNo }}</view>
  83. <view class="time">签单时间:{{ item.createtime }}</view>
  84. </view>
  85. </view>
  86. <view class="money d-flex a-center j-center flex-column">
  87. <view>+{{((item.feeamount-0)+(item.disamount-0)).toFixed(2) }}</view>
  88. <view>应发佣金</view>
  89. </view>
  90. </view>
  91. </block>
  92. </view>
  93. </z-paging>
  94. </view>
  95. </template>
  96. <script>
  97. import {mapState} from "vuex"
  98. import ZPagingMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin';
  99. export default {
  100. components: {
  101. ZPagingMixin
  102. },
  103. data() {
  104. return {
  105. /* 查询区域Start */
  106. typeIndex:0, //订单的类型选择
  107. typeArray:['车险','意外险','寿险'], //订单的类型
  108. yearArray:[], //订单的查询年份
  109. yearIndex:0, //订单的年份选择
  110. monthArray:[], //订单的查询月份
  111. monthIndex:0, //订单的月份选择
  112. dateArray:[], //订单的查询月份
  113. dateIndex:0, //订单的月份选择
  114. /* 查询区域End */
  115. currentPage: 1, //当前页码
  116. pageSize: 5, //每页展示条数
  117. totalPages: 0, //总页数
  118. totalSize: 0, //总条数
  119. list: [],
  120. loadStatus: 0,
  121. advanceMoney: 0, //预收金额
  122. carAdvanceMoney: 0, //车险预收金额
  123. lifeAdvanceMoney: 0, //寿险预金额
  124. accidentAdvanceMoney: 0, //意外险金额
  125. };
  126. },
  127. onLoad() {
  128. // 搜索年选项Start
  129. this.yearArray=[(new Date().getFullYear()-2),(new Date().getFullYear()-1),new Date().getFullYear(),]
  130. this.yearIndex=this.yearArray.length-1;
  131. // 搜索年选项End
  132. // 搜索月选项Start
  133. var month = new Date().getMonth()+1;
  134. for(var i=1;i<=month;i++){
  135. if(i<10){
  136. this.monthArray.push('0'+i);
  137. }else{
  138. this.monthArray.push(i);
  139. }
  140. }
  141. this.monthIndex=this.monthArray.length-1;
  142. // 搜索月选项End
  143. // 搜索日选项Start
  144. var date = new Date().getDate();
  145. for(var i=1;i<=date;i++){
  146. if(i<10){
  147. this.dateArray.push('0'+i);
  148. }else{
  149. this.dateArray.push(i);
  150. }
  151. }
  152. this.dateIndex=this.dateArray.length-1;
  153. // 搜索日选项End
  154. },
  155. computed:{
  156. ...mapState(['userInfo']),
  157. getHeight() {
  158. let height = uni.getSystemInfoSync().windowHeight - uni.upx2px(356);
  159. return `height: ${height}px`;
  160. }
  161. },
  162. onShow() {
  163. this.getCarAdvanceMoney();
  164. },
  165. methods: {
  166. bindPickerTypeChange(e){
  167. this.typeIndex = e.target.value;
  168. },
  169. //搜索年发生变化
  170. bindPickerYearChange(e) {
  171. this.yearIndex = e.target.value;
  172. this.monthArray=[];
  173. if(this.yearIndex == (this.yearArray.length-1)){
  174. var month = new Date().getMonth()+1;
  175. for(var i=1;i<=month;i++){
  176. if(i<10){
  177. this.monthArray.push('0'+i);
  178. }else{
  179. this.monthArray.push(i);
  180. }
  181. }
  182. this.monthIndex=this.monthArray.length-1;
  183. }else{
  184. for(var i=1;i<=12;i++){
  185. if(i<10){
  186. this.monthArray.push('0'+i);
  187. }else{
  188. this.monthArray.push(i);
  189. }
  190. }
  191. this.monthIndex=0;
  192. }
  193. },
  194. //搜索月发生变化
  195. bindPickerMonthChange(e) {
  196. this.monthIndex = e.target.value;
  197. },
  198. bindPickerDateChange(e){
  199. this.dateIndex = e.target.value;
  200. },
  201. // 预收账户金额查询
  202. async getCarAdvanceMoney() {
  203. let res = await this.$http.get('/insPayApply/advanceAccount?userid=' + this.userInfo.sysUser.id,{},{load:false});
  204. if (res.code == 200) {
  205. this.carAdvanceMoney = res.data;
  206. this.advanceMoney = res.data;
  207. }
  208. },
  209. //获取订单数据Start
  210. async getOrdersList(pageNo, pageSize) {
  211. var data = {
  212. "columnFilters": {
  213. "settletype": {
  214. "name": "settletype",
  215. "value": "B"
  216. },
  217. "settlestatus": {
  218. "name": "settlestatus",
  219. "value": "0"
  220. },
  221. "userid": {
  222. "name": "userid",
  223. "value": this.userInfo.sysUser.id
  224. }
  225. },
  226. "pageNum": pageNo,
  227. "pageSize": pageSize
  228. };
  229. let res = await this.$http.post('/insFeeDetail/queryInsCompanyFee',data);
  230. let content = [];
  231. if (res.code == 200) {
  232. if(res.data.content.length>0){
  233. content = res.data.content;
  234. }
  235. }
  236. this.$refs.paging.complete(content);
  237. },
  238. //获取订单数据End
  239. },
  240. };
  241. </script>
  242. <style lang="scss" scoped>
  243. @import '@/style/mixin.scss';
  244. page {
  245. background-color: #fff;
  246. }
  247. .white-box {
  248. width: 94%;
  249. background: white;
  250. border-radius: 10rpx;
  251. margin: 20rpx auto 20rpx;
  252. box-shadow: 0 6rpx 20rpx #e7e7e7;
  253. }
  254. .white-box .tx {
  255. padding-top: 26rpx;
  256. overflow: hidden;
  257. display: flex;
  258. justify-content: space-between;
  259. align-content: center;
  260. }
  261. .white-box .tx .tx-grid {
  262. box-sizing: border-box;
  263. }
  264. .white-box .tx .tx-grid:first-child {
  265. margin-left: 40rpx;
  266. }
  267. .white-box .tx .tx-grid .tx-grid-comm-sign {
  268. display: block;
  269. border-radius: 40rpx 0 0 40rpx;
  270. font-size: 26rpx;
  271. padding: 16rpx 44rpx;
  272. background: linear-gradient(to right, rgba($themeColor,0.8), rgba($themeColor,0.6));
  273. color: #fff;
  274. font-weight: bold;
  275. }
  276. .white-box .tx .tx-grid .tx-grid-text {
  277. display: block;
  278. color: #333;
  279. font-size: 26rpx;
  280. white-space: nowrap;
  281. text-overflow: ellipsis;
  282. overflow: hidden;
  283. }
  284. .white-box .tx .tx-grid .tx-grid-text .title {
  285. font-size: 26rpx;
  286. font-weight: normal;
  287. color: $themeColor;
  288. }
  289. .white-box .tx .tx-grid .tx-grid-text .money {
  290. font-size: 60rpx;
  291. color: $themeColor;
  292. letter-spacing: 2rpx;
  293. margin-bottom: 10rpx;
  294. }
  295. .white-box .tx .tx-grid .tx-grid-text .money-b {
  296. font-size: 28rpx;
  297. }
  298. .white-box .palace {
  299. padding-bottom: 20rpx;
  300. overflow: hidden;
  301. display: flex;
  302. justify-content: center;
  303. }
  304. .white-box .palace .palace-grid {
  305. flex: 1;
  306. position: relative;
  307. box-sizing: border-box;
  308. }
  309. .white-box .palace .palace-grid .palace-grid-text {
  310. display: block;
  311. text-align: center;
  312. white-space: nowrap;
  313. text-overflow: ellipsis;
  314. overflow: hidden;
  315. }
  316. .white-box .palace .palace-grid .palace-grid-text.active{
  317. background-color: rgba($themeColor,0.6);
  318. }
  319. .white-box .palace .palace-grid .palace-grid-text .palace-grid-text-name {
  320. font-size: 26rpx;
  321. font-weight: normal;
  322. color: $themeColor;
  323. }
  324. .white-box .palace .palace-grid .palace-grid-text.active .palace-grid-text-name {
  325. color: #FFFFFF!important;
  326. }
  327. .white-box .palace .palace-grid .palace-grid-text .palace-grid-text-data {
  328. font-size: 32rpx;
  329. color: $themeColor;
  330. letter-spacing: 2rpx;
  331. margin-bottom: 5rpx;
  332. }
  333. .white-box .palace .palace-grid .palace-grid-text.active .palace-grid-text-data {
  334. color: #FFFFFF!important;
  335. }
  336. .white-box .palace .palace-grid .palace-grid-text .palace-grid-text-data .palace-grid-text-data-b {
  337. font-size: 20rpx;
  338. }
  339. .list-view {
  340. position: relative;
  341. width: 100%;
  342. overflow: hidden;
  343. }
  344. .list-item {
  345. width: 100%;
  346. padding: 30rpx 28rpx;
  347. box-sizing: border-box;
  348. background: #fff;
  349. display: flex;
  350. align-items: flex-start;
  351. justify-content: space-between;
  352. border-bottom: 1rpx solid #eaeef1;
  353. }
  354. .item-last::after {
  355. left: 0 !important;
  356. }
  357. .content-box {
  358. display: flex;
  359. align-items: flex-start;
  360. justify-content: space-between;
  361. }
  362. .des-box {
  363. min-height: 80rpx;
  364. padding-left: 28rpx;
  365. box-sizing: border-box;
  366. vertical-align: top;
  367. color: #333;
  368. font-size: 24rpx;
  369. display: flex;
  370. flex-direction: column;
  371. justify-content: space-between;
  372. }
  373. .tit {
  374. font-size: 30rpx;
  375. max-width: 500rpx;
  376. white-space: nowrap;
  377. overflow: hidden;
  378. text-overflow: ellipsis;
  379. }
  380. .source {
  381. margin: 12rpx 0;
  382. }
  383. .time {
  384. color: #888;
  385. }
  386. .money {
  387. font-size: 38rpx;
  388. font-weight: 500;
  389. color: #1E85FE;
  390. white-space: nowrap;
  391. overflow: hidden;
  392. text-overflow: ellipsis;
  393. padding-left: 20rpx;
  394. }
  395. .less {
  396. color: #4caf50 !important;
  397. }
  398. .tip {
  399. margin-top: 50rpx;
  400. display: flex;
  401. justify-content: center;
  402. align-content: center;
  403. font-size: 24rpx;
  404. color: #888;
  405. }
  406. .nothing {
  407. position: absolute;
  408. top: 320upx;
  409. left: 0;
  410. right: 0;
  411. bottom: 0;
  412. }
  413. .nothing>view {
  414. line-height: 1;
  415. }
  416. .nothing>view.icon {
  417. /* color: #66A3FF; */
  418. color: #989898;
  419. font-size: 260upx;
  420. }
  421. .nothing>view.text {
  422. font-size: 28upx;
  423. color: #989898;
  424. }
  425. /* 查询区域Start */
  426. .queryView {
  427. justify-content: space-around;
  428. height: 82upx;
  429. line-height: 80upx;
  430. }
  431. .queryView>view{
  432. border-top: 1px solid #FFC38F;
  433. border-bottom: 1px solid #FFC38F;
  434. border-left: 1px solid #FFC38F;
  435. box-sizing: border-box;
  436. color: #FFC38F;
  437. }
  438. .queryView>view:nth-child(1){
  439. flex: 3;
  440. }
  441. .queryView>view:nth-child(2){
  442. flex: 4;
  443. }
  444. .queryView>view:nth-child(3){
  445. flex: 3;
  446. }
  447. .queryView>view:nth-child(4){
  448. border-right: 1px solid #FFC38F;
  449. flex: 3;
  450. }
  451. /* 查询区域End */
  452. </style>