|
@@ -20,43 +20,40 @@
|
|
</view>
|
|
</view>
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>地址</text>
|
|
<text>地址</text>
|
|
- <input class='input' disabled="{{worksheetinfo.workStatus==6}}" bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
|
|
|
|
|
|
+ <input class='input' bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
|
|
</view>
|
|
</view>
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>工单状态</text>
|
|
<text>工单状态</text>
|
|
- <picker class="picker" wx:if="{{worksheetinfo.workStatus!=6}}" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
|
|
|
|
|
|
+ <picker class="picker" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
|
|
<text>{{workstatus[workstatusindex].text}}</text>
|
|
<text>{{workstatus[workstatusindex].text}}</text>
|
|
</picker>
|
|
</picker>
|
|
- <picker wx:if="{{worksheetinfo.workStatus==6}}" disabled="true" class="picker" range-key="text" >
|
|
|
|
- <text>已完成</text>
|
|
|
|
- </picker>
|
|
|
|
</view>
|
|
</view>
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>工单大类</text>
|
|
<text>工单大类</text>
|
|
- <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
|
|
|
|
|
|
+ <picker class="picker" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
|
|
<text>{{workBigclass[workBigclassindex].text}}</text>
|
|
<text>{{workBigclass[workBigclassindex].text}}</text>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>工单小类</text>
|
|
<text>工单小类</text>
|
|
- <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" bindchange="bindwokSmallclassChange" value="{{wokSmallclassindex}}" range-key="text" range="{{wokSmallclass}}">
|
|
|
|
|
|
+ <picker class="picker" bindchange="bindwokSmallclassChange" value="{{wokSmallclassindex}}" range-key="text" range="{{wokSmallclass}}">
|
|
<text>{{wokSmallclass[wokSmallclassindex].text}}</text>
|
|
<text>{{wokSmallclass[wokSmallclassindex].text}}</text>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<!-- breakdownType故障原因:1车辆导致,2桩体导致,3人为导致,4基础设施问题,5其他 -->
|
|
<!-- breakdownType故障原因:1车辆导致,2桩体导致,3人为导致,4基础设施问题,5其他 -->
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>故障原因</text>
|
|
<text>故障原因</text>
|
|
- <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" bindchange="bindBreakdownType" value="{{breakdownTypeindex}}" range-key="text" range="{{breakdownType}}">
|
|
|
|
|
|
+ <picker class="picker" bindchange="bindBreakdownType" value="{{breakdownTypeindex}}" range-key="text" range="{{breakdownType}}">
|
|
<text>{{breakdownTypeindex==null?'请选择':breakdownType[breakdownTypeindex].text}}</text>
|
|
<text>{{breakdownTypeindex==null?'请选择':breakdownType[breakdownTypeindex].text}}</text>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>维修人员</text>
|
|
<text>维修人员</text>
|
|
- <input disabled="{{worksheetinfo.workStatus==6}}" bindtap='{{worksheetinfo.workStatus==6?"":"bindAccendantChange"}}' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
|
|
|
|
|
|
+ <input bindtap='bindAccendantChange' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
|
|
</view>
|
|
</view>
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>工作内容</text>
|
|
<text>工作内容</text>
|
|
- <input class='input' disabled="{{worksheetinfo.workStatus==6}}" bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
|
|
|
|
|
|
+ <input class='input' bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
|
|
</view>
|
|
</view>
|
|
<view class="context">
|
|
<view class="context">
|
|
<text>预计完成时间</text>
|
|
<text>预计完成时间</text>
|
|
@@ -88,7 +85,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="{{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> -->
|
|
<!-- <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 class="q-image-remover" data-idx="{{index}}" bindtap="removePciture">删除</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
@@ -103,7 +100,7 @@
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
- <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
|
|
|
|
|
|
+ <view class="context_image">
|
|
<text>添加照片</text>
|
|
<text>添加照片</text>
|
|
<view class="add" bindtap='openImage' hover-class='active'>
|
|
<view class="add" bindtap='openImage' hover-class='active'>
|
|
<text>+</text>
|
|
<text>+</text>
|
|
@@ -119,7 +116,7 @@
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
- <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
|
|
|
|
|
|
+ <view class="context_image">
|
|
<text>签名</text>
|
|
<text>签名</text>
|
|
<view class="add" bindtap='openSign' hover-class='active'>
|
|
<view class="add" bindtap='openSign' hover-class='active'>
|
|
<text>+</text>
|
|
<text>+</text>
|
|
@@ -128,4 +125,4 @@
|
|
</scroll-view>
|
|
</scroll-view>
|
|
<view class="School_Input" style="{{school_id?'':'color:#808080'}};{{schoolValidate?'border:1rpx solid #BD3731':''}}" bindtap="showSchoolPicker">{{school_name}}
|
|
<view class="School_Input" style="{{school_id?'':'color:#808080'}};{{schoolValidate?'border:1rpx solid #BD3731':''}}" bindtap="showSchoolPicker">{{school_name}}
|
|
</view>
|
|
</view>
|
|
-<button wx:if="{{worksheetinfo.workStatus!=6}}" bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>
|
|
|
|
|
|
+<button bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>
|