123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <!--pages/worksheetinfo/worksheetinfo.wxml-->
- <scroll-view scroll-y='true'>
- <view class="context">
- <text>场站</text>
- <view class='input' type='text'>
- <!-- 有清除按钮 -->
- <view disabled="{{workstatusFinished}}" class="span_withclear" bindtap='{{workstatusFinished?"":"chargStationNameSelect"}}' wx:if="{{!chargStationNameClearFlag}}">{{chargStationName}}</view>
- <image class='img_clear' bindtap='{{workstatusFinished?"":"clear_chargStationName"}}' src="/images/clear.png" wx:if="{{!chargStationNameClearFlag}}"></image>
- <!-- 木有清除按钮 -->
- <view class="span_withoutclear" bindtap='{{workstatusFinished?"":"chargStationNameSelect"}}' wx:if="{{chargStationNameClearFlag}}">请选择</view>
- </view>
- <!-- <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindChargstationsChange" value="{{chargstationsindex}}" range-key="chargStationName" range="{{chargstations}}">
- <text>{{chargstations[chargstationsindex].chargStationName}}</text>
- </picker> -->
- </view>
- <view class="context">
- <text>地址</text>
- <input class='input' disabled="{{workstatusFinished}}" bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
- </view>
- <view class="context">
- <text>工单状态</text>
- <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
- <text wx:if="{{worksheetinfo.workStatus == 7}}">完成工单</text>
- <text wx:else="">{{workstatus[workstatusindex].text}}</text>
- </picker>
- <!-- <picker wx:if="{{workstatusFinished}}" disabled="true" class="picker" range-key="text" >
- <text>已完成</text>
- </picker> -->
- </view>
- <view class="context">
- <text>工单大类</text>
- <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
- <text>{{workBigclass[workBigclassindex].text}}</text>
- </picker>
- </view>
- <view class="context">
- <text>工单小类</text>
- <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindwokSmallclassChange" value="{{wokSmallclassindex}}" range-key="text" range="{{wokSmallclass}}">
- <text>{{wokSmallclass[wokSmallclassindex].text}}</text>
- </picker>
- </view>
- <!-- <view class="context">
- <text>工单类型</text>
- <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
- <text>{{workBigclass[workBigclassindex].text}}</text>
- </picker>
- </view> -->
- <!-- breakdownType故障原因:1车辆导致,2桩体导致,3人为导致,4基础设施问题,5其他 -->
- <view class="context">
- <text>故障原因</text>
- <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindBreakdownType" value="{{breakdownTypeindex}}" range-key="text" range="{{breakdownType}}">
- <text>{{breakdownTypeindex==null?'请选择':breakdownType[breakdownTypeindex].text}}</text>
- </picker>
- </view>
- <view class="context">
- <text>维修人员</text>
- <input disabled="{{workstatusFinished}}" bindtap='{{workstatusFinished?"":"bindAccendantChange"}}' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
- </view>
- <view class="context">
- <text>工作内容</text>
- <input class='input' disabled="{{workstatusFinished}}" bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
- </view>
-
- <view class="context">
- <text>预计完成时间</text>
- <!-- <picker class="picker1" disabled="{{workstatusFinished}}" mode="date" value="{{exceptdate}}" bindchange="bindExceptdateChange">
- <text>{{exceptdate==null?'0000-00-00':exceptdate}}</text>
- </picker>
- <picker class="picker2" disabled="{{workstatusFinished}}" mode="time" value="{{excepttime}}" bindchange="bindExcepttimeChange">
- <text>{{excepttime==null?'00:00':excepttime}}:00</text>
- </picker> -->
- <datepicker wx:if="{{!workstatusFinished}}" params="{{exceptparams}}" bind:getDateString="bindExceptparamsChange" style="width: 100%;"/>
- <input wx:if="{{workstatusFinished}}" class='input' type='text' value='{{exceptparams.pText}}' disabled="{{workstatusFinished}}"></input>
- </view>
- <view class="context">
- <text>工作完成截止时间</text>
- <!-- <picker class="picker1" disabled="{{worksheetinfo.workStatus==6}}" mode="date" value="{{finishdate}}" bindchange="bindFinishdateChange">
- <text>{{finishdate==null?'0000-00-00':finishdate}}</text>
- </picker>
- <picker class="picker2" disabled="{{worksheetinfo.workStatus==6}}" mode="time" value="{{finishtime}}" bindchange="bindFinishtimeChange">
- <text>{{finishtime==null?'00:00':finishtime}}:00</text>
- </picker> -->
- <datepicker wx:if="{{!workstatusFinished}}" params="{{workEndtimeParams}}" bind:getDateString="bindworkEndtimeParamsChange" style="width: 100%;"/>
- <input wx:if="{{workstatusFinished}}" class='input' type='text' value='{{workEndtimeParams.pText}}' disabled="{{workstatusFinished}}"></input>
- <!-- <input class='input' type='text' value='{{worksheetinfo.finishTime}}'></input> -->
- </view>
- <view class="context">
- <text>实际完成时间</text>
- <!-- <picker class="picker1" disabled="{{workstatusFinished}}" mode="date" value="{{finishdate}}" bindchange="bindFinishdateChange">
- <text>{{finishdate==null?'0000-00-00':finishdate}}</text>
- </picker>
- <picker class="picker2" disabled="{{workstatusFinished}}" mode="time" value="{{finishtime}}" bindchange="bindFinishtimeChange">
- <text>{{finishtime==null?'00:00':finishtime}}:00</text>
- </picker> -->
- <datepicker wx:if="{{!workstatusFinished}}" params="{{finishparams}}" bind:getDateString="bindFinishparamsChange" style="width: 100%;"/>
- <input wx:if="{{workstatusFinished}}" class='input' type='text' value='{{finishparams.pText}}' disabled="{{workstatusFinished}}"></input>
- </view>
-
- <view wx:if="{{pcitures.length!=0}}" class="question-images">
- <block wx:for="{{pcitures}}" wx:key="this">
- <view class="q-image-wrap">
- <!-- <image wx:if="{{item.flag}}" class="q-image" src="{{item.src}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleSignPreview" ddd="1"></image>
- <!-- 图片缩略图 -->
- <!-- <image wx:if="{{!item.flag}}" class="q-image" src="{{item.url}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleSignPreview" ddd="2"></image> -->
- <image bindtap="handlePcituresPreview" class="q-image" src="{{item.url}}" mode="aspectFill" data-idx="{{index}}" ></image>
- <view wx:if="{{!workstatusFinished}}" class="q-image-remover" data-idx="{{index}}" bindtap="removePciture">删除</view>
- </view>
- </block>
- </view>
- <view wx:if="{{images.length!=0}}" class="question-images">
- <block wx:for="{{images}}" wx:key="this">
- <view class="q-image-wrap">
- <!-- 图片缩略图 -->
- <!-- <image bindtap="handleImagePreview" class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" /> -->
- <image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleImagePreview"></image>
- <!-- 移除图片的按钮 -->
- <view class="q-image-remover" data-idx="{{index}}" bindtap="removeImage">删除</view>
- </view>
- </block>
- </view>
- <view class="context_image" wx:if="{{!workstatusFinished}}">
- <text>添加照片</text>
- <view class="add" bindtap='openImage' hover-class='active'>
- <text>+</text>
- </view>
- </view>
- <view wx:if="{{signs.length!=0}}" class="question-images">
- <block wx:for="{{signs}}" wx:key="*this">
- <view class="q-image-wrap">
- <!-- 图片缩略图 -->
- <image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleSignPreview"></image>
- <!-- 移除图片的按钮 -->
- <view class="q-image-remover" data-idx="{{index}}" bindtap="removeSign">删除</view>
- </view>
- </block>
- </view>
- <view class="context_image" wx:if="{{!workstatusFinished}}">
- <text>签名</text>
- <view class="add" bindtap='openSign' hover-class='active'>
- <text>+</text>
- </view>
- </view>
- </scroll-view>
- <button wx:if="{{!workstatusFinished}}" bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>
|