|
@@ -14,12 +14,15 @@
|
|
|
placeholder=" "></u-input>
|
|
|
</u-form-item>
|
|
|
</view>
|
|
|
- <view class="small-title">调压箱部分</view>
|
|
|
+ <view style="flex-flow: row;display: flex; justify-content: flex-end;">
|
|
|
+ <view class="small-title">调压箱部分 </view>
|
|
|
+ <view class="small-title" style="margin-left: auto;" @click="BoxDetails()">详情<u-icon name="arrow-right"></u-icon></view>
|
|
|
+ </view>
|
|
|
<u-row gutter="12">
|
|
|
<u-col>
|
|
|
<u-form-item label="管理所" borderBottom ref="item1" labelWidth="140">
|
|
|
<u-input v-model="AdministrativeOfficeLabel" placeholder="请输入管理所名称"
|
|
|
- disabled borderBottom @click="showadministrativeOffice= true&&type!=1"></u-input>
|
|
|
+ disabled borderBottom @click="showadministrativeOffice= true "></u-input>
|
|
|
<!-- <u-select v-model="showadministrativeOffice" :list="AdministrativeOfficeList" label-name="name"
|
|
|
value-name="value" @confirm="AdministrativeOffice()" disabled> </u-select>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon> -->
|
|
@@ -27,12 +30,12 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="编号" borderBottom ref="item1" labelWidth="140">
|
|
|
- <u-input :disabled="type==1" v-model="form.number" placeholder="请输入编号" ></u-input>
|
|
|
+ <u-input v-model="form.number" placeholder="请输入编号" disabled></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="商服" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.businessService" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.businessService" >
|
|
|
<u-radio @change="businessService" v-for="(item, index) in typelist.business_service" :key="index"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -42,7 +45,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="外观" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.appearance" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.appearance" >
|
|
|
<u-radio @change="appearance" v-for="(item, index) in typelist.appearance" :key="index"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -52,7 +55,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="方砖" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.squareBrick" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.squareBrick" >
|
|
|
<u-radio @change="squareBrick" v-for="(item, index) in typelist.square_brick"
|
|
|
:key="index" :name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -62,7 +65,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="护栏" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.guardrail" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.guardrail" >
|
|
|
<u-radio @change="guardrail" v-for="(item, index) in typelist.guardrail" :key="index"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -72,7 +75,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="基础" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.foundation" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.foundation" >
|
|
|
<u-radio @change="foundation" v-for="(item, index) in typelist.foundation" :key="index"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -82,7 +85,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="压力表" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.pressureGage" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.pressureGage" >
|
|
|
<u-radio @change="pressureGage" v-for="(item, index) in typelist.pressure_gage"
|
|
|
:key="index" :name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -92,7 +95,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="阀门" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.valve" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.valve" >
|
|
|
<u-radio @change="valve" v-for="(item, index) in typelist.valve" :key="index"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -102,7 +105,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="是否泄露" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.isThereALeak" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.isThereALeak" >
|
|
|
<u-radio @change="isThereALeak" v-for="(item, index) in typelist.yes_and_no"
|
|
|
:key="index" :name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -112,7 +115,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="调压器" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
- <u-radio-group v-model="form.voltageRegulator" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.voltageRegulator" >
|
|
|
<u-radio @change="voltageRegulator" v-for="(item, index) in typelist.voltage_regulator"
|
|
|
:key="index" :name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -122,7 +125,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="过滤器" borderBottom ref="item1" placeholder="请输入编号" labelWidth="120">
|
|
|
- <u-radio-group v-model="form.filter" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.filter" >
|
|
|
<u-radio @change="filter" v-for="(item, index) in typelist.filter" :key="index"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -135,7 +138,7 @@
|
|
|
<u-col span="10">
|
|
|
<u-form-item label="入口压力" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
|
<u-input v-model="form.inletPressure" length='20px' placeholder="请输入入口压力"
|
|
|
- :disabled="type==1" type="digit" :clearable="false" @input="checkinletPressure"></u-input>
|
|
|
+ type="digit" :clearable="false" @input="checkinletPressure"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="2">
|
|
@@ -145,7 +148,7 @@
|
|
|
<u-row gutter="12">
|
|
|
<u-col span="5">
|
|
|
<u-form-item label="出口压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200">
|
|
|
- <u-input v-model="form.exportPressureMain" placeholder=" " :disabled="type==1" type="digit" :clearable="false" @input="checkexportPressureMain"></u-input>
|
|
|
+ <u-input v-model="form.exportPressureMain" placeholder=" " type="digit" :clearable="false" @input="checkexportPressureMain"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="2">
|
|
@@ -154,7 +157,7 @@
|
|
|
<u-col span="3">
|
|
|
<u-form-item label="副路" borderBottom ref="item1" placeholder=" " labelWidth="80">
|
|
|
<u-input v-model="form.exportPressureAccessory" length='20px' trim="false" aceholder=""
|
|
|
- :disabled="type==1" type="digit" :clearable="false" @input="checkexportPressureAccessory"></u-input>
|
|
|
+ type="digit" :clearable="false" @input="checkexportPressureAccessory"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="1">
|
|
@@ -165,7 +168,7 @@
|
|
|
<u-col span="5">
|
|
|
<u-form-item label="关闭压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200">
|
|
|
<u-input v-model="form.closingPressureMain" placeholder=" " trim="false"
|
|
|
- :disabled="type==1" type="digit" :clearable="false" @input="checkclosingPressureMain"></u-input>
|
|
|
+ type="digit" :clearable="false" @input="checkclosingPressureMain"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="2">
|
|
@@ -174,7 +177,7 @@
|
|
|
<u-col span="3">
|
|
|
<u-form-item label="副路" borderBottom ref="item1" placeholder=" " labelWidth="80">
|
|
|
<u-input v-model="form.closingPressureAccessory" length='20px' trim="false" placeholder=" "
|
|
|
- :disabled="type==1" type="digit" :clearable="false" @input="checkclosingPressureAccessory"></u-input>
|
|
|
+ type="digit" :clearable="false" @input="checkclosingPressureAccessory"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="1">
|
|
@@ -184,7 +187,7 @@
|
|
|
<u-row>
|
|
|
<u-col>
|
|
|
<u-form-item label="伴热带" labelWidth="140" borderBottom ref="item1">
|
|
|
- <u-radio-group v-model="form.xtv" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.xtv" >
|
|
|
<u-radio @change="xtv"
|
|
|
v-for="(item, index) in typelist.xtv" :key="index"
|
|
|
:name="item.dictValue">
|
|
@@ -195,7 +198,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="有无温控器" borderBottom ref="item1" placeholder="" labelWidth="180">
|
|
|
- <u-radio-group v-model="form.thermostat" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.thermostat" >
|
|
|
<u-radio @change="thermostat"
|
|
|
v-for="(item, index) in typelist.yes_or_no" :key="index"
|
|
|
:name="item.dictValue">
|
|
@@ -206,7 +209,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="有无防爆开关" borderBottom ref="item1" placeholder="" labelWidth="180">
|
|
|
- <u-radio-group v-model="form.explosionProofSwitch" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.explosionProofSwitch" >
|
|
|
<u-radio @change="explosionProofSwitch"
|
|
|
v-for="(item, index) in typelist.yes_or_no" :key="index"
|
|
|
:name="item.dictValue">
|
|
@@ -220,7 +223,7 @@
|
|
|
<u-row>
|
|
|
<u-col>
|
|
|
<u-form-item label="切断器测试" borderBottom ref="item1" placeholder="" labelWidth="200">
|
|
|
- <u-radio-group v-model="form.cutterTested" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.cutterTested" >
|
|
|
<u-radio @change="cutterTested"
|
|
|
v-for="(item, index) in typelist.cutoff_test_certification" :key="index"
|
|
|
:name="item.dictValue">
|
|
@@ -231,7 +234,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="切断器(放散阀)测试情况" borderBottom ref="item1" placeholder="" labelWidth="320" v-if="form.cutterTested==1">
|
|
|
- <u-radio-group v-model="form.disconnectorTestStatus" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.disconnectorTestStatus" >
|
|
|
<u-radio @change="disconnectorTestStatus"
|
|
|
v-for="(item, index) in typelist.disconnector_test_status" :key="index"
|
|
|
:name="item.dictValue">
|
|
@@ -244,7 +247,7 @@
|
|
|
<u-row gutter="12">
|
|
|
<u-col span="5">
|
|
|
<u-form-item label="切断压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200" v-if="form.cutterTested==1">
|
|
|
- <u-input v-model="form.cutOffPressureMain" placeholder=" " :disabled="type==1" type="digit" :clearable="false" @input="checkcutOffPressureMain"></u-input>
|
|
|
+ <u-input v-model="form.cutOffPressureMain" placeholder=" " type="digit" :clearable="false" @input="checkcutOffPressureMain"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="2" v-if="form.cutterTested==1">
|
|
@@ -253,7 +256,7 @@
|
|
|
<u-col span="3">
|
|
|
<u-form-item label="副路" borderBottom ref="item1" placeholder="" labelWidth="80" v-if="form.cutterTested==1">
|
|
|
<u-input v-model="form.cutOffPressureAccessory" length='20px' placeholder="请输入副路"
|
|
|
- :disabled="type==1" type="digit" :clearable="false" @input="checkcutOffPressureAccessory"></u-input>
|
|
|
+ type="digit" :clearable="false" @input="checkcutOffPressureAccessory"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="1" v-if="form.cutterTested==1">
|
|
@@ -264,7 +267,7 @@
|
|
|
<u-col span="10">
|
|
|
<u-form-item label="放散压力" borderBottom ref="item1" placeholder="请输入放散压力" labelWidth="140" v-if="form.cutterTested==1">
|
|
|
<u-input v-model="form.releasePressure" length='20px' placeholder="请输入放散压力"
|
|
|
- :disabled="type==1" type="digit" :clearable="false" @input="checkreleasePressure"></u-input>
|
|
|
+ type="digit" :clearable="false" @input="checkreleasePressure"></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="2" v-if="form.cutterTested==1">
|
|
@@ -275,7 +278,7 @@
|
|
|
<u-row>
|
|
|
<u-col>
|
|
|
<u-form-item label="是否交替" borderBottom ref="item1" placeholder="请输入编号" labelWidth="200">
|
|
|
- <u-radio-group v-model="form.manOfAccessoryAlternating" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.manOfAccessoryAlternating" >
|
|
|
<u-radio @change="manOfAccessoryAlternating" v-for="(item, index) in typelist.secondary_roads" :key="index"
|
|
|
:name="item.dictValue">
|
|
|
{{item.dictLabel}}
|
|
@@ -290,7 +293,7 @@
|
|
|
<u-form-item label="操作结果主副路已交替完毕,现" borderBottom ref="item1" placeholder="请输入编号"
|
|
|
labelWidth="420">
|
|
|
<u-input v-model="form.mainRoad" length='20px' placeholder="请输入"
|
|
|
- :disabled="type==1"></u-input>
|
|
|
+ ></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col span="12">
|
|
@@ -301,7 +304,7 @@
|
|
|
<u-row>
|
|
|
<u-col>
|
|
|
<u-form-item label="调压设施特例" borderBottom ref="item1" placeholder="请输入编号" labelWidth="200">
|
|
|
- <u-radio-group v-model="form.specialCaseOfPressureRegulatingFacilities" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.specialCaseOfPressureRegulatingFacilities" >
|
|
|
<u-radio @change="specialCaseOfPressureRegulatingFacilities"
|
|
|
v-for="(item, index) in typelist.special_case_of_pressure_regulating_facilities"
|
|
|
:key="index" :name="item.dictValue">
|
|
@@ -312,7 +315,7 @@
|
|
|
</u-col>
|
|
|
<u-col>
|
|
|
<u-form-item label="超期巡检天数" borderBottom ref="item1" placeholder="请输入编号" labelWidth="200">
|
|
|
- <u-radio-group v-model="form.overdueInspectionDays" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.overdueInspectionDays" >
|
|
|
<u-radio @change="overdueInspectionDays"
|
|
|
v-for="(item, index) in typelist.overdue_inspection_days" :key="index"
|
|
|
:name="item.dictValue">
|
|
@@ -323,7 +326,7 @@
|
|
|
</u-col>
|
|
|
<!-- <u-col>
|
|
|
<u-form-item label="超期巡检原因" borderBottom ref="item1" placeholder="请输入编号" labelWidth="200">
|
|
|
- <u-radio-group v-model="form.reasonForOverdueInspection" :disabled="type==1">
|
|
|
+ <u-radio-group v-model="form.reasonForOverdueInspection" >
|
|
|
<u-radio @change="reasonForOverdueInspection"
|
|
|
v-for="(item, index) in typelist.reason_for_overdue_inspection" :key="index"
|
|
|
:name="item.dictValue">
|
|
@@ -335,7 +338,7 @@
|
|
|
<u-col>
|
|
|
<u-form-item label="超期巡检原因" borderBottom ref="item1" labelWidth="200" v-if="form.overdueInspectionDays!=undefined&&form.overdueInspectionDays!=3">
|
|
|
<u-input v-model="form.reasonForOverdueInspection" placeholder="请输入超期巡检原因"
|
|
|
- :disabled="type==1"></u-input>
|
|
|
+ ></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
@@ -343,7 +346,7 @@
|
|
|
<u-row>
|
|
|
<u-col>
|
|
|
<u-form-item label="未测试" borderBottom ref="item1" placeholder="请输入编号" labelWidth="120">
|
|
|
- <u-switch v-model="form.valveWellTesting" :disabled="type==1"></u-switch>
|
|
|
+ <u-switch v-model="form.valveWellTesting" ></u-switch>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col>
|
|
@@ -363,7 +366,7 @@
|
|
|
<u-col>
|
|
|
<u-form-item label=" " labelWidth="0" borderBottom ref="item1">
|
|
|
<u-input v-model="form.remarks" type="textarea" borderBottom placeholder="请填写备注信息内容"
|
|
|
- :disabled="type==1"></u-input>
|
|
|
+ ></u-input>
|
|
|
</u-form-item>
|
|
|
</u-col>
|
|
|
<u-col>
|
|
@@ -372,7 +375,7 @@
|
|
|
<view class="" style="display: flex; flex-wrap: wrap; margin: 0 55rpx;">
|
|
|
<image src="https://cczdsz.cn/app/images/chooseimg.png" mode=""
|
|
|
style="width: 190rpx; height: 190rpx; margin: 0 12rpx; " @click="choose()"
|
|
|
- v-if="type!=1"></image>
|
|
|
+ ></image>
|
|
|
<view v-for="(item,index) in imgymxs" :key="index" style="position: relative;">
|
|
|
<view v-if="item.type == 'image'">
|
|
|
<image :src="item.url" mode=""
|
|
@@ -384,9 +387,9 @@
|
|
|
<video :src="item"
|
|
|
style="width: 190rpx; height: 190rpx; margin: 0 20rpx;"></video>
|
|
|
</view>
|
|
|
- <view @click="remove(index)" v-if="type!=1"
|
|
|
+ <view @click="remove(index)"
|
|
|
style="position: absolute; top: 0; right: 14rpx; border-radius: 50%; background-color: #FF0000;">
|
|
|
- <u-icon name="close" color="#FFFFFF" size="35" v-if="type!=1"></u-icon>
|
|
|
+ <u-icon name="close" color="#FFFFFF" size="35" ></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -395,10 +398,112 @@
|
|
|
</u-row>
|
|
|
</u-form>
|
|
|
|
|
|
- <u-button class="from-but" style="margin: 40rpx 0;" @click="save()" v-if="type!=1"
|
|
|
+ <u-button class="from-but" style="margin: 40rpx 0;" @click="save() " v-if="type!=1"
|
|
|
type='primary'>确认上传</u-button>
|
|
|
+ <u-button class="from-but" style="margin: 40rpx 0;" @click="update()"
|
|
|
+ type='primary' v-else>确认修改</u-button>
|
|
|
</view>
|
|
|
</u-form>
|
|
|
+ <view>
|
|
|
+ <u-popup v-model="showBoxDetails" height= "400px" border-radius="14" mode=bottom closeable=true close-icon-color="#000000">
|
|
|
+ <image src="https://cczdsz.cn/app/images/background.png" class="background"></image>
|
|
|
+ <view>
|
|
|
+ <u-form :model="boxform" ref="boxform">
|
|
|
+ <view style="text-align:center; font-size: 40rpx;">调压箱详情</view>
|
|
|
+ <view class="project-content" style="margin-top: 20px;">
|
|
|
+ <u-form-item label="管理所" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="AdministrativeOfficeLabel" disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="编号" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="boxform.number" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="名称" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="boxform.name" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="性质" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="boxform.nature" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="类型" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="boxform.type" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="路数" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="boxform.numberOfRoutes" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="性质" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="boxform.nature" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="总户数" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.totalNumberOfHousehold" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="调压箱位置" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.positionOfPressureRegulatingBox" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="控制范围" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.controlRange" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="接收时间" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.receivingTime" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="阀井位置" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.valveWellPosition" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="阀井钥匙形状" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.valveWellKeyShape" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="厂家" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.manufacturer" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="流量" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.flow" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="进口管径" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.importPipeDiameter" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="出口管径" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.outletPipeDiameter" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="旁通管径" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.bypassPipeDiameter" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="调压器" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.voltageRegulator" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="设施规格型号" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.facilitySpecificationsAndModels" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="入口压力" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.inletPressure" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="出口压力" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.outletPressure" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="切断压力" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.cutOffPressure" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="放散压力" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.releasePressure" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="出厂编号" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.factoryNumber" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="出厂日期" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.factoryDate" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="主电源位置" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="pressureRegulatingBoxDetailsBo.mainPowerSupplyPosition" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="备注" borderBottom ref="item1" placeholder=" " labelWidth="200" >
|
|
|
+ <u-input v-model="inspectionFrequency" placeholder=" " disabled></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label=" " labelWidth="0" borderBottom ref="item1">
|
|
|
+ <u-input v-model="boxform.remark" type="textarea" borderBottom placeholder="请填写备注信息内容"
|
|
|
+ ></u-input>
|
|
|
+ </u-form-item>
|
|
|
+ </view>
|
|
|
+ </u-form>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -407,6 +512,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+
|
|
|
action: this.$HTTP.webUrl + `/obs`,
|
|
|
headers: {
|
|
|
MAuthorization: "wxBearer " + uni.getStorageSync('token')
|
|
@@ -646,7 +752,11 @@
|
|
|
userId:null,createBy:null,
|
|
|
administrativeOffice:null,
|
|
|
code:null,
|
|
|
- name:null
|
|
|
+ name:null,
|
|
|
+ showBoxDetails:false,
|
|
|
+ managementOfficeId:null,
|
|
|
+ boxform:{},
|
|
|
+ pressureRegulatingBoxDetailsBo:{}
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -686,6 +796,7 @@
|
|
|
var Min = time1.getMinutes(); //分
|
|
|
this.type = e.type
|
|
|
this.id = e.id
|
|
|
+ this.managementOfficeId=e.managementOfficeId
|
|
|
this.time = year + "/" + month + "/" + date + "-" + hours + ":" + Min
|
|
|
this.getdictsysinfo()
|
|
|
this.getUserName()
|
|
@@ -702,6 +813,15 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ BoxDetails()
|
|
|
+ {
|
|
|
+ service.getpressureRegulatingBox(this.managementOfficeId).then(res=>{
|
|
|
+ this.boxform=res
|
|
|
+ this.pressureRegulatingBoxDetailsBo = res.pressureRegulatingBoxDetailsVo[0];
|
|
|
+ this.showBoxDetails=true
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
checkinletPressure(e) {
|
|
|
console.log(e)
|
|
|
//正则表达试
|
|
@@ -798,7 +918,7 @@
|
|
|
}).then(res => {
|
|
|
_this.typelist = res
|
|
|
if (this.type == 1) {
|
|
|
- service.getregulatorBox(this.id).then(res => {
|
|
|
+ service.getregulatorBox2(this.id).then(res => {
|
|
|
this.communityName = res.name
|
|
|
this.time = res.createTime
|
|
|
if (null != res.photoList) {
|
|
@@ -807,6 +927,7 @@
|
|
|
url.url = item
|
|
|
url.type = 'image'
|
|
|
this.imgymxs.push(url)
|
|
|
+ this.imgArr.push(item)
|
|
|
})
|
|
|
}
|
|
|
let list = []
|
|
@@ -831,6 +952,7 @@
|
|
|
}
|
|
|
})
|
|
|
this.form = res
|
|
|
+ this.managementOfficeId=this.form.parentId
|
|
|
})
|
|
|
console.log(res)
|
|
|
}
|
|
@@ -940,6 +1062,67 @@
|
|
|
this.valveWellConditioLabel = e[0].label
|
|
|
console.log(this.$refs.form.valveWellCondition)
|
|
|
},
|
|
|
+ update()
|
|
|
+ {
|
|
|
+ let _this = this
|
|
|
+ if(this.imgArr.length==0)
|
|
|
+ {
|
|
|
+ this.$UTILS.showPrompt('请上传照片或视频!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.form.pressureStatus = null
|
|
|
+ this.form.photoList = this.imgArr
|
|
|
+ this.form.unitId = this.unit
|
|
|
+ this.form.areaId = this.id
|
|
|
+ this.form.userId=this.userId
|
|
|
+ this.form.createBy=this.userId
|
|
|
+ this.form.name=this.name
|
|
|
+ // this.form.administrativeOffice=this.administrativeOffice
|
|
|
+ // this.form.code=this.code
|
|
|
+ // this.form.name=this.name
|
|
|
+ // this.form.number=this.code
|
|
|
+ service.updateregulatorBox(this.form).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ _this.$UTILS.showPrompt('修改成功!')
|
|
|
+ // setTimeout(() => {
|
|
|
+ // console.log('跳')
|
|
|
+ // uni.switchTab({
|
|
|
+ // url: '/pages/index/index'
|
|
|
+ // })
|
|
|
+ // }, 2000)
|
|
|
+ // this.form={businessService:0,
|
|
|
+ // administrativeOffice:0,
|
|
|
+
|
|
|
+ // businessService:0,
|
|
|
+ // isNotXtv:0,
|
|
|
+ // appearance:0,
|
|
|
+ // squareBrick:0,
|
|
|
+ // foundation:0,
|
|
|
+ // pressureGage:0,
|
|
|
+ // valve:0,
|
|
|
+ // isThereALeak:0,
|
|
|
+ // voltageRegulator:0,
|
|
|
+ // xtv:0,
|
|
|
+ // thermostat:0,
|
|
|
+ // explosionProofSwitch:0,
|
|
|
+ // cutterTested:0,
|
|
|
+ // manOfAccessoryAlternating:0,
|
|
|
+ // filter:0,
|
|
|
+ // specialCaseOfPressureRegulatingFacilities:0,
|
|
|
+ // overdueInspectionDays:3,
|
|
|
+ // valveWellTesting:true,
|
|
|
+ // guardrail:0}
|
|
|
+ // this.AdministrativeOfficeLabel=this.AdministrativeOfficeList.filter(item=>item.value==this.administrativeOffice)[0].name
|
|
|
+ // this.valveWellConditioLabel=''
|
|
|
+ // this.xtvLabel=''
|
|
|
+ // this.valveWellConditioLabel=''
|
|
|
+ // //this.AdministrativeOfficeLabel=''
|
|
|
+ // this.form.administrativeOffice=this.administrativeOffice
|
|
|
+ // this.form.number=this.code
|
|
|
+ // this.imgArr=[]
|
|
|
+ // this.imgymxs=[]
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
save() {
|
|
|
let _this = this
|
|
@@ -953,6 +1136,7 @@
|
|
|
this.form.areaId = this.id
|
|
|
this.form.userId=this.userId
|
|
|
this.form.createBy=this.userId
|
|
|
+ this.form.parentId=this.managementOfficeId
|
|
|
this.form.name=this.name
|
|
|
// this.form.administrativeOffice=this.administrativeOffice
|
|
|
// this.form.code=this.code
|
|
@@ -995,6 +1179,7 @@
|
|
|
this.valveWellConditioLabel=''
|
|
|
//this.AdministrativeOfficeLabel=''
|
|
|
this.form.administrativeOffice=this.administrativeOffice
|
|
|
+ this.form.parentId=this.managementOfficeId
|
|
|
this.form.number=this.code
|
|
|
this.imgArr=[]
|
|
|
this.imgymxs=[]
|