|
@@ -53,6 +53,30 @@
|
|
|
<ObsImageUpload ref="obsImageUpload" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="nodeInfo.zEngiineeringPhotoBoList"
|
|
|
@input="getUrl"></ObsImageUpload>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="管上皮深度测量照片" prop="ductalEpithelium" v-if="currentContain.includes('ductalEpithelium')" class="obsImage" :class=" enginType == '顶管工程' ? 'obsActiveImage' : enginType == '基建工程' ? 'obsActiveImageStructure' : '' ">
|
|
|
+ <ObsImageUpload ref="ductalEpithelium" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="nodeInfo.ductalEpithelium"
|
|
|
+ @input="getductalEpitheliumUrl"></ObsImageUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="管沟远景照片" prop="trenchProspect" v-if="currentContain.includes('trenchProspect')" class="obsImage" :class=" enginType == '顶管工程' ? 'obsActiveImage' : enginType == '基建工程' ? 'obsActiveImageStructure' : '' ">
|
|
|
+ <ObsImageUpload ref="trenchProspect" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="nodeInfo.trenchProspect"
|
|
|
+ @input="gettrenchProspectUrl"></ObsImageUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="石粉回填照片" prop="stonePowder" v-if="currentContain.includes('stonePowder')" class="obsImage" :class=" enginType == '顶管工程' ? 'obsActiveImage' : enginType == '基建工程' ? 'obsActiveImageStructure' : '' ">
|
|
|
+ <ObsImageUpload ref="stonePowder" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="nodeInfo.stonePowder"
|
|
|
+ @input="getstonePowderUrl"></ObsImageUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="管沟远景照片" prop="warningtTape" v-if="currentContain.includes('warningtTape')" class="obsImage" :class=" enginType == '顶管工程' ? 'obsActiveImage' : enginType == '基建工程' ? 'obsActiveImageStructure' : '' ">
|
|
|
+ <ObsImageUpload ref="warningtTape" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="nodeInfo.warningtTape"
|
|
|
+ @input="getwarningtTapeUrl"></ObsImageUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="回填后照片" prop="photosAfter" v-if="currentContain.includes('photosAfter')" class="obsImage" :class=" enginType == '顶管工程' ? 'obsActiveImage' : enginType == '基建工程' ? 'obsActiveImageStructure' : '' ">
|
|
|
+ <ObsImageUpload ref="photosAfter" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="nodeInfo.photosAfter"
|
|
|
+ @input="getphotosAfterUrl"></ObsImageUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="视频" prop="Video" v-if="currentContain.includes('Video')" class="obsImage" :class=" enginType == '顶管工程' ? 'obsActiveImage' : enginType == '基建工程' ? 'obsActiveImageStructure' : '' ">
|
|
|
+ <ObsImageUpload ref="Video" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="nodeInfo.Video"
|
|
|
+ @input="getVideoUrl"></ObsImageUpload>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="备注" prop="remark" v-if="currentContain.includes('remark')">
|
|
|
<el-input
|
|
|
v-model="nodeInfo.remark"
|
|
@@ -151,7 +175,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<!-- end -->
|
|
|
- <el-col :span="7" v-show="materialComponList.includes('number')">
|
|
|
+ <el-col :span="7" v-if="materialComponList.includes('number')">
|
|
|
<el-form-item
|
|
|
:prop="'zEngineeringMaterialBo.' + index + '.number'"
|
|
|
label-width="50px"
|
|
@@ -159,7 +183,20 @@
|
|
|
>
|
|
|
<!-- :rules="[{required: true, message: '请输入数量', trigger: 'change'},{validator: [checkPositiveInteger], trigger: 'blur'}]"-->
|
|
|
<div class="block" style="display: inline-block; margin-right: 20px;">
|
|
|
- <el-input-number v-model="item.number" placeholder="请输入数量" style="width: 100%" max="999999" precision="1" :controls="false" :disabled="status == 'read-only'"></el-input-number>
|
|
|
+ <el-input v-model="item.number" placeholder="请输入数量" style="width: 100%" type="number" oninput="value = value.replace(/[^\d]/g, '');if(value.length>9); value=value.slice(0,9)" :disabled="status == 'read-only'"></el-input>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="7" v-if="materialComponList.includes('caliber')">
|
|
|
+ <el-form-item
|
|
|
+ :prop="'zEngineeringMaterialBo.' + index + '.number'"
|
|
|
+ label-width="50px"
|
|
|
+ label="管径"
|
|
|
+ >
|
|
|
+ <!-- :rules="[{required: true, message: '请输入数量', trigger: 'change'},{validator: [checkPositiveInteger], trigger: 'blur'}]"-->
|
|
|
+ <div class="block" style="display: inline-block; margin-right: 20px;">
|
|
|
+<!-- <el-input-number v-model="item.number" placeholder="请输入管径" style="width: 100%" type="number" oninput="value = value.replace(/[^\d]/g, '');if(value.length>9); value=value.slice(0,9)" :disabled="status == 'read-only'"></el-input-number>-->
|
|
|
+ <el-input-number v-model="item.number" placeholder="请输入管径" style="width: 100%" max="999999" precision="1" :controls="false" :disabled="status == 'read-only'"></el-input-number>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -340,9 +377,10 @@ export default {
|
|
|
console.log('update',this.updateOption)
|
|
|
},
|
|
|
mounted(){
|
|
|
+
|
|
|
console.log('当前节点name',this.name)
|
|
|
console.log('update',this.updateOption)
|
|
|
- console.log('当前节点currentContain',this.currentContain)
|
|
|
+ console.log('当前节点currentContain',this.types)
|
|
|
this.materialComponList = this.currentContain.find(e => {
|
|
|
if( e instanceof Array){
|
|
|
return e
|
|
@@ -386,6 +424,7 @@ export default {
|
|
|
// 收集节点信息
|
|
|
infoCollection(){
|
|
|
let result = null
|
|
|
+ console.log(this.$refs.fangxianForm)
|
|
|
this.$refs.fangxianForm.validate(valid => {
|
|
|
if(valid){
|
|
|
// 收集主节点信息
|
|
@@ -399,6 +438,12 @@ export default {
|
|
|
this.nodeInfoBo.type = this.name
|
|
|
// 接口数据格式修改 图片和用料放到nodeInfoBo节点详情对象中
|
|
|
this.nodeInfoBo.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.nodeInfo.zEngiineeringPhotoBoList
|
|
|
+ this.nodeInfoBo.zEngineeringInfoBo.ductalEpithelium=this.nodeInfo.ductalEpithelium
|
|
|
+ this.nodeInfoBo.zEngineeringInfoBo.trenchProspect=this.nodeInfo.trenchProspect
|
|
|
+ this.nodeInfoBo.zEngineeringInfoBo.stonePowder=this.nodeInfo.stonePowder
|
|
|
+ this.nodeInfoBo.zEngineeringInfoBo.warningtTape=this.nodeInfo.warningtTape
|
|
|
+ this.nodeInfoBo.zEngineeringInfoBo.photosAfter=this.nodeInfo.photosAfter
|
|
|
+ this.nodeInfoBo.zEngineeringInfoBo.Video=this.nodeInfo.Video
|
|
|
this.nodeInfoBo.zEngineeringInfoBo.zEngineeringMaterialBo = this.zEngineeringMaterialBo
|
|
|
delete this.nodeInfo.zEngiineeringPhotoBoList
|
|
|
console.log('即将返回的节点Info',this.nodeInfoBo)
|
|
@@ -439,6 +484,21 @@ export default {
|
|
|
getUrl(url) {
|
|
|
this.nodeInfo.zEngiineeringPhotoBoList = this.$refs.obsImageUpload.fileList ? this.$refs.obsImageUpload.fileList.map(e=>e.url):[];
|
|
|
},
|
|
|
+ getductalEpitheliumUrl(url) {
|
|
|
+ this.nodeInfo.ductalEpithelium = this.$refs.ductalEpithelium.fileList ? this.$refs.ductalEpithelium.fileList.map(e=>e.url):[];
|
|
|
+ },
|
|
|
+ getstonePowderUrl(url) {
|
|
|
+ this.nodeInfo.stonePowder = this.$refs.stonePowder.fileList ? this.$refs.stonePowder.fileList.map(e=>e.url):[];
|
|
|
+ },
|
|
|
+ getwarningtTapeUrl(url) {
|
|
|
+ this.nodeInfo.warningtTape = this.$refs.warningtTape.fileList ? this.$refs.warningtTape.fileList.map(e=>e.url):[];
|
|
|
+ },
|
|
|
+ getphotosAfterUrl(url) {
|
|
|
+ this.nodeInfo.photosAfter = this.$refs.photosAfter.fileList ? this.$refs.photosAfter.fileList.map(e=>e.url):[];
|
|
|
+ },
|
|
|
+ getVideoUrl(url) {
|
|
|
+ this.nodeInfo.Video = this.$refs.Video.fileList ? this.$refs.Video.fileList.map(e=>e.url):[];
|
|
|
+ },
|
|
|
// 获取材质规格
|
|
|
getEnginSpecificationsList(e,idx){
|
|
|
this.zEngineeringMaterialBo[idx].specifications = null;
|