61 lines
2.2 KiB
Plaintext
61 lines
2.2 KiB
Plaintext
<!--pages/t-repair/t-repair.wxml-->
|
|
<view class="container">
|
|
<view class="repair-line"></view>
|
|
<t-cell class="block" title="选择站点" arrow hover note="{{deviceCodeText}}" bind:click="onCityPicker" data-filed="deviceCode"/>
|
|
<t-picker
|
|
visible="{{deviceCodeVisible}}"
|
|
value="{{deviceCodeValue}}"
|
|
data-key="deviceCode"
|
|
title="选择站点"
|
|
cancelBtn="取消"
|
|
confirmBtn="确认"
|
|
bindchange="onPickerChange"
|
|
>
|
|
<t-picker-item options="{{deviceCodeData}}"></t-picker-item>
|
|
</t-picker>
|
|
<view class="repair-line"></view>
|
|
<view class="c-repair-item" style="padding-bottom:0;border-bottom:none;">
|
|
<view class="c-repair-item">
|
|
<t-cell class="block" title="报修设备" arrow hover note="{{equipmentNameText}}" bind:click="onPicker" data-filed="equipmentName"/>
|
|
<t-picker
|
|
visible="{{equipmentNameVisible}}"
|
|
value="{{equipmentNameValue}}"
|
|
data-key="equipmentName"
|
|
title="报修设备"
|
|
cancelBtn="取消"
|
|
confirmBtn="确认"
|
|
bindchange="onPickerChange"
|
|
bindpick="onColumnChange"
|
|
bindcancel="onPickerCancel"
|
|
>
|
|
<t-picker-item options="{{equipmentNameData}}"></t-picker-item>
|
|
</t-picker>
|
|
</view>
|
|
</view>
|
|
<view class="repair-content">
|
|
<view class="c-repair-item">
|
|
<text>报修类型</text>
|
|
<t-radio-group bind:change="onRepairTypeChange" defaultValue="">
|
|
<t-radio wx:for="{{repairTypeData}}" value="{{item.dataCode}}" label="{{item.dataValue}}" />
|
|
</t-radio-group>
|
|
</view>
|
|
|
|
<view class="c-repair-item">
|
|
<text style="display: block;width: 100%;margin-bottom: 30rpx;">拍照上传</text>
|
|
<view class="wrapper" style="width: 100%;">
|
|
<t-upload
|
|
mediaType="{{['video','image']}}"
|
|
max="{{5}}"
|
|
files="{{fileList.repairImg}}"
|
|
gridConfig="{{gridConfig}}"
|
|
bind:add="handleAdd"
|
|
bind:success="handleSuccess"
|
|
data-filed="repairImg"
|
|
bind:remove="handleRemove"
|
|
>
|
|
</t-upload>
|
|
</view>
|
|
</view>
|
|
<t-button theme="primary" size="large" bindtap="submitForm" disabled="{{disabled}}">提交申请</t-button>
|
|
</view>
|
|
</view> |