发消息
This commit is contained in:
parent
497d3347fe
commit
1421c714aa
@ -13,25 +13,38 @@
|
||||
<view class="backlogMargin">申请验收单位:{{checkRecord.applyAcceptanceUnitName}}</view>
|
||||
<view class="backlogMargin">申请验收人:{{checkRecord.applyAcceptanceUserName}}</view>
|
||||
</view>
|
||||
|
||||
<view class="form-item b-bottom" style="justify-content: flex-start;">
|
||||
<view class="form-lable"><text class="tag">*</text>验收结果</view>
|
||||
<view class="form-result">
|
||||
<view class="form-result" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2">
|
||||
<ul class="form-radio">
|
||||
<li :class="{'active-radio': formData.acceptanceResult == 1}" @click="checkRadio(1)">合格</li>
|
||||
<li :class="{'active-radio': formData.acceptanceResult == 2}" @click="checkRadio(2)">不合格
|
||||
</li>
|
||||
<li :class="{'active-radio': formData.acceptanceResult == 2}" @click="checkRadio(2)">不合格</li>
|
||||
</ul>
|
||||
</view>
|
||||
<view class="form-result" v-else>
|
||||
<ul class="form-radio">
|
||||
<li :class="{'active-radio': checkRecord.acceptanceResult == 1}" @click="checkRadio(1)">合格</li>
|
||||
<li :class="{'active-radio': checkRecord.acceptanceResult == 2}" @click="checkRadio(2)">不合格</li>
|
||||
</ul>
|
||||
</view>
|
||||
</view>
|
||||
<view class="form-item f-column b-bottom a-none">
|
||||
|
||||
<view class="form-item f-column b-bottom a-none" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2">
|
||||
<view class="form-lable">验收描述</view>
|
||||
<textarea class="form-textarea" @input="bindLength" @blur="bindTextAreaBlur" maxlength="50"
|
||||
:value="formData.acceptanceDescribe" placeholder="请输入验收描述" />
|
||||
<view class="txt-length">{{textareaLengh}}/50</view>
|
||||
</view>
|
||||
<view class="form-item f-column b-bottom a-none" v-else>
|
||||
<view class="form-lable">验收描述</view>
|
||||
<textarea class="form-textarea" maxlength="50" :disabled="true"
|
||||
:value="checkRecord.acceptanceDesc" placeholder="请输入验收描述" />
|
||||
</view>
|
||||
|
||||
<view class="form-item f-column a-none">
|
||||
<view class="form-lable">现场照片</view>
|
||||
<view class="uni-form-input imgBox_wrap">
|
||||
<view class="uni-form-input imgBox_wrap" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2">
|
||||
<view class="addImgBox" @click="uploadImg" v-show="formData.imgFileList.length == 0">
|
||||
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
||||
</view>
|
||||
@ -44,11 +57,17 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
<view class="imgBox">
|
||||
<image :src="url_config+'image/'+checkRecord.photo" class="img"
|
||||
@click="previewImage(url_config+'image/'+item.url)"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="save-btn" @click="saveForm">确 认</view>
|
||||
<view class="save-btn" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2" @click="saveForm">确 认</view>
|
||||
<!-- <u-popup :show="isPopupVisible" @close="closePopup" @open="isPopupVisible === true" z-index="9999">
|
||||
<view class="slot-content">
|
||||
弹窗内容
|
||||
|
||||
@ -63,10 +63,12 @@
|
||||
<ordinaryAcceptance ref="list" v-if="componentName == 'ordinaryAcceptance'" :detailId="detailId" :info="detailData"></ordinaryAcceptance>
|
||||
<engineeringData ref="list" v-if="componentName == 'engineeringData'" :detailId="detailId" :info="detailData"></engineeringData>
|
||||
<verifyTableList ref="list" v-if="componentName == 'verifyTableList'" :detailId="detailId" :info="detailData"></verifyTableList>
|
||||
<finally-acceptance ref="list" v-if="componentName =='finallyAcceptance'" :detailId="detailId" :info="detailData" ></finally-acceptance>
|
||||
<finally-acceptance @message="handleMessage()" ref="list" v-if="componentName =='finallyAcceptance'" :detailId="detailId" :info="detailData" ></finally-acceptance>
|
||||
</view>
|
||||
</view>
|
||||
<view class="add-btn" v-if="activeIndex != 7 && activeIndex != 2 && !(activeIndex == 1 && detailData.engineeringState == 3) && COMPANY != 'longguang' && detailData.finalAcceptanceStatus !== 2" @click="addForm">
|
||||
<view class="add-btn" v-if="activeIndex != 7 && activeIndex != 2 && !(activeIndex == 1 && detailData.engineeringState == 3)
|
||||
&& COMPANY != 'longguang' && detailData.finalAcceptanceStatus !== 2"
|
||||
@click="addForm">
|
||||
<uni-icons v-if="activeIndex == 5" type="camera" size="30" color="#fff"></uni-icons>
|
||||
<uni-icons v-else type="plusempty" size="30" color="#fff"></uni-icons>
|
||||
<span>+</span>
|
||||
@ -131,6 +133,7 @@
|
||||
activeIndex: 1,
|
||||
detailId: "",
|
||||
detailData:{},
|
||||
isShowBtn: null
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
@ -152,6 +155,12 @@
|
||||
// this.initData()
|
||||
},
|
||||
methods:{
|
||||
handleMessage(message){
|
||||
this.isShowBtn = message
|
||||
console.log("============message===============");
|
||||
console.log(this.isShowBtn);
|
||||
console.log("============message===============");
|
||||
},
|
||||
initData(){
|
||||
this.sendRequest({
|
||||
url:'xmgl/dangerousEngineeringRecord/queryById',
|
||||
|
||||
@ -55,10 +55,17 @@
|
||||
uni.hideLoading()
|
||||
console.log("xmgl/xzDangerousEngineeringAcceptance/list",res);
|
||||
this.finallyCheckList = res.result;
|
||||
|
||||
if(this.finallyCheckList[0].acceptanceResult === 2){
|
||||
this.sendMessage(true)
|
||||
}else{
|
||||
this.sendMessage(false)
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
sendMessage(val){
|
||||
this.$emit('message', val);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user