|
@@ -8,19 +8,22 @@
|
|
|
<view class="items-t-r">{{newData.hazardCheckCode}} {{newData.hazardCheckName}}</view>
|
|
|
<img class="items-t-img" src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
|
|
|
</view>
|
|
|
- <view class="items-b">< {{newData.hazardCheckCode2}} {{newData.hazardCheckName2}} <{{newData.hazardCheckCode1}} {{newData.hazardCheckName1}}</view>
|
|
|
+ <view class="items-b">< {{newData.hazardCheckCode2}} {{newData.hazardCheckName2}}
|
|
|
+ <{{newData.hazardCheckCode1}} {{newData.hazardCheckName1}}</view>
|
|
|
</view>
|
|
|
<view class="items-number">此检查项在当前实验室累计出现<text>{{hazardCheckNum}}</text>次隐患</view>
|
|
|
<view class="list">
|
|
|
- <view class="list-li">
|
|
|
+ <view class="list-li" v-if="newData.hazardCheckName!=''" @click="inspectDot()">
|
|
|
<view>检查要点</view>
|
|
|
<view>
|
|
|
- <img src="@/pages_safetyCheck/images/icon_06.png">
|
|
|
+ <img v-if="!newData.inspectDot" src="@/pages_safetyCheck/images/icon_06.png">
|
|
|
+ <img v-if="newData.inspectDot" src="@/pages_safetyCheck/images/icon_06_1.png">
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="hidden-content">{{newData.hazardCheckPoint}}
|
|
|
+ <view class="hidden-content" v-if="newData.hazardCheckName!='' && newData.inspectDot">
|
|
|
+ {{newData.hazardCheckPoint}}
|
|
|
</view>
|
|
|
- <view class="radio_group">
|
|
|
+ <view class="radio_group" v-if="newData.inspectDot">
|
|
|
<view class="radio" v-for="(item,index) in radioList" :key="index" @click="radioClick(item)">
|
|
|
<img v-if="!item.checked" src="@/pages_safetyCheck/images/icon_aqjc_5.png">
|
|
|
<img v-if="item.checked" src="@/pages_safetyCheck/images/icon_aqjc_6.png">
|
|
@@ -30,11 +33,12 @@
|
|
|
<view class="list-li" v-if="!form.checkFlag">
|
|
|
<view>检查隐患</view>
|
|
|
<view>
|
|
|
- <img src="@/pages_safetyCheck/images/icon_06.png">
|
|
|
+ <!-- <img src="@/pages_safetyCheck/images/icon_06.png"> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- <textarea v-if="!form.checkFlag" class="describe" type="text" v-model="form.hazardDescribe"
|
|
|
- maxlength="200" placeholder="请填写隐患描述" placeholder-style="font-size:24rpx;color:#999;"></textarea>
|
|
|
+ <textarea v-if="!form.checkFlag && !checkItemModuleType" class="describe" type="text"
|
|
|
+ v-model="form.hazardDescribe" maxlength="200" placeholder="请填写隐患描述"
|
|
|
+ placeholder-style="font-size:24rpx;color:#999;"></textarea>
|
|
|
<view class="list-li" v-if="form.photoList[0]">
|
|
|
<view>现场照片</view>
|
|
|
</view>
|
|
@@ -78,7 +82,7 @@
|
|
|
<view @click="submitForm(1)">保存草稿</view>
|
|
|
<view @click="submitForm(2)">提交</view>
|
|
|
</view> -->
|
|
|
- <view class="sub-btn">
|
|
|
+ <view class="sub-btn" v-if="!checkItemModuleType">
|
|
|
<img @longpress.stop="recordButton(item,$event)" @touchmove.stop="cancelButton"
|
|
|
@touchend.stop="sendButton(item,$event)" src="@/pages_safetyCheck/images/icon_aqjc_luyin.png" />
|
|
|
<img @click="selectImage()" src="@/pages_safetyCheck/images/icon_aqjc_paizhao.png" />
|
|
@@ -145,8 +149,10 @@
|
|
|
onLoad(option) {
|
|
|
let optionData = JSON.parse(decodeURIComponent(option.infoData));
|
|
|
uni.setNavigationBarTitle({
|
|
|
- title: optionData.subName + '(' + (optionData.pageType == 0 ? optionData.roomNum : optionData
|
|
|
- .subRoom) + ')'
|
|
|
+ title: optionData.subName + '(' + (optionData.pageType == 0 ? (optionData.roomNum ? optionData
|
|
|
+ .roomNum : '-') : (optionData
|
|
|
+ .subRoom ? optionData
|
|
|
+ .subRoom : '-')) + ')'
|
|
|
})
|
|
|
this.$set(this, 'pageType', optionData.pageType);
|
|
|
this.$set(this, 'itemsStatus', optionData.itemsStatus);
|
|
@@ -176,6 +182,12 @@
|
|
|
this.securityAppCheckPhotoGetCheckNumBySub();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //折叠展开
|
|
|
+ inspectDot() {
|
|
|
+ console.log(11)
|
|
|
+ console.log(this.newData.inspectDot)
|
|
|
+ this.newData.inspectDot = !this.newData.inspectDot
|
|
|
+ },
|
|
|
//获取提交详情
|
|
|
async securityAppCheckPlanCheckInfo() {
|
|
|
let obj = {
|
|
@@ -186,10 +198,13 @@
|
|
|
data
|
|
|
} = await securityAppCheckPlanCheckInfo(obj);
|
|
|
if (data.code == 200) {
|
|
|
+ data.data.inspectDot = true;
|
|
|
this.$set(this, 'newData', data.data);
|
|
|
+ console.log(data.data.hazardCheckPoin)
|
|
|
//编辑的时候
|
|
|
this.$set(this.form, 'checkFlag', data.data.checkFlag ? data.data.checkFlag : false);
|
|
|
- this.$set(this.form, 'hazardDescribe', data.data.hazardDescribe ? data.data.hazardDescribe : '');
|
|
|
+ this.$set(this.form, 'hazardDescribe', data.data.hazardCheckPoint ? data.data.hazardCheckPoint :
|
|
|
+ '');
|
|
|
this.$set(this.form, 'photoList', data.data.photoList ? data.data.photoList : []);
|
|
|
this.$set(this.form, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
|
|
|
|
|
@@ -205,10 +220,12 @@
|
|
|
} = await securityDraftFindBySetOptionId(obj);
|
|
|
if (data.code == 200) {
|
|
|
//编辑的时候
|
|
|
+ data.data.inspectDot = true;
|
|
|
this.$set(this, 'newData', data.data);
|
|
|
+ this.$set(this.form, 'hazardDescribe', data.data.hazardCheckPoint ? data.data.hazardCheckPoint :
|
|
|
+ "");
|
|
|
this.$set(this.newData, 'checkPlanSetVoList', this.optionData.checkPlanSetVoList);
|
|
|
this.$set(this.form, 'checkFlag', data.data.checkFlag ? data.data.checkFlag : false);
|
|
|
- this.$set(this.form, 'hazardDescribe', data.data.hazardDescribe ? data.data.hazardDescribe : '');
|
|
|
this.$set(this.form, 'photoList', data.data.photoList ? data.data.photoList : []);
|
|
|
this.$set(this.form, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
|
|
|
}
|
|
@@ -249,6 +266,7 @@
|
|
|
this.$set(this.newData, 'hazardCheckCode2', item.hazardCheckCode2);
|
|
|
this.$set(this.newData, 'hazardCheckName2', item.hazardCheckName2);
|
|
|
this.$set(this.newData, 'hazardCheckPoint', item.hazardCheckPoint);
|
|
|
+ this.$set(this.form, 'hazardDescribe', item.hazardCheckPoint);
|
|
|
this.$set(this, 'setOptionId', item.setOptionId);
|
|
|
this.$set(this, 'hazardCheckPro', item.hazardCheckPro);
|
|
|
this.securityAppCheckPhotoGetCheckNumBySub();
|
|
@@ -345,7 +363,8 @@
|
|
|
},
|
|
|
/******图片上传******/
|
|
|
selectImage() {
|
|
|
- let self = this;
|
|
|
+ let self=this;
|
|
|
+ let photoMaxNun = 0;
|
|
|
if (this.form.photoList.length > 5) {
|
|
|
uni.showToast({
|
|
|
title: '最多上传6张图片',
|
|
@@ -355,8 +374,9 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
+ photoMaxNun = 6 - this.form.photoList.length;
|
|
|
wx.chooseImage({
|
|
|
- count: 6,
|
|
|
+ count: photoMaxNun,
|
|
|
sizeType: ["original", "compressed"],
|
|
|
sourceType: ["album", "camera"],
|
|
|
success: function(res) {
|
|
@@ -773,12 +793,14 @@
|
|
|
|
|
|
.describe {
|
|
|
width: 636rpx;
|
|
|
- height: 120rpx;
|
|
|
+ height: 180rpx;
|
|
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
|
|
border: 1rpx solid #E0E0E0;
|
|
|
margin: 20rpx 0 20rpx 28rpx;
|
|
|
padding: 12rpx 16rpx;
|
|
|
box-sizing: border-box;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #333333;
|
|
|
}
|
|
|
|
|
|
.check-for-img-max-box {
|