examine-detail.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. <template>
  2. <view class="container mine clearfix">
  3. <!-- <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom> -->
  4. <view class="tui-header-box first"
  5. :style="{ height: isCmcustomClass == 'fiexd' ? CustomBar + 10 + 'px' : CustomBar + 30 + 'px' }"
  6. :class="isCmcustomClass">
  7. <view class="header-top" :style="{ paddingTop: top + 'px', lineHeight: CustomBar + 30 + 'px' }"></view>
  8. <view class="header-sit">
  9. <text class="iconfont icon-fanhui" @click.stop="this.$api.navigateBack(1)"></text>
  10. <text class="header-sit-text">审核详情</text>
  11. </view>
  12. </view>
  13. <view class="tui-header-box"
  14. :style="{ height: CustomBar + 30 + 'px', backgroundImage: 'url(https://static.caimei365.com/app/crm/image/statistic_bg1.png)' }">
  15. </view>
  16. <view class="distinguish-section" :style="{ top: CustomBar - 14 + 'px', left: 0 + 'px' }">
  17. <view class="distinguish-section-conten">
  18. <view class="section-top">
  19. <view class="title">
  20. <view class="list-title-tip">
  21. <text class="badges">{{ payment.sourceType | formatSourceType }}款</text>
  22. </view>
  23. <view class="title-text">收款信息</view>
  24. </view>
  25. <view class="button" @click="toNoSms('/pages/collection/list')">
  26. <text class="iconfont icon-wodedingdan"></text>
  27. 收款列表
  28. </view>
  29. </view>
  30. <view class="section-top-item">
  31. <view class="list-title-b">
  32. <view class="list-title-b-item ">
  33. 收款金额:<text class="text">¥{{ payment.receiptAmount | NumFormat }} </text>
  34. </view>
  35. <view class="list-title-b-item ">
  36. 收款类型:<text class="text">{{ payment.receiptType }} </text>
  37. </view>
  38. </view>
  39. <view class="list-title-b">
  40. 收款时间:<text class="text">{{ payment.receiptDate }}</text>
  41. </view>
  42. <template v-if="payment.smsContent">
  43. <view class="list-title-b">收款短信:</view>
  44. <view class="list-title-b sms">
  45. <text class="text">{{ payment.smsContent }}</text>
  46. </view>
  47. </template>
  48. <view class="list-icon">无人确认</view>
  49. </view>
  50. <view class="section-title">关联订单</view>
  51. <view class="section-mid">
  52. <view class="list-title">
  53. <view class="list-title-t">
  54. <view class="list-title-tip">
  55. <text class="badges">{{ payment.order.orderType | formatOrderType }}</text>
  56. </view>
  57. <view class="list-title-num">{{
  58. payment.order.state | StateExpFormat
  59. }}</view>
  60. </view>
  61. <view class="list-title-b">
  62. 订单编号:<text class="text">{{ payment.order.number }} ( {{ payment.order.orderId }} )</text>
  63. </view>
  64. <view class="list-title-b">
  65. 下单日期:<text class="text">{{ payment.order.creatTime }}</text>
  66. </view>
  67. <view class="list-title-b">
  68. 客户名称:<text class="text">{{ payment.order.userName }}</text>
  69. </view>
  70. <view class="list-title-b">
  71. <view class="list-title-b-item ">
  72. 订单金额:<text class="text">¥{{ payment.order.receiptAmount | NumFormat }}</text>
  73. </view>
  74. <view class="list-title-b-item ">
  75. 余额抵扣:<text class="text">¥{{ payment.order.receiptAmount | NumFormat }}</text>
  76. </view>
  77. </view>
  78. <view class="list-title-b">
  79. <view class="list-title-b-item ">
  80. 应收金额:<text class="text">¥{{ payment.order.receiptAmount | NumFormat }}</text>
  81. </view>
  82. <view class="list-title-b-item ">
  83. 已收金额:<text class="text">¥{{ payment.order.receiptAmount | NumFormat }}</text>
  84. </view>
  85. </view>
  86. <view class="list-title-b">
  87. <view class="list-title-b-item ">
  88. 剩余应收:<text class="text">¥{{ payment.order.receiptAmount | NumFormat }}</text>
  89. </view>
  90. <view class="list-title-b-item ">
  91. 待审金额:<text class="text">¥{{ payment.order.receiptAmount | NumFormat }}</text>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="section-title">状态</view>
  97. <view class="section-mid">
  98. <view class="list-title">
  99. <view class="list-title-b">进度:<text
  100. :style="{ color: formatColor(payment.confirmType) }">{{ payment.confirmType | formatStateType }}(待审核)</text>
  101. </view>
  102. <view class="list-title-b">确认人:<text class="text">正大单</text></view>
  103. <view class="list-title-b">确认时间:<text class="text">{{ payment.receiptDate }}</text></view>
  104. </view>
  105. </view>
  106. <view class="section-tips">注:款项和订单已确认关联,等待审核</view>
  107. </view>
  108. </view>
  109. <view class="distinguish-button" :style="{ paddingBottom: isIphoneX ? '68rpx' : '24rpx' }">
  110. <view class="button cancel" @click="confirmDistinguish">不通过</view>
  111. <view class="button confirm" @click="confirmDistinguish">通过</view>
  112. </view>
  113. <!-- 弹窗提示 -->
  114. <tui-modal :show="modal" @click="handleClick" @cancel="hideMobel" :title="contentModalTitle"
  115. :content="contentModalText" :button="modalButton" color="#333" :size="32" shape="circle"
  116. :maskClosable="false">
  117. </tui-modal>
  118. </view>
  119. </template>
  120. <script>
  121. import wxLogin from '@/services/wxLogin.js'
  122. import {
  123. mapState,
  124. mapMutations
  125. } from 'vuex'
  126. export default {
  127. data() {
  128. return {
  129. isIphoneX: this.$store.state.isIphoneX,
  130. nvabarData: {
  131. //顶部自定义导航
  132. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  133. showSearch: 0,
  134. title: '', // 导航栏 中间的标题
  135. haveBack: false,
  136. home: false,
  137. textLeft: this.$store.state.isIphone,
  138. bgColor: '#D33020',
  139. textColor: '#ffffff'
  140. },
  141. payment: {
  142. id: 6090,
  143. receiptAmount: 5000, //收款金额
  144. associateAmount: 5000, //关联金额
  145. receiptType: '广发银行0115',
  146. receiptDate: '2022-02-15 10:58:25', // 收款时间
  147. reviewDate: '2022-02-15 10:58:25', // 审核时间
  148. smsContent: '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  149. confirmType: 1,
  150. userName: '采美网络信息有限公司',
  151. sourceType: 1,
  152. state: 11,
  153. isChecked: false,
  154. order: {
  155. orderId: 18751,
  156. number: 'W164488903271223',
  157. receiptAmount: 5000, //收款金额
  158. associateAmount: 5000, //关联金额
  159. orderType: 1, // 订单类型
  160. creatTime: '2022-02-15 10:58:25', // 下单日期
  161. userName: '采美网络信息有限公司',
  162. state: 11, //订单状态
  163. }
  164. },
  165. modalButton: [{
  166. text: '取消',
  167. type: 'gray',
  168. plain: true //是否空心
  169. },
  170. {
  171. text: '确认',
  172. customStyle: {
  173. color: '#fff',
  174. bgColor: '#4688fa'
  175. },
  176. plain: false
  177. }
  178. ],
  179. params: {
  180. type: 1,
  181. banksType: 1,
  182. amount: '',
  183. chargeValue: '',
  184. remarks: '',
  185. time: this.$api.getNowFormatDate()
  186. },
  187. infoData: {},
  188. isCmcustomClass: 'left',
  189. CustomBar: this.CustomBar, // 顶部导航栏高度
  190. height: 64, //header高度
  191. top: 0, //标题图标距离顶部距离
  192. scrollH: 0, //滚动总高度
  193. opcity: 1,
  194. isCheckedCharge: false,
  195. contentModalTitle: '',
  196. contentModalText: '', //操作文字提示语句
  197. modal: false,
  198. }
  199. },
  200. onLoad() {
  201. let obj = {}
  202. // #ifdef MP-WEIXIN
  203. obj = wx.getMenuButtonBoundingClientRect()
  204. // #endif
  205. // #ifdef MP-BAIDU
  206. obj = swan.getMenuButtonBoundingClientRect()
  207. // #endif
  208. // #ifdef MP-ALIPAY
  209. my.hideAddToDesktopMenu()
  210. // #endif
  211. uni.getSystemInfo({
  212. success: res => {
  213. this.width = obj.left || res.windowWidth
  214. this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight + 44
  215. this.top = obj.top ? obj.top + (obj.height - 32) / 2 : res.statusBarHeight + 6
  216. this.scrollH = res.windowWidth * 0.6
  217. }
  218. })
  219. },
  220. filters: {
  221. formatSourceType(value) {
  222. switch (value) {
  223. case 1:
  224. return '订单'
  225. break
  226. case 2:
  227. return '非订单'
  228. break
  229. case 3:
  230. return '返佣'
  231. break
  232. case 4:
  233. return '供应商退款'
  234. break
  235. }
  236. },
  237. formatOrderType(value) {
  238. switch (value) {
  239. case 1:
  240. return '自主订单'
  241. break
  242. case 2:
  243. return '协销订单'
  244. break
  245. case 3:
  246. return '客服订单'
  247. break
  248. }
  249. },
  250. formatStateType(value) {
  251. switch (value) {
  252. case 0:
  253. return '待确认'
  254. break
  255. case 1:
  256. return '已确认'
  257. break
  258. case 2:
  259. return '待审核'
  260. break
  261. case 3:
  262. return '审核通过'
  263. break
  264. }
  265. },
  266. StateExpFormat(state) {
  267. //订单状态文字和颜色
  268. var HtmlStateText = '',
  269. stateTextObject = {
  270. 0: '待确认',
  271. 4: '交易完成',
  272. 5: '订单完成',
  273. 6: '已关闭',
  274. 7: '交易全退',
  275. 77: '交易全退',
  276. 11: '待付款待发货',
  277. 12: '待付款部分发货',
  278. 13: '待付款已发货',
  279. 21: '部分付款待发货',
  280. 22: '部分付款部分发货',
  281. 23: '部分付款已发货',
  282. 31: '已付款待发货',
  283. 32: '已付款部分发货',
  284. 33: '已付款已发货',
  285. 111: '待付款待发货'
  286. }
  287. Object.keys(stateTextObject).forEach(function(key) {
  288. if (key == state) {
  289. HtmlStateText = stateTextObject[key]
  290. }
  291. })
  292. return HtmlStateText
  293. },
  294. NumFormat: function(text) {
  295. //处理金额
  296. return Number(text).toFixed(2)
  297. }
  298. },
  299. computed: {
  300. ...mapState(['hasLogin', 'userInfo'])
  301. },
  302. methods: {
  303. bindPickerChange(type, e) {
  304. // 选择选项
  305. switch (type) {
  306. case 1:
  307. this.paymentTypeText = this.paymentActions[e.target.value].name
  308. this.params.type = this.paymentActions[e.target.value].value
  309. console.log('款项类型', this.paymentTypeText)
  310. console.log('款项类型', this.params.type)
  311. break
  312. case 2:
  313. this.banksTypeText = this.banksActions[e.target.value].name
  314. this.params.banksType = this.banksActions[e.target.value].value
  315. console.log('收款类型', this.params.banksType)
  316. break
  317. }
  318. },
  319. showTuiDateTime() {
  320. this.$refs.dateTime.show()
  321. },
  322. confirmDistinguish() {
  323. if (this.params.amount == '') {
  324. this.$util.msg('请输入收款金额', 2000)
  325. return
  326. }
  327. if (this.isCheckedCharge) {
  328. if (this.params.chargeValue == '') {
  329. this.$util.msg('请输入手续费', 2000)
  330. return
  331. }
  332. }
  333. if (this.params.remarks == '') {
  334. this.$util.msg('请填写收款备注', 2000)
  335. return
  336. }
  337. if (this.params.type == 1) {
  338. this.contentModalTitle = '确定收款吗?'
  339. this.contentModalText = '确认前请仔细检查各项数据是否正确,确认收款后将不能进行修改。' //操作文字提示语句
  340. } else if (this.params.type == 2) {
  341. this.contentModalTitle = ''
  342. this.contentModalText = '确定返佣收款吗?' //操作文字提示语句
  343. } else if (this.params.type == 3) {
  344. this.contentModalTitle = ''
  345. this.contentModalText = '确定供应商退款吗?' //操作文字提示语句
  346. }
  347. this.modal = true
  348. console.log('收款')
  349. },
  350. handleClick(e) {
  351. // 确认收款
  352. if (e.index == 1) {
  353. this.$api.navigateTo('/pages/collection/detail')
  354. }
  355. this.modal = false
  356. },
  357. hideMobel() {
  358. this.modal = false
  359. },
  360. checkedCharge() {
  361. // 勾选手续费
  362. this.isCheckedCharge = !this.isCheckedCharge
  363. },
  364. changeNumber(e) {
  365. // 校验输入为数字
  366. if (!this.$api.isNumber(e.detail.value)) {
  367. this.params.amount = ''
  368. } else {
  369. this.params.amount = e.detail.value
  370. }
  371. },
  372. toNoSms(url) {
  373. this.$api.navigateTo(url)
  374. },
  375. formatColor(state) {
  376. //设置邀请码状态亚瑟
  377. let stateColor = '',
  378. stateColorObject = {
  379. 0: '#f0ad4e',
  380. 1: '#4cd964',
  381. 2: '#dd524d',
  382. 3: '#007aff'
  383. }
  384. Object.keys(stateColorObject).forEach(function(key) {
  385. if (key == state) {
  386. stateColor = stateColorObject[key]
  387. }
  388. })
  389. return stateColor
  390. },
  391. },
  392. onPageScroll(e) {
  393. //实时获取到滚动的值
  394. // if (e.scrollTop > 30) {
  395. // this.isCmcustomClass = 'fiexd'
  396. // } else {
  397. // this.isCmcustomClass = 'left'
  398. // }
  399. },
  400. onPullDownRefresh() {
  401. setTimeout(() => {
  402. // this.initSsoMemberCollectionList()
  403. uni.stopPullDownRefresh()
  404. }, 200)
  405. },
  406. onShow() {
  407. if (this.hasLogin) {
  408. this.GetDataInfo()
  409. }
  410. }
  411. }
  412. </script>
  413. <style lang="scss">
  414. @import '@/uni.scss';
  415. page {
  416. background: #fff;
  417. }
  418. .tui-header-box {
  419. width: 100%;
  420. background: #ffffff;
  421. z-index: 999;
  422. background-size: cover;
  423. background-image: url(https://static.caimei365.com/app/crm/image/statistic_bg2.png);
  424. &.fiexd {
  425. position: fixed;
  426. top: 0;
  427. left: 0;
  428. }
  429. }
  430. .header-top {
  431. width: 100%;
  432. font-size: 16px;
  433. font-weight: 500;
  434. height: 32px;
  435. display: flex;
  436. align-items: center;
  437. justify-content: center;
  438. position: relative;
  439. padding: 0 40rpx;
  440. }
  441. .header-sit {
  442. width: 100%;
  443. box-sizing: border-box;
  444. height: 80rpx;
  445. line-height: 80rpx;
  446. box-sizing: border-box;
  447. color: #ffffff;
  448. .header-sit-text {
  449. text-align: left;
  450. font-size: $font-size-40;
  451. font-weight: 600;
  452. font-family: '正楷';
  453. }
  454. .icon-fanhui {
  455. display: block;
  456. width: 80rpx;
  457. height: 80rpx;
  458. float: left;
  459. text-align: center;
  460. line-height: 80rpx;
  461. font-size: 42rpx;
  462. }
  463. .icon-iconfonticonfontsousuo1 {
  464. font-size: 42rpx;
  465. margin-left: 30rpx;
  466. }
  467. }
  468. .mine {
  469. width: 100%;
  470. height: 100%;
  471. position: relative;
  472. }
  473. .distinguish-section {
  474. width: 100%;
  475. position: absolute;
  476. padding: 40rpx 20rpx;
  477. box-sizing: border-box;
  478. }
  479. .distinguish-section-conten {
  480. width: 100%;
  481. height: auto;
  482. position: relative;
  483. background-color: #ffffff;
  484. border-radius: 20rpx;
  485. padding: 20rpx;
  486. box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
  487. .section-top {
  488. width: 100%;
  489. height: 66rpx;
  490. box-sizing: border-box;
  491. .title {
  492. float: left;
  493. height: 66rpx;
  494. padding: 13rpx 0;
  495. .list-title-tip {
  496. float: left;
  497. margin-right: 15rpx;
  498. .badges {
  499. display: block;
  500. float: left;
  501. padding: 0 15rpx;
  502. height: 40rpx;
  503. line-height: 40rpx;
  504. border-radius: 4rpx;
  505. background: $btn-confirm;
  506. font-size: $font-size-24;
  507. text-align: center;
  508. color: #ffffff;
  509. }
  510. }
  511. .title-text{
  512. float: left;
  513. line-height: 40rpx;
  514. height: 40rpx;
  515. color: #333333;
  516. text-align: left;
  517. font-weight: 600;
  518. }
  519. }
  520. .button {
  521. float: right;
  522. box-sizing: border-box;
  523. padding: 0 24rpx;
  524. height: 100%;
  525. line-height: 66rpx;
  526. background: $btn-confirm;
  527. border-radius: 8rpx;
  528. text-align: center;
  529. color: #ffffff;
  530. }
  531. }
  532. .section-top-item {
  533. width: 100%;
  534. height: auto;
  535. margin-top: 10rpx;
  536. position: relative;
  537. float: left;
  538. .list-title-b {
  539. width: 100%;
  540. height: 44rpx;
  541. float: left;
  542. font-size: $font-size-24;
  543. line-height: 44rpx;
  544. color: #666666;
  545. text-align: left;
  546. .text{
  547. color: #999999;
  548. }
  549. .list-title-b-item {
  550. width: 50%;
  551. height: 100%;
  552. float: left;
  553. }
  554. &.sms {
  555. height: 120rpx;
  556. padding: 10rpx;
  557. border-radius: 4rpx;
  558. background: #F7F7F7;
  559. }
  560. }
  561. .list-icon {
  562. width: 120rpx;
  563. height: 60rpx;
  564. border: 1px solid #e1e1e1;
  565. border-radius: 10rpx;
  566. text-align: center;
  567. font-size: 20rpx;
  568. line-height: 60rpx;
  569. position: absolute;
  570. right: 90rpx;
  571. top: 40rpx;
  572. color: #dd524d;
  573. z-index: 99;
  574. transform: rotate(45deg);
  575. -webkit-transform: rotate(45deg);
  576. -moz-transform: rotate(45deg);
  577. font-family: '正楷';
  578. }
  579. }
  580. .section-title {
  581. width: 100%;
  582. height: 66rpx;
  583. float: left;
  584. font-size: $font-size-28;
  585. line-height: 66rpx;
  586. color: #333333;
  587. text-align: left;
  588. font-weight: 600;
  589. }
  590. .section-mid {
  591. width: 100%;
  592. height: auto;
  593. display: flex;
  594. flex-direction: column;
  595. position: relative;
  596. border-radius: 0 0 20rpx 20rpx;
  597. .list-title {
  598. width: 100%;
  599. height: auto;
  600. .list-title-t {
  601. width: 100%;
  602. height: 50rpx;
  603. float: left;
  604. font-size: $font-size-28;
  605. padding-bottom: 10rpx;
  606. .list-title-num {
  607. float: left;
  608. text-align: left;
  609. color: #e15616;
  610. margin-left: 30rpx;
  611. line-height: 40rpx;
  612. }
  613. .list-title-tip {
  614. float: left;
  615. .badges {
  616. display: block;
  617. float: left;
  618. padding: 0 15rpx;
  619. height: 40rpx;
  620. line-height: 40rpx;
  621. border-radius: 4rpx;
  622. background: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  623. font-size: $font-size-24;
  624. text-align: center;
  625. color: #ffffff;
  626. }
  627. }
  628. }
  629. .list-title-b {
  630. width: 100%;
  631. height: 50rpx;
  632. float: left;
  633. font-size: $font-size-24;
  634. line-height: 50rpx;
  635. color: #666666;
  636. text-align: left;
  637. .text{
  638. color: #999999;
  639. }
  640. .list-title-b-item {
  641. width: 50%;
  642. height: 100%;
  643. float: left;
  644. }
  645. }
  646. }
  647. }
  648. .section-tips{
  649. width: 100%;
  650. height: 50rpx;
  651. font-size: $font-size-28;
  652. line-height: 50rpx;
  653. color: $uni-color-error;
  654. text-align: left;
  655. }
  656. }
  657. .distinguish-button {
  658. width: 100%;
  659. position: fixed;
  660. bottom: 0;
  661. left: 0;
  662. background-color: #ffffff;
  663. padding: 0 50rpx;
  664. padding-top: 20rpx;
  665. display: flex;
  666. .button {
  667. flex: 1;
  668. height: 80rpx;
  669. margin: 0 20rpx;
  670. border-radius: 40rpx;
  671. text-align: center;
  672. color: #ffffff;
  673. line-height: 80rpx;
  674. font-size: $font-size-28;
  675. box-shadow: 0 10rpx 14rpx 0 rgba(86, 119, 252, 0.2);
  676. &.confirm{
  677. background: $btn-confirm;
  678. }
  679. &.cancel{
  680. background: $uni-color-error;
  681. }
  682. }
  683. }
  684. </style>