|
@@ -33,244 +33,60 @@
|
|
|
</view>
|
|
|
<view class="eleTime">
|
|
|
<image src="/static/noteIcon.png"></image>
|
|
|
- <view>距离电试超期还有 <span>730</span> 天</view>
|
|
|
-
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 现场问题
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">电缆孔洞:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.cable_hole == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.cable_hole == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">门窗、墙壁破损:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.damage == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.damage == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">屋顶墙壁渗漏水:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.water_leakage == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.water_leakage == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">灭火器配置不足:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.annihilator_insufficient_configuration == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.annihilator_insufficient_configuration == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">灭火器超期:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.annihilator_overdue == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.annihilator_overdue == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 其他
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">堆放杂物:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.pile_up_sundries == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.pile_up_sundries == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">积灰严重:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.serious_ash_deposition == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.serious_ash_deposition == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">配电房周围环境潮湿:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.around_environment_humid == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.around_environment_humid == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">配电房周围环境潮湿:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.around_pile_up_sundries == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.around_pile_up_sundries == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 电工
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">无电工:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.no_electrician == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.no_electrician == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">电工人数配置不足:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.electrician_lack == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.electrician_lack == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">电工证超期:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.overdue_electrician_certificate == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.overdue_electrician_certificate == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
-
|
|
|
-
|
|
|
- <!-- 电试 -->
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 电试
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">电试超期:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.electric_test_overdue == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.electric_test_overdue == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 设备 -->
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 设备
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">设备老旧(标明出厂或投运日期):</view>
|
|
|
- <input type="text" disabled ="true" v-model="detailInfo.old_equipment" style="width:35%">
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 安全工器具 -->
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 安全工器具
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">配置不足(绝缘体):</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.blanket_insufficient_configuration == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.blanket_insufficient_configuration == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
+ <view>距离电试超期还有 <span>{{detailInfo.electric_test_overdue_bz}}</span> 天</view>
|
|
|
</view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">接地线与存放位置编号:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.ground_wire == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.ground_wire == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 安全工器具 -->
|
|
|
+
|
|
|
<view class="info-tit margin-left-xs">
|
|
|
<text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 模拟屏
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title">模拟屏:</view>
|
|
|
- <radio-group name="gender">
|
|
|
- <label class="margin-right-xl">
|
|
|
- <radio disabled ="true" value="是" :checked='detailInfo.analog_screen == 1' /><text>是</text>
|
|
|
- </label>
|
|
|
- <label>
|
|
|
- <radio disabled ="true" value="否" :checked='detailInfo.analog_screen == 0'/><text>否</text>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- <view class="form-item remark" >
|
|
|
- <view class="title">备注:</view>
|
|
|
- <!-- <input type="text" disabled="true" v-model="detailInfo.remarks"> -->
|
|
|
- <textarea name="" id="" disabled="true" v-model="detailInfo.remarks"></textarea>
|
|
|
- </view>
|
|
|
-
|
|
|
-
|
|
|
- <view v-if="this.control&&Object.keys(this.detailInfo).length!=0" class="btn-area submitBottomBtn padding-lr-sm " style="position:static">
|
|
|
+ 现场问题
|
|
|
+ </view>
|
|
|
+ <block v-for="(item,index) in problem_one">
|
|
|
+ <view class="form-item flex justify-between">
|
|
|
+ <view class="title" style="width:70%">{{item.name}}:</view>
|
|
|
+ <view class="margin-right flex align-center">
|
|
|
+ <label class="margin-right-xl">
|
|
|
+ <radio disabled="true" value="是" checked /><text>是</text>
|
|
|
+ </label>
|
|
|
+ <view @click="previewImage(item)">
|
|
|
+ <image :src="item.picture?item.picture:'/static/cameraIcon2.png'" mode="aspectFit"></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-if="!this.control">
|
|
|
+ <view class="info-tit margin-left-xs">
|
|
|
+ <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
+ 其他
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="form-item flex justify-between" v-for="(item,index) in problem_two">
|
|
|
+ <view class="title" style="width:70%">{{item.name}}:</view>
|
|
|
+ <view class="margin-right flex align-center">
|
|
|
+ <label class="" v-if="item.where==0">
|
|
|
+ <radio disabled="true" value="否" checked /><text>否</text>
|
|
|
+ </label>
|
|
|
+ <label class="" v-if="item.where==2">
|
|
|
+ <radio disabled="true" value="其他" checked /><text>其他</text>
|
|
|
+ </label>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="form-item remark">
|
|
|
+ <view class="title">备注:</view>
|
|
|
+ <textarea name="" id="" disabled="true" v-model="detailInfo.remarks"></textarea>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ <view v-if="this.control&&Object.keys(this.detailInfo).length!=0"
|
|
|
+ class="btn-area submitBottomBtn padding-lr-sm " style="position:static">
|
|
|
<button class="bg-blue round margin-top" @click="goArchiveEdit()">编 辑 </button>
|
|
|
</view>
|
|
|
+
|
|
|
<br>
|
|
|
</form>
|
|
|
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -278,63 +94,64 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- detailInfo:{},
|
|
|
- control:'',
|
|
|
- id:''
|
|
|
+ detailInfo: {},
|
|
|
+ control: '',
|
|
|
+ id: '',
|
|
|
+ problem_one: [],
|
|
|
+ problem_two: [],
|
|
|
}
|
|
|
},
|
|
|
onLoad: function(option) {
|
|
|
- console.log('option')
|
|
|
- console.log(this.detailInfo)
|
|
|
- if(option.siteId){
|
|
|
- // alert(1)
|
|
|
- this.getDataList({"site_id":option.siteId})
|
|
|
- }else{
|
|
|
- // alert(2)
|
|
|
- this.getDataList({"id":option.id})
|
|
|
+ if (option.siteId) {
|
|
|
+ this.getDataList({
|
|
|
+ "site_id": option.siteId
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.getDataList({
|
|
|
+ "id": option.id
|
|
|
+ })
|
|
|
}
|
|
|
- this.control=option.mark;
|
|
|
-
|
|
|
- this.id=option.id;
|
|
|
-
|
|
|
+ this.control = option.mark;
|
|
|
+
|
|
|
+ this.id = option.id;
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
- goArchiveEdit(){
|
|
|
+ previewImage(item) {
|
|
|
+ // alert(1)
|
|
|
+ uni.previewImage({
|
|
|
+ urls: [item.picture ? item.picture : "/static/cameraIcon2.png"]
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+ goArchiveEdit() {
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/siteArchive/siteArchiveAdd/siteArchiveAdd?id='+this.id,
|
|
|
+ url: '/pages/siteArchive/siteArchiveAdd/siteArchiveAdd?id=' + this.id,
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
//数据请求
|
|
|
async getDataList(params = {}) {
|
|
|
const res = await this.$myRequest({
|
|
|
- url: 'Archives/getArchivesList',
|
|
|
+ url: 'Archives/getArchivesList1',
|
|
|
showLoading: true,
|
|
|
data: params
|
|
|
})
|
|
|
- console.log('res.data.data')
|
|
|
- console.log(res.data.data[0])
|
|
|
this.detailInfo = res.data.data[0];
|
|
|
- if(!this.detailInfo){
|
|
|
+ this.problem_one = this.detailInfo.problem_one;
|
|
|
+ this.problem_two = this.detailInfo.problem_two
|
|
|
+ if (!this.detailInfo.account_number) {
|
|
|
uni.showToast({
|
|
|
title: "暂无档案信息!",
|
|
|
icon: "none"
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-<style lang="scss" >
|
|
|
- .form-item .title{
|
|
|
- width:242rpx
|
|
|
+<style lang="scss">
|
|
|
+ .form-item .title {
|
|
|
+ width: 242rpx
|
|
|
}
|
|
|
</style>
|