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
6.3 KiB

<view class="data-v-645c66b0"><view class="order-page 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="tabs data-v-645c66b0"><block wx:for="{{statusListStaff}}" 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="{{list}}" 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.type]['class']]}}">{{''+typeText[item.type]['name']+''}}</view><view class="order-header data-v-645c66b0"><view class="order-time data-v-645c66b0">服务时间:<text class="data-v-645c66b0">{{item.time}}</text></view><view class="order-status data-v-645c66b0">{{statusListStaff[currentTab].name}}</view></view><view class="order-body data-v-645c66b0"><view class="order-left data-v-645c66b0"><block wx:if="{{item.type===2}}"><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"服务地址:"+(item.city?item.city:'')}}</view></block></block><block wx:else><block class="data-v-645c66b0"><view class="data-v-645c66b0">{{"就诊医院:"+(item.hospital?item.hospital.name:'')}}</view></block></block><view class="data-v-645c66b0">{{"被服务人:"+(item.user_archive?item.user_archive.name:'')}}</view><view class="data-v-645c66b0">{{"服务项目:"+(item.accompany_product?item.accompany_product.name:'')}}</view><view class="data-v-645c66b0">{{"订单号:"+item.no+''}}<text data-event-opts="{{[['tap',[['copy',['$0'],[[['list','id',item.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.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.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">详情</u-button><block wx:if="{{item.pay_status===0||item.pay_status===3}}"><u-button vue-id="{{'272f6d44-3-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['editOrder',['$0'],[[['list','id',item.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">修改</u-button></block><block wx:if="{{item.pay_status===3}}"><u-button vue-id="{{'272f6d44-4-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['passOrder',['$0'],[[['list','id',item.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">通过</u-button></block><block wx:if="{{item.pay_status===3}}"><u-button vue-id="{{'272f6d44-5-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['refuseOrder',['$0'],[[['list','id',item.id,'id']]]]]]]}}" bind:click="__e" class="data-v-645c66b0" bind:__l="__l" vue-slots="{{['default']}}">拒绝</u-button></block><block wx:if="{{currentTab===4}}"><u-button vue-id="{{'272f6d44-6-'+__i0__}}" size="mini" shape="circle" type="default" custom-style="{{normalStyle}}" data-event-opts="{{[['^click',[['assignOrder',['$0'],[[['list','id',item.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-7" 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-8" mode="list" text="暂无订单" class="data-v-645c66b0" bind:__l="__l"></u-empty></view></block></scroll-view></view><u-popup bind:input="__e" vue-id="272f6d44-9" 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-10')+','+('272f6d44-9')}}" 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-11')+','+('272f6d44-9')}}" 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-12')+','+('272f6d44-9')}}" 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><tab-bar vue-id="272f6d44-13" tabbarList="{{tabbarList}}" current="{{currentTabIndex}}" class="data-v-645c66b0" bind:__l="__l"></tab-bar></view>