water_sh/pages/report/index.wxml

73 lines
3.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<navBar title="报修申请" leftArrow></navBar>
<view>
<van-cell-group>
<view class="van-title">
<view style="float: left;margin-right: 10rpx;">
设备基本信息
</view>
<view wx:if="{{deviceId}}">
<van-tag type="success" wx:if="{{iswarrantyPeriod}}"> 保修期内</van-tag>
<van-tag type="warning" wx:else> 已过保修期</van-tag>
<view style="float: right;">保修期:{{warrantyPeriod}}</view>
</view>
</view>
<van-field value="{{ devicePhonenumber }}" type="number" placeholder="获取的手机号" border="{{ false }}" label="设备手机号:" clearable bind:change="onChangedevice" />
<van-field value="{{ devciceName }}" readonly placeholder="" border="{{ false }}" placeholder="获取的信息" label="设备名称:" clearable bind:change="onChange" />
<van-field value="{{ address }}" type="textarea" autosize="{{autosize}}" readonly label="设备地址:" placeholder="获取的信息" />
</van-cell-group>
<van-cell-group>
<view class="van-title">报修详情</view>
<van-field value="{{ contactName }}" data-key="contactName" placeholder="请输入联系人" clearable label="报修联系人:" bind:change="onChange" />
<van-field value="{{ contactPhone }}" type="number" data-key="contactPhone" placeholder="请输入手机号" clearable label="联系手机号:" bind:change="onChange" />
<van-field value="{{repairSceneName}}" data-key="contactName" placeholder="选择维修类型" clearable label="需维修类型:" bind:tap="setDialog" readonly />
<view class="record-filed">
<view class="recode-title">故障录音</view>
<view class="recode-data">
<view class="recode">
<view class="record-bgm" bind:tap="playCorder">{{curTime}}s</view>
<view class="record-wave-multiple" wx:if="{{recorder.status=='recording'||isPlay}}" >
<view></view>
<view></view>
<view></view>
</view>
</view>
</view>
<view class="record-text" bind:tap="actionRecoder" > {{recorder.text}} </view>
</view>
<van-field value="{{ faultDesc }}" data-key="faultDesc" placeholder="请详细描述设备故障以便售后人员上门维修描述不少于10个字" label="故障描述:" type="textarea" autosize="{{autosize}}" clearable bind:change="onChange" />
<view style="background-color: #fff;padding: 5px 10px;">
<view class="van-title">故障图片/视频不少于3张</view>
<van-uploader multiple accept="media" file-list="{{ faultImg }}" bind:after-read="afterRead" bind:before-read="beforeRead" use-before-read bind:delete="bindDel" />
</view>
</van-cell-group>
<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;">
<view class="scrollList">
<van-cell-group>
<van-cell wx:for="{{list}}" wx:key="item" data-item="{{item}}" bind:tap="selectItem" value="{{item.partsModel}}">
<view slot="title">
{{index+1}}、{{item.sceneName}}
</view>
</van-cell>
</van-cell-group>
</view>
</view>
</van-dialog>
<view class="buttonCss">
<van-button block round type="info" bind:tap="saveDetail">
提交报修 <text wx:if="{{repairSceneId&&!iswarrantyPeriod}}">({{repairScene.minPrice}}~{{repairScene.maxPrice}})</text>
</van-button>
</view>
</view>