|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<view class="appWrapper">
|
|
|
- <!-- 现场档案start -->
|
|
|
<form action="">
|
|
|
<view style="height:30rpx"></view>
|
|
|
<view class="form-item">
|
|
@@ -8,11 +7,7 @@
|
|
|
<text class="necessary">*</text>
|
|
|
户号:
|
|
|
</view>
|
|
|
-
|
|
|
<input name="input" v-model="formMess.account_number" maxlength="20" :disabled="isdisabledFn"></input>
|
|
|
- <!-- <input v-if="this.id" name="input" v-model="formMess.account_number" maxlength="20" disabled></input>
|
|
|
- <input v-else name="input" v-model="formMess.account_number" maxlength="20"></input> -->
|
|
|
-
|
|
|
</view>
|
|
|
<view class="form-item">
|
|
|
<view class="title"><text class="necessary">*</text>流变变比:</view>
|
|
@@ -44,7 +39,6 @@
|
|
|
<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 margin-right-xs"></text>
|
|
|
电试
|
|
@@ -53,7 +47,6 @@
|
|
|
<view class="title"><text class="necessary">*</text>电试报告时间:</view>
|
|
|
<input name="input" v-model="formMess.electric_test_overdue" maxlength="20"></input>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="info-tit margin-left-xs">
|
|
|
<text class="cuIcon-titles "></text>
|
|
|
四防一通
|
|
@@ -168,7 +161,6 @@
|
|
|
: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>
|
|
|
-
|
|
|
</view>
|
|
|
<view class="form-item extraDis radioSec">
|
|
|
<view class="title"><text class="necessary">*</text>配电房周围环境潮湿:</view>
|
|
@@ -187,7 +179,6 @@
|
|
|
@tap="goCamera('around_environment_humid_image','around_environment_humid_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="form-item extraDis radioSec">
|
|
|
<view class="title"><text class="necessary">*</text>配电房周围对方杂物:</view>
|
|
|
<view class="radioCameraflex">
|
|
@@ -205,7 +196,6 @@
|
|
|
@tap="goCamera('around_pile_up_sundries_image','around_pile_up_sundries_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="info-tit margin-left-xs">
|
|
|
<text class="cuIcon-titles margin-right-xs"></text>
|
|
|
电工
|
|
@@ -256,8 +246,6 @@
|
|
|
</image>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- 设备 -->
|
|
|
<view class="info-tit margin-left-xs">
|
|
|
<text class="cuIcon-titles margin-right-xs"></text>
|
|
|
设备
|
|
@@ -266,8 +254,6 @@
|
|
|
<view class="title">设备老旧(标明出厂或投运日期):</view>
|
|
|
<input type="text" style="width:35%" v-model="formMess.old_equipment">
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- 安全工器具 -->
|
|
|
<view class="info-tit margin-left-xs">
|
|
|
<text class="cuIcon-titles margin-right-xs"></text>
|
|
|
安全工器具
|
|
@@ -304,7 +290,6 @@
|
|
|
@tap="goCamera('ground_wire_image','ground_wire_picture')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- 安全工器具 -->
|
|
|
<view class="info-tit margin-left-xs">
|
|
|
<text class="cuIcon-titles margin-right-xs"></text>
|
|
|
模拟屏
|
|
@@ -332,8 +317,6 @@
|
|
|
</view>
|
|
|
<br>
|
|
|
</form>
|
|
|
- <!-- 现场档案end -->
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -435,9 +418,7 @@
|
|
|
return this.isdisabled = true;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
-
|
|
|
onLoad: function(option) {
|
|
|
this.getDataList();
|
|
|
this.getTitleList();
|
|
@@ -462,7 +443,8 @@
|
|
|
// 正则表达式匹配年月日
|
|
|
isDate(d) {
|
|
|
return (
|
|
|
- /^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29))$/)
|
|
|
+ /^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29))$/
|
|
|
+ )
|
|
|
.test(d);
|
|
|
},
|
|
|
// 相机拍照
|
|
@@ -484,7 +466,6 @@
|
|
|
'user': 'test'
|
|
|
},
|
|
|
success: (uploadFileRes) => {
|
|
|
-
|
|
|
that.formMess[upimage] = 'https://wx.ewoogi.com' + JSON.parse(
|
|
|
uploadFileRes.data)
|
|
|
.img_url;
|
|
@@ -535,7 +516,7 @@
|
|
|
this.siteListData = res.data.data
|
|
|
},
|
|
|
|
|
|
- //新增修改提交
|
|
|
+ //修改提交
|
|
|
async addSubmit() {
|
|
|
//提交验证
|
|
|
if (!this.formMess.account_number.replace(/^\s*/g, '')) {
|
|
@@ -595,7 +576,6 @@
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
let data = this.formMess;
|
|
|
// let url = 'Archives/addArchives';
|
|
|
|