|
@@ -12,7 +12,7 @@
|
|
<el-form ref="form" :model="queryParams" :rules="rules" label-width="110px">
|
|
<el-form ref="form" :model="queryParams" :rules="rules" label-width="110px">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="工程类型" prop="type" v-show="!queryParams.id">
|
|
|
|
|
|
+ <!-- <el-form-item label="工程类型" prop="type" v-show="!queryParams.id">
|
|
<el-select v-model="queryParams.type" placeholder="请选择类型" disabled >
|
|
<el-select v-model="queryParams.type" placeholder="请选择类型" disabled >
|
|
<el-option
|
|
<el-option
|
|
v-for="e in dict.type.engin_type"
|
|
v-for="e in dict.type.engin_type"
|
|
@@ -21,7 +21,7 @@
|
|
:value="e.value"
|
|
:value="e.value"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
</el-col>
|
|
</el-col>
|
|
<!-- <el-col :span="12">-->
|
|
<!-- <el-col :span="12">-->
|
|
<!-- <el-form-item label="节点类型" prop="zEngineeringNodeBoType">-->
|
|
<!-- <el-form-item label="节点类型" prop="zEngineeringNodeBoType">-->
|
|
@@ -39,43 +39,43 @@
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="工程名称" prop="enginName">
|
|
<el-form-item label="工程名称" prop="enginName">
|
|
- <el-input v-model="queryParams.enginName" placeholder="请填写工程名称" maxlength="50"></el-input>
|
|
|
|
|
|
+ <el-input v-model="queryParams.enginName" placeholder="请填写工程名称" maxlength="50" :disabled="title == '添加用料' "></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="工程地址" prop="enginAddre">
|
|
<el-form-item label="工程地址" prop="enginAddre">
|
|
- <el-input v-model="queryParams.enginAddre" placeholder="请填写工程地址" maxlength="100"></el-input>
|
|
|
|
|
|
+ <el-input v-model="queryParams.enginAddre" placeholder="请填写工程地址" maxlength="100" :disabled="title == '添加用料' "></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="工程编码" prop="enginCode">
|
|
<el-form-item label="工程编码" prop="enginCode">
|
|
- <el-input v-model="queryParams.enginCode" placeholder="请填写工程编码" maxlength="50"></el-input>
|
|
|
|
|
|
+ <el-input v-model="queryParams.enginCode" placeholder="请填写工程编码" maxlength="50" :disabled="title == '添加用料' "></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="施工单位" prop="constructUnit">
|
|
<el-form-item label="施工单位" prop="constructUnit">
|
|
- <el-input v-model="queryParams.constructUnit" placeholder="请填写施工单位" maxlength="100"></el-input>
|
|
|
|
|
|
+ <el-input v-model="queryParams.constructUnit" placeholder="请填写施工单位" maxlength="100" :disabled="title == '添加用料' "></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="工程规模" prop="enginScale">
|
|
<el-form-item label="工程规模" prop="enginScale">
|
|
- <el-input v-model="queryParams.enginScale" placeholder="请填写工程规模" maxlength="50"></el-input>
|
|
|
|
|
|
+ <el-input v-model="queryParams.enginScale" placeholder="请填写工程规模" maxlength="50" :disabled="title == '添加用料' "></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="施工质量" prop="constructQuality">
|
|
<el-form-item label="施工质量" prop="constructQuality">
|
|
- <el-input v-model="queryParams.constructQuality" placeholder="请填写施工质量" maxlength="50"></el-input>
|
|
|
|
|
|
+ <el-input v-model="queryParams.constructQuality" placeholder="请填写施工质量" maxlength="50" :disabled="title == '添加用料' "></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="施工进度" prop="constructSchedule">
|
|
<el-form-item label="施工进度" prop="constructSchedule">
|
|
- <el-input v-model="queryParams.constructSchedule" placeholder="请填写施工进度" maxlength="50"/>
|
|
|
|
|
|
+ <el-input v-model="queryParams.constructSchedule" placeholder="请填写施工进度" maxlength="50" :disabled="title == '添加用料' "/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
@@ -85,6 +85,7 @@
|
|
type="textarea"
|
|
type="textarea"
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
maxlength="255"
|
|
maxlength="255"
|
|
|
|
+ :disabled="title == '添加用料' "
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -92,18 +93,38 @@
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<el-form-item label="文件" prop="" v-if="currentType=='put'">
|
|
<el-form-item label="文件" prop="" v-if="currentType=='put'">
|
|
- <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999" :value="queryParams.pics"
|
|
|
|
|
|
+ <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999" :value="queryParams.pics" :disabled="title == '添加用料' "
|
|
></ObsFileUpload>
|
|
></ObsFileUpload>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="文件" prop="" v-if="currentType=='add'">
|
|
<el-form-item label="文件" prop="" v-if="currentType=='add'">
|
|
- <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999" :value="queryParams.files"
|
|
|
|
|
|
+ <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999" :value="queryParams.files" :disabled="title == '添加用料' "
|
|
></ObsFileUpload>
|
|
></ObsFileUpload>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-form-item label="节点" style="width: 100%;margin-left: 0;" v-if="title!=='修改顶管信息' ">
|
|
|
|
+ <el-checkbox-group v-model="currentCheckList">
|
|
|
|
+ <el-checkbox
|
|
|
|
+ :label="item.label"
|
|
|
|
+ v-for="item in checkList"
|
|
|
|
+ :key="item.label"
|
|
|
|
+ ></el-checkbox>
|
|
|
|
+ </el-checkbox-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <EnginNodeInfo
|
|
|
|
+ v-for="(e,idx) in currentCheckList"
|
|
|
|
+ :key="idx"
|
|
|
|
+ :name="e"
|
|
|
|
+ :ref="'EnginNodeInfo'+idx"
|
|
|
|
+ :currentContain="(listContain.find(i => i.name == e)).components"
|
|
|
|
+ :updateOption='(updateOption.find(i => i.type == e)) || {}'
|
|
|
|
+ :types="currentCheckList"
|
|
|
|
+ :status="enginNodeStatus"
|
|
|
|
+ enginType="顶管工程"
|
|
|
|
+ />
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button type="primary" @click="submitData">提交</el-button>
|
|
|
|
|
|
+ <!-- <el-button type="primary" @click="submitData">提交</el-button> -->
|
|
<el-button :loading="buttonLoading" type="primary" @click="toNodeDetail">{{keyWork}}</el-button>
|
|
<el-button :loading="buttonLoading" type="primary" @click="toNodeDetail">{{keyWork}}</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -119,10 +140,12 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {getComprehensive, delComprehensive} from "@/api/zdsz/comprehensive";
|
|
import {getComprehensive, delComprehensive} from "@/api/zdsz/comprehensive";
|
|
|
|
+import EnginNodeInfo from "@/components/EnginNodeInfo/index";
|
|
import {
|
|
import {
|
|
getEngineeList, // 查询工程列表
|
|
getEngineeList, // 查询工程列表
|
|
addEnginee, // 新增工程
|
|
addEnginee, // 新增工程
|
|
getDictList, putEngineeringPipeJacking,
|
|
getDictList, putEngineeringPipeJacking,
|
|
|
|
+ addEngineeringPipeJacking
|
|
} from "@/api/zdsz/enginee"
|
|
} from "@/api/zdsz/enginee"
|
|
import EngineeNode from '@/components/EngineeNode/index'
|
|
import EngineeNode from '@/components/EngineeNode/index'
|
|
// 节点信息
|
|
// 节点信息
|
|
@@ -130,7 +153,8 @@ import EngineeNode from '@/components/EngineeNode/index'
|
|
export default {
|
|
export default {
|
|
name: "EngineePipe",
|
|
name: "EngineePipe",
|
|
components: {
|
|
components: {
|
|
- EngineeNode
|
|
|
|
|
|
+ EngineeNode,
|
|
|
|
+ EnginNodeInfo
|
|
},
|
|
},
|
|
dicts: ['pipe_jack'],
|
|
dicts: ['pipe_jack'],
|
|
data() {
|
|
data() {
|
|
@@ -141,7 +165,7 @@ export default {
|
|
loading: true,
|
|
loading: true,
|
|
// 选中数组
|
|
// 选中数组
|
|
ids: [],
|
|
ids: [],
|
|
- keyWork:'填写节点信息',
|
|
|
|
|
|
+ keyWork:'新增',
|
|
// 非单个禁用
|
|
// 非单个禁用
|
|
single: true,
|
|
single: true,
|
|
// 非多个禁用
|
|
// 非多个禁用
|
|
@@ -159,15 +183,14 @@ export default {
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParams: {
|
|
queryParams: {
|
|
files:[],
|
|
files:[],
|
|
- enginId: null, // 外建工程
|
|
|
|
- enginName: '', // 工程名称
|
|
|
|
- enginAddre: '', // 工程地址
|
|
|
|
- enginScale: '', // 工程名称联系方式
|
|
|
|
- enginCode: '', // 工程编码
|
|
|
|
- constructQuality: '', // 施工质量
|
|
|
|
|
|
+ enginId: null, // 外建工程
|
|
|
|
+ enginName: '', // 工程名称
|
|
|
|
+ enginAddre: '', // 工程地址
|
|
|
|
+ enginScale: '', // 工程名称联系方式
|
|
|
|
+ enginCode: '', // 工程编码
|
|
|
|
+ constructQuality: '', // 施工质量
|
|
constructSchedule: "", // 施工进度
|
|
constructSchedule: "", // 施工进度
|
|
- type: null, // 类型
|
|
|
|
- remark: '', // 备注
|
|
|
|
|
|
+ remark: '', // 备注
|
|
constructUnit: null,
|
|
constructUnit: null,
|
|
zEngineeringNodeBo: {
|
|
zEngineeringNodeBo: {
|
|
type: null,
|
|
type: null,
|
|
@@ -237,13 +260,77 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
currentType: null, // 组件类型 put修改 add新增
|
|
currentType: null, // 组件类型 put修改 add新增
|
|
|
|
+ currentCheckList:[],
|
|
|
|
+ enginNodeStatus:null,
|
|
|
|
+ checkList:[],
|
|
|
|
+ updateOption:[],
|
|
|
|
+ listContain:[
|
|
|
|
+ {
|
|
|
|
+ name:'进场',
|
|
|
|
+ components:[
|
|
|
|
+ [
|
|
|
|
+ 'materialQuality', // 材质
|
|
|
|
+ 'specifications', // 规格
|
|
|
|
+ 'number', // 数量
|
|
|
|
+ ],
|
|
|
|
+ 'constructTime', // 施工时间
|
|
|
|
+ 'zEngiineeringPhotoBoList', // 照片
|
|
|
|
+ 'remark', // 描述
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name:'导向',
|
|
|
|
+ components:[
|
|
|
|
+ [
|
|
|
|
+ 'materialQuality', // 材质
|
|
|
|
+ 'specifications', // 规格
|
|
|
|
+ 'number', // 数量
|
|
|
|
+ ],
|
|
|
|
+ 'constructTime', // 施工时间
|
|
|
|
+ 'zEngiineeringPhotoBoList', // 照片
|
|
|
|
+ 'remark', // 描述
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name:'扩孔',
|
|
|
|
+ components:[
|
|
|
|
+ [
|
|
|
|
+ 'materialQuality', // 材质
|
|
|
|
+ 'specifications', // 规格
|
|
|
|
+ 'number', // 数量
|
|
|
|
+ ],
|
|
|
|
+ 'constructTime', // 施工时间
|
|
|
|
+ 'zEngiineeringPhotoBoList', // 照片
|
|
|
|
+ 'remark', // 描述
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name:'回拖',
|
|
|
|
+ components:[
|
|
|
|
+ [
|
|
|
|
+ 'materialQuality', // 材质
|
|
|
|
+ 'specifications', // 规格
|
|
|
|
+ 'number', // 数量
|
|
|
|
+ ],
|
|
|
|
+ 'constructTime', // 施工时间
|
|
|
|
+ 'zEngiineeringPhotoBoList', // 照片
|
|
|
|
+ 'remark', // 描述
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ ]
|
|
|
|
+
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
},
|
|
},
|
|
|
|
+ mounted(){
|
|
|
|
+ this.checkList = this.dict.type.pipe_jack
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
// 顶管工程修改
|
|
// 顶管工程修改
|
|
async putEnginPipe(data, type) {
|
|
async putEnginPipe(data, type) {
|
|
|
|
+ this.enginNodeStatus = '修改'
|
|
await this.reset();
|
|
await this.reset();
|
|
let newData = data
|
|
let newData = data
|
|
// let zEngineeringNodeBo = {
|
|
// let zEngineeringNodeBo = {
|
|
@@ -254,7 +341,7 @@ export default {
|
|
this.currentType = type
|
|
this.currentType = type
|
|
if (this.currentType=='put'){
|
|
if (this.currentType=='put'){
|
|
this.title = '修改顶管信息'
|
|
this.title = '修改顶管信息'
|
|
- this.keyWork = '编辑节点信息'
|
|
|
|
|
|
+ this.keyWork = '修改'
|
|
}
|
|
}
|
|
this.queryParams = newData
|
|
this.queryParams = newData
|
|
this.zEngineeringInfoBo = newData.zEngineeringNodeBoList
|
|
this.zEngineeringInfoBo = newData.zEngineeringNodeBoList
|
|
@@ -270,15 +357,31 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async openDialog(data, type,sata) {
|
|
async openDialog(data, type,sata) {
|
|
|
|
+ console.log(data,sata)
|
|
await this.reset();
|
|
await this.reset();
|
|
this.currentType = type
|
|
this.currentType = type
|
|
if (this.currentType == 'add') {
|
|
if (this.currentType == 'add') {
|
|
this.title = '新增顶管信息'
|
|
this.title = '新增顶管信息'
|
|
} else if (this.currentType == 'put') {
|
|
} else if (this.currentType == 'put') {
|
|
this.title = '修改顶管信息'
|
|
this.title = '修改顶管信息'
|
|
|
|
+ } else if (this.currentType == 'addMaterial') {
|
|
|
|
+ this.title = '添加用料'
|
|
|
|
+ this.enginNodeStatus == '添加用料'
|
|
|
|
+ this.queryParams = sata
|
|
|
|
+ this.open = true
|
|
|
|
+ return
|
|
}
|
|
}
|
|
this.queryParams.enginId = data.id
|
|
this.queryParams.enginId = data.id
|
|
this.queryParams.type = data.type
|
|
this.queryParams.type = data.type
|
|
|
|
+ //带值(民用工程、工业工程、市政工程)
|
|
|
|
+ if (data.type=='民用工程'){
|
|
|
|
+ this.queryParams.enginAddre =
|
|
|
|
+ sata.district + ' - ' + sata.areaName + ' - ' + sata.buildingName + ' - ' + sata.unitName + ' - ' + sata.houseName;
|
|
|
|
+ }
|
|
|
|
+ if (['工业工程','市政工程'].includes(data.type)){
|
|
|
|
+ this.queryParams.enginName = sata.enginName;
|
|
|
|
+ }
|
|
|
|
+ console.log('顶管params',this.queryParams)
|
|
//带值
|
|
//带值
|
|
this.queryParams.enginName = sata.enginName?sata.enginName:'';
|
|
this.queryParams.enginName = sata.enginName?sata.enginName:'';
|
|
this.open = true
|
|
this.open = true
|
|
@@ -288,7 +391,7 @@ export default {
|
|
},
|
|
},
|
|
submitData(){
|
|
submitData(){
|
|
|
|
|
|
- this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
|
|
|
|
+ // this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
this.$message.warning('必须上传文件!')
|
|
this.$message.warning('必须上传文件!')
|
|
return
|
|
return
|
|
@@ -307,6 +410,60 @@ export default {
|
|
}})
|
|
}})
|
|
},
|
|
},
|
|
toNodeDetail() {
|
|
toNodeDetail() {
|
|
|
|
+ let nodeCollection = []
|
|
|
|
+ // 收集节点信息
|
|
|
|
+ this.currentCheckList.forEach((e, idx) => {
|
|
|
|
+ let nodeItem = this.$refs['EnginNodeInfo' + idx][0].infoCollection()
|
|
|
|
+ // console.log(nodeItem)
|
|
|
|
+ nodeCollection.push(nodeItem)
|
|
|
|
+ })
|
|
|
|
+ this.queryParams.zEngineeringNodeBoList = nodeCollection
|
|
|
|
+ if (this.enginNodeStatus == '修改') {
|
|
|
|
+ this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
|
|
+ if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
|
|
+ this.$message.warning('必须上传文件!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ if (this.queryParams.id != null) {
|
|
|
|
+ putEngineeringPipeJacking(this.queryParams).then(response => {
|
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
|
+ this.open = false;
|
|
|
|
+ this.currentCheckList = []
|
|
|
|
+ // this.getList();
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }})
|
|
|
|
+ } else if(this.enginNodeStatus == '添加用料'){
|
|
|
|
+ addEngineeringPipeJacking(this.queryParams).then(res => {
|
|
|
|
+ if(res.code == 200){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '添加成功',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ this.open = false
|
|
|
|
+ console.log('选中节点集合',this.currentCheckList)
|
|
|
|
+ this.currentCheckList = []
|
|
|
|
+ this.getList()
|
|
|
|
+ // this.$emit('closeToSucceed')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ addEngineeringPipeJacking(this.queryParams).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '新增成功',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ this.open = false
|
|
|
|
+ console.log('选中节点集合', this.currentCheckList)
|
|
|
|
+ this.currentCheckList = []
|
|
|
|
+ // this.$emit('closeToSucceed')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ return
|
|
if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
this.$message.warning('必须上传文件!')
|
|
this.$message.warning('必须上传文件!')
|
|
return
|
|
return
|
|
@@ -368,6 +525,8 @@ export default {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
.el-dialog__body {
|
|
.el-dialog__body {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ overflow-y: scroll;
|
|
height: 85%;
|
|
height: 85%;
|
|
}
|
|
}
|
|
|
|
|