|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="appWrapper">
|
|
|
<!-- 现场档案新增start -->
|
|
|
- <form action="" v-if="!id">
|
|
|
+ <form action="">
|
|
|
<view style="height:30rpx"></view>
|
|
|
<view class="form-item">
|
|
|
<view class="title">
|
|
@@ -63,10 +63,11 @@
|
|
|
<evan-radio v-model="formMess.cable_hole" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.cable_hole" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.cable_hole" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input type="text" v-if="this.formMess.cable_hole!=2" disabled="disabled" v-model="formMess.cable_hole_describe">
|
|
|
- <input type="text" v-else v-model="formMess.cable_hole_describe">
|
|
|
+ <input type="text" v-if="this.formMess.cable_hole!=2" disabled="disabled"
|
|
|
+ v-model="formMess.cable_hole_describe">
|
|
|
+ <input type="text" v-else v-model="formMess.cable_hole_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].cable_hole_image?imageList[0].cable_hole_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.cable_hole_picture?this.formMess.cable_hole_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('cable_hole_image','cable_hole_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -76,10 +77,11 @@
|
|
|
<evan-radio v-model="formMess.damage" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.damage" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.damage" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.damage!=2" disabled="disabled" type="text" v-model="formMess.damage_describe">
|
|
|
+ <input v-if="this.formMess.damage!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.damage_describe">
|
|
|
<input v-else type="text" v-model="formMess.damage_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].damage_image?imageList[0].damage_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.damage_picture?this.formMess.damage_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('damage_image','damage_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -89,10 +91,11 @@
|
|
|
<evan-radio v-model="formMess.water_leakage" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.water_leakage" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.water_leakage" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.water_leakage!=2" disabled="disabled" type="text" v-model="formMess.water_leakage_describe">
|
|
|
- <input v-else type="text" v-model="formMess.water_leakage_describe">
|
|
|
+ <input v-if="this.formMess.water_leakage!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.water_leakage_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.water_leakage_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].water_leakage_image?imageList[0].water_leakage_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.water_leakage_picture?this.formMess.water_leakage_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('water_leakage_image','water_leakage_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -105,10 +108,11 @@
|
|
|
class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.annihilator_insufficient_configuration" label="2"
|
|
|
class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.annihilator_insufficient_configuration!=2" disabled="disabled" type="text" v-model="formMess.annihilator_insufficient_configuration_describe">
|
|
|
- <input v-else type="text" v-model="formMess.annihilator_insufficient_configuration_describe">
|
|
|
+ <input v-if="this.formMess.annihilator_insufficient_configuration!=2" disabled="disabled"
|
|
|
+ type="text" v-model="formMess.annihilator_insufficient_configuration_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.annihilator_insufficient_configuration_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].annihilator_insufficient_configuration_image?imageList[0].annihilator_insufficient_configuration_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.annihilator_insufficient_configuration_picture?this.formMess.annihilator_insufficient_configuration_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('annihilator_insufficient_configuration_image','annihilator_insufficient_configuration_picture')">
|
|
|
</image>
|
|
|
</view>
|
|
@@ -119,10 +123,11 @@
|
|
|
<evan-radio v-model="formMess.annihilator_overdue" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.annihilator_overdue" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.annihilator_overdue" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.annihilator_overdue!=2" disabled="disabled" type="text" v-model="formMess.annihilator_overdue_describe">
|
|
|
- <input v-else type="text" v-model="formMess.annihilator_overdue_describe">
|
|
|
+ <input v-if="this.formMess.annihilator_overdue!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.annihilator_overdue_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.annihilator_overdue_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].annihilator_overdue_image?imageList[0].annihilator_overdue_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.annihilator_overdue_picture?this.formMess.annihilator_overdue_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('annihilator_overdue_image','annihilator_overdue_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -136,10 +141,11 @@
|
|
|
<evan-radio v-model="formMess.pile_up_sundries" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.pile_up_sundries" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.pile_up_sundries" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.pile_up_sundries!=2" disabled="disabled" type="text" v-model="formMess.pile_up_sundries_describe">
|
|
|
- <input v-else type="text" v-model="formMess.pile_up_sundries_describe">
|
|
|
+ <input v-if="this.formMess.pile_up_sundries!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.pile_up_sundries_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.pile_up_sundries_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].pile_up_sundries_image?imageList[0].pile_up_sundries_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.pile_up_sundries_picture?this.formMess.pile_up_sundries_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('pile_up_sundries_image','pile_up_sundries_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -152,10 +158,11 @@
|
|
|
</evan-radio>
|
|
|
<evan-radio v-model="formMess.serious_ash_deposition" label="2" class="margin-right-xs">其他
|
|
|
</evan-radio>
|
|
|
- <input v-if="this.formMess.serious_ash_deposition!=2" disabled="disabled" type="text" v-model="formMess.serious_ash_deposition_describe">
|
|
|
- <input v-else type="text" v-model="formMess.serious_ash_deposition_describe">
|
|
|
+ <input v-if="this.formMess.serious_ash_deposition!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.serious_ash_deposition_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.serious_ash_deposition_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].serious_ash_deposition_image?imageList[0].serious_ash_deposition_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.serious_ash_deposition_picture?this.formMess.serious_ash_deposition_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('serious_ash_deposition_image','serious_ash_deposition_picture')"></image>
|
|
|
</view>
|
|
|
|
|
@@ -169,10 +176,11 @@
|
|
|
</evan-radio>
|
|
|
<evan-radio v-model="formMess.around_environment_humid" label="2" class="margin-right-xs">其他
|
|
|
</evan-radio>
|
|
|
- <input v-if="this.formMess.around_environment_humid!=2" disabled="disabled" type="text" v-model="formMess.around_environment_humid_describe">
|
|
|
- <input v-else type="text" v-model="formMess.around_environment_humid_describe">
|
|
|
+ <input v-if="this.formMess.around_environment_humid!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.around_environment_humid_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.around_environment_humid_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].around_environment_humid_image?imageList[0].around_environment_humid_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.around_environment_humid_picture?this.formMess.around_environment_humid_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('around_environment_humid_image','around_environment_humid_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -186,10 +194,11 @@
|
|
|
</evan-radio>
|
|
|
<evan-radio v-model="formMess.around_pile_up_sundries" label="2" class="margin-right-xs">其他
|
|
|
</evan-radio>
|
|
|
- <input v-if="this.formMess.around_pile_up_sundries!=2" disabled="disabled" type="text" v-model="formMess.around_pile_up_sundries_describe">
|
|
|
- <input v-else type="text" v-model="formMess.around_pile_up_sundries_describe">
|
|
|
+ <input v-if="this.formMess.around_pile_up_sundries!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.around_pile_up_sundries_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.around_pile_up_sundries_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].around_pile_up_sundries_image?imageList[0].around_pile_up_sundries_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.around_pile_up_sundries_picture?this.formMess.around_pile_up_sundries_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('around_pile_up_sundries_image','around_pile_up_sundries_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -204,10 +213,11 @@
|
|
|
<evan-radio v-model="formMess.no_electrician" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.no_electrician" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.no_electrician" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.no_electrician!=2" disabled="disabled" type="text" v-model="formMess.no_electrician_describe">
|
|
|
- <input v-else type="text" v-model="formMess.no_electrician_describe">
|
|
|
+ <input v-if="this.formMess.no_electrician!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.no_electrician_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.no_electrician_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].no_electrician_image?imageList[0].no_electrician_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.no_electrician_picture?this.formMess.no_electrician_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('no_electrician_image','no_electrician_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -217,10 +227,11 @@
|
|
|
<evan-radio v-model="formMess.electrician_lack" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.electrician_lack" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.electrician_lack" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.electrician_lack!=2" disabled="disabled" type="text" v-model="formMess.electrician_lack_describe">
|
|
|
- <input v-else type="text" v-model="formMess.electrician_lack_describe">
|
|
|
+ <input v-if="this.formMess.electrician_lack!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.electrician_lack_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.electrician_lack_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].electrician_lack_image?imageList[0].electrician_lack_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.electrician_lack_picture?this.formMess.electrician_lack_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('electrician_lack_image','electrician_lack_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -233,10 +244,11 @@
|
|
|
</evan-radio>
|
|
|
<evan-radio v-model="formMess.overdue_electrician_certificate" label="2" class="margin-right-xs">其他
|
|
|
</evan-radio>
|
|
|
- <input v-if="this.formMess.overdue_electrician_certificate!=2" disabled="disabled" type="text" v-model="formMess.overdue_electrician_certificate_describe">
|
|
|
- <input v-else type="text" v-model="formMess.overdue_electrician_certificate_describe">
|
|
|
+ <input v-if="this.formMess.overdue_electrician_certificate!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.overdue_electrician_certificate_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.overdue_electrician_certificate_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].overdue_electrician_certificate_image?imageList[0].overdue_electrician_certificate_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.overdue_electrician_certificate_picture?this.formMess.overdue_electrician_certificate_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('overdue_electrician_certificate_image','overdue_electrician_certificate_picture')">
|
|
|
</image>
|
|
|
</view>
|
|
@@ -266,10 +278,11 @@
|
|
|
否</evan-radio>
|
|
|
<evan-radio v-model="formMess.blanket_insufficient_configuration" label="2" class="margin-right-xs">
|
|
|
其他</evan-radio>
|
|
|
- <input v-if="this.formMess.blanket_insufficient_configuration!=2" disabled="disabled" type="text" v-model="formMess.blanket_insufficient_configuration_describe">
|
|
|
- <input v-else type="text" v-model="formMess.blanket_insufficient_configuration_describe">
|
|
|
+ <input v-if="this.formMess.blanket_insufficient_configuration!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.blanket_insufficient_configuration_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.blanket_insufficient_configuration_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].blanket_insufficient_configuration_image?imageList[0].blanket_insufficient_configuration_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.blanket_insufficient_configuration_picture?this.formMess.blanket_insufficient_configuration_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('blanket_insufficient_configuration_image','blanket_insufficient_configuration_picture')">
|
|
|
</image>
|
|
|
</view>
|
|
@@ -280,10 +293,11 @@
|
|
|
<evan-radio v-model="formMess.ground_wire" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.ground_wire" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.ground_wire" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.ground_wire!=2" disabled="disabled" type="text" v-model="formMess.ground_wire_describe">
|
|
|
- <input v-else type="text" v-model="formMess.ground_wire_describe">
|
|
|
+ <input v-if="this.formMess.ground_wire!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.ground_wire_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.ground_wire_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].ground_wire_image?imageList[0].ground_wire_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.ground_wire_picture?this.formMess.ground_wire_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('ground_wire_image','ground_wire_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -298,10 +312,11 @@
|
|
|
<evan-radio v-model="formMess.analog_screen" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
<evan-radio v-model="formMess.analog_screen" label="0" class="margin-right-xl">否</evan-radio>
|
|
|
<evan-radio v-model="formMess.analog_screen" label="2" class="margin-right-xs">其他</evan-radio>
|
|
|
- <input v-if="this.formMess.analog_screen!=2" disabled="disabled" type="text" v-model="formMess.analog_screen_describe">
|
|
|
- <input v-else type="text" v-model="formMess.analog_screen_describe">
|
|
|
+ <input v-if="this.formMess.analog_screen!=2" disabled="disabled" type="text"
|
|
|
+ v-model="formMess.analog_screen_describe">
|
|
|
+ <input v-else type="text" v-model="formMess.analog_screen_describe">
|
|
|
<image mode="aspectFit"
|
|
|
- :src="imageList[0].analog_screen_image?imageList[0].analog_screen_image:'/static/cameraIcon.png'"
|
|
|
+ :src="this.formMess.analog_screen_picture?this.formMess.analog_screen_picture:'/static/cameraIcon.png'"
|
|
|
@tap="goCamera('analog_screen_image','analog_screen_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -318,183 +333,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <!-- 现场档案修改start -->
|
|
|
- <form action="" v-else>
|
|
|
- <view style="height:30rpx"></view>
|
|
|
- <view class="form-item">
|
|
|
- <view class="title">
|
|
|
- <text class="necessary">*</text>
|
|
|
- 户号:
|
|
|
- </view>
|
|
|
- <input name="input" v-model="detailInfo.account_number" maxlength="20"></input>
|
|
|
- </view>
|
|
|
- <view class="form-item">
|
|
|
- <view class="title"><text class="necessary">*</text>流变变比:</view>
|
|
|
- <input name="input" v-model="detailInfo.rheological_change" maxlength="20"></input>
|
|
|
- </view>
|
|
|
- <view class="form-item">
|
|
|
- <view class="title" style="width:240rpx"><text class="necessary">*</text>单路电源容量:</view>
|
|
|
- <input name="input" v-model="detailInfo.power_capacity" maxlength="20"></input>
|
|
|
- </view>
|
|
|
- <view class="form-item">
|
|
|
- <view class="title"><text class="necessary">*</text>线路:</view>
|
|
|
- <!-- <input name="input" v-model="formMess.route_id"></input> -->
|
|
|
- <select name="" id="" filterable clearable v-model="detailInfo.route_id">
|
|
|
- <option value="0">请选择</option>
|
|
|
- <option :value=item.id v-for="item in routeListData" :title="item.route_name">{{ item.route_name}}
|
|
|
- </option>
|
|
|
- </select>
|
|
|
- </view>
|
|
|
- <view class="form-item">
|
|
|
- <view class="title"><text class="necessary">*</text>站点名称:</view>
|
|
|
- <select name="" id="" v-model="detailInfo.site_id" filterable clearable disabled>
|
|
|
- <option value="0">请选择</option>
|
|
|
- <option :value="item.id" v-for="item in siteListData">{{ item.site_name}}</option>
|
|
|
- </select>
|
|
|
- </view>
|
|
|
- <view class="form-item">
|
|
|
- <view class="title"><text class="necessary">*</text>监察:</view>
|
|
|
- <select name="" id="" filterable clearable v-model="detailInfo.supervision_department_id">
|
|
|
- <option value="0">请选择</option>
|
|
|
- <option :value=item.id v-for="item in supervisionListData">{{ item.supervision_name}}</option>
|
|
|
- </select>
|
|
|
- </view>
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles "></text>
|
|
|
- 四防一通
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>电缆孔洞:</view>
|
|
|
- <evan-radio v-model="detailInfo.cable_hole" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.cable_hole" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>门窗、墙壁破损:</view>
|
|
|
- <evan-radio v-model="detailInfo.damage" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.damage" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>屋顶墙壁渗漏水:</view>
|
|
|
- <evan-radio v-model="detailInfo.water_leakage" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.water_leakage" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>灭火器配置不足:</view>
|
|
|
- <evan-radio v-model="detailInfo.annihilator_insufficient_configuration" label="1"
|
|
|
- class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.annihilator_insufficient_configuration" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>灭火器超期:</view>
|
|
|
- <evan-radio v-model="detailInfo.annihilator_overdue" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.annihilator_overdue" label="0">否</evan-radio>
|
|
|
- </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"><text class="necessary">*</text>堆放杂物:</view>
|
|
|
- <evan-radio v-model="detailInfo.pile_up_sundries" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.pile_up_sundries" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>积灰严重:</view>
|
|
|
- <evan-radio v-model="detailInfo.serious_ash_deposition" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.serious_ash_deposition" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>配电房周围环境潮湿:</view>
|
|
|
- <evan-radio v-model="detailInfo.around_environment_humid" label="1" class="margin-right-xl">是
|
|
|
- </evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.around_environment_humid" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>配电房周围对方杂物:</view>
|
|
|
- <evan-radio v-model="detailInfo.around_pile_up_sundries" label="1" class="margin-right-xl">是
|
|
|
- </evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.around_pile_up_sundries" label="0">否</evan-radio>
|
|
|
- </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"><text class="necessary">*</text>无电工:</view>
|
|
|
- <evan-radio v-model="detailInfo.no_electrician" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.no_electrician" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>电工人数配置不足:</view>
|
|
|
- <evan-radio v-model="detailInfo.electrician_lack" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.electrician_lack" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>电工证超期:</view>
|
|
|
- <evan-radio v-model="detailInfo.overdue_electrician_certificate" label="1" class="margin-right-xl">是
|
|
|
- </evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.overdue_electrician_certificate" label="0">否</evan-radio>
|
|
|
- </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"><text class="necessary">*</text>电试超期:</view>
|
|
|
- <evan-radio v-model="detailInfo.electric_test_overdue" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.electric_test_overdue" label="0">否</evan-radio>
|
|
|
- </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" style="width:35%" v-model="detailInfo.old_equipment">
|
|
|
- </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"><text class="necessary">*</text>配置不足(绝缘体):</view>
|
|
|
- <evan-radio v-model="detailInfo.blanket_insufficient_configuration" label="1" class="margin-right-xl">是
|
|
|
- </evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.blanket_insufficient_configuration" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item extraDis">
|
|
|
- <view class="title"><text class="necessary">*</text>接地线与存放位置编号:</view>
|
|
|
- <evan-radio v-model="detailInfo.ground_wire" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.ground_wire" label="0">否</evan-radio>
|
|
|
- </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"><text class="necessary">*</text>模拟屏:</view>
|
|
|
- <evan-radio v-model="detailInfo.analog_screen" label="1" class="margin-right-xl">是</evan-radio>
|
|
|
- <evan-radio v-model="detailInfo.analog_screen" label="0">否</evan-radio>
|
|
|
- </view>
|
|
|
- <view class="form-item">
|
|
|
- <view class="title">备注:</view>
|
|
|
- <textarea name="" id="" v-model="detailInfo.remarks"></textarea>
|
|
|
- </view>
|
|
|
- <view class="btn-area submitBottomBtn padding-lr-sm " style="position:static">
|
|
|
- <button class="bg-blue round margin-top" @click="$noMultipleClicks(editSubmit)">提 交 </button>
|
|
|
- </view>
|
|
|
- <br>
|
|
|
- </form>
|
|
|
- <!-- 现场档案修改end -->
|
|
|
|
|
|
|
|
|
</view>
|
|
@@ -518,6 +356,8 @@
|
|
|
"route_id": 0,
|
|
|
"site_id": 0,
|
|
|
"supervision_department_id": 0,
|
|
|
+
|
|
|
+ "electric_test_overdue": "",
|
|
|
|
|
|
"cable_hole": "0",
|
|
|
cable_hole_describe: '',
|
|
@@ -527,68 +367,87 @@
|
|
|
|
|
|
"water_leakage": "0",
|
|
|
"water_leakage_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"annihilator_insufficient_configuration": "0",
|
|
|
"annihilator_insufficient_configuration_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"annihilator_overdue": "0",
|
|
|
"annihilator_overdue_describe": "",
|
|
|
|
|
|
"pile_up_sundries": "0",
|
|
|
"pile_up_sundries_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"serious_ash_deposition": "0",
|
|
|
"serious_ash_deposition_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"around_environment_humid": "0",
|
|
|
"around_environment_humid_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"around_pile_up_sundries": "0",
|
|
|
"around_pile_up_sundries_describe": "",
|
|
|
|
|
|
"no_electrician": "0",
|
|
|
"no_electrician_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"electrician_lack": "0",
|
|
|
"electrician_lack_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"overdue_electrician_certificate": "0",
|
|
|
"overdue_electrician_certificate_describe": "",
|
|
|
|
|
|
- "electric_test_overdue": "",
|
|
|
+
|
|
|
|
|
|
"old_equipment": "",
|
|
|
|
|
|
"blanket_insufficient_configuration": "0",
|
|
|
"blanket_insufficient_configuration_describe": "",
|
|
|
-
|
|
|
+
|
|
|
"ground_wire": "0",
|
|
|
"ground_wire_describe": "",
|
|
|
|
|
|
"analog_screen": "0",
|
|
|
- "analog_screen_describe": "",
|
|
|
+ "analog_screen_describe": "",
|
|
|
"remarks": "",
|
|
|
+
|
|
|
+
|
|
|
+ cable_hole_picture: '',
|
|
|
+ damage_picture: '',
|
|
|
+ water_leakage_picture: '',
|
|
|
+ annihilator_insufficient_configuration_picture: '',
|
|
|
+ annihilator_overdue_picture: '',
|
|
|
+ pile_up_sundries_picture: '',
|
|
|
+ serious_ash_deposition_picture: '',
|
|
|
+ around_environment_humid_picture: '',
|
|
|
+ around_pile_up_sundries_picture: '',
|
|
|
+ no_electrician_picture: '',
|
|
|
+ electrician_lack_picture: '',
|
|
|
+ overdue_electrician_certificate_picture: '',
|
|
|
+ blanket_insufficient_configuration_picture: '',
|
|
|
+ ground_wire_picture: '',
|
|
|
+ analog_screen_picture: '',
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
id: 0,
|
|
|
detailInfo: {},
|
|
|
-
|
|
|
+
|
|
|
//图片显示及上传图片路径
|
|
|
- imageList: [{
|
|
|
+ "imageList": [{
|
|
|
cable_hole_image: '',
|
|
|
damage_image: '',
|
|
|
water_leakage_image: '',
|
|
|
annihilator_insufficient_configuration_image: '',
|
|
|
annihilator_overdue_image: '',
|
|
|
pile_up_sundries_image: '',
|
|
|
- serious_ash_deposition_image:'',
|
|
|
- around_environment_humid_image:'',
|
|
|
- around_pile_up_sundries_image:'',
|
|
|
- no_electrician_image:'',
|
|
|
- electrician_lack_image:'',
|
|
|
- overdue_electrician_certificate_image:'',
|
|
|
- blanket_insufficient_configuration_image:'',
|
|
|
- ground_wire_image:'',
|
|
|
- analog_screen_image:''
|
|
|
+ serious_ash_deposition_image: '',
|
|
|
+ around_environment_humid_image: '',
|
|
|
+ around_pile_up_sundries_image: '',
|
|
|
+ no_electrician_image: '',
|
|
|
+ electrician_lack_image: '',
|
|
|
+ overdue_electrician_certificate_image: '',
|
|
|
+ blanket_insufficient_configuration_image: '',
|
|
|
+ ground_wire_image: '',
|
|
|
+ analog_screen_image: ''
|
|
|
},
|
|
|
{
|
|
|
cable_hole_picture: '',
|
|
@@ -597,20 +456,20 @@
|
|
|
annihilator_insufficient_configuration_picture: '',
|
|
|
annihilator_overdue_picture: '',
|
|
|
pile_up_sundries_picture: '',
|
|
|
- serious_ash_deposition_picture:'',
|
|
|
- around_environment_humid_picture:'',
|
|
|
- around_pile_up_sundries_picture:'',
|
|
|
- no_electrician_picture:'',
|
|
|
- electrician_lack_picture:'',
|
|
|
- overdue_electrician_certificate_picture:'',
|
|
|
- blanket_insufficient_configuration_picture:'',
|
|
|
- ground_wire_picture:'',
|
|
|
- analog_screen_picture:''
|
|
|
+ serious_ash_deposition_picture: '',
|
|
|
+ around_environment_humid_picture: '',
|
|
|
+ around_pile_up_sundries_picture: '',
|
|
|
+ no_electrician_picture: '',
|
|
|
+ electrician_lack_picture: '',
|
|
|
+ overdue_electrician_certificate_picture: '',
|
|
|
+ blanket_insufficient_configuration_picture: '',
|
|
|
+ ground_wire_picture: '',
|
|
|
+ analog_screen_picture: ''
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
onLoad: function(option) {
|
|
|
this.getDataList();
|
|
|
this.getTitleList();
|
|
@@ -621,17 +480,18 @@
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '现场档案修改'
|
|
|
});
|
|
|
+ this.getDetailList({
|
|
|
+ "id": option.id
|
|
|
+ })
|
|
|
} else {
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '现场档案新增'
|
|
|
});
|
|
|
}
|
|
|
- this.getDetailList({
|
|
|
- "id": option.id
|
|
|
- })
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+
|
|
|
// 相机拍照
|
|
|
goCamera(name, upimage) {
|
|
|
const that = this;
|
|
@@ -641,18 +501,22 @@
|
|
|
sourceType: ['camera'], //album 从相册选图,camera 使用相机,默认二者都有。如需直接开相机或直接选相册,请只使用一个选项
|
|
|
success: function(res) {
|
|
|
console.log(res.tempFilePaths[0])
|
|
|
- that.imageList[0][name] = res.tempFilePaths[0];
|
|
|
+ that.formMess[upimage] = res.tempFilePaths[0];
|
|
|
console.log(res.tempFilePaths[0])
|
|
|
uni.uploadFile({
|
|
|
url: 'https://wx.ewoogi.com/wx/USKYOF/USKYOF.php/Home/MonitoringReporting/setUpload',
|
|
|
- filePath: that.imageList[0][name],
|
|
|
+ filePath: that.formMess[upimage],
|
|
|
name: 'file',
|
|
|
formData: {
|
|
|
'user': 'test'
|
|
|
},
|
|
|
success: (uploadFileRes) => {
|
|
|
- that.imageList[1][upimage] = JSON.parse(uploadFileRes.data)
|
|
|
+
|
|
|
+ that.formMess[upimage] = 'https://wx.ewoogi.com' + JSON.parse(
|
|
|
+ uploadFileRes.data)
|
|
|
.img_url;
|
|
|
+
|
|
|
+ console.log(that.formMess)
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -662,12 +526,50 @@
|
|
|
|
|
|
// 修改回显请求
|
|
|
async getDetailList(ming = {}) {
|
|
|
+
|
|
|
+
|
|
|
const res = await this.$myRequest({
|
|
|
url: 'Archives/getArchivesList',
|
|
|
showLoading: true,
|
|
|
data: ming
|
|
|
})
|
|
|
- this.detailInfo = res.data.data[0];
|
|
|
+ // this.detailInfo = res.data.data[0];
|
|
|
+ this.formMess = res.data.data[0];
|
|
|
+
|
|
|
+
|
|
|
+ // 正式部署删除 start
|
|
|
+ // let tmpImg = {
|
|
|
+ // cable_hole_picture: '',
|
|
|
+ // damage_picture: '',
|
|
|
+ // water_leakage_picture: '',
|
|
|
+ // annihilator_insufficient_configuration_picture: '',
|
|
|
+ // annihilator_overdue_picture: '',
|
|
|
+ // pile_up_sundries_picture: '',
|
|
|
+ // serious_ash_deposition_picture: '',
|
|
|
+ // around_environment_humid_picture: '',
|
|
|
+ // around_pile_up_sundries_picture: '',
|
|
|
+ // no_electrician_picture: '',
|
|
|
+ // electrician_lack_picture: '',
|
|
|
+ // overdue_electrician_certificate_picture: '',
|
|
|
+ // blanket_insufficient_configuration_picture: '',
|
|
|
+ // ground_wire_picture: '',
|
|
|
+ // analog_screen_picture: ''
|
|
|
+ // }
|
|
|
+
|
|
|
+ // for (let key in this.formMess) {
|
|
|
+ // if (tmpImg.hasOwnProperty(key)) {
|
|
|
+ // this.formMess[key] = 'https://wx.ewoogi.com' + this.formMess[key]
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ console.log(111)
|
|
|
+ console.log(this.formMess.damage_picture)
|
|
|
+ console.log(typeof(this.formMess.damage_picture))
|
|
|
+
|
|
|
+ // 正式部署删除 end
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//线路名称下拉数据请求
|
|
@@ -691,7 +593,7 @@
|
|
|
|
|
|
this.supervisionListData = res.data.data
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//站点下拉请求
|
|
|
async getDataList(params = {}) {
|
|
|
const res = await this.$myRequest({
|
|
@@ -701,10 +603,11 @@
|
|
|
})
|
|
|
this.siteListData = res.data.data
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
|
|
|
//新增提交
|
|
|
async addSubmit() {
|
|
|
+ // alert(this.id)
|
|
|
//提交验证
|
|
|
if (!this.formMess.account_number.replace(/^\s*/g, '')) {
|
|
|
uni.showToast({
|
|
@@ -748,87 +651,27 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- let res = await this.addArchive({
|
|
|
- "account_number": this.formMess.account_number,
|
|
|
- "rheological_change": this.formMess.rheological_change,
|
|
|
- "power_capacity": this.formMess.power_capacity,
|
|
|
- "route_id": this.formMess.route_id,
|
|
|
- "site_id": this.formMess.site_id,
|
|
|
- "supervision_department_id": this.formMess.supervision_department_id,
|
|
|
- "electric_test_overdue": this.formMess.electric_test_overdue,
|
|
|
-
|
|
|
- "cable_hole": this.formMess.cable_hole,
|
|
|
- "cable_hole_describe": this.formMess.cable_hole_describe,
|
|
|
- "cable_hole_picture": this.imageList[1].cable_hole_picture,
|
|
|
-
|
|
|
- "damage": this.formMess.damage,
|
|
|
- "damage_describe": this.formMess.damage_describe,
|
|
|
- "damage_picture": this.imageList[1].damage_picture,
|
|
|
-
|
|
|
- "water_leakage": this.formMess.water_leakage,
|
|
|
- "water_leakage_describe": this.formMess.water_leakage_describe,
|
|
|
- "water_leakage_picture": this.imageList[1].water_leakage_picture,
|
|
|
-
|
|
|
-
|
|
|
- "annihilator_insufficient_configuration": this.formMess.annihilator_insufficient_configuration,
|
|
|
- "annihilator_insufficient_configuration_describe": this.formMess.annihilator_insufficient_configuration_describe,
|
|
|
- "annihilator_insufficient_configuration_picture": this.imageList[1].annihilator_insufficient_configuration_picture,
|
|
|
-
|
|
|
- "annihilator_overdue": this.formMess.annihilator_overdue,
|
|
|
- "annihilator_overdue_describe": this.formMess.annihilator_overdue_describe,
|
|
|
- "annihilator_overdue_picture": this.imageList[1].annihilator_overdue_picture,
|
|
|
-
|
|
|
- "pile_up_sundries": this.formMess.pile_up_sundries,
|
|
|
- "pile_up_sundries_describe": this.formMess.pile_up_sundries_describe,
|
|
|
- "pile_up_sundries_picture": this.imageList[1].pile_up_sundries_picture,
|
|
|
-
|
|
|
- "serious_ash_deposition": this.formMess.serious_ash_deposition,
|
|
|
- "serious_ash_deposition_describe": this.formMess.serious_ash_deposition_describe,
|
|
|
- "serious_ash_deposition_picture": this.imageList[1].serious_ash_deposition_picture,
|
|
|
-
|
|
|
- "around_environment_humid": this.formMess.around_environment_humid,
|
|
|
- "around_environment_humid_describe": this.formMess.around_environment_humid_describe,
|
|
|
- "around_environment_humid_picture": this.imageList[1].around_environment_humid_picture,
|
|
|
-
|
|
|
- "around_pile_up_sundries": this.formMess.around_pile_up_sundries,
|
|
|
- "around_pile_up_sundries_describe": this.formMess.around_pile_up_sundries_describe,
|
|
|
- "around_pile_up_sundries_picture": this.imageList[1].around_pile_up_sundries_picture,
|
|
|
-
|
|
|
- "no_electrician": this.formMess.no_electrician,
|
|
|
- "no_electrician_describe": this.formMess.no_electrician_describe,
|
|
|
- "no_electrician_picture": this.imageList[1].no_electrician_picture,
|
|
|
-
|
|
|
- "electrician_lack": this.formMess.electrician_lack,
|
|
|
- "electrician_lack_describe": this.formMess.electrician_lack_describe,
|
|
|
- "electrician_lack_picture": this.imageList[1].electrician_lack_picture,
|
|
|
-
|
|
|
- "overdue_electrician_certificate": this.formMess.overdue_electrician_certificate,
|
|
|
- "overdue_electrician_certificate_describe": this.formMess.overdue_electrician_certificate_describe,
|
|
|
- "overdue_electrician_certificate_picture": this.imageList[1].overdue_electrician_certificate_picture,
|
|
|
|
|
|
- "blanket_insufficient_configuration": this.formMess.blanket_insufficient_configuration,
|
|
|
- "blanket_insufficient_configuration_describe": this.formMess.blanket_insufficient_configuration_describe,
|
|
|
- "blanket_insufficient_configuration_picture": this.imageList[1].blanket_insufficient_configuration_picture,
|
|
|
+ let data = this.formMess;
|
|
|
+ let url = 'Archives/addArchives';
|
|
|
|
|
|
- "ground_wire": this.formMess.ground_wire,
|
|
|
- "ground_wire_describe": this.formMess.ground_wire_describe,
|
|
|
- "ground_wire_picture": this.imageList[1].ground_wire_picture,
|
|
|
-
|
|
|
- "analog_screen": this.formMess.analog_screen,
|
|
|
- "analog_screen_describe": this.formMess.analog_screen_describe,
|
|
|
- "analog_screen_picture": this.imageList[1].analog_screen_picture,
|
|
|
+ // if (id) {
|
|
|
+ // url = 'Archives/setArchives';
|
|
|
|
|
|
- "old_equipment": this.formMess.old_equipment,
|
|
|
- "remarks": this.formMess.remarks,
|
|
|
- })
|
|
|
+ // data.id = id;
|
|
|
+ // }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ let res = await this.addArchive(this.formMess)
|
|
|
if (!res.data.flag) {
|
|
|
uni.showToast({
|
|
|
- title: "添加失败",
|
|
|
+ title: "提交失败",
|
|
|
icon: "none"
|
|
|
});
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
- title: "添加成功",
|
|
|
+ title: "提交成功",
|
|
|
});
|
|
|
}
|
|
|
setTimeout(() => {
|
|
@@ -840,112 +683,13 @@
|
|
|
},
|
|
|
addArchive(params = {}) {
|
|
|
return this.$myRequest({
|
|
|
- url: 'Archives/addArchives',
|
|
|
+ url:'Archives/addArchives',
|
|
|
+ // url: url,
|
|
|
data: params
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //修改提交
|
|
|
- async editSubmit() {
|
|
|
- //提交验证
|
|
|
- if (!this.detailInfo.account_number.replace(/^\s*/g, '')) {
|
|
|
- uni.showToast({
|
|
|
- title: "请输入户号",
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.detailInfo.rheological_change.replace(/^\s*/g, '')) {
|
|
|
- uni.showToast({
|
|
|
- title: "请输入流变变化",
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.detailInfo.power_capacity.replace(/^\s*/g, '')) {
|
|
|
- uni.showToast({
|
|
|
- title: "请输入单路电源容量",
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.detailInfo.route_id) {
|
|
|
- uni.showToast({
|
|
|
- title: "请输入所属线路",
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.detailInfo.site_id) {
|
|
|
- uni.showToast({
|
|
|
- title: "请选择所属站点",
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.detailInfo.supervision_department_id.replace(/^\s*/g, '')) {
|
|
|
- uni.showToast({
|
|
|
- title: "请输入所属监察",
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
- let res = await this.editArchive({
|
|
|
- "id": this.id,
|
|
|
- "account_number": this.detailInfo.account_number,
|
|
|
- "rheological_change": this.detailInfo.rheological_change,
|
|
|
- "power_capacity": this.detailInfo.power_capacity,
|
|
|
- "route_id": this.detailInfo.route_id,
|
|
|
- "site_id": this.detailInfo.site_id,
|
|
|
- "supervision_department_id": this.detailInfo.supervision_department_id,
|
|
|
- "cable_hole": this.detailInfo.cable_hole,
|
|
|
- "damage": this.detailInfo.damage,
|
|
|
- "water_leakage": this.detailInfo.water_leakage,
|
|
|
- "annihilator_insufficient_configuration": this.detailInfo
|
|
|
- .annihilator_insufficient_configuration,
|
|
|
- "annihilator_overdue": this.detailInfo.annihilator_overdue,
|
|
|
- "pile_up_sundries": this.detailInfo.pile_up_sundries,
|
|
|
- "serious_ash_deposition": this.detailInfo.serious_ash_deposition,
|
|
|
- "around_environment_humid": this.detailInfo.around_environment_humid,
|
|
|
- "around_pile_up_sundries": this.detailInfo.around_pile_up_sundries,
|
|
|
- "no_electrician": this.detailInfo.no_electrician,
|
|
|
- "electrician_lack": this.detailInfo.electrician_lack,
|
|
|
- "overdue_electrician_certificate": this.detailInfo.overdue_electrician_certificate,
|
|
|
- "electric_test_overdue": this.detailInfo.electric_test_overdue,
|
|
|
- "blanket_insufficient_configuration": this.detailInfo.blanket_insufficient_configuration,
|
|
|
-
|
|
|
- "ground_wire": this.detailInfo.ground_wire,
|
|
|
- "analog_screen": this.detailInfo.analog_screen,
|
|
|
-
|
|
|
- "old_equipment": this.detailInfo.old_equipment,
|
|
|
- "remarks": this.detailInfo.remarks,
|
|
|
-
|
|
|
-
|
|
|
- })
|
|
|
-
|
|
|
- if (!res.data.flag) {
|
|
|
- uni.showToast({
|
|
|
- title: "添加失败",
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: "添加成功",
|
|
|
- });
|
|
|
- }
|
|
|
- setTimeout(() => {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/siteArchive/siteArchive',
|
|
|
|
|
|
- });
|
|
|
- }, 1000);
|
|
|
- },
|
|
|
- editArchive(params = {}) {
|
|
|
- return this.$myRequest({
|
|
|
- url: 'Archives/setArchives',
|
|
|
- data: params
|
|
|
- })
|
|
|
- },
|
|
|
}
|
|
|
}
|
|
|
</script>
|