receipt-orderDetails.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <template name="information">
  2. <view class="information-template">
  3. <!-- 订单信息 -->
  4. <view class="modal-content-mask" @click.stop="handleClickCancel">
  5. <view class="modal-content-alert">
  6. <scroll-view class="modal-content-scroll" scroll-y="true" >
  7. <view class="list-title clearfix">
  8. <view class="list-title-b"
  9. >进度:<text :style="{ color: formatColor(receiptInfo.receiptStatus) }"
  10. >{{ receiptInfo.receiptStatus | formatStateType }}</text
  11. >
  12. </view>
  13. <view class="list-title-b">
  14. <view class="list-title-b-item">
  15. 确认人:<text class="text">{{
  16. receiptInfo.confirmUserName ? receiptInfo.confirmUserName : '无'
  17. }}</text>
  18. </view>
  19. <view class="list-title-b-item ri">
  20. <text class="text">{{ receiptInfo.confirmDate ? receiptInfo.confirmDate : '无' }}</text>
  21. </view>
  22. </view>
  23. <view class="list-title-b">
  24. <view class="list-title-b-item">
  25. 审核人:<text class="text">{{
  26. receiptInfo.reviewUserName ? receiptInfo.reviewUserName : '无'
  27. }}</text>
  28. </view>
  29. <view class="list-title-b-item ri">
  30. <text class="text">{{ receiptInfo.reviewDate ? receiptInfo.reviewDate : '无' }}</text>
  31. </view>
  32. </view>
  33. <view class="list-title-b">
  34. 备注:<text>{{ receiptInfo.reviewReason }}</text>
  35. </view>
  36. </view>
  37. <view class="list-title clearfix" v-for="(order, index) in receiptInfo.orderList" :key="index" @click.stop="orderDetail(order.orderId)">
  38. <view class="list-title-t">
  39. <view class="list-title-tip">
  40. <text class="badges">{{ order.orderType | formatOrderType }}</text>
  41. </view>
  42. <view class="list-title-tag" v-if="order.organizeId == 3">
  43. <text class="badges">维沙</text>
  44. </view>
  45. <view class="list-title-num">{{ order.status | stateExpFormat }}</view>
  46. </view>
  47. <view class="list-title-b">
  48. 客户名称:<text class="text">{{ order.userName }}</text>
  49. </view>
  50. <view class="list-title-b">
  51. 订单编号:<text class="text">{{ order.orderNo }} ( {{ order.orderId }} )</text>
  52. </view>
  53. <view class="list-title-b">
  54. 下单日期:<text class="text">{{ order.orderTime }}</text>
  55. </view>
  56. <view class="list-title-b">
  57. <view class="list-title-b-item ">
  58. 订单金额:<text class="text">¥{{ order.payTotalFee | NumFormat }}</text>
  59. </view>
  60. <view class="list-title-b-item ">
  61. 余额抵扣:<text class="text">¥{{ order.balancePayFee | NumFormat }}</text>
  62. </view>
  63. </view>
  64. <view class="list-title-b">
  65. <view class="list-title-b-item ">
  66. 应收金额:<text class="text">¥{{ order.payableAmount | NumFormat }}</text>
  67. </view>
  68. <view class="list-title-b-item ">
  69. 已收金额:<text class="text">¥{{ order.paidAmount | NumFormat }}</text>
  70. </view>
  71. </view>
  72. <view class="list-title-b">
  73. <view class="list-title-b-item ">
  74. 剩余应收:<text class="text">¥{{ order.surplusAmount | NumFormat }}</text>
  75. </view>
  76. <view class="list-title-b-item ">
  77. 待审金额:<text class="text">¥{{ order.receiptAmount | NumFormat }}</text>
  78. </view>
  79. </view>
  80. <view class="list-title-b">
  81. 经理折扣:
  82. <text class="text" v-if="order.discountFee - order.returnedPurchaseFee > 0">
  83. ¥{{ order.discountFee - order.returnedPurchaseFee }}
  84. <text>
  85. (原¥{{ order.discountFee }} 折扣取消¥{{
  86. order.discountFee - order.returnedPurchaseFee > 0
  87. ? order.returnedPurchaseFee
  88. : order.discountFee
  89. }})
  90. </text>
  91. </text>
  92. <text class="text" v-else>¥0.00(原¥0.00折扣取消¥0.00)</text>
  93. </view>
  94. <view class="list-title-b" v-if="order.returnedPurchaseFee > 0">
  95. 退货退款:
  96. <text class="text">
  97. (原¥{{ order.returnedPurchaseFee }} 折扣取消¥{{
  98. j.discountFee - j.returnedPurchaseFee > 0 ? order.returnedPurchaseFee : order.discountFee
  99. }})
  100. </text>
  101. </view>
  102. </view>
  103. </scroll-view>
  104. </view>
  105. </view>
  106. </view>
  107. </template>
  108. <script>
  109. export default {
  110. name: 'information',
  111. props: {
  112. receipt: {
  113. type: Object
  114. }
  115. },
  116. data() {
  117. return {
  118. receiptInfo: {}
  119. }
  120. },
  121. created() {
  122. this.initData(this.receipt)
  123. },
  124. watch: {
  125. orderInfo: {
  126. handler: function(val) {
  127. this.initData(val)
  128. },
  129. deep: true //对象内部的属性监听,也叫深度监听
  130. }
  131. },
  132. methods: {
  133. initData(data) {
  134. this.receiptInfo = data
  135. console.log('this.receiptInfo',this.receiptInfo)
  136. },
  137. formatColor(state) {
  138. //设置邀请码状态亚瑟
  139. let stateColor = '',
  140. stateColorObject = {
  141. 1: '#FEAC20',
  142. 2: '#4cd964',
  143. 3: '#34CC8C',
  144. 4: '#F94B4B',
  145. 5: '#007aff'
  146. }
  147. Object.keys(stateColorObject).forEach(function(key) {
  148. if (key == state) {
  149. stateColor = stateColorObject[key]
  150. }
  151. })
  152. return stateColor
  153. },
  154. handleClickCancel(){// 隐藏
  155. this.$emit('cancel')
  156. },
  157. orderDetail(id) {
  158. //订单详情跳转
  159. this.$api.navigateTo(`/pages/relation/order/detail?orderId=${id}`)
  160. }
  161. }
  162. }
  163. </script>
  164. <style lang="scss">
  165. .modal-content-mask{
  166. width: 100%;
  167. height: 100%;
  168. background: rgba(0,0,0,0.6);
  169. position: fixed;
  170. top: 0;
  171. left: 0;
  172. z-index: 1000;
  173. .modal-content-alert{
  174. width: 600rpx;
  175. height: 600rpx;
  176. padding: 24rpx;
  177. background: #FFFFFF;
  178. border-radius: 20rpx;
  179. position: absolute;
  180. top: 0;
  181. left: 0;
  182. bottom: 0;
  183. right: 0;
  184. margin: auto;
  185. overflow: hidden;
  186. .modal-content-scroll{
  187. width: 100%;
  188. height: 600rpx;
  189. padding-bottom: 24rpx;
  190. }
  191. }
  192. }
  193. .list-title {
  194. width: 100%;
  195. height: auto;
  196. padding: 10rpx 0;
  197. .list-title-t {
  198. width: 100%;
  199. height: 50rpx;
  200. float: left;
  201. font-size: $font-size-24;
  202. padding-bottom: 10rpx;
  203. .list-title-tip {
  204. float: left;
  205. .badges {
  206. display: block;
  207. float: left;
  208. padding: 0 15rpx;
  209. height: 40rpx;
  210. line-height: 40rpx;
  211. border-radius: 20rpx;
  212. background: rgba(248, 204, 148, 0.5);
  213. font-size: $font-size-24;
  214. text-align: center;
  215. color: #666666;
  216. }
  217. }
  218. .list-title-tag {
  219. float: left;
  220. margin-left: 20rpx;
  221. .badges {
  222. display: block;
  223. float: left;
  224. padding: 0 15rpx;
  225. height: 40rpx;
  226. line-height: 40rpx;
  227. border-radius: 20rpx;
  228. background: linear-gradient(270deg, #fee9ba 0%, #f0cb72 100%);
  229. font-size: $font-size-24;
  230. text-align: center;
  231. color: #666666;
  232. }
  233. }
  234. .list-title-num {
  235. float: left;
  236. text-align: left;
  237. color: #e15616;
  238. line-height: 40rpx;
  239. margin-left: 20rpx;
  240. }
  241. }
  242. .list-title-b {
  243. width: 100%;
  244. height: 44rpx;
  245. float: left;
  246. font-size: $font-size-24;
  247. line-height: 40rpx;
  248. color: #666666;
  249. text-align: left;
  250. .text {
  251. color: #999999;
  252. }
  253. .list-title-b-item {
  254. width: 50%;
  255. height: 100%;
  256. float: left;
  257. &.ri{
  258. text-align: right;
  259. }
  260. }
  261. &.sms {
  262. height: auto;
  263. }
  264. }
  265. }
  266. </style>