|
@@ -4,83 +4,96 @@
|
|
|
<text>场站</text>
|
|
|
<view class='input' type='text'>
|
|
|
<!-- 有清除按钮 -->
|
|
|
- <view class="span_withclear" bindtap='chargStationNameSelect' wx:if="{{!chargStationNameClearFlag}}">{{chargStationName}}</view>
|
|
|
- <image class='img_clear' bindtap='clear_chargStationName' src="/images/clear.png" wx:if="{{!chargStationNameClearFlag}}"></image>
|
|
|
+ <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='chargStationNameSelect' wx:if="{{chargStationNameClearFlag}}">请选择</view>
|
|
|
+ <view class="span_withoutclear" bindtap='{{workstatusFinished?"":"chargStationNameSelect"}}' wx:if="{{chargStationNameClearFlag}}">请选择</view>
|
|
|
</view>
|
|
|
- <!-- <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" bindchange="bindChargstationsChange" value="{{chargstationsindex}}" range-key="chargStationName" range="{{chargstations}}">
|
|
|
+ <!-- <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="{{worksheetinfo.workStatus==6}}" bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
|
|
|
+ <input class='input' disabled="{{workstatusFinished}}" bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
|
|
|
</view>
|
|
|
<view class="context">
|
|
|
<text>工单状态</text>
|
|
|
- <picker class="picker" wx:if="{{worksheetinfo.workStatus!=6}}" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
|
|
|
+ <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
|
|
|
<text>{{workstatus[workstatusindex].text}}</text>
|
|
|
</picker>
|
|
|
- <picker wx:if="{{worksheetinfo.workStatus==6}}" disabled="true" class="picker" range-key="text" >
|
|
|
+ <!-- <picker wx:if="{{workstatusFinished}}" disabled="true" class="picker" range-key="text" >
|
|
|
<text>已完成</text>
|
|
|
- </picker>
|
|
|
+ </picker> -->
|
|
|
</view>
|
|
|
<view class="context">
|
|
|
<text>工单大类</text>
|
|
|
- <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
|
|
|
+ <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="{{worksheetinfo.workStatus==6}}" bindchange="bindwokSmallclassChange" value="{{wokSmallclassindex}}" range-key="text" range="{{wokSmallclass}}">
|
|
|
+ <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="{{worksheetinfo.workStatus==6}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
|
|
|
+ <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="{{worksheetinfo.workStatus==6}}" bindchange="bindBreakdownType" value="{{breakdownTypeindex}}" range-key="text" range="{{breakdownType}}">
|
|
|
+ <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="{{worksheetinfo.workStatus==6}}" bindtap='{{worksheetinfo.workStatus==6?"":"bindAccendantChange"}}' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
|
|
|
+ <input disabled="{{workstatusFinished}}" bindtap='{{workstatusFinished?"":"bindAccendantChange"}}' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
|
|
|
</view>
|
|
|
<view class="context">
|
|
|
<text>工作内容</text>
|
|
|
- <input class='input' disabled="{{worksheetinfo.workStatus==6}}" bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
|
|
|
+ <input class='input' disabled="{{workstatusFinished}}" bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="context">
|
|
|
<text>预计完成时间</text>
|
|
|
- <!-- <picker class="picker1" disabled="{{worksheetinfo.workStatus==6}}" mode="date" value="{{exceptdate}}" bindchange="bindExceptdateChange">
|
|
|
+ <!-- <picker class="picker1" disabled="{{workstatusFinished}}" mode="date" value="{{exceptdate}}" bindchange="bindExceptdateChange">
|
|
|
<text>{{exceptdate==null?'0000-00-00':exceptdate}}</text>
|
|
|
</picker>
|
|
|
- <picker class="picker2" disabled="{{worksheetinfo.workStatus==6}}" mode="time" value="{{excepttime}}" bindchange="bindExcepttimeChange">
|
|
|
+ <picker class="picker2" disabled="{{workstatusFinished}}" mode="time" value="{{excepttime}}" bindchange="bindExcepttimeChange">
|
|
|
<text>{{excepttime==null?'00:00':excepttime}}:00</text>
|
|
|
</picker> -->
|
|
|
- <datepicker params="{{exceptparams}}" bind:getDateString="bindExceptparamsChange" style="width: 100%;"/>
|
|
|
- <!-- <input class='input' type='text' value='{{worksheetinfo.exceptTime}}'></input> -->
|
|
|
+ <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>
|
|
|
+ <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 params="{{finishparams}}" bind:getDateString="bindFinishparamsChange" style="width: 100%;"/>
|
|
|
+ <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">
|
|
@@ -89,7 +102,7 @@
|
|
|
<!-- 图片缩略图 -->
|
|
|
<image wx:if="{{!item.flag}}" class="q-image" src="{{item.url}}" mode="aspectFill" data-idx="{{index}}"></image>
|
|
|
<!-- <image wx:if="{{!item.flag}}" class="q-image" src="https://cdgl.pjnes.com/profile/station/{{item.src}}" mode="aspectFill" data-idx="{{index}}"></image> -->
|
|
|
- <view wx:if="{{worksheetinfo.workStatus!=6}}" class="q-image-remover" data-idx="{{index}}" bindtap="removePciture">删除</view>
|
|
|
+ <view wx:if="{{!workstatusFinished}}" class="q-image-remover" data-idx="{{index}}" bindtap="removePciture">删除</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
@@ -104,7 +117,7 @@
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
- <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
|
|
|
+ <view class="context_image" wx:if="{{!workstatusFinished}}">
|
|
|
<text>添加照片</text>
|
|
|
<view class="add" bindtap='openImage' hover-class='active'>
|
|
|
<text>+</text>
|
|
@@ -120,7 +133,7 @@
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
- <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
|
|
|
+ <view class="context_image" wx:if="{{!workstatusFinished}}">
|
|
|
<text>签名</text>
|
|
|
<view class="add" bindtap='openSign' hover-class='active'>
|
|
|
<text>+</text>
|
|
@@ -128,4 +141,4 @@
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
|
|
|
-<button wx:if="{{worksheetinfo.workStatus!=6}}" bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>
|
|
|
+<button wx:if="{{!workstatusFinished}}" bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>
|