index.wxml
5.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<wxs src="../../../utils/permission.wxs" module="perm" />
<wxs src="../../index.wxs" module="filter" />
<navigation-bar bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="handleBack">低价提单</navigation-bar>
<block wx:if="{{ navBarHeight > 0 }}">
<view class="main" style="margin-top:{{ navBarHeight }}px">
<view class="to-box" style="top:{{ navBarHeight }}px">
<view class="search-box">
<view class="search-input">
<image src="{{ IMG_URL }}images/search.png" class="search-icon" />
<input type="text" placeholder="关键词" class="input" value="{{ keyword }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<image wx:if="{{ keyword }}" src="{{ IMG_URL }}images/clear.png" class="search-clear" bindtap="clear" />
</view>
</view>
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ activeIndex }}" suppress-initial-click />
</view>
<block wx:if="{{ flag }}">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="search" bindscrolltolower="scrollonReachBottom" class="list" style="height:calc(100vh - {{ navBarHeight }}px - 200rpx);" refresher-threshold="104" refresher-triggered="{{ triggered }}">
<block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view style="{{ li.txtStyle }}" class="touch-item {{ li.isTouchMove ? 'touch-move-active' : '' }}" data-ind="{{ ind }}" data-index="{{ index }}">
<view class="item content low-price-card" catchtap="jump" data-ind="{{ ind }}" data-index="{{ index }}" bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchE" data-name="{{ li.status == 3 ? 'confirmOrder' : li.status == 1 ? 'createOrder' : 'orderDetail' }}" data-item="{{ li }}">
<view class="low-price-card-header">
<view class="low-price-customer-name text-hide">{{ (li.customer && li.customer.customerName) || '--' }}</view>
<view class="low-price-card-status" style="color:{{ li.statuscolor }};background-color:{{ li.statusbackground }};">{{ li.goodsOrderApplyStatusText || li.statusText || '--' }}</view>
</view>
<view class="low-price-card-body">
<view class="low-price-card-row">
<view class="low-price-card-label">订单类型</view>
<view class="low-price-card-value">{{ li.lowPriceOrderTypeText || '低价订单' }}</view>
</view>
<view class="low-price-card-row">
<view class="low-price-card-label">销售顾问</view>
<view class="low-price-card-value text-hide">{{ li.salesConsultantText || '--' }}</view>
</view>
<view class="low-price-card-row">
<view class="low-price-card-label">转化人员</view>
<view class="low-price-card-value text-hide">{{ li.conversionStaffText || '--' }}</view>
</view>
<view class="low-price-card-row">
<view class="low-price-card-label">工单编号</view>
<view class="low-price-card-value text-hide">{{ li.orderCode || '--' }}</view>
</view>
<view class="low-price-card-row">
<view class="low-price-card-label">工单时间</view>
<view class="low-price-card-value text-hide">{{ li.orderTime || '--' }}</view>
</view>
</view>
<view class="low-price-card-footer">
<view class="low-price-view" catchtap="jump" data-name="{{ li.status == 3 ? 'confirmOrder' : li.status == 1 ? 'createOrder' : 'orderDetail' }}" data-item="{{ li }}">查看</view>
</view>
</view>
<block wx:if="{{ isMake }}">
<view wx:if="{{ !li['confirmIndex'] }}" class="del" catchtap="delBtn" data-ind="{{ ind }}" data-item="{{ li }}" data-index="{{ index }}">
<view>撤销</view>
<view>工单</view>
</view>
<view wx:else class="del confirm" catchtap="repeal" data-item="{{ li }}" data-index="{{ index }}">确认删除</view>
</block>
</view>
</block>
</block>
<view wx:if="{{ nothing }}" class="list-nothing">到底了~</view>
</block>
<empty-data wx:else />
</scroll-view>
</block>
</view>
</block>
<page-container show="{{ show_confirm }}" duration="{{ 0 }}" overlay="{{ false }}" bind:afterleave="closeFilter">
<view wx:if="{{ showRendering }}">
<order-screen show="{{ show_confirm }}" userInfo="{{ userInfo }}" navBarHeight="{{ navBarHeight }}" orderStatus="{{ tabIndex }}" lowPriceMode="{{ true }}" />
</view>
</page-container>
<modal id="modal2" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectType == 1?'act': '' }} com" bindtap="selectType" data-type="1">
<gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
新增工单
</view>
</view>
</modal>
<study-permission-modal id="customModal" />
<view class="low-price-create" bindtap="openLowPriceOrderPrompt">
<image src="/tabWorkOrder/images/new-low-price-order.png" />
<view>新建低价单</view>
</view>
<order-prompt-pop
show="{{ showLowPriceOrderPrompt }}"
low-price-mode="{{ true }}"
bindcancel="onLowPriceOrderPromptCancel"
bindconfirm="onLowPriceOrderPromptConfirm"
/>
<recording-order-popup
wx:if="{{ showOrderpop }}"
show="{{ showOrderpop }}"
lowPriceFlag="{{ pendingWorkOrderParams.lowPriceFlag }}"
merchantId="{{ pendingWorkOrderParams.merchantId }}"
yqMerchantId="{{ pendingWorkOrderParams.yqMerchantId }}"
bind:success="onRecordingOrderSuccess"
title="请选择交易参考号"
/>