44 lines
2.0 KiB
Plaintext
44 lines
2.0 KiB
Plaintext
|
<!--pages/t-dispatch/t-dispatch.wxml-->
|
||
|
<view class="container">
|
||
|
<t-search disabled='true' prefixIcon="filter" model:value="{{deviceName}}" bindtap="search" placeholder="选择站点" />
|
||
|
<!-- <t-dropdown-menu>
|
||
|
<t-dropdown-item
|
||
|
label="{{label}}"
|
||
|
options="{{singleSelect.options}}"
|
||
|
value="{{singleSelect.value}}"
|
||
|
keys="{{keys}}"
|
||
|
bindchange="handleSingleSelect"
|
||
|
/>
|
||
|
</t-dropdown-menu> -->
|
||
|
<view class="t-list">
|
||
|
<view class="t-item" wx:if="{{taskData != ''}}" wx:for="{{taskData}}">
|
||
|
<view class="dispatch-head">
|
||
|
<text>站点名称:{{item.device.name}}</text>
|
||
|
</view>
|
||
|
<text class="content">站点类型:{{item.deviceType}}</text>
|
||
|
<text class="content">站点规格:{{item.deviceSpecifications}}</text>
|
||
|
<text class="content">保修人:{{item.repairPerson.name}}</text>
|
||
|
<text class="content">报修设备:{{item.equipment.name}}</text>
|
||
|
<text class="content">报修类型:{{item.repairType.dataValue}}</text>
|
||
|
<text class="content">报修时间:{{item.createTime}}</text>
|
||
|
<text class="content">备注:{{item.remark}}</text>
|
||
|
<view class="dispatch-deal1">
|
||
|
<view style="display: flex;justify-content: flex-start;">
|
||
|
<text>派工状态:</text>
|
||
|
<t-tag variant="outline" wx:if="{{item.status == '未派工'}}" theme="danger">未派工</t-tag>
|
||
|
<t-tag variant="outline" wx:else theme="success">已派工</t-tag>
|
||
|
</view>
|
||
|
<view>
|
||
|
<t-button theme="primary" wx:if="{{item.status == '未派工'}}" bindtap="toTask" data-code="{{item.device.code}}"
|
||
|
data-id="{{item.id}}" data-name="{{item.device.name}}" size="extra-small">转任务</t-button>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="t-item-null" wx:if="{{taskData == ''}}">
|
||
|
<text>暂无数据!</text>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="foot">
|
||
|
<t-button theme="primary" size="large" bindtap="add">新建保修</t-button>
|
||
|
</view>
|
||
|
</view>
|