water_sh/pages/maintenance/index.wxml

63 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2025-04-15 15:48:57 +08:00
<!--pages/maintenance/index.wxml-->
<navBar title="维修明细" leftArrow></navBar>
<view>
<view class="van-title">故障配件更换
<van-icon name="add-o" bind:tap="addAccessory" class="addCss" size="45rpx" />
</view>
<van-swipe-cell right-width="{{ 65 }}" wx:for="{{accessoryList}}">
<van-cell-group inset>
<van-cell title="{{item.name}}" label="{{item.type}}">
<view slot="right-icon">
<van-stepper value="{{ item.num }}" data-index="{{index}}" bind:change="onChangeNum" />
</view>
</van-cell>
</van-cell-group>
<view slot="right" data-index="{{index}}" bind:tap="delAccessory" class="van-swipe-cell__right">删除</view>
</van-swipe-cell>
<view class="van-title">维修事项</view>
<van-cell-group inset>
<van-field value="{{ desc }}" placeholder="请详细描述维修详情描述不少于10个字" label="维修事项:" type="textarea" autosize="{{autosize}}" clearable bind:change="onChangeDesc" />
<view style="background-color: #fff;padding: 5px 10px;">
<view class="van-title">维修图片不少于3张</view>
<van-uploader multiple file-list="{{ faultImg }}" bind:after-read="afterRead" bind:delete="bindDel" />
</view>
</van-cell-group>
<view class="buttonCss">
<van-button bind:tap="saveComplete" block round type="info">完成维修</van-button>
</view>
</view>
<van-dialog
use-slot
title="请选择需要更换的配件"
show="{{ show }}"
show-cancel-button
confirm-button-open-type="getUserInfo"
bind:close="onClose"
bind:getuserinfo="getUserInfo"
>
<view style="max-height: 60vh;overflow-y: scroll;padding: 20rpx 0;">
<van-search value="{{ searchValue }}" placeholder="请输入配件名称" bind:change="searchList" />
<view class="scrollList">
<van-cell-group >
<van-cell wx:for="{{accessory}}" data-item ="{{item}}" bind:tap="selectItem" value="{{item.partsModel}}">
<view slot="title">
<!-- <van-radio name="1"> </van-radio> -->
{{index+1}}、{{item.partsName}}
</view>
</van-cell>
</van-cell-group>
</view>
</view>
</van-dialog>