examine-detail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  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(value) {
  295. //处理金额
  296. if (value) {
  297. return Number(value).toFixed(2)
  298. } else {
  299. return '0.00'
  300. }
  301. }
  302. },
  303. computed: {
  304. ...mapState(['hasLogin', 'userInfo'])
  305. },
  306. methods: {
  307. bindPickerChange(type, e) {
  308. // 选择选项
  309. switch (type) {
  310. case 1:
  311. this.paymentTypeText = this.paymentActions[e.target.value].name
  312. this.params.type = this.paymentActions[e.target.value].value
  313. console.log('款项类型', this.paymentTypeText)
  314. console.log('款项类型', this.params.type)
  315. break
  316. case 2:
  317. this.banksTypeText = this.banksActions[e.target.value].name
  318. this.params.banksType = this.banksActions[e.target.value].value
  319. console.log('收款类型', this.params.banksType)
  320. break
  321. }
  322. },
  323. showTuiDateTime() {
  324. this.$refs.dateTime.show()
  325. },
  326. confirmDistinguish() {
  327. if (this.params.amount == '') {
  328. this.$util.msg('请输入收款金额', 2000)
  329. return
  330. }
  331. if (this.isCheckedCharge) {
  332. if (this.params.chargeValue == '') {
  333. this.$util.msg('请输入手续费', 2000)
  334. return
  335. }
  336. }
  337. if (this.params.remarks == '') {
  338. this.$util.msg('请填写收款备注', 2000)
  339. return
  340. }
  341. if (this.params.type == 1) {
  342. this.contentModalTitle = '确定收款吗?'
  343. this.contentModalText = '确认前请仔细检查各项数据是否正确,确认收款后将不能进行修改。' //操作文字提示语句
  344. } else if (this.params.type == 2) {
  345. this.contentModalTitle = ''
  346. this.contentModalText = '确定返佣收款吗?' //操作文字提示语句
  347. } else if (this.params.type == 3) {
  348. this.contentModalTitle = ''
  349. this.contentModalText = '确定供应商退款吗?' //操作文字提示语句
  350. }
  351. this.modal = true
  352. console.log('收款')
  353. },
  354. handleClick(e) {
  355. // 确认收款
  356. if (e.index == 1) {
  357. this.$api.navigateTo('/pages/collection/detail')
  358. }
  359. this.modal = false
  360. },
  361. hideMobel() {
  362. this.modal = false
  363. },
  364. checkedCharge() {
  365. // 勾选手续费
  366. this.isCheckedCharge = !this.isCheckedCharge
  367. },
  368. changeNumber(e) {
  369. // 校验输入为数字
  370. if (!this.$api.isNumber(e.detail.value)) {
  371. this.params.amount = ''
  372. } else {
  373. this.params.amount = e.detail.value
  374. }
  375. },
  376. toNoSms(url) {
  377. this.$api.navigateTo(url)
  378. },
  379. formatColor(state) {
  380. //设置邀请码状态亚瑟
  381. let stateColor = '',
  382. stateColorObject = {
  383. 0: '#f0ad4e',
  384. 1: '#4cd964',
  385. 2: '#dd524d',
  386. 3: '#007aff'
  387. }
  388. Object.keys(stateColorObject).forEach(function(key) {
  389. if (key == state) {
  390. stateColor = stateColorObject[key]
  391. }
  392. })
  393. return stateColor
  394. },
  395. },
  396. onPageScroll(e) {
  397. //实时获取到滚动的值
  398. // if (e.scrollTop > 30) {
  399. // this.isCmcustomClass = 'fiexd'
  400. // } else {
  401. // this.isCmcustomClass = 'left'
  402. // }
  403. },
  404. onPullDownRefresh() {
  405. setTimeout(() => {
  406. // this.initSsoMemberCollectionList()
  407. uni.stopPullDownRefresh()
  408. }, 200)
  409. },
  410. onShow() {
  411. if (this.hasLogin) {
  412. this.GetDataInfo()
  413. }
  414. }
  415. }
  416. </script>
  417. <style lang="scss">
  418. @import '@/uni.scss';
  419. page {
  420. background: #fff;
  421. }
  422. .tui-header-box {
  423. width: 100%;
  424. background: #ffffff;
  425. z-index: 999;
  426. background-size: cover;
  427. background-image: url(https://static.caimei365.com/app/crm/image/statistic_bg2.png);
  428. &.fiexd {
  429. position: fixed;
  430. top: 0;
  431. left: 0;
  432. }
  433. }
  434. .header-top {
  435. width: 100%;
  436. font-size: 16px;
  437. font-weight: 500;
  438. height: 32px;
  439. display: flex;
  440. align-items: center;
  441. justify-content: center;
  442. position: relative;
  443. padding: 0 40rpx;
  444. }
  445. .header-sit {
  446. width: 100%;
  447. box-sizing: border-box;
  448. height: 80rpx;
  449. line-height: 80rpx;
  450. box-sizing: border-box;
  451. color: #ffffff;
  452. .header-sit-text {
  453. text-align: left;
  454. font-size: $font-size-40;
  455. font-weight: 600;
  456. font-family: '正楷';
  457. }
  458. .icon-fanhui {
  459. display: block;
  460. width: 80rpx;
  461. height: 80rpx;
  462. float: left;
  463. text-align: center;
  464. line-height: 80rpx;
  465. font-size: 42rpx;
  466. }
  467. .icon-iconfonticonfontsousuo1 {
  468. font-size: 42rpx;
  469. margin-left: 30rpx;
  470. }
  471. }
  472. .mine {
  473. width: 100%;
  474. height: 100%;
  475. position: relative;
  476. }
  477. .distinguish-section {
  478. width: 100%;
  479. position: absolute;
  480. padding: 40rpx 20rpx;
  481. box-sizing: border-box;
  482. }
  483. .distinguish-section-conten {
  484. width: 100%;
  485. height: auto;
  486. position: relative;
  487. background-color: #ffffff;
  488. border-radius: 20rpx;
  489. padding: 20rpx;
  490. box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
  491. .section-top {
  492. width: 100%;
  493. height: 66rpx;
  494. box-sizing: border-box;
  495. .title {
  496. float: left;
  497. height: 66rpx;
  498. padding: 13rpx 0;
  499. .list-title-tip {
  500. float: left;
  501. margin-right: 15rpx;
  502. .badges {
  503. display: block;
  504. float: left;
  505. padding: 0 15rpx;
  506. height: 40rpx;
  507. line-height: 40rpx;
  508. border-radius: 4rpx;
  509. background: $btn-confirm;
  510. font-size: $font-size-24;
  511. text-align: center;
  512. color: #ffffff;
  513. }
  514. }
  515. .title-text{
  516. float: left;
  517. line-height: 40rpx;
  518. height: 40rpx;
  519. color: #333333;
  520. text-align: left;
  521. font-weight: 600;
  522. }
  523. }
  524. .button {
  525. float: right;
  526. box-sizing: border-box;
  527. padding: 0 24rpx;
  528. height: 100%;
  529. line-height: 66rpx;
  530. background: $btn-confirm;
  531. border-radius: 8rpx;
  532. text-align: center;
  533. color: #ffffff;
  534. }
  535. }
  536. .section-top-item {
  537. width: 100%;
  538. height: auto;
  539. margin-top: 10rpx;
  540. position: relative;
  541. float: left;
  542. .list-title-b {
  543. width: 100%;
  544. height: 44rpx;
  545. float: left;
  546. font-size: $font-size-24;
  547. line-height: 44rpx;
  548. color: #666666;
  549. text-align: left;
  550. .text{
  551. color: #999999;
  552. }
  553. .list-title-b-item {
  554. width: 50%;
  555. height: 100%;
  556. float: left;
  557. }
  558. &.sms {
  559. height: 120rpx;
  560. padding: 10rpx;
  561. border-radius: 4rpx;
  562. background: #F7F7F7;
  563. }
  564. }
  565. .list-icon {
  566. width: 120rpx;
  567. height: 60rpx;
  568. border: 1px solid #e1e1e1;
  569. border-radius: 10rpx;
  570. text-align: center;
  571. font-size: 20rpx;
  572. line-height: 60rpx;
  573. position: absolute;
  574. right: 90rpx;
  575. top: 40rpx;
  576. color: #dd524d;
  577. z-index: 99;
  578. transform: rotate(45deg);
  579. -webkit-transform: rotate(45deg);
  580. -moz-transform: rotate(45deg);
  581. font-family: '正楷';
  582. }
  583. }
  584. .section-title {
  585. width: 100%;
  586. height: 66rpx;
  587. float: left;
  588. font-size: $font-size-28;
  589. line-height: 66rpx;
  590. color: #333333;
  591. text-align: left;
  592. font-weight: 600;
  593. }
  594. .section-mid {
  595. width: 100%;
  596. height: auto;
  597. display: flex;
  598. flex-direction: column;
  599. position: relative;
  600. border-radius: 0 0 20rpx 20rpx;
  601. .list-title {
  602. width: 100%;
  603. height: auto;
  604. .list-title-t {
  605. width: 100%;
  606. height: 50rpx;
  607. float: left;
  608. font-size: $font-size-28;
  609. padding-bottom: 10rpx;
  610. .list-title-num {
  611. float: left;
  612. text-align: left;
  613. color: #e15616;
  614. margin-left: 30rpx;
  615. line-height: 40rpx;
  616. }
  617. .list-title-tip {
  618. float: left;
  619. .badges {
  620. display: block;
  621. float: left;
  622. padding: 0 15rpx;
  623. height: 40rpx;
  624. line-height: 40rpx;
  625. border-radius: 4rpx;
  626. background: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  627. font-size: $font-size-24;
  628. text-align: center;
  629. color: #ffffff;
  630. }
  631. }
  632. }
  633. .list-title-b {
  634. width: 100%;
  635. height: 50rpx;
  636. float: left;
  637. font-size: $font-size-24;
  638. line-height: 50rpx;
  639. color: #666666;
  640. text-align: left;
  641. .text{
  642. color: #999999;
  643. }
  644. .list-title-b-item {
  645. width: 50%;
  646. height: 100%;
  647. float: left;
  648. }
  649. }
  650. }
  651. }
  652. .section-tips{
  653. width: 100%;
  654. height: 50rpx;
  655. font-size: $font-size-28;
  656. line-height: 50rpx;
  657. color: $uni-color-error;
  658. text-align: left;
  659. }
  660. }
  661. .distinguish-button {
  662. width: 100%;
  663. position: fixed;
  664. bottom: 0;
  665. left: 0;
  666. background-color: #ffffff;
  667. padding: 0 50rpx;
  668. padding-top: 20rpx;
  669. display: flex;
  670. .button {
  671. flex: 1;
  672. height: 80rpx;
  673. margin: 0 20rpx;
  674. border-radius: 40rpx;
  675. text-align: center;
  676. color: #ffffff;
  677. line-height: 80rpx;
  678. font-size: $font-size-28;
  679. box-shadow: 0 10rpx 14rpx 0 rgba(86, 119, 252, 0.2);
  680. &.confirm{
  681. background: $btn-confirm;
  682. }
  683. &.cancel{
  684. background: $uni-color-error;
  685. }
  686. }
  687. }
  688. </style>