You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
12 KiB

<view class="data-v-645c66b0"><view class="order-page order-page--primary data-v-645c66b0"><u-navbar vue-id="272f6d44-1" is-back="{{false}}" title="订单管理系统" background="{{$root.a0}}" title-color="#fff" border-bottom="{{false}}" class="data-v-645c66b0" bind:__l="__l"></u-navbar><view class="b-border data-v-645c66b0"></view><view class="primary-tabs data-v-645c66b0"><view data-event-opts="{{[['tap',[['switchPrimary',['orders']]]]]}}" class="{{['data-v-645c66b0','primary-tab',[(primaryTab==='orders')?'active':'']]}}" bindtap="__e">订单</view><view data-event-opts="{{[['tap',[['switchPrimary',['refunds']]]]]}}" class="{{['data-v-645c66b0','primary-tab',[(primaryTab==='refunds')?'active':'']]}}" bindtap="__e">退款管理</view></view><block wx:if="{{primaryTab==='orders'}}"><block class="data-v-645c66b0"><view class="tabs data-v-645c66b0"><block wx:for="{{orderTabs}}" wx:for-item="tab" wx:for-index="idx" wx:key="idx"><view data-event-opts="{{[['tap',[['changeTab',[idx]]]]]}}" class="{{['data-v-645c66b0','tab',[(currentTab===idx)?'active':'']]}}" bindtap="__e">{{''+tab.name+''}}</view></block></view><view class="order data-v-645c66b0"><scroll-view style="height:100%;width:100%;" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['reachBottom',['$event']]]]]}}" bindscrolltolower="__e" class="data-v-645c66b0"><block wx:if="{{$root.g0>0}}"><block class="data-v-645c66b0"><view class="order-list data-v-645c66b0"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view class="order-card data-v-645c66b0"><view class="{{['order-icon','data-v-645c66b0',typeText[item.m0]?typeText[item.m1].class:typeText[1].class]}}">{{''+(typeText[item.m2]?typeText[item.m3].name:typeText[1].name)+''}}</view><view class="order-header data-v-645c66b0"><view class="order-time data-v-645c66b0"> 服务时间:<text class="data-v-645c66b0">{{item.$orig.time}}</text></view><view class="order-status data-v-645c66b0">{{item.m4}}</view></view><view class="order-body data-v-645c66b0"><view class="order-left data-v-645c66b0"><block wx:if="{{item.m5===2}}"><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"服务地址:"+item.m6}}</view></block></block><block wx:else><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"就诊医院:"+(item.$orig.hospital?item.$orig.hospital.name:'')}}</view></block></block><view class="data-v-645c66b0">{{"被服务人:"+(item.$orig.user_archive?item.$orig.user_archive.name:'')}}</view><view class="data-v-645c66b0">{{"服务项目:"+(item.$orig.accompany_product?item.$orig.accompany_product.name:'')}}</view><view class="data-v-645c66b0">{{"订单号:"+item.$orig.no+''}}<text data-event-opts="{{[['tap',[['copy',['$0'],[[['list','id',item.$orig.id,'no']]]]]]]}}" class="copy data-v-645c66b0" bindtap="__e">复制</text></view></view><view class="order-price data-v-645c66b0">¥<text class="data-v-645c66b0">{{item.$orig.price}}</text></view></view><view class="order-footer data-v-645c66b0"><u-button vue-id="{{'272f6d44-2-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['toUrl',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">详情</u-button><block wx:if="{{item.m7}}"><u-button vue-id="{{'272f6d44-3-'+__i0__}}" size="mini" shape="circle" type="warning" custom-style="{{refundApplyBtnStyle}}" data-event-opts="{{[['^click',[['applyOperatorRefund',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">申请退款</u-button></block><block wx:if="{{item.$orig.pay_status===0||item.$orig.pay_status===3}}"><u-button vue-id="{{'272f6d44-4-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['editOrder',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">修改</u-button></block><block wx:if="{{item.$orig.pay_status===3}}"><u-button vue-id="{{'272f6d44-5-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['passOrder',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">通过</u-button></block><block wx:if="{{item.$orig.pay_status===3}}"><u-button vue-id="{{'272f6d44-6-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['refuseOrder',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">拒绝</u-button></block><block wx:if="{{orderTabs[currentTab]&&orderTabs[currentTab].id===5}}"><u-button vue-id="{{'272f6d44-7-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['assignOrder',['$0'],[[['list','id',item.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">分配</u-button></block></view></view></block></view><block wx:if="{{!$root.g1}}"><u-loadmore vue-id="272f6d44-8" margin-top="{{20}}" margin-bottom="{{40}}" status="{{loadStatus}}" class="data-v-645c66b0" bind:__l="__l"></u-loadmore></block></block></block><block wx:else><view class="d-flex ai-center jc-center data-v-645c66b0" style="height:100%;"><u-empty vue-id="272f6d44-9" mode="list" text="暂无订单" class="data-v-645c66b0" bind:__l="__l"></u-empty></view></block></scroll-view></view></block></block><block wx:else><block class="data-v-645c66b0"><view class="tabs sub-tabs data-v-645c66b0"><block wx:for="{{refundManageSubTabs}}" wx:for-item="st" wx:for-index="idx"><view data-event-opts="{{[['tap',[['changeRefundManageSubTab',[idx]]]]]}}" class="{{['data-v-645c66b0','tab','sub-tab',[(refundManageSubTab===idx)?'active':'']]}}" bindtap="__e">{{''+st.name+''}}</view></block></view><view class="order refund-panel refund-panel--manage data-v-645c66b0"><scroll-view style="height:100%;width:100%;" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['reachBottomRefund',['$event']]]]]}}" bindscrolltolower="__e" class="data-v-645c66b0"><block wx:if="{{$root.g2>0}}"><block class="data-v-645c66b0"><view class="order-list data-v-645c66b0"><block wx:for="{{$root.l1}}" wx:for-item="row" wx:for-index="__i1__" wx:key="id"><view class="order-card refund-card data-v-645c66b0"><block wx:if="{{row.$orig.order&&row.$orig.order.id}}"><block class="data-v-645c66b0"><view class="{{['order-icon','data-v-645c66b0',typeText[row.m8]?typeText[row.m9].class:typeText[1].class]}}">{{''+(typeText[row.m10]?typeText[row.m11].name:typeText[1].name)+''}}</view><view class="order-header data-v-645c66b0"><view class="order-time data-v-645c66b0"> 服务时间:<text class="data-v-645c66b0">{{row.$orig.order.time}}</text></view><view class="order-status data-v-645c66b0">{{row.m12}}</view></view><view class="order-body data-v-645c66b0"><view class="order-left data-v-645c66b0"><view class="refund-no-in-body data-v-645c66b0">{{"退款编号:"+row.$orig.no}}</view><block wx:if="{{row.$orig.apply_reason}}"><view class="refund-reason-in-body data-v-645c66b0">{{"退款理由:"+row.$orig.apply_reason}}</view></block><block wx:if="{{row.m13===2}}"><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"服务地址:"+row.m14}}</view></block></block><block wx:else><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"就诊医院:"+(row.$orig.order.hospital?row.$orig.order.hospital.name:'')}}</view></block></block><view class="data-v-645c66b0">{{"被服务人:"+(row.$orig.order.user_archive?row.$orig.order.user_archive.name:'')}}</view><view class="data-v-645c66b0">{{"服务项目:"+(row.$orig.order.accompany_product?row.$orig.order.accompany_product.name:'')}}</view><view class="data-v-645c66b0">{{"订单号:"+row.$orig.order.no+''}}<text data-event-opts="{{[['tap',[['copy',['$0'],[[['refundList','id',row.$orig.id,'order.no']]]]]]]}}" class="copy data-v-645c66b0" bindtap="__e">复制</text></view></view><view class="order-price data-v-645c66b0">¥<text class="data-v-645c66b0">{{row.$orig.order.price}}</text></view></view><view class="order-footer refund-simple-footer data-v-645c66b0"><u-button vue-id="{{'272f6d44-10-'+__i1__}}" size="mini" shape="circle" type="primary" data-event-opts="{{[['^click',[['goRefundManageDetail',['$0'],[[['refundList','id',row.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">详情</u-button></view></block></block><block wx:else><block class="data-v-645c66b0"><view class="refund-mini-line refund-mini-line--plain data-v-645c66b0">{{"退款编号:"+row.$orig.no}}</view><view class="refund-mini-line refund-mini-line--plain data-v-645c66b0">{{"状态:"+row.m15}}</view><view class="order-footer refund-simple-footer data-v-645c66b0"><u-button vue-id="{{'272f6d44-11-'+__i1__}}" size="mini" shape="circle" type="primary" data-event-opts="{{[['^click',[['goRefundManageDetail',['$0'],[[['refundList','id',row.$orig.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">详情</u-button></view></block></block></view></block></view><block wx:if="{{!$root.g3}}"><u-loadmore vue-id="272f6d44-12" margin-top="{{20}}" margin-bottom="{{40}}" status="{{refundLoadStatus}}" class="data-v-645c66b0" bind:__l="__l"></u-loadmore></block></block></block><block wx:else><view class="d-flex ai-center jc-center data-v-645c66b0" style="min-height:400rpx;"><u-empty vue-id="272f6d44-13" mode="list" text="{{refundManageEmptyText}}" class="data-v-645c66b0" bind:__l="__l"></u-empty></view></block></scroll-view></view></block></block><u-popup bind:input="__e" vue-id="272f6d44-14" z-index="99999" mask-close-able="{{false}}" mode="center" border-radius="12" width="690rpx" value="{{showPayCode}}" data-event-opts="{{[['^input',[['__set_model',['','showPayCode','$event',[]]]]]]}}" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}"><view class="payment-popup data-v-645c66b0"><view class="title data-v-645c66b0">付款二维码</view><view class="amount data-v-645c66b0"><text class="symbol data-v-645c66b0">¥</text><text class="number data-v-645c66b0">{{diff_price}}</text></view><view class="qr-code data-v-645c66b0"><block wx:if="{{myQrcode}}"><uqrcode vue-id="{{('272f6d44-15')+','+('272f6d44-14')}}" canvas-id="qrcode" value="{{myQrcode}}" sizeUnit="rpx" size="{{200}}" options="{{({margin:10})}}" data-ref="uqrcode" class="data-v-645c66b0 vue-ref" bind:__l="__l"></uqrcode></block></view><view class="tips data-v-645c66b0"><text class="data-v-645c66b0">请扫码支付差额</text><text class="sub-tips data-v-645c66b0">支付完成后订单将自动完成</text></view><view class="close-btn data-v-645c66b0"><u-button vue-id="{{('272f6d44-16')+','+('272f6d44-14')}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['closePayCode']]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">关闭</u-button><u-button vue-id="{{('272f6d44-17')+','+('272f6d44-14')}}" size="mini" shape="circle" type="default" custom-style="{{parStyle}}" data-event-opts="{{[['^click',[['isPayCode']]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">我已支付</u-button></view></view></u-popup></view><block wx:if="{{primaryTab==='orders'}}"><view class="add-order-btn-wrapper data-v-645c66b0"><u-button class="add-order-btn data-v-645c66b0" vue-id="272f6d44-18" type="primary" shape="circle" data-event-opts="{{[['^click',[['addOrder']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">新增订单</u-button></view></block><tab-bar vue-id="272f6d44-19" tabbarList="{{tabbarList}}" current="{{currentTabIndex}}" class="data-v-645c66b0" bind:__l="__l"></tab-bar></view>