Ver código fonte

工单状态

XWookey 1 ano atrás
pai
commit
c7c679d66c
1 arquivos alterados com 11 adições e 14 exclusões
  1. 11 14
      pages/worksheetinfo/addworksheetinfo.wxml

+ 11 - 14
pages/worksheetinfo/addworksheetinfo.wxml

@@ -20,43 +20,40 @@
   </view>
   <view class="context">
     <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 class="context">
     <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>
     </picker>
-    <picker wx:if="{{worksheetinfo.workStatus==6}}" disabled="true" class="picker"  range-key="text" >
-      <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" 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" bindchange="bindwokSmallclassChange" value="{{wokSmallclassindex}}" range-key="text" range="{{wokSmallclass}}">
       <text>{{wokSmallclass[wokSmallclassindex].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" 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 bindtap='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' bindinput='bindContentInput'  type='text' value='{{worksheetinfo.content}}'></input>
   </view>
   <view class="context">
     <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="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>
     </block>
   </view>
@@ -103,7 +100,7 @@
       </view>
     </block>
   </view>
-  <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
+  <view class="context_image">
     <text>添加照片</text>
     <view class="add" bindtap='openImage' hover-class='active'>
       <text>+</text>
@@ -119,7 +116,7 @@
       </view>
     </block>
   </view>
-  <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
+  <view class="context_image">
     <text>签名</text>
     <view class="add" bindtap='openSign' hover-class='active'>
       <text>+</text>
@@ -128,4 +125,4 @@
 </scroll-view>
 <view  class="School_Input"  style="{{school_id?'':'color:#808080'}};{{schoolValidate?'border:1rpx solid #BD3731':''}}" bindtap="showSchoolPicker">{{school_name}}
         </view>
-<button wx:if="{{worksheetinfo.workStatus!=6}}" bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>
+<button bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>