Browse Source

两次跳转+安检巡查-巡查上报无法提交

data-page-V4.3.1
是小王呀\24601 1 year ago
parent
commit
792f528a16
  1. 29
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
  2. 10
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml
  3. 11
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss
  4. 2
      subpages/securityCheck/pages/securityCheck.wxml

29
subpages/InspectionReport/pages/InspectionReport/InspectionReport.js

@ -131,10 +131,21 @@ Page({
hiddenDangeList:[...this.data.hiddenDangeList,{hazardStatus:2,hazardDesc:this.data.hazardDesc2}] , hiddenDangeList:[...this.data.hiddenDangeList,{hazardStatus:2,hazardDesc:this.data.hazardDesc2}] ,
attachmentUrls:this.data.uploadImageList.map(item=>({fileName:item.originFileName,attachmentUrl:item.ossUrl.url})), attachmentUrls:this.data.uploadImageList.map(item=>({fileName:item.originFileName,attachmentUrl:item.ossUrl.url})),
remark: '' remark: ''
}).then(({ }).then(
data res => {
}) => { if(res.code == 0){
console.log('data', data) wx.showToast({
title: '新增成功',
duration:2000,
success:function(){
setTimeout(()=>{
wx.navigateBack({
delta: 1
})
},2000)
}
})
}
}); });
}, },
@ -242,8 +253,16 @@ Page({
}); // 点击按钮显示弹出层 }); // 点击按钮显示弹出层
}, },
onClose() { onClose() {
let names = []
this.data.arr.forEach(item=>{
if(this.data.selectedOptions.findIndex(itemC=>itemC === item.staffId) != -1){
names.push(item.name)
}
})
this.setData({ this.setData({
showPopup: false showPopup: false,
selectedNames: names,
checkPersonsIdList:this.data.selectedOptions
}); // 关闭弹出层 }); // 关闭弹出层
}, },
onChange1(event) { onChange1(event) {

10
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml

@ -61,8 +61,7 @@
<view class="pitfall"> <view class="pitfall">
<view class="prosecutors"> <view class="prosecutors">
<view> <view class="requirement">
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">整改要求</text> <text class="prosecutors_pre">整改要求</text>
</view> </view>
</view> </view>
@ -139,12 +138,11 @@
</view> </view>
</view> </view>
<wux-actionsheet id="wux-actionsheet" /> <wux-actionsheet id="wux-actionsheet" />
<van-popup show="{{ showPopup }}" closeable close-icon="close" position="bottom" custom-style="height: 50%" bind:close="onClose"> <van-popup show="{{ showPopup }}" closeable close-icon="close" position="bottom" custom-style="height: 50%" bind:close="onClose" round>
<view class="popup-content"> <view class="popup-content">
<van-checkbox-group value="{{selectedOptions}}" bind:change="onChange1"> <van-checkbox-group value="{{selectedOptions}}" bind:change="onChange1">
<van-checkbox name="{{item.staffId}}" wx:for="{{arr}}">{{item.name}}</van-checkbox> <van-checkbox name="{{item.staffId}}" custom-class="checkbox" wx:for="{{arr}}">{{item.name}}</van-checkbox>
</van-checkbox-group> </van-checkbox-group>
<button bindtap="confirmSelection">确定</button>
</view> </view>
</van-popup> </van-popup>

11
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss

@ -698,4 +698,15 @@ margin-bottom: 20rpx;
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
line-height: 42rpx; line-height: 42rpx;
}
.requirement{
padding-left:20rpx ;
}
.popup-content{
margin: 20rpx;
display: flex;
}
.checkbox{
margin: 40rpx;
} }

2
subpages/securityCheck/pages/securityCheck.wxml

@ -42,7 +42,7 @@
</view> </view>
</view> </view>
<movable-area class="movable-area"> <movable-area class="movable-area">
<movable-view class="movable-view" bind:tap="handleTap" direction="all" x="250" y="300"> <movable-view class="movable-view" direction="all" x="250" y="300">
<image src="../../../images/xuncha.png" class="image-wrapper" catchtouchend="handleTap"></image> <image src="../../../images/xuncha.png" class="image-wrapper" catchtouchend="handleTap"></image>
</movable-view> </movable-view>
</movable-area> </movable-area>

Loading…
Cancel
Save