123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727 |
- <!--
- *@description: 工业工程
- *@author: yh Fu
- *@date: 2024-01-02 15:51:03
- *@version: V1.0.5
- -->
- <template>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="110px">
- <el-form-item label="工程名称" prop="enginName">
- <el-input v-model="queryParams.enginName" placeholder="请输入建筑工程名称" maxlength="20"></el-input>
- </el-form-item>
- <el-form-item label="工程分类" prop="enginClassification" v-if="engineeType">
- <el-select v-model="queryParams.enginClassification" placeholder="请选择工程分类">
- <el-option
- v-for="e in dict.type.engin_classification"
- :key="e.value"
- :label="e.label"
- :value="e.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
- </el-form-item>
- </el-form>
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- v-hasPermi="['zdsz:engineeringIndustry:add']"
- >新增
- </el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- @click="handleUpdate"
- v-hasPermi="['zdsz:engineeringIndustry:edit']"
- >修改
- </el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- v-hasPermi="['zdsz:engineeringIndustry:remove']"
- >删除
- </el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
- </el-row>
- <el-table v-loading="loading" :data="comprehensiveList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center"/>
- <el-table-column label="工程名称" align="center" prop="enginName"/>
- <el-table-column label="建筑单位" align="center" prop="constructUnit"/>
- <el-table-column label="项目负责人" align="center" prop="projectHead"/>
- <el-table-column label="现场负责人" align="center" prop="sceneHead"/>
- <el-table-column label="设计负责人" align="center" prop="designHead"/>
- <el-table-column label="设计单位" align="center" prop="designUnit"/>
- <el-table-column label="监理负责人" align="center" prop="supervisionHead"/>
- <el-table-column label="监理单位" align="center" prop="supervisionUnit"/>
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
- <template v-slot="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['zdsz:engineeringIndustry:edit']"
- >修改
- </el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- v-hasPermi="['zdsz:engineeringIndustry:remove']"
- >删除
- </el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="addNewPipe(scope.row)"
- >新增顶管工程
- </el-button>
- <el-button
- type="text"
- icon="el-icon-edit"
- size="mini"
- @click="viewSource(scope.row)"
- >历史</el-button>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- <!-- 顶管工程新增 -->
- <EngineePipe ref="enginPipe"/>
- <!-- 添加或修改市政工程|工业工程对话框 -->
- <el-dialog :title="title" :visible.sync="open" append-to-body customClass="appendElDialog">
- <el-form ref="form" :model="form" :rules="rules" label-width="110px">
- <el-form-item label="工程名称" prop="enginName">
- <el-input v-model="form.enginName" placeholder="请填写工程名称" maxlength="20"></el-input>
- </el-form-item>
- <el-form-item label="建筑单位" prop="constructUnit">
- <el-input v-model="form.constructUnit" placeholder="请填写建筑单位" maxlength="50"></el-input>
- </el-form-item>
- <el-form-item label="项目负责人" prop="projectHead">
- <el-input v-model="form.projectHead" placeholder="请填写项目负责人" maxlength="20"></el-input>
- </el-form-item>
- <el-form-item label="现场负责人" prop="sceneHead">
- <el-input v-model="form.sceneHead" placeholder="请填写现场负责人" maxlength="20"></el-input>
- </el-form-item>
- <el-form-item label="设计单位" prop="designUnit">
- <el-input v-model="form.designUnit" placeholder="请填写设计单位" maxlength="50"></el-input>
- </el-form-item>
- <el-form-item label="设计负责人" prop="designHead">
- <el-input v-model="form.designHead" placeholder="请填写现场负责人" maxlength="20"></el-input>
- </el-form-item>
- <el-form-item label="设计联系方式" prop="designPhone">
- <el-input v-model="form.designPhone" placeholder="请填写设计联系方式" maxlength="11"></el-input>
- </el-form-item>
- <el-form-item label="监理单位" prop="supervisionUnit">
- <el-input v-model="form.supervisionUnit" placeholder="请填写监理单位" maxlength="50"/>
- </el-form-item>
- <el-form-item label="监理负责人" prop="supervisionHead">
- <el-input v-model="form.supervisionHead" placeholder="请填写监理负责人" maxlength="20"></el-input>
- </el-form-item>
- <el-form-item label="监理联系电话" prop="supervisionPhone">
- <el-input v-model="form.supervisionPhone" placeholder="请填写监理联系电话" maxlength="11"></el-input>
- </el-form-item>
- <el-form-item label="工程类型" prop="enginType">
- <el-select v-model="form.enginType" placeholder="请选择工程类型" style="width: 100%">
- <el-option
- v-for="e in dict.type.industry_engin_type"
- :key="e.value"
- :label="e.label"
- :value="e.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="工程分类" prop="enginClassification" v-if="form.type === '1'">
- <el-select v-model="form.enginClassification" placeholder="请选择工程分类" style="width: 100%">
- <el-option
- v-for="e in dict.type.engin_classification"
- :key="e.value"
- :label="e.label"
- :value="e.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="文件" prop="" v-if="currentType==='put'" style="width: 100%">
- <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999" :value="form.pics"
- ></ObsFileUpload>
- </el-form-item>
- <el-form-item label="文件" prop="" v-if="currentType==='add'" style="width: 100%">
- <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999" :value="form.files"
- ></ObsFileUpload>
- </el-form-item>
- </el-col>
- </el-row>
- <div style="width: 20%; float: right">
- <el-button :loading="buttonLoading" type="primary" @click="toNodeDetail">填写施工信息</el-button>
- <el-button @click="cancel">取 消</el-button>
- </div>
- </el-form>
- </el-dialog>
- <!-- 施工信息dialog -->
- <el-dialog :visible.sync="nodeDetailVisible" title="施工信息" append-to-body customClass="appendElNodeDialog" width="70% !important">
- <!-- 节点表单 -->
- <el-form ref="nodeForm" :model="form.zEngineeringNodeBo.zEngineeringInfoBo" :rules="nodeRules" label-width="200px">
- <el-form-item label="施工时间" prop="constructTime">
- <el-date-picker
- v-model="form.zEngineeringNodeBo.zEngineeringInfoBo.constructTime"
- value-format="yyyy-MM-dd hh:mm:ss"
- type="datetime"
- style="width: 100%"
- placeholder="请选择施工时间">
- </el-date-picker>
- </el-form-item>
- <el-form-item label="施工人" prop="constructUser" v-if="form.id">
- <el-input v-model="form.zEngineeringNodeBo.zEngineeringInfoBo.constructUser" placeholder="请填写施工人" maxlength="20" disabled></el-input>
- </el-form-item>
- <el-row>
- <el-form-item label="照片" prop="zEngiineeringPhotoBoList" style="width: 100%;">
- <ObsImageUpload ref="obsImageUpload" :limit="9999" :fileType="['png', 'jpg', 'jpeg']" :value="form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList"
- @input="getUrl"></ObsImageUpload>
- </el-form-item>
- </el-row>
- <el-row v-for="(item, index) in form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo" :key="index">
- <el-col :span="7">
- <el-form-item
- :prop="'zEngineeringMaterialBo.' + index + '.materialQuality'"
- label-width="50px"
- label="材质" :rules="{required: true, message: '请输入材质', trigger: 'blur'}">
- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item
- :prop="'zEngineeringMaterialBo.' + index + '.specifications'"
- label-width="50px"
- label="规格" :rules="{required: true, message: '请输入规格', trigger: 'blur'}">
- <el-input v-model="item.specifications" placeholder="请输入规格" style="width: 100%"/>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item
- :prop="'zEngineeringMaterialBo.' + index + '.number'"
- label-width="50px"
- label="数量" :rules="{required: true, message: '请输入数量', trigger: 'change'}">
- <div class="block" style="display: inline-block; margin-right: 20px;">
- <el-input v-model="item.number" placeholder="请输入数量" style="width: 100%"/>
- </div>
- </el-form-item>
- </el-col>
- <el-col :span="3">
- <el-form-item style="margin-left: -120px;">
- <el-button v-if="form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo.length > 1" @click="removezEngineeringMaterialBo(index)">
- 删除
- </el-button>
- </el-form-item>
- </el-col>
- </el-row>
- <div style="width: 25%; float: right">
- <el-button @click="addzEngineeringMaterialBo">新增用料信息</el-button>
- <el-button :loading="buttonLoading" type="primary" @click="submitForm">提交</el-button>
- <el-button @click="nodeCancel">取 消</el-button>
- </div>
- </el-form>
- </el-dialog>
- <ConstructionDetails
- ref="ConstructionDetails"
- :currentCollapses="currentCollapses"
- />
- </div>
- </template>
- <script>
- import {
- addEngineeEngineeIndustry,
- DelEngineeEngineeIndustry,
- EditEngineeEngineeIndustry,
- getEngineeIndustryList,
- putEngineeEngineeIndustry,
- QueryEngineeIndustry
- } from '@/api/zdsz/engineeringIndustry'
- import EngineePipe from '@/components/EngineePipe'
- import { validPhoneMobile } from '@/api/rules'
- import ConstructionDetails from "@/components/ConstructionDetails/index.vue";
- import { getEnginMaterialQualityList } from '@/api/zdsz/enginee'
- import { getEnginSpecificationsList } from '@/api/zdsz/enginSpecifications'
- export default {
- name: "openrepair",
- dicts: ['pass_check', 'is_repair', 'industry_engin_type', 'self_closing_valve_type', 'visit_type', 'engin_classification','engineering_infrastructure'],
- components: {
- ConstructionDetails,
- EngineePipe
- },
- data() {
- var validatePicPass = (rule, value, callback) => {
- console.log('校验值', this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList)
- let p = new Promise((resolve, reject) => {
- if(this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList.length != 0){
- this.$message({
- message: '校验通过',
- type: 'success'
- });
- return true
- }else{
- this.$message({
- message: 'no pass',
- type: 'error'
- });
- return false
- }
- });
- return p;
- };
- return {
- // 按钮loading
- buttonLoading: false,
- // 遮罩层
- loading: true,
- // 选中数组
- ids: [],
- // 非单个禁用
- single: true,
- // 非多个禁用
- multiple: true,
- // 显示搜索条件
- showSearch: true,
- // 工程分类显示
- engineeType: true,
- // 总条数
- total: 0,
- currentNode:[],
- currentCollapses:[],
- // 市政工程|工业工程表格数据
- comprehensiveList: [],
- // 弹出层标题
- title: "",
- nodeList:[],
- // 是否显示弹出层
- open: false,
- // 查询参数
- queryParams: {
- enginName: '', // 工程名称
- enginClassification: '', // 工程分类
- zEngineeringNodeBo: {
- type: '',
- zEngineeringInfoBo: {}, //施工信息
- }
- },
- constructAccordingDrawingsOption: [ // 是否按图纸施工
- {
- value: '1',
- label: '是'
- },
- {
- value: '0',
- label: '否'
- }
- ],
- segmentedCompressionQualifiedOption: [ // 分段打压
- {
- value: '1',
- label: '是'
- },
- {
- value: '0',
- label: '否'
- }
- ],
- nodeDetailVisible: false, // 施工信息dialog
- // 表单参数
- form: {
- files:[], // 附件
- pics:[], // 附件返回
- type:'', // 用来区分工业工程、市政工程
- enginName:'', // 工程名称
- enginType:'', // 工程类型
- constructUnit:'', // 建筑单位
- projectHead:'', // 项目负责人
- sceneHead:'', // 现场负责人
- designUnit:'', // 设计单位
- designHead:'', // 设计负责人
- designPhone:'', // 设计联系电话
- supervisionUnit:'', // 监理单位
- supervisionHead:'', // 监理负责人
- supervisionPhone:'', // 监理联系电话
- enginClassification:'', // 工程分类
- zEngineeringNodeBo:{ // 工程节点
- type:'', // 节点类型
- zEngineeringInfoBo: { // 施工信息
- constructUser: '', // 施工人
- constructTime: '', // 施工时间
- zEngiineeringPhotoBoList: [], // 图片列表
- zEngineeringMaterialBo: [ // 用料对象
- {
- materialQuality: '', // 用料材质
- specifications: '', // 用料规格
- number: '' // 用料数量
- },
- ],
- },
- },
- },
- zEngineeringAttachmentsList:[], // 工程附件
- EngineepipeType: [], // 工程类型
- // 表单校验
- rules: {
- sceneHead: [
- {required: true, message: "现场负责人不能为空", trigger: 'blur'}
- ],
- enginName: [
- {required: true, message: "工程名称不能为空", trigger: 'blur'}
- ],
- enginClassification: [
- {required: true, message: "工程分类不能为空", trigger: 'blur'}
- ],
- supervisionUnit: [
- {required: true, message: "监理单位不能为空", trigger: 'blur'}
- ],
- enginType: [
- {required: true, message: "工程类型不能为空", trigger: 'blur'}
- ],
- supervisionPhone: [
- {required: true, message: "监理联系电话不能为空", trigger: 'blur'},
- {validator: validPhoneMobile, trigger: 'blur'}
- ],
- constructUnit: [
- {required: true, message: "建筑单位不能为空", trigger: 'blur'}
- ],
- projectHead: [
- {required: true, message: "项目负责人不能为空", trigger: 'blur'}
- ],
- designHead: [
- {required: true, message: "设计负责人不能为空", trigger: 'blur'}
- ],
- designUnit: [
- {required: true, message: "设计单位不能为空", trigger: 'blur'}
- ],
- designPhone: [
- {required: true, message: "联系方式不能为空", trigger: 'blur'},
- {validator: validPhoneMobile, trigger: 'blur'}
- ],
- supervisionHead: [
- {required: true, message: "监理负责人不能为空", trigger: 'blur'}
- ],
- type: [
- {required: false, message: "类型不能为空", trigger: "blur"}
- ],
- remark: [
- {required: false, message: "备注不能为空", trigger: "blur"}
- ],
- zEngineeringAttachmentsList: [
- {required: false, message: "附件不能为空", trigger: "blur"}
- ],
- },
- // 节点规则校验
- nodeRules: {
- // constructTime: [
- // {required: true, message: "施工时间不能为空", trigger: ['blur','change']}
- // ],
- zEngiineeringPhotoBoList: [
- {required: true, message: "图片不能为空", trigger: 'change', validator: validatePicPass}
- ],
- },
- currentType: null, // 附件组件类型 put修改 add新增
- };
- },
- created() {
- // 根据url获取type节点类型
- this.getType();
- if (this.form.type === '2') {
- this.engineeType = false
- }
- this.getList();
- },
- mounted() {
- // 手动渲染
- setInterval(() =>{
- this.$forceUpdate()
- },500)
- },
- methods: {
- addzEngineeringMaterialBo(){
- console.log(this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo)
- this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo.push({
- materialQuality: '', // 用料材质
- specifications: '', // 用料规格
- number: '' // 用料数量
- })
- },
- removezEngineeringMaterialBo(index){
- this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo.splice(index, 1)
- },
- // 根据url获取type节点类型
- getType() {
- const queryString = window.location.search;
- const params = new URLSearchParams(queryString);
- const type = params.get('type');
- if (type) {
- this.form.type = type;
- this.form.zEngineeringNodeBo.type = (type === '1' ? "工业工程" : "市政工程")
- }
- },
- // 新增顶管工程
- addNewPipe(data) {
- this.$refs.enginPipe.openDialog({
- id: data.id,
- type: this.form.zEngineeringNodeBo.type
- }, 'add')
- },
- // 历史查询
- viewSource(e){
- this.currentId = e.id
- this.$refs.ConstructionDetails.open(_,this.form.type)
- },
- viewNodeSource(e){
- // todo: 获取数据
- QueryEngineeIndustry({
- id:this.currentId
- }).then(res => {
- try {
- this.currentCollapses = res.data.zEngineeringNodeBoList[0].zEngineeringInfoBoList
- console.log('当前历史数据',this.currentCollapses)
- } catch (error) {
- this.currentCollapses = [];
- }
- console.log(this.currentCollapses)
- })
- },
- nodeCancel() {
- this.nodeDetailVisible = false
- },
- toNodeDetail() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- this.form.files = this.$refs.obsFileUpload.fileList
- this.nodeDetailVisible = true
- }
- })
- },
- getUrl(url) {
- this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.$refs.obsImageUpload.fileList ? this.$refs.obsImageUpload.fileList.map(e => e.url) : [];
- },
- /** 查询市政工程|工业工程列表 */
- getList() {
- this.loading = true;
- let enginType = this.form.zEngineeringNodeBo.type;
- // 获取材质 市政工程 1 - 工业工程 2
- getEnginMaterialQualityList({enginType}).then(res => {
- console.log(res);
- });
- // 获取材质规格
- getEnginSpecificationsList('材质ID').then(res => {
- console.log(res)
- })
- getEngineeIndustryList({
- type: this.form.type
- }).then(res => {
- this.comprehensiveList = res.rows;
- this.total = res.total;
- this.loading = false;
- });
- },
- // 取消按钮
- cancel() {
- this.open = false;
- this.reset();
- },
- // 表单重置
- reset() {
- for (let formKey in this.form) {
- this.form[formKey] = null
- }
- this.form.zEngineeringNodeBo={}
- this.form.zEngineeringNodeBo.zEngineeringInfoBo={}
- this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo=[]
- // this.resetForm("form");
- // for (let formKey in this.zEngineeringInfoBo) {
- // this.zEngineeringInfoBo[formKey] = null
- // }
- this.getType()
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 多选框选中数据
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id)
- this.single = selection.length !== 1
- this.multiple = !selection.length
- },
- /** 新增按钮操作 */
- handleAdd() {
- this.reset();
- this.title = (this.form.type === '1' ? "新增工业工程":"新增市政工程");
- this.currentType = 'add'
- this.open = true;
- },
- /** 修改按钮操作 */
- handleUpdate(row) {
- this.loading = true;
- this.reset();
- const id = row.id || this.ids
- putEngineeEngineeIndustry(id).then(response => {
- this.loading = false;
- this.form = response.data;
- this.form.zEngineeringNodeBo = response.data.zEngineeringNodeBoList[0]
- this.form.zEngineeringNodeBo.zEngineeringInfoBo = response.data.zEngineeringNodeBoList[0].zEngineeringInfoBoList[0]
- this.title = (this.form.type === '1' ? "修改工业工程":"修改市政工程");
- this.currentType = 'put'
- this.open = true;
- });
- },
- /** 提交按钮 */
- submitForm() {
- this.$refs["nodeForm"].validate(valid => {
- if (valid) {
- if (this.form.id == null) {
- console.log(this.form)
- // this.form.zEngineeringNodeBo = this.zEngineeringInfoBo
- // this.form.zEngineeringNodeBo.zEngineeringInfoBo = {}
- // this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.form.zEngineeringNodeBo.zEngiineeringPhotoBoList
- // this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = this.form.zEngineeringNodeBo.zEngineeringMaterialBo
- addEngineeEngineeIndustry(this.form).then(res => {
- this.$modal.msgSuccess("新增成功");
- this.open = false;
- this.nodeDetailVisible = false
- this.getList();
- })
- } else {
- // this.form.zEngineeringNodeBo = this.zEngineeringInfoBo
- // this.form.zEngineeringNodeBo.zEngineeringInfoBo = {}
- // this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.form.zEngineeringNodeBo.zEngiineeringPhotoBoList
- // this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = this.form.zEngineeringNodeBo.zEngineeringMaterialBo
- EditEngineeEngineeIndustry(this.form).then(res => {
- this.$modal.msgSuccess("修改成功");
- this.open = false;
- this.nodeDetailVisible = false
- this.getList();
- })
- }
- }
- });
- },
- /** 删除按钮操作 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('是否确认删除所选择的数据项?').then(() => {
- this.loading = true;
- return DelEngineeEngineeIndustry(ids);
- }).then(() => {
- this.loading = false;
- this.getList();
- this.$modal.msgSuccess("删除成功");
- }).catch(() => {
- }).finally(() => {
- this.loading = false;
- });
- },
- /** 导出按钮操作 */
- handleExport() {
- this.download('zdsz/engineeringIndustry/export', {
- ...this.queryParams
- }, `comprehensive_${new Date().getTime()}.xlsx`)
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- ::v-deep .appendElDialog {
- width: 70%;
- height: 80%;
- .el-dialog__body {
- height: 85%;
- }
- .el-form-item {
- margin-bottom: 22px;
- width: 44%;
- display: inline-block;
- }
- .el-form-item:nth-child(2n+2) {
- margin-left: 5%;
- }
- .el-form-item:not(:nth-child(1):nth-child(2)) {
- margin-top: 0.5%;
- }
- .remark_input {
- .el-textarea__inner {
- width: 238%;
- height: 190px;
- }
- }
- }
- ::v-deep .appendElNodeDialog {
- // width: 70%;
- height: 80%;
- .el-dialog__body {
- height: 85%;
- }
- .el-form-item {
- margin-bottom: 22px;
- width: 44%;
- display: inline-block;
- }
- .el-form-item:nth-child(2n+2) {
- margin-left: 5%;
- }
- .el-form-item:not(:nth-child(1):nth-child(2)) {
- margin-top: 0.5%;
- }
- }
- </style>
|