123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <template name="information">
- <view class="information-template">
- <!-- 订单信息 -->
- <view class="modal-content-mask" @click.stop="handleClickCancel">
- <view class="modal-content-alert">
- <scroll-view class="modal-content-scroll" scroll-y="true">
- <view class="list-title clearfix">
- <view class="list-title-b"
- >进度:<text :style="{ color: formatColor(receiptInfo.receiptStatus) }">{{
- receiptInfo.receiptStatus | formatStateType
- }}</text>
- </view>
- <view class="list-title-b">
- <view class="list-title-b-item">
- 确认人:<text class="text">{{
- receiptInfo.confirmUserName ? receiptInfo.confirmUserName : '无'
- }}</text>
- </view>
- <view class="list-title-b-item ri">
- <text class="text">{{ receiptInfo.confirmDate ? receiptInfo.confirmDate : '无' }}</text>
- </view>
- </view>
- <view class="list-title-b">
- <view class="list-title-b-item">
- 审核人:<text class="text">{{
- receiptInfo.reviewUserName ? receiptInfo.reviewUserName : '无'
- }}</text>
- </view>
- <view class="list-title-b-item ri">
- <text class="text">{{ receiptInfo.reviewDate ? receiptInfo.reviewDate : '无' }}</text>
- </view>
- </view>
- <view class="list-title-b">
- 备注:<text>{{ receiptInfo.reviewReason }}</text>
- </view>
- </view>
- <view
- class="list-title item clearfix"
- v-for="(order, index) in receiptInfo.shopOrderList"
- :key="index"
- @click.stop="orderDetail(order.shopOrderId)"
- >
- <view class="list-title-t">
- <view class="list-title-tip">
- <text
- class="badges"
- :class="{
- success: order.orderType === 1,
- warning: order.orderType === 0
- }"
- >{{ order.orderType | formatOrderType }}</text
- >
- </view>
- <view class="list-title-tag">
- <text class="badges">{{ order.organizeId | organizeName }}</text>
- </view>
- <view class="list-title-num">{{ order.status | stateExpFormat }}</view>
- </view>
- <view class="list-title-b">
- 客户名称:<text class="text">{{ order.userName }}</text>
- </view>
- <view class="list-title-b">
- 订单编号:<text class="text">{{ order.shopOrderNo }} ( {{ order.shopOrderId }} )</text>
- </view>
- <view class="list-title-b">
- 下单日期:<text class="text">{{ order.orderTime }}</text>
- </view>
- <view class="list-title-b">
- <view class="list-title-b-item ">
- 订单金额:<text class="text">¥{{ order.totalAmount | NumFormat }}</text>
- </view>
- <view class="list-title-b-item ">
- 余额抵扣:<text class="text">¥{{ order.accountAmount | NumFormat }}</text>
- </view>
- </view>
- <view class="list-title-b">
- <view class="list-title-b-item ">
- 应收金额:<text class="text">¥{{ order.realPay | NumFormat }}</text>
- </view>
- <view class="list-title-b-item ">
- 已收金额:<text class="text">¥{{ order.receiptAmount | NumFormat }}</text>
- </view>
- </view>
- <view class="list-title-b">
- <view class="list-title-b-item ">
- 剩余应收:<text class="text">¥{{ order.surplusAmount | NumFormat }}</text>
- </view>
- <view class="list-title-b-item ">
- 待审金额:<text class="text">¥{{ order.receiptAmount | NumFormat }}</text>
- </view>
- </view>
- <view class="list-title-b">
- 经理折扣:
- <text class="text" v-if="order.discountFee - order.returnedPurchaseFee > 0">
- ¥{{ order.discountFee - order.returnedPurchaseFee }}
- <text>
- (原¥{{ order.discountFee }} 折扣取消¥{{
- order.discountFee - order.returnedPurchaseFee > 0
- ? order.returnedPurchaseFee
- : order.discountFee
- }})
- </text>
- </text>
- <text class="text" v-else>¥0.00(原¥0.00折扣取消¥0.00)</text>
- </view>
- <view class="list-title-b" v-if="order.returnedPurchaseFee > 0">
- 退货退款:
- <text class="text">
- (原¥{{ order.returnedPurchaseFee }} 折扣取消¥{{
- j.discountFee - j.returnedPurchaseFee > 0
- ? order.returnedPurchaseFee
- : order.discountFee
- }})
- </text>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: 'information',
- props: {
- receipt: {
- type: Object
- }
- },
- data() {
- return {
- receiptInfo: {}
- }
- },
- created() {
- this.initData(this.receipt)
- },
- watch: {
- orderInfo: {
- handler: function(val) {
- this.initData(val)
- },
- deep: true //对象内部的属性监听,也叫深度监听
- }
- },
- methods: {
- initData(data) {
- this.receiptInfo = data
- console.log('this.receiptInfo', this.receiptInfo)
- },
- formatColor(state) {
- //设置邀请码状态亚瑟
- let stateColor = '',
- stateColorObject = {
- 1: '#ff7900',
- 2: '#4cd964',
- 3: '#19be6b',
- 4: '#ed3f14',
- 5: '#F74D54'
- }
- Object.keys(stateColorObject).forEach(function(key) {
- if (key == state) {
- stateColor = stateColorObject[key]
- }
- })
- return stateColor
- },
- handleClickCancel() {
- // 隐藏
- this.$emit('cancel')
- },
- orderDetail(id) {
- //订单详情跳转
- this.$api.navigateTo(`/pages/relation/order/detail?orderId=${id}`)
- }
- }
- }
- </script>
- <style lang="scss">
- .modal-content-mask {
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.6);
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1000;
- .modal-content-alert {
- width: 600rpx;
- height: 600rpx;
- padding: 24rpx;
- background: #ffffff;
- border-radius: 20rpx;
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- margin: auto;
- overflow: hidden;
- .modal-content-scroll {
- width: 100%;
- height: 600rpx;
- padding-bottom: 24rpx;
- }
- }
- }
- .list-title {
- width: 100%;
- height: auto;
- padding: 12rpx 0;
- &.item {
- border-bottom: 1px solid #e1e1e1;
- &:last-child {
- border: none;
- }
- }
- .list-title-t {
- width: 100%;
- height: 50rpx;
- float: left;
- font-size: $font-size-24;
- padding-bottom: 10rpx;
- .list-title-tip {
- float: left;
- .badges {
- display: block;
- float: left;
- padding: 0 15rpx;
- padding: 0 15rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 20rpx;
- font-size: $font-size-24;
- text-align: center;
- background-color: #f0f9eb;
- color: #67c23a;
- text-align: center;
- &.success {
- background-color: #ecf5ff;
- color: #409eff;
- }
- &.warning {
- background-color: #fdf6ec;
- color: #e6a23c;
- }
- }
- }
- .list-title-tag {
- float: left;
- margin-left: 20rpx;
- .badges {
- display: block;
- float: left;
- padding: 0 15rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 20rpx;
- background-color: #ecf5ff;
- color: #409eff;
- font-size: $font-size-22;
- text-align: center;
- }
- }
- .list-title-num {
- float: left;
- text-align: left;
- color: #42b983;
- line-height: 40rpx;
- margin-left: 20rpx;
- font-size: $font-size-24;
- }
- }
- .list-title-b {
- width: 100%;
- height: 44rpx;
- float: left;
- font-size: $font-size-24;
- line-height: 44rpx;
- color: #666666;
- text-align: left;
- .text {
- color: #999999;
- }
- .list-title-b-item {
- width: 50%;
- height: 100%;
- float: left;
- &.ri {
- text-align: right;
- }
- }
- &.sms {
- height: auto;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- }
- }
- </style>
|