|
@@ -17,7 +17,7 @@
|
|
|
<view :class="checkFlag == 0 ?'search-B':'search-A'" @click="checkFlagChange(0)">不符合</view>
|
|
|
</view>
|
|
|
<view class="search-r" :class="(pageType == 0 && curTabTow == 0)||(pageType != 0) ?'search-r-margin':''"
|
|
|
- @click="inspectionItemsClick()">
|
|
|
+ @click="checkItemModuleButton('open')">
|
|
|
<img src="@/pages_safetyCheck/images/icon_aqjc_ss.png">
|
|
|
{{newData.hazardCheckCode?newData.hazardCheckCode:''}}{{newData.hazardCheckName?newData.hazardCheckName:'搜索检查项'}}
|
|
|
</view>
|
|
@@ -55,6 +55,7 @@
|
|
|
</view>
|
|
|
<view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
|
|
|
</scroll-view>
|
|
|
+ <checkItemModule :propsData="propsData" v-if="checkItemModuleType"></checkItemModule>
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
@@ -68,10 +69,13 @@
|
|
|
securityAppCheckDangerReviewList,
|
|
|
securityAppCheckDangerGetCheckDangerSubId,
|
|
|
} from '@/pages_safetyCheck/api/index.js'
|
|
|
+ import {
|
|
|
+ checkItemModule
|
|
|
+ } from '@/pages_safetyCheck/component/checkItemModule.vue'
|
|
|
export default {
|
|
|
name: "hiddenDangerItems",
|
|
|
components: {
|
|
|
-
|
|
|
+ checkItemModule
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -98,7 +102,9 @@
|
|
|
dataList: [],
|
|
|
getDataType: false,
|
|
|
searchIndex: 0,
|
|
|
-
|
|
|
+ //检查项组件数据
|
|
|
+ checkItemModuleType:false,
|
|
|
+ propsData:{},
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -167,14 +173,31 @@
|
|
|
this.$set(this.queryParams,'page',1);
|
|
|
this.getList()
|
|
|
},
|
|
|
- //搜索项跳转
|
|
|
- inspectionItemsClick() {
|
|
|
- this.pageType = 2; //1随手拍检查项
|
|
|
- uni.redirectTo({
|
|
|
- url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsSearch?form=' + encodeURIComponent(
|
|
|
- JSON.stringify(this.newData))
|
|
|
- });
|
|
|
+ checkItemModuleButton(type,item){
|
|
|
+ if(type == 'open'){
|
|
|
+ let obj = {
|
|
|
+ infoType:this.pageType,
|
|
|
+ checkType:this.curTabTow,
|
|
|
+ }
|
|
|
+ if(this.curTabTow == 0){
|
|
|
+ //检查
|
|
|
+ obj.manageId = this.newData.manageId
|
|
|
+ }else if(this.curTabTow != 0){
|
|
|
+ //复查/整改
|
|
|
+ obj.planId = this.newData.planId;
|
|
|
+ obj.planSetId = this.newData.planSetId;
|
|
|
+ obj.subId = this.newData.subId;
|
|
|
+ }
|
|
|
+ this.$set(this,'propsData',obj);
|
|
|
+ this.$set(this,'checkItemModuleType',true);
|
|
|
+ }else if(type == 'out'){
|
|
|
+ this.$set(this,'checkItemModuleType',false);
|
|
|
+ this.$set(this,'propsData',{});
|
|
|
+ }else if(type == 'submit'){
|
|
|
+ this.itemsClick(item);
|
|
|
+ }
|
|
|
},
|
|
|
+ //检查项选中
|
|
|
itemsClick(row) {
|
|
|
let infoData = row;
|
|
|
infoData.pageType = this.pageType;
|