|
@@ -32,7 +32,12 @@
|
|
</u-col>
|
|
</u-col>
|
|
<u-col>
|
|
<u-col>
|
|
<u-form-item label="商服" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
<u-form-item label="商服" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
- <u-switch v-model="form.businessService" :disabled="type==1"></u-switch>
|
|
|
|
|
|
+ <u-radio-group v-model="form.businessService" :disabled="type==1">
|
|
|
|
+ <u-radio @change="businessService" v-for="(item, index) in typelist.business_service" :key="index"
|
|
|
|
+ :name="item.dictValue">
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col>
|
|
<u-col>
|
|
@@ -97,7 +102,12 @@
|
|
</u-col>
|
|
</u-col>
|
|
<u-col>
|
|
<u-col>
|
|
<u-form-item label="是否泄露" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
<u-form-item label="是否泄露" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
- <u-switch v-model="form.isThereALeak" :disabled="type==1"></u-switch>
|
|
|
|
|
|
+ <u-radio-group v-model="form.isThereALeak" :disabled="type==1">
|
|
|
|
+ <u-radio @change="isThereALeak" v-for="(item, index) in typelist.yes_and_no"
|
|
|
|
+ :key="index" :name="item.dictValue">
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col>
|
|
<u-col>
|
|
@@ -110,12 +120,22 @@
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</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 @change="filter" v-for="(item, index) in typelist.filter" :key="index"
|
|
|
|
+ :name="item.dictValue">
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
|
|
+ </u-form-item>
|
|
|
|
+ </u-col>
|
|
</u-row>
|
|
</u-row>
|
|
<u-row class="un-row" gutter="12" style="text-align:left;">
|
|
<u-row class="un-row" gutter="12" style="text-align:left;">
|
|
<u-col span="10">
|
|
<u-col span="10">
|
|
<u-form-item label="入口压力" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
<u-form-item label="入口压力" borderBottom ref="item1" placeholder="请输入编号" labelWidth="140">
|
|
<u-input v-model="form.inletPressure" length='20px' placeholder="请输入入口压力"
|
|
<u-input v-model="form.inletPressure" length='20px' placeholder="请输入入口压力"
|
|
- :disabled="type==1"></u-input>
|
|
|
|
|
|
+ :disabled="type==1" type="digit" :clearable="false" @input="checkinletPressure"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col span="2">
|
|
<u-col span="2">
|
|
@@ -125,7 +145,7 @@
|
|
<u-row gutter="12">
|
|
<u-row gutter="12">
|
|
<u-col span="5">
|
|
<u-col span="5">
|
|
<u-form-item label="出口压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200">
|
|
<u-form-item label="出口压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200">
|
|
- <u-input v-model="form.exportPressureMain" placeholder=" " :disabled="type==1"></u-input>
|
|
|
|
|
|
+ <u-input v-model="form.exportPressureMain" placeholder=" " :disabled="type==1" type="digit" :clearable="false" @input="checkexportPressureMain"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col span="2">
|
|
<u-col span="2">
|
|
@@ -134,7 +154,7 @@
|
|
<u-col span="3">
|
|
<u-col span="3">
|
|
<u-form-item label="副路" borderBottom ref="item1" placeholder=" " labelWidth="80">
|
|
<u-form-item label="副路" borderBottom ref="item1" placeholder=" " labelWidth="80">
|
|
<u-input v-model="form.exportPressureAccessory" length='20px' trim="false" aceholder=""
|
|
<u-input v-model="form.exportPressureAccessory" length='20px' trim="false" aceholder=""
|
|
- :disabled="type==1"></u-input>
|
|
|
|
|
|
+ :disabled="type==1" type="digit" :clearable="false" @input="checkexportPressureAccessory"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col span="1">
|
|
<u-col span="1">
|
|
@@ -145,7 +165,7 @@
|
|
<u-col span="5">
|
|
<u-col span="5">
|
|
<u-form-item label="关闭压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200">
|
|
<u-form-item label="关闭压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200">
|
|
<u-input v-model="form.closingPressureMain" placeholder=" " trim="false"
|
|
<u-input v-model="form.closingPressureMain" placeholder=" " trim="false"
|
|
- :disabled="type==1"></u-input>
|
|
|
|
|
|
+ :disabled="type==1" type="digit" :clearable="false" @input="checkclosingPressureMain"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col span="2">
|
|
<u-col span="2">
|
|
@@ -154,7 +174,7 @@
|
|
<u-col span="3">
|
|
<u-col span="3">
|
|
<u-form-item label="副路" borderBottom ref="item1" placeholder=" " labelWidth="80">
|
|
<u-form-item label="副路" borderBottom ref="item1" placeholder=" " labelWidth="80">
|
|
<u-input v-model="form.closingPressureAccessory" length='20px' trim="false" placeholder=" "
|
|
<u-input v-model="form.closingPressureAccessory" length='20px' trim="false" placeholder=" "
|
|
- :disabled="type==1"></u-input>
|
|
|
|
|
|
+ :disabled="type==1" type="digit" :clearable="false" @input="checkclosingPressureAccessory"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col span="1">
|
|
<u-col span="1">
|
|
@@ -163,34 +183,54 @@
|
|
</u-row>
|
|
</u-row>
|
|
<u-row>
|
|
<u-row>
|
|
<u-col>
|
|
<u-col>
|
|
- <u-form-item label="伴热带" labelWidth="140" borderBottom ref="item1">
|
|
|
|
- <u-input v-model="xtvLabel" disabled @click="showxtv= true&&type!=1" borderBottom
|
|
|
|
- placeholder="请选择伴热带"></u-input>
|
|
|
|
- <u-select v-model="showxtv" :list="typelist.xtv" @confirm="xtv()" :show="showxtv"
|
|
|
|
- label-name="dictLabel" value-name="dictValue"> </u-select>
|
|
|
|
- <u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
|
|
|
+ <u-form-item label="伴热带" labelWidth="140" borderBottom ref="item1">
|
|
|
|
+ <u-radio-group v-model="form.xtv" :disabled="type==1">
|
|
|
|
+ <u-radio @change="xtv"
|
|
|
|
+ v-for="(item, index) in typelist.xtv" :key="index"
|
|
|
|
+ :name="item.dictValue">
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col>
|
|
<u-col>
|
|
<u-form-item label="有无温控器" borderBottom ref="item1" placeholder="" labelWidth="180">
|
|
<u-form-item label="有无温控器" borderBottom ref="item1" placeholder="" labelWidth="180">
|
|
- <u-switch v-model="form.thermostat" :disabled="type==1"></u-switch>
|
|
|
|
|
|
+ <u-radio-group v-model="form.thermostat" :disabled="type==1">
|
|
|
|
+ <u-radio @change="thermostat"
|
|
|
|
+ v-for="(item, index) in typelist.yes_or_no" :key="index"
|
|
|
|
+ :name="item.dictValue">
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col>
|
|
<u-col>
|
|
<u-form-item label="有无防爆开关" borderBottom ref="item1" placeholder="" labelWidth="180">
|
|
<u-form-item label="有无防爆开关" borderBottom ref="item1" placeholder="" labelWidth="180">
|
|
- <u-switch v-model="form.explosionProofSwitch" :disabled="type==1"></u-switch>
|
|
|
|
|
|
+ <u-radio-group v-model="form.explosionProofSwitch" :disabled="type==1">
|
|
|
|
+ <u-radio @change="explosionProofSwitch"
|
|
|
|
+ v-for="(item, index) in typelist.yes_or_no" :key="index"
|
|
|
|
+ :name="item.dictValue">
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
</u-row>
|
|
</u-row>
|
|
<view class="small-title">切断器测证部分</view>
|
|
<view class="small-title">切断器测证部分</view>
|
|
<u-row>
|
|
<u-row>
|
|
<u-col>
|
|
<u-col>
|
|
- <u-form-item label="未测试" borderBottom ref="item1" placeholder="" labelWidth="120">
|
|
|
|
- <u-switch v-model="form.cutterTested" :disabled="type==1"></u-switch>
|
|
|
|
|
|
+ <u-form-item label="切断器测试" borderBottom ref="item1" placeholder="" labelWidth="200">
|
|
|
|
+ <u-radio-group v-model="form.cutterTested" :disabled="type==1">
|
|
|
|
+ <u-radio @change="cutterTested"
|
|
|
|
+ v-for="(item, index) in typelist.cutoff_test_certification" :key="index"
|
|
|
|
+ :name="item.dictValue">
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col>
|
|
<u-col>
|
|
- <u-form-item label="切断器(放散阀)测试情况" borderBottom ref="item1" placeholder="" labelWidth="320">
|
|
|
|
|
|
+ <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" :disabled="type==1">
|
|
<u-radio @change="disconnectorTestStatus"
|
|
<u-radio @change="disconnectorTestStatus"
|
|
v-for="(item, index) in typelist.disconnector_test_status" :key="index"
|
|
v-for="(item, index) in typelist.disconnector_test_status" :key="index"
|
|
@@ -203,53 +243,49 @@
|
|
</u-row>
|
|
</u-row>
|
|
<u-row gutter="12">
|
|
<u-row gutter="12">
|
|
<u-col span="5">
|
|
<u-col span="5">
|
|
- <u-form-item label="切断压力 主路" borderBottom ref="item1" placeholder=" " labelWidth="200">
|
|
|
|
- <u-input v-model="form.cutOffPressureMain" placeholder=" " :disabled="type==1"></u-input>
|
|
|
|
|
|
+ <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-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
- <u-col span="2">
|
|
|
|
- <viwe class="danwei">KPa</viwe>
|
|
|
|
|
|
+ <u-col span="2" v-if="form.cutterTested==1">
|
|
|
|
+ <viwe class="danwei" >KPa</viwe>
|
|
</u-col>
|
|
</u-col>
|
|
<u-col span="3">
|
|
<u-col span="3">
|
|
- <u-form-item label="副路" borderBottom ref="item1" placeholder="" labelWidth="80">
|
|
|
|
|
|
+ <u-form-item label="副路" borderBottom ref="item1" placeholder="" labelWidth="80" v-if="form.cutterTested==1">
|
|
<u-input v-model="form.cutOffPressureAccessory" length='20px' placeholder="请输入副路"
|
|
<u-input v-model="form.cutOffPressureAccessory" length='20px' placeholder="请输入副路"
|
|
- :disabled="type==1"></u-input>
|
|
|
|
|
|
+ :disabled="type==1" type="digit" :clearable="false" @input="checkcutOffPressureAccessory"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
- <u-col span="1">
|
|
|
|
|
|
+ <u-col span="1" v-if="form.cutterTested==1">
|
|
<viwe class="danwei">KPa</viwe>
|
|
<viwe class="danwei">KPa</viwe>
|
|
</u-col>
|
|
</u-col>
|
|
</u-row>
|
|
</u-row>
|
|
<u-row gutter="12" style="text-align: center;">
|
|
<u-row gutter="12" style="text-align: center;">
|
|
<u-col span="10">
|
|
<u-col span="10">
|
|
- <u-form-item label="放散压力" borderBottom ref="item1" placeholder="请输入放散压力" labelWidth="140">
|
|
|
|
|
|
+ <u-form-item label="放散压力" borderBottom ref="item1" placeholder="请输入放散压力" labelWidth="140" v-if="form.cutterTested==1">
|
|
<u-input v-model="form.releasePressure" length='20px' placeholder="请输入放散压力"
|
|
<u-input v-model="form.releasePressure" length='20px' placeholder="请输入放散压力"
|
|
- :disabled="type==1"></u-input>
|
|
|
|
|
|
+ :disabled="type==1" type="digit" :clearable="false" @input="checkreleasePressure"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
- <u-col span="2">
|
|
|
|
- <viwe class="danwei">Mpa</viwe>
|
|
|
|
|
|
+ <u-col span="2" v-if="form.cutterTested==1">
|
|
|
|
+ <viwe class="danwei" >Mpa</viwe>
|
|
</u-col>
|
|
</u-col>
|
|
</u-row>
|
|
</u-row>
|
|
<view class="small-title">主副路交替部分</view>
|
|
<view class="small-title">主副路交替部分</view>
|
|
<u-row>
|
|
<u-row>
|
|
<u-col>
|
|
<u-col>
|
|
- <u-form-item label="未交替" borderBottom ref="item1" placeholder="请输入编号" labelWidth="120">
|
|
|
|
- <u-switch v-model="form.manOfAccessoryAlternating" :disabled="type==1"></u-switch>
|
|
|
|
- </u-form-item>
|
|
|
|
- </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 @change="filter" v-for="(item, index) in typelist.filter" :key="index"
|
|
|
|
|
|
+ <u-form-item label="是否交替" borderBottom ref="item1" placeholder="请输入编号" labelWidth="200">
|
|
|
|
+ <u-radio-group v-model="form.manOfAccessoryAlternating" :disabled="type==1">
|
|
|
|
+ <u-radio @change="manOfAccessoryAlternating" v-for="(item, index) in typelist.secondary_roads" :key="index"
|
|
:name="item.dictValue">
|
|
:name="item.dictValue">
|
|
{{item.dictLabel}}
|
|
{{item.dictLabel}}
|
|
</u-radio>
|
|
</u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
|
|
+
|
|
</u-row>
|
|
</u-row>
|
|
- <u-row gutter="12" style="text-align: center;">
|
|
|
|
|
|
+ <u-row gutter="12" style="text-align: center;" v-if="form.manOfAccessoryAlternating==1">
|
|
<u-col span="12">
|
|
<u-col span="12">
|
|
<u-form-item label="操作结果主副路已交替完毕,现" borderBottom ref="item1" placeholder="请输入编号"
|
|
<u-form-item label="操作结果主副路已交替完毕,现" borderBottom ref="item1" placeholder="请输入编号"
|
|
labelWidth="420">
|
|
labelWidth="420">
|
|
@@ -285,7 +321,7 @@
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
- <u-col>
|
|
|
|
|
|
+ <!-- <u-col>
|
|
<u-form-item label="超期巡检原因" borderBottom ref="item1" placeholder="请输入编号" labelWidth="200">
|
|
<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" :disabled="type==1">
|
|
<u-radio @change="reasonForOverdueInspection"
|
|
<u-radio @change="reasonForOverdueInspection"
|
|
@@ -295,15 +331,15 @@
|
|
</u-radio>
|
|
</u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- </u-col>
|
|
|
|
|
|
+ </u-col> -->
|
|
<u-col>
|
|
<u-col>
|
|
- <u-form-item label="其他原因" borderBottom ref="item1" labelWidth="160">
|
|
|
|
- <u-input v-model="form.otherReasonsForOverdueInspection" placeholder="(非必填项)"
|
|
|
|
|
|
+ <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>
|
|
:disabled="type==1"></u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
</u-row>
|
|
</u-row>
|
|
- <view class="small-title">阀井测试部分</view>
|
|
|
|
|
|
+ <!-- <view class="small-title">阀井测试部分</view>
|
|
<u-row>
|
|
<u-row>
|
|
<u-col>
|
|
<u-col>
|
|
<u-form-item label="未测试" borderBottom ref="item1" placeholder="请输入编号" labelWidth="120">
|
|
<u-form-item label="未测试" borderBottom ref="item1" placeholder="请输入编号" labelWidth="120">
|
|
@@ -321,7 +357,7 @@
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-col>
|
|
</u-col>
|
|
- </u-row>
|
|
|
|
|
|
+ </u-row> -->
|
|
<view class="small-title">备注信息</view>
|
|
<view class="small-title">备注信息</view>
|
|
<u-row>
|
|
<u-row>
|
|
<u-col>
|
|
<u-col>
|
|
@@ -358,6 +394,7 @@
|
|
</u-col>
|
|
</u-col>
|
|
</u-row>
|
|
</u-row>
|
|
</u-form>
|
|
</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>
|
|
type='primary'>确认上传</u-button>
|
|
</view>
|
|
</view>
|
|
@@ -386,7 +423,29 @@
|
|
progress: 0, //图片或视频上传百分比
|
|
progress: 0, //图片或视频上传百分比
|
|
showxtv: false,
|
|
showxtv: false,
|
|
showvalveWellCondition: false,
|
|
showvalveWellCondition: false,
|
|
- form: {},
|
|
|
|
|
|
+ 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
|
|
|
|
+ },
|
|
xtvLabel: null,
|
|
xtvLabel: null,
|
|
valveWellConditioLabel: null,
|
|
valveWellConditioLabel: null,
|
|
// 表单校验
|
|
// 表单校验
|
|
@@ -576,9 +635,9 @@
|
|
checked: true,
|
|
checked: true,
|
|
typelist: {},
|
|
typelist: {},
|
|
dictlist: ['appearance', 'square_brick', 'guardrail', 'foundation', 'pressure_gage', 'valve',
|
|
dictlist: ['appearance', 'square_brick', 'guardrail', 'foundation', 'pressure_gage', 'valve',
|
|
- 'voltage_regulator', 'xtv', 'disconnector_test_status', 'filter',
|
|
|
|
|
|
+ 'voltage_regulator', 'xtv', 'disconnector_test_status', 'filter','cutoff_test_certification','secondary_roads',
|
|
'special_case_of_pressure_regulating_facilities', 'overdue_inspection_days',
|
|
'special_case_of_pressure_regulating_facilities', 'overdue_inspection_days',
|
|
- 'reason_for_overdue_inspection', 'valve_well_condition', 'find_problem', 'xtv','administrative_office'
|
|
|
|
|
|
+ 'reason_for_overdue_inspection', 'valve_well_condition', 'find_problem', 'xtv','administrative_office','yes_and_no','business_service','yes_or_no'
|
|
],
|
|
],
|
|
type: 2,
|
|
type: 2,
|
|
id: null,
|
|
id: null,
|
|
@@ -610,6 +669,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
|
|
+
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
title: '调压箱表单'
|
|
title: '调压箱表单'
|
|
});
|
|
});
|
|
@@ -639,7 +699,78 @@
|
|
this.getUserName()
|
|
this.getUserName()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ checkinletPressure(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.inletPressure= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ checkexportPressureMain(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.exportPressureMain= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ checkclosingPressureAccessory(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.closingPressureAccessory= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ checkexportPressureAccessory(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.exportPressureAccessory= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ checkclosingPressureMain(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.closingPressureMain= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ checkcutOffPressureMain(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.cutOffPressureMain= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ checkcutOffPressureAccessory(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.cutOffPressureAccessory= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ checkreleasePressure(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ //正则表达试
|
|
|
|
+ e = (e.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
|
+ //重新赋值给input
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.releasePressure= e
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getUserName(){
|
|
getUserName(){
|
|
service.getUserName().then(res=>{
|
|
service.getUserName().then(res=>{
|
|
this.userId=res.id
|
|
this.userId=res.id
|
|
@@ -703,6 +834,21 @@
|
|
this.$refs.form.appearance = e
|
|
this.$refs.form.appearance = e
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
|
|
+ explosionProofSwitch(e)
|
|
|
|
+ {
|
|
|
|
+ this.$refs.form.explosionProofSwitch = e
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
|
|
+ thermostat(e)
|
|
|
|
+ {
|
|
|
|
+ this.$refs.form.thermostat = e
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
|
|
+ businessService(e)
|
|
|
|
+ {
|
|
|
|
+ this.$refs.form.businessService = e
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
//方砖
|
|
//方砖
|
|
squareBrick(e) {
|
|
squareBrick(e) {
|
|
this.$refs.form.squareBrick = e
|
|
this.$refs.form.squareBrick = e
|
|
@@ -733,16 +879,31 @@
|
|
this.$refs.form.voltageRegulator = e
|
|
this.$refs.form.voltageRegulator = e
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
|
|
+ isThereALeak(e)
|
|
|
|
+ {
|
|
|
|
+ this.$refs.form.isThereALeak = e
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
//切断器(放散阀)测试情况
|
|
//切断器(放散阀)测试情况
|
|
disconnectorTestStatus(e) {
|
|
disconnectorTestStatus(e) {
|
|
this.$refs.form.disconnectorTestStatus = e
|
|
this.$refs.form.disconnectorTestStatus = e
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
|
|
+ cutterTested(e)
|
|
|
|
+ {
|
|
|
|
+ this.$refs.form.cutterTested = e
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
//过滤器
|
|
//过滤器
|
|
filter(e) {
|
|
filter(e) {
|
|
this.$refs.form.filter = e
|
|
this.$refs.form.filter = e
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
|
|
+ manOfAccessoryAlternating(e)
|
|
|
|
+ {
|
|
|
|
+ this.$refs.form.manOfAccessoryAlternating = e
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
specialCaseOfPressureRegulatingFacilities(e) {
|
|
specialCaseOfPressureRegulatingFacilities(e) {
|
|
this.$refs.form.specialCaseOfPressureRegulatingFacilities = e
|
|
this.$refs.form.specialCaseOfPressureRegulatingFacilities = e
|
|
console.log(e)
|
|
console.log(e)
|
|
@@ -756,9 +917,10 @@
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
xtv(e) {
|
|
xtv(e) {
|
|
- this.form.xtv = e[0].value
|
|
|
|
- this.xtvLabel = e[0].label
|
|
|
|
- console.log(this.xtvLabel)
|
|
|
|
|
|
+ this.$refs.form.xtv = e
|
|
|
|
+ // this.form.xtv = e[0].value
|
|
|
|
+ // this.xtvLabel = e[0].label
|
|
|
|
+ // console.log(this.xtvLabel)
|
|
},
|
|
},
|
|
AdministrativeOffice(e)
|
|
AdministrativeOffice(e)
|
|
{
|
|
{
|
|
@@ -797,7 +959,28 @@
|
|
// url: '/pages/index/index'
|
|
// url: '/pages/index/index'
|
|
// })
|
|
// })
|
|
// }, 2000)
|
|
// }, 2000)
|
|
- this.form={}
|
|
|
|
|
|
+ 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.valveWellConditioLabel=''
|
|
this.valveWellConditioLabel=''
|
|
this.xtvLabel=''
|
|
this.xtvLabel=''
|
|
this.valveWellConditioLabel=''
|
|
this.valveWellConditioLabel=''
|