|
@@ -757,7 +757,13 @@
|
|
|
<text class="cell-title">管道名称</text>
|
|
<text class="cell-title">管道名称</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.pipeName }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.pipeName"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.pipeName }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -767,7 +773,13 @@
|
|
|
<text class="cell-title">管道编号</text>
|
|
<text class="cell-title">管道编号</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.pipeNo }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.pipeNo"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.pipeNo }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -807,7 +819,13 @@
|
|
|
<text class="cell-title">管道注册代码</text>
|
|
<text class="cell-title">管道注册代码</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.pipeRegCode }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.pipeRegCode"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.pipeRegCode }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -817,7 +835,13 @@
|
|
|
<text class="cell-title">使用登记证编号</text>
|
|
<text class="cell-title">使用登记证编号</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.certificateNo }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.certificateNo"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.certificateNo }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -827,7 +851,13 @@
|
|
|
<text class="cell-title">单位内编号</text>
|
|
<text class="cell-title">单位内编号</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.internalNo }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.internalNo"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.internalNo }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -852,7 +882,13 @@
|
|
|
<text class="cell-title">工程名称</text>
|
|
<text class="cell-title">工程名称</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.projectName }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.projectName"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.projectName }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -862,7 +898,13 @@
|
|
|
<text class="cell-title">管道介质</text>
|
|
<text class="cell-title">管道介质</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.pipeMedium }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.pipeMedium"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.pipeMedium }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -872,7 +914,13 @@
|
|
|
<text class="cell-title">管道长度(m)</text>
|
|
<text class="cell-title">管道长度(m)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.pipeLength }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.pipeLength"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.pipeLength }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -882,7 +930,13 @@
|
|
|
<text class="cell-title">公称直径(mm)</text>
|
|
<text class="cell-title">公称直径(mm)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.nominalDiameter }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.nominalDiameter"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.nominalDiameter }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -892,7 +946,13 @@
|
|
|
<text class="cell-title">公称壁厚(mm)</text>
|
|
<text class="cell-title">公称壁厚(mm)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.nominalWallThickness }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.nominalWallThickness"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.nominalWallThickness }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -902,7 +962,13 @@
|
|
|
<text class="cell-title">管道材质</text>
|
|
<text class="cell-title">管道材质</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.pipeMaterial }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.pipeMaterial"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.pipeMaterial }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -912,7 +978,13 @@
|
|
|
<text class="cell-title">材料标准</text>
|
|
<text class="cell-title">材料标准</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.materialStandard }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.materialStandard"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.materialStandard }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -922,7 +994,13 @@
|
|
|
<text class="cell-title">设计压力(MPa)</text>
|
|
<text class="cell-title">设计压力(MPa)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.designPressure }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.designPressure"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.designPressure }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -932,7 +1010,13 @@
|
|
|
<text class="cell-title">工作压力(MPa)</text>
|
|
<text class="cell-title">工作压力(MPa)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.workPressure }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.workPressure"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.workPressure }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -942,7 +1026,13 @@
|
|
|
<text class="cell-title">设计温度(℃)</text>
|
|
<text class="cell-title">设计温度(℃)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.designTemperature }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.designTemperature"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.designTemperature }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -952,7 +1042,13 @@
|
|
|
<text class="cell-title">工作温度(℃)</text>
|
|
<text class="cell-title">工作温度(℃)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.workTemperature }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.workTemperature"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.workTemperature }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -962,7 +1058,13 @@
|
|
|
<text class="cell-title">焊口数量</text>
|
|
<text class="cell-title">焊口数量</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.weldCount }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.weldCount"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.weldCount }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -972,7 +1074,13 @@
|
|
|
<text class="cell-title">管道起点</text>
|
|
<text class="cell-title">管道起点</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.startPoint }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.startPoint"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.startPoint }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -982,7 +1090,13 @@
|
|
|
<text class="cell-title">管道止点</text>
|
|
<text class="cell-title">管道止点</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.endPoint }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.endPoint"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.endPoint }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -992,7 +1106,19 @@
|
|
|
<text class="cell-title">是否存在埋地管道</text>
|
|
<text class="cell-title">是否存在埋地管道</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.isUnderground ? '是' : '否' }}</text>
|
|
|
|
|
|
|
+ <picker
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ mode="selector"
|
|
|
|
|
+ :range="['否', '是']"
|
|
|
|
|
+ :value="pipe.isUnderground ? 1 : 0"
|
|
|
|
|
+ @change="(e: any) => (pipe.isUnderground = e.detail.value === 1)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <view class="edit-input">
|
|
|
|
|
+ <text>{{ pipe.isUnderground ? '是' : '否' }}</text>
|
|
|
|
|
+ <image class="arrow-icon" src="/static/images/arrow-right.png" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </picker>
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.isUnderground ? '是' : '否' }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1002,7 +1128,13 @@
|
|
|
<text class="cell-title">埋地管道长度(m)</text>
|
|
<text class="cell-title">埋地管道长度(m)</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.undergroundLength }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.undergroundLength"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.undergroundLength }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1033,7 +1165,13 @@
|
|
|
<text class="cell-title">设计使用年限</text>
|
|
<text class="cell-title">设计使用年限</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.designLifeYears }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.designLifeYears"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.designLifeYears }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1102,7 +1240,13 @@
|
|
|
<text class="cell-title">工程号</text>
|
|
<text class="cell-title">工程号</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.projectNo }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.projectNo"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.projectNo }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1112,7 +1256,13 @@
|
|
|
<text class="cell-title">使用证号</text>
|
|
<text class="cell-title">使用证号</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.useno }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.useno"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.useno }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1143,7 +1293,13 @@
|
|
|
<text class="cell-title">全部检验项目</text>
|
|
<text class="cell-title">全部检验项目</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.allitem }}</text>
|
|
|
|
|
|
|
+ <textarea
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.allitem"
|
|
|
|
|
+ class="edit-textarea"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.allitem }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1153,7 +1309,13 @@
|
|
|
<text class="cell-title">备注</text>
|
|
<text class="cell-title">备注</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.clbz }}</text>
|
|
|
|
|
|
|
+ <textarea
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.clbz"
|
|
|
|
|
+ class="edit-textarea"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.clbz }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1163,7 +1325,13 @@
|
|
|
<text class="cell-title">监督检验问题记载</text>
|
|
<text class="cell-title">监督检验问题记载</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.supervisionIssues }}</text>
|
|
|
|
|
|
|
+ <textarea
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.supervisionIssues"
|
|
|
|
|
+ class="edit-textarea"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.supervisionIssues }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -1181,7 +1349,13 @@
|
|
|
<text class="cell-title">上次全检报告编号</text>
|
|
<text class="cell-title">上次全检报告编号</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.lastInspectionReportNo }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.lastInspectionReportNo"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.lastInspectionReportNo }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1233,7 +1407,13 @@
|
|
|
<text class="cell-title">安全状况等级</text>
|
|
<text class="cell-title">安全状况等级</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.legalSafetyStatusLevel }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.legalSafetyStatusLevel"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.legalSafetyStatusLevel }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1243,7 +1423,13 @@
|
|
|
<text class="cell-title">上次检验检查结论</text>
|
|
<text class="cell-title">上次检验检查结论</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.legalInspectionConclusion }}</text>
|
|
|
|
|
|
|
+ <textarea
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.legalInspectionConclusion"
|
|
|
|
|
+ class="edit-textarea"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.legalInspectionConclusion }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1253,7 +1439,13 @@
|
|
|
<text class="cell-title">上次检验检查发现的问题</text>
|
|
<text class="cell-title">上次检验检查发现的问题</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.legalInspectionIssues }}</text>
|
|
|
|
|
|
|
+ <textarea
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.legalInspectionIssues"
|
|
|
|
|
+ class="edit-textarea"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.legalInspectionIssues }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -1271,7 +1463,13 @@
|
|
|
<text class="cell-title">上次年检报告编号</text>
|
|
<text class="cell-title">上次年检报告编号</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.lastYearReportNo }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.lastYearReportNo"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.lastYearReportNo }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1323,7 +1521,13 @@
|
|
|
<text class="cell-title">安全状况等级</text>
|
|
<text class="cell-title">安全状况等级</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.yearSafetyStatusLevel }}</text>
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.yearSafetyStatusLevel"
|
|
|
|
|
+ class="edit-input-text"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.yearSafetyStatusLevel }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1333,7 +1537,13 @@
|
|
|
<text class="cell-title">上次检验检查结论</text>
|
|
<text class="cell-title">上次检验检查结论</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.yearInspectionConclusion }}</text>
|
|
|
|
|
|
|
+ <textarea
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.yearInspectionConclusion"
|
|
|
|
|
+ class="edit-textarea"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.yearInspectionConclusion }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -1343,7 +1553,13 @@
|
|
|
<text class="cell-title">上次检验检查发现的问题</text>
|
|
<text class="cell-title">上次检验检查发现的问题</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="table-cell content">
|
|
<view class="table-cell content">
|
|
|
- <text class="cell-text">{{ pipe.yearInspectionIssues }}</text>
|
|
|
|
|
|
|
+ <textarea
|
|
|
|
|
+ v-if="isEdit"
|
|
|
|
|
+ v-model="pipe.yearInspectionIssues"
|
|
|
|
|
+ class="edit-textarea"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ <text v-else class="cell-text">{{ pipe.yearInspectionIssues }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -1558,11 +1774,13 @@ const handleCollapseChange = (detail: any) => {
|
|
|
|
|
|
|
|
const isEdit = ref(false)
|
|
const isEdit = ref(false)
|
|
|
const originalData = ref<any>(null)
|
|
const originalData = ref<any>(null)
|
|
|
|
|
+const originalPipeList = ref<any[]>([])
|
|
|
const handleEdit = () => {
|
|
const handleEdit = () => {
|
|
|
if (isEdit.value) {
|
|
if (isEdit.value) {
|
|
|
handleSave()
|
|
handleSave()
|
|
|
} else {
|
|
} else {
|
|
|
originalData.value = { ...equipment }
|
|
originalData.value = { ...equipment }
|
|
|
|
|
+ originalPipeList.value = pipeList.value.map(pipe => ({ ...pipe }))
|
|
|
isEdit.value = true
|
|
isEdit.value = true
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1571,6 +1789,9 @@ const handleCancel = () => {
|
|
|
if (originalData.value) {
|
|
if (originalData.value) {
|
|
|
Object.assign(equipment, originalData.value)
|
|
Object.assign(equipment, originalData.value)
|
|
|
}
|
|
}
|
|
|
|
|
+ if (originalPipeList.value.length > 0) {
|
|
|
|
|
+ pipeList.value = originalPipeList.value.map(pipe => ({ ...pipe }))
|
|
|
|
|
+ }
|
|
|
isEdit.value = false
|
|
isEdit.value = false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1592,6 +1813,56 @@ const saveToApi = async () => {
|
|
|
try {
|
|
try {
|
|
|
const saveData = {
|
|
const saveData = {
|
|
|
...equipment,
|
|
...equipment,
|
|
|
|
|
+ detailSaveReqVOS: pipeList.value.map(pipe => ({
|
|
|
|
|
+ id: pipe.pipeId || '',
|
|
|
|
|
+ pipeName: pipe.pipeName,
|
|
|
|
|
+ pipeNo: pipe.pipeNo,
|
|
|
|
|
+ pipeCategory: pipe.pipeCategory,
|
|
|
|
|
+ pipeType: pipe.pipeType,
|
|
|
|
|
+ pipeRegCode: pipe.pipeRegCode,
|
|
|
|
|
+ certificateNo: pipe.certificateNo,
|
|
|
|
|
+ internalNo: pipe.internalNo,
|
|
|
|
|
+ pipeLevel: pipe.pipeLevel,
|
|
|
|
|
+ projectName: pipe.projectName,
|
|
|
|
|
+ pipeMedium: pipe.pipeMedium,
|
|
|
|
|
+ pipeLength: pipe.pipeLength,
|
|
|
|
|
+ nominalDiameter: pipe.nominalDiameter,
|
|
|
|
|
+ nominalWallThickness: pipe.nominalWallThickness,
|
|
|
|
|
+ pipeMaterial: pipe.pipeMaterial,
|
|
|
|
|
+ materialStandard: pipe.materialStandard,
|
|
|
|
|
+ designPressure: pipe.designPressure,
|
|
|
|
|
+ workPressure: pipe.workPressure,
|
|
|
|
|
+ designTemperature: pipe.designTemperature,
|
|
|
|
|
+ workTemperature: pipe.workTemperature,
|
|
|
|
|
+ weldCount: pipe.weldCount,
|
|
|
|
|
+ startPoint: pipe.startPoint,
|
|
|
|
|
+ endPoint: pipe.endPoint,
|
|
|
|
|
+ isUnderground: pipe.isUnderground,
|
|
|
|
|
+ undergroundLength: pipe.undergroundLength,
|
|
|
|
|
+ commissioningDate: pipe.commissioningDate,
|
|
|
|
|
+ designLifeYears: pipe.designLifeYears,
|
|
|
|
|
+ constructionStartDate: pipe.constructionStartDate,
|
|
|
|
|
+ handoverDate: pipe.handoverDate,
|
|
|
|
|
+ useStatus: pipe.useStatus,
|
|
|
|
|
+ projectNo: pipe.projectNo,
|
|
|
|
|
+ useno: pipe.useno,
|
|
|
|
|
+ nextOnlineCheckDate: pipe.nextOnlineCheckDate,
|
|
|
|
|
+ allitem: pipe.allitem,
|
|
|
|
|
+ clbz: pipe.clbz,
|
|
|
|
|
+ supervisionIssues: pipe.supervisionIssues,
|
|
|
|
|
+ lastInspectionReportNo: pipe.lastInspectionReportNo,
|
|
|
|
|
+ lastalldate: pipe.lastalldate,
|
|
|
|
|
+ nextLegalCheckDate: pipe.nextLegalCheckDate,
|
|
|
|
|
+ legalSafetyStatusLevel: pipe.legalSafetyStatusLevel,
|
|
|
|
|
+ legalInspectionConclusion: pipe.legalInspectionConclusion,
|
|
|
|
|
+ legalInspectionIssues: pipe.legalInspectionIssues,
|
|
|
|
|
+ lastYearReportNo: pipe.lastYearReportNo,
|
|
|
|
|
+ lastonlinedate: pipe.lastonlinedate,
|
|
|
|
|
+ nextYearCheckDate: pipe.nextYearCheckDate,
|
|
|
|
|
+ yearSafetyStatusLevel: pipe.yearSafetyStatusLevel,
|
|
|
|
|
+ yearInspectionConclusion: pipe.yearInspectionConclusion,
|
|
|
|
|
+ yearInspectionIssues: pipe.yearInspectionIssues,
|
|
|
|
|
+ })),
|
|
|
}
|
|
}
|
|
|
const result: any = await updateEquipPipe(saveData)
|
|
const result: any = await updateEquipPipe(saveData)
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|