123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967 |
- <!--
- *@description: 工程历史详情
- *@author: yh Fu
- *@date: 2024-1-8 10:04:23
- *@version: V1.0.5
- -->
- <template>
- <div style="width: 100%;height: 100%;">
- <el-dialog
- :visible.sync="dialogVisible"
- :title="titleName"
- width="60%"
- append-to-body
- custom-class="ConstructionDetailsDialog">
- <el-tabs type="card" v-model="activeNames" @tab-click="viewSource" class="projectTabs">
- <el-tab-pane
- :label="e.label"
- :name="e.value"
- v-for="(e,idx) in currentDicts"
- :key="idx"
- >
- <el-checkbox-group v-model="checkList" >
- <el-collapse
- class="rmOldPie"
- v-for="(e,idx) in currentCollapses"
- :key="idx"
- >
- <el-collapse-item :name="idx">
- <template slot="title">
- <div style="display: flex;width: 100%;height: 100%;">
- <!-- <div-->
- <!-- style="width: 15px;height: 15px;margin: auto 10px;border-radius: 73%;background-color: #a3d3ff;box-shadow: 1px 1px rgb(131 131 131 / 62%);">-->
- <!-- </div>-->
- <el-checkbox :label="e.id" @change="handleCheckedCitiesChange">
- <h2 style="margin-left: 1%;font-weight: 700;">{{ e.updateTime }}</h2>
- </el-checkbox>
- </div>
- </template>
- <!-- 人员信息 -->
- <div class="personInfo">
- <!-- <span>负责人:{{ e.headName }} </span>-->
- <!-- <span>负责人电话:{{-->
- <!-- e.headPhone === undefined || e.headPhone === null || e.headPhone === '' ? '无' : e.headPhone-->
- <!-- }}</span>-->
- <span>施工人:{{ e.constructUser }}</span>
- <span>施工人电话:{{
- e.constructPhone === undefined || e.constructPhone === null || e.constructPhone === '' ? '无' : e.constructPhone
- }}</span>
- </div>
- <hr>
- <!-- 用料明细 -->
- <div
- v-for="(i,index) in e.zEngineeringMaterialBo || [] "
- :key="index"
- >
- <el-form :model="nodeInfo" class="nodeForm materialForm">
- <el-form-item
- :prop="i.materialQuality"
- :class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
- :label="activeNames == '阀管' ? '灶具管厂家': '材质'"
- v-show="i.materialQuality != null"
- label-width="95px"
- >
- <el-select v-model="i.materialQuality" placeholder="请选择材质" style="width: 100%" @change="getEnginSpecificationsList(i, index,idx)" :disabled="status == 'read-only' ">
- <el-option
- v-for="e in (activeNames == '阀管' ?materialQualityList_zjg:materialQualityList)"
- :key="e.id"
- :label="e.name"
- :value="e.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- :prop="i.specifications"
- :class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
- label="规格"
- v-show="i.specifications != null"
- label-width="95px"
- >
- <el-select v-model="i.specifications" placeholder="请选择规格" style="width: 100%" :disabled="status == 'read-only' ">
- <!-- <el-option
- v-for="e in specificationsList"
- :key="e.id"
- :label="e.name"
- :value="e.id"
- ></el-option> -->
- <el-option
- v-for="e in corrosionLevelListAll.filter(e => e.materId == i.materialQuality)"
- :key="e.id"
- :label="e.name"
- :value="e.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- v-if="currentDicts.some(item=>item.label==='底腿')"
- :prop="i.remark + ''"
- :class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
- label="施工内容"
- v-show="currentDicts.some(item=>item.label==='底腿')"
- label-width="95px"
- >
- <div class="block" style="display: inline-block; margin-right: 20px;">
- <el-input v-model="i.remark" placeholder="请输入施工内容" style="width: 100%" maxlength="100" type="textarea" :disabled="status == 'read-only'"></el-input>
- </div>
- </el-form-item>
- <el-form-item
- v-if="currentDicts.some(item=>item.label==='底腿')"
- :prop="e.constructAddre + ''"
- :class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
- label="位置"
- v-show="currentDicts.some(item=>item.label==='底腿')"
- label-width="95px"
- >
- <div class="block" style="display: inline-block; margin-right: 20px;">
- <el-select v-model="e.constructAddre" style="width: 100%;" :disabled="status == 'read-only'">
- <el-option
- v-for="e in dict.type.construct_addre"
- :key="e.value"
- :label="e.label"
- :value="e.value"
- ></el-option>
- </el-select>
- </div>
- </el-form-item>
- <el-form-item
- v-if="currentDicts.some(item=>item.label==='底腿')"
- :prop="i.remark + ''"
- :class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
- label="第"
- v-show="i.remark != null"
- label-width="95px"
- >
- <div class="block" style="display: inline-block; margin-right: 20px;">
- <el-input v-model="i.remark" placeholder="请输入具体位置" style="width: 90%;" maxlength="255" type="number" :disabled="status == 'read-only'"/><span style="font-weight:bold;">根</span>
- </div>
- </el-form-item>
- <el-form-item
- v-if="!currentDicts.some(item=>item.label==='底腿')"
- :prop="i.number + ''"
- :class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
- label="数量"
- v-show="i.number != null"
- label-width="95px"
- >
- <div class="block" style="display: inline-block; margin-right: 20px;">
- <el-input v-model="i.number" placeholder="请输入数量" style="width: 100%" oninput="value=value.match(/\d+(\.\d{0,1})?/) ? value.match(/\d+(\.\d{0,1})?/)[0] : ''" max="999999999" :disabled="status == 'read-only'"> </el-input>
- </div>
- </el-form-item>
- <el-form-item
- :prop="i.remark + ''"
- :class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
- label="描述"
- v-show="i.remark != null&&!currentDicts.some(item=>item.label==='底腿')"
- >
- <div class="block" style="display: inline-block; margin-right: 20px;">
- <el-input v-model="i.remark" placeholder="请输入描述" style="width: 100%" maxlength="100" :disabled="status == 'read-only'"></el-input>
- </div>
- </el-form-item>
- <el-form-item
- :prop="i.corrosionLevel"
- label="腐蚀等级"
- v-show="i.corrosionLevel != null"
- label-width="95px"
- >
- <!-- :rules="{required: true, message: '请输入材质', trigger: 'blur'}"-->
- <!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
- <el-select v-model="i.corrosionLevel" placeholder="请选择腐蚀等级" style="width: 100%" :disabled="status == 'read-only' ">
- <el-option
- v-for="e in materialQualityList"
- :key="e.id"
- :label="e.name"
- :value="e.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- :prop="i.visitType"
- label="上门类型"
- v-show="i.visitType != null"
- label-width="95px"
- >
- <!-- :rules="{required: true, message: '请输入材质', trigger: 'blur'}"-->
- <!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
- <el-select v-model="i.visitType" placeholder="请选择上门类型" style="width: 100%" :disabled="status == 'read-only' ">
- <el-option
- v-for="e in dict.type.visit_type"
- :key="e.value"
- :label="e.label"
- :value="e.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- :prop="i.selfClosingValveType"
- label="自闭阀类型"
- v-show="i.selfClosingValveType != null"
- label-width="95px"
- >
- <!-- :rules="{required: true, message: '请输入材质', trigger: 'blur'}"-->
- <!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
- <el-select v-model="i.selfClosingValveType" placeholder="请选择自闭阀类型" style="width: 100%" :disabled="status == 'read-only' ">
- <el-option
- v-for="e in materialQualityList_zbf"
- :key="e.id"
- :label="e.name"
- :value="e.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- :prop="i.brand"
- label="品牌"
- v-show="i.brand != null"
- label-width="95px"
- >
- <!-- :rules="{required: true, message: '请输入材质', trigger: 'blur'}"-->
- <!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
- <el-select v-model="i.brand" placeholder="请选择品牌" style="width: 100%" :disabled="status == 'read-only' ">
- <el-option
- v-for="e in materialQualityList"
- :key="e.id"
- :label="e.name"
- :value="e.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <!-- <el-input size="mini" v-if="i.brand" style="width: 80%" v-model="i.brand" placeholder="请输入品牌">
- <template slot="prepend">品牌</template>
- </el-input>
- <el-input v-if="i.visitType" size="mini" v-model="i.visitType" placeholder="请输入品牌">
- <template slot="prepend">上门类型</template>
- </el-input>
- <el-input size="mini" v-if="i.corrosionLevel" v-model="i.corrosionLevel" placeholder="请输入品牌">
- <template slot="prepend">腐蚀等级</template>
- </el-input>
- <el-input size="mini" v-if="i.selfClosingValveType" v-model="i.selfClosingValveType"
- placeholder="请输入品牌">
- <template slot="prepend">自闭阀类型</template>
- </el-input> -->
- </div>
- <!-- <el-form-item label="照片" prop="zEngiineeringPhotoBoList" class="obsImage"> -->
- <div style="display: flex;width: 100%;height: 100%;" v-if="!(currentDicts.some(item=>item.label==='底腿'))&&!(node==='下沟')&&!(node=='回填')">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">图片</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getUrl(arguments,idx)"
- :value="e.zEngiineeringPhotoBoList"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="node==='下沟'">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">管上皮深度测量照片</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getductalEpitheliumUrl(arguments,idx)"
- :value="e.ductalEpithelium"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="node==='下沟'">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">管沟远景照片</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="gettrenchProspectUrl(arguments,idx)"
- :value="e.trenchProspect"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="node==='下沟'">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">视频</h3>
- <ObsVideoUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['mp4']"
- @input="getVideoUrl(arguments,idx)"
- :value="e.video"
- :disabled="status == 'read-only' "
- ></ObsVideoUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="node==='下沟'">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">管道施工记录</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getconstructionRecordsUrl(arguments,idx)"
- :value="e.constructionRecords"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="node==='回填'">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">石粉回填照片</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getstonePowderUrl(arguments,idx)"
- :value="e.stonePowder"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="node==='回填'">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">警示带铺设</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getwarningtTapeUrl(arguments,idx)"
- :value="e.warningtTape"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="node==='回填'">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">回填后</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getphotosAfterUrl(arguments,idx)"
- :value="e.photosAfter"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="currentDicts.some(item=>item.label==='底腿')">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 30px;">沟上部分</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getonTheDitchUrl(arguments,idx)"
- :value="e.onTheDitch"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="currentDicts.some(item=>item.label==='底腿')">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">开挖前</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getbeforeBottomUrl(arguments,idx)"
- :value="e.beforeBottom"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="currentDicts.some(item=>item.label==='底腿')">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">回填</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getlegBackfillingUrl(arguments,idx)"
- :value="e.legBackfilling"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <div style="display: flex;width: 100%;height: 100%;" v-if="currentDicts.some(item=>item.label==='底腿')">
- <h3 style="width: 95px;font-weight: 600;text-align: center;text-indent: 41px;">下沟</h3>
- <ObsImageUpload
- :class=" status == 'read-only' ? 'obsImageUploads' : '' "
- ref="obsImageUpload"
- :limit="11"
- :fileType="['png', 'jpg', 'jpeg']"
- @input="getinferiorSulcusUrl(arguments,idx)"
- :value="e.inferiorSulcus"
- :disabled="status == 'read-only' "
- ></ObsImageUpload>
- </div>
- <!-- </el-form-item> -->
- <div style="display: flex; justify-content: flex-end; width: 100%;height: 100%;">
- <el-button plain type="danger" @click=" handleDelete(e)" v-hasPermi="['zdsz:engineeringCivilNode:remove']" style="width: 94px;">删除</el-button>
- <!-- <hr>-->
- </div>
- </el-collapse-item>
- </el-collapse>
- </el-checkbox-group>
- </el-tab-pane>
- <el-button class="check" plain type="danger" @click="checkWorking" v-show="currentStatus == 'check' && isChecking " style="width: 80px;" :disabled="currentCollapses.length == 0">审核</el-button>
- <el-button class="check" plain type="danger" @click="updateNodeOption" style="width: 94px;cursor: pointer;" v-if="currentStatus != 'check' && status != 'read-only' ">修改</el-button>
- </el-tabs>
- </el-dialog>
- <!-- 审核 -->
- <el-dialog
- title="审核"
- :visible.sync="checkingVisible"
- :title="titleName"
- width="30%"
- class="checkingDialog"
- :before-close="handleChecking">
- <el-form :model="checkingInfo" ref="checking" :rules="checkingRule" class="nodeForm">
- <el-form-item
- label-width="85px"
- label="审核状态"
- prop="reviewStatus"
- >
- <el-select v-model="checkingInfo.reviewStatus" placeholder="请选择审核状态" style="width: 100%" label="审核状态" @change="validateCHanged">
- <el-option
- v-for="e in reviewStatusList"
- :key="e.label"
- :label="e.label"
- :value="e.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label-width="85px"
- label="审核内容"
- prop="reviewContent"
- >
- <div class="block" style="display: inline-block; margin-right: 20px;">
- <el-input
- v-model="checkingInfo.reviewContent"
- placeholder="请输入审核内容"
- type="textarea"
- style="width: 97%"/>
- </div>
- </el-form-item>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleChecking">取 消</el-button>
- <el-button type="primary" @click=checkingSubmit>确 定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- getEnginMaterialQualityList, // 材质
- getEnginSpecificationsList, // 规格
- getDictType, deleteinfoById, // 腐蚀程度
- } from '@/api/zdsz/enginee'
- import ObsVideoUpload from "@/components/ObsVideoUpload/index.vue";
- import {delEngineeringCivil} from "@/api/zdsz/engineeringCivil";
- export default {
- name: 'ConstructionDetails',
- dicts:[
- 'visit_type',
- 'self_closing_valve_type',
- 'brand',
- 'construct_addre'
- ],
- components:{ObsVideoUpload},
- props: ['currentCollapses','nodeDetailType','enginType','status','zEngineeringNodeBo'],
- data() {
- return {
- enginSort:'',
- checkList:[],
- enginNode:'',
- currentDicts: [], // 当前类型工程节点项
- dialogVisible: false,
- activeNames: '',
- titleName: '',
- reviewStatusList:[
- {
- value:'1',
- label:'通过'
- },
- {
- value:'0',
- label:'不通过'
- }
- ],
- nodesource:'',// 审核状态option
- materialQualityList_zbf:[], // 自闭阀option
- materialQualityList_zjg:[], // 灶具管option
- materialQualityList:[], // 材质
- specificationsList:[], // 规格
- materialComponList:[],
- enginType:null,
- enginClassification:null,
- nodeInfo:{
- backfillTime:'', // 回填时间
- constructTime:'',
- constructAccordingDrawings:'',
- segmentedCompressionQualified:'',
- zEngiineeringPhotoBoList:[], // 照片集合
- zEngineeringMaterialBo:[], // 用料集合
- remark:'',
- constructAddre:''
- },
- checkingInfo:{
- reviewStatus:'', // 审核状态
- reviewContent:'', // 审核内容
- engInfoId:'', // 节点Id
- createTime:'', // 工程创建时间
- },
- currentStatus:null,
- checkingVisible:null,
- isChecking:true,
- currentEnginId:null,
- reviewStatus:null,
- corrosionLevelListAll:[],
- infoIdList:[],
- delinfoidList:[],
- checkingRule:{
- reviewStatus: [
- {required: true, message: "审核状态不能为空", trigger: "blur"}
- ],
- reviewContent: [
- {required: true, message: "审核内容不能为空", trigger: "change"}
- ],
- },node:null
- }
- },
- created(){
- // 获取材质
- getEnginMaterialQualityList({enginType:this.enginType,enginStep:this.activeNames}).then(res => {
- console.log('材质',res)
- this.materialQualityList = res.data
- })
- getEnginSpecificationsList().then(res => {
- console.log('规格',res.data)
- this.corrosionLevelListAll = res.data
- })
- },
- mounted() {
- },
- computed:{
- },
- watch: {
- // 此处监听variable变量,当期有变化时执行
- currentDicts(item1, item2) {
- // item1为新值,item2为旧值
- console.log('item1为新值,item2为旧值', item1[0].value)
- this.activeNames = item1[0].value
- this.$parent.viewNodeSource(item1[0].value)
- },
- currentCollapses(){
- try {
- this.currentCollapses[0].zEngineeringReviewBo.reviewStatus != 1 ? this.isChecking = true : false
- } catch (error) {
- this.isChecking = true
- }
- console.log('isChecking',this.isChecking)
- let materialQuality = []
- try {
- materialQuality = this.currentCollapses[0].zEngineeringMaterialBo[0].materialQuality
- } catch (error) {
- materialQuality = []
- }
- try {
- this.reviewStatus = this.currentCollapses[0].zEngineeringReviewBo.reviewStatus != '1' ? true : false
- } catch (error) {
- this.reviewStatus = true
- }
- if(materialQuality){
- getEnginSpecificationsList({materId:materialQuality}).then(res => {
- console.log('规格',res.data)
- this.specificationsList = res.data
- })
- }
- }
- },
- methods: {
- handleCheckedCitiesChange(e)
- {
- this.delinfoidList=this.currentCollapses.map(item=>item.id).filter(item=>this.checkList.indexOf(item)==-1)
- },
- validateCHanged(e){
- this.reviewStatusList[e].label == '通过' ? this.checkingRule.reviewContent[0].required = true : this.checkingRule.reviewContent[0].required = false
- },
- handleChecking(){
- this.checkingVisible = false
- this.checkingInfo = {
- reviewStatus:'', // 审核状态
- reviewContent:'', // 审核内容
- engInfoId:'', // 节点Id
- createTime:'', // 工程创建时间
- },
- this.$refs.checking.resetFields()
- },
- getSpecificationsList(id){
- getEnginSpecificationsList({materId:id}).then(res => {
- console.log('________a',res.data)
- return res.data
- })
- },
- // 保存节点Id
- setEngineId(e){
- this.currentEnginId = e
- },
- // 提交审核
- checkingSubmit(){
- this.$confirm('此操作将删除其他施工信息, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.shenhe()
- }).catch(() => {
- // this.$message({
- // type: 'info',
- // message: '已取消删除'
- // });
- });
- },
- shenhe()
- {
- this.$refs.checking.validate(valid => {
- if(valid){
- try {
- this.checkingInfo.engInfoId = this.currentEnginId
- this.checkingInfo.delInfoIdList=this.delinfoidList
- this.$emit('checkWorking',this.checkingInfo)
- } catch (error) {
- this.checkingInfo.engInfoId = null
- }
- // this.dialogVisible = false
- this.checkingVisible = false
- this.checkingInfo = {
- reviewStatus:'', // 审核状态
- reviewContent:'', // 审核内容
- engInfoId:'', // 节点Id
- createTime:'', // 工程创建时间
- }
- } else {
- this.$message({
- message: '请完善信息',
- type: 'error'
- });
- throw 'valid Failed'
- }
- })
- },
- // 查看单节点历史
- viewSource(e) {
- console.log('节点',e)
- this.node=e.name
- this.nodesource=e
- let data = {enginType:this.enginType}
- data.enginSort = this.enginSort
- data.enginStep = this.node
- data.enginNode = this.enginClassification
- if(this.node == '阀管'){
- data.nameType = "自闭阀厂家";
- getEnginMaterialQualityList(data).then(res => {
- this.materialQualityList_zbf = res.data
- })
- data.nameType = "灶具管厂家";
- getEnginMaterialQualityList(data).then(res => {
- this.materialQualityList_zjg = res.data
- })
- }
- getEnginMaterialQualityList(data).then(res => {
- this.materialQualityList = res.data
- })
- this.$parent.viewNodeSource(e.name)
- },
- // 单项审核
- checkWorking() {
- if (this.checkList.length==0)
- {
- this.$message.warning("请选择需要审核通过的施工信息")
- return
- }
- if(this.currentStatus == 'check'){
- this.checkingVisible = true
- }
- },
- updateNodeOption(){
- console.log(this.activeNames)
- console.log('最新面板',this.currentCollapses)
- this.$emit('updateNodeOption',this.currentCollapses)
- },
- deleteById(e)
- {
- console.log(e)
- deleteinfoById(e).then(res=>{
- this.viewSource(this.nodesource)
- })
- },
- handleDelete(row) {
- this.$modal.confirm('是否确认删除所选数据项?').then(() => {
- this.loading = true;
- return this.deleteById(row)
- }).then(() => {
- this.loading = false;
- this.getList();
- this.$modal.msgSuccess("删除成功");
- }).catch(() => {
- }).finally(() => {
- this.loading = false;
- });
- },
- /**
- * 查看历史
- * @param dicts 节点集合
- * @param type 字典type
- * @param currentStatus 审核状态
- * @param kind 工程类型(基建工程用)
- * @param title 标题
- * @param enginClassification 工程类型(民用工程用)
- * @param enginSort 工程分类
- * @param enginType 工程大类名称
- */
- open(dicts, type = null,currentStatus = null,kind = null,title= null,enginClassification,enginSort,enginType) {
- // if (kind=='民用'||kind=='基建'){
- this.enginType=enginType
- this.enginSort=enginSort
- this.enginClassification=enginClassification
- let data = {enginType:enginType}
- data.enginSort = enginSort
- data.enginNode = enginClassification
- data.enginStep = Array.isArray(dicts) ? dicts[0].value: null;
- getEnginMaterialQualityList(data).then(res => {
- this.materialQualityList = res.data
- })
- if(this.node == '阀管'){
- data.nameType = "自闭阀厂家";
- getEnginMaterialQualityList(data).then(res => {
- this.materialQualityList_zbf = res.data
- })
- data.nameType = "灶具管厂家";
- getEnginMaterialQualityList(data).then(res => {
- this.materialQualityList_zjg = res.data
- })
- }
- // }
- this.currentStatus = currentStatus
- this.titleName = title
- this.checkingVisible = false
- console.log(this.reviewStatus,this.currentStatus,this.isChecking)
- if (type == '1' || type == '2') {
- // 工业 市政
- this.$parent.viewNodeSource()
- this.currentDicts = [
- {
- value: "历史数据",
- label: "历史数据"
- }
- ]
- } else if (type === '危险作业工程') {
- this.$parent.viewNodeSource()
- this.currentDicts = [
- {
- value: "历史数据",
- label: "历史数据"
- }
- ]
- } else {
- console.log(dicts)
- this.dialogVisible = true
- if (type=='check'&&kind=='基建'){
- dicts=dicts.filter(item=>['水电施工','防水'].includes(item.value))
- }
- this.currentDicts = dicts
- }
- //this.currentDicts = dicts
- console.log("this.currentDicts",this.currentDicts)
- this.dialogVisible = true
- this.$forceUpdate()
- },
- // 获取材质规格
- getEnginSpecificationsList(e,idx,parentIndex){
- // 重置规格
- this.currentCollapses[parentIndex].zEngineeringMaterialBo[idx].specifications = ''
- getEnginSpecificationsList({materId:e.materialQuality}).then(res => {
- console.log('规格',res.data)
- this.specificationsList = res.data
- })
- },
- getUrl(_,idx) {
- this.currentCollapses[idx].zEngiineeringPhotoBoList = [...arguments][0][0].map(e=>e.url) || [];
- },
- getductalEpitheliumUrl(_,idx) {
- this.currentCollapses[idx].ductalEpithelium = [...arguments][0][0].map(e=>e.url) || [];
- },
- gettrenchProspectUrl(_,idx) {
- this.currentCollapses[idx].trenchProspect = [...arguments][0][0].map(e=>e.url) || [];
- },
- getstonePowderUrl(_,idx) {
- this.currentCollapses[idx].stonePowder = [...arguments][0][0].map(e=>e.url) || [];
- },
- getwarningtTapeUrl(_,idx) {
- this.currentCollapses[idx].warningtTape = [...arguments][0][0].map(e=>e.url) || [];
- },
- getbeforeBottomUrl(_,idx) {
- this.currentCollapses[idx].beforeBottom = [...arguments][0][0].map(e=>e.url) || [];
- },
- getlegBackfillingUrl(_,idx) {
- this.currentCollapses[idx].legBackfilling = [...arguments][0][0].map(e=>e.url) || [];
- },
- getinferiorSulcusUrl(_,idx) {
- this.currentCollapses[idx].inferiorSulcus = [...arguments][0][0].map(e=>e.url) || [];
- },
- getphotosAfterUrl(_,idx) {
- this.currentCollapses[idx].photosAfter = [...arguments][0][0].map(e=>e.url) || [];
- },
- getVideoUrl(_,idx) {
- this.currentCollapses[idx].video = [...arguments][0][0].map(e=>e.url) || [];
- console.log(this.currentCollapses[idx].video)
- },
- getconstructionRecordsUrl(_,idx)
- {
- this.currentCollapses[idx].constructionRecords = [...arguments][0][0].map(e=>e.url) || [];
- console.log(this.currentCollapses[idx].constructionRecords)
- },
- getonTheDitchUrl(_,idx)
- {
- this.currentCollapses[idx].onTheDitch = [...arguments][0][0].map(e=>e.url) || [];
- console.log(this.currentCollapses[idx].onTheDitch)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- ::v-deep .nodeForm{
- .el-form-item__content{
- display: flex;
- }
- }
- ::v-deep .materialForm{
- display: flex !important;
- flex-wrap: wrap;
- .el-form-item{
- width: 320px;
- }
- }
- ::v-deep .obsImageUpload{
- .el-upload--picture-card{
- display: block !important;
- }
- }
- ::v-deep .obsImageUpload >div{
- display: flex;
- }
- ::v-deep .el-dialog {
- height: 85%;
- .el-dialog__body {
- overflow: hidden;
- height: 91%;
- }
- }
- ::v-deep .el-upload-notShow{
- .el-upload--picture-card {
- display: none;
- }
- }
- ::v-deep .labelWidth{
- .el-form-item__label{
- width: 100px;
- }
- }
- ::v-deep .obsImageUploads{
- .el-upload--picture-card{
- display: none;
- }
- }
- .ConstructionDetailsDialog {
- position: absolute;
- .projectTabs {
- height: 100%;
- overflow: hidden;
- overflow-y: scroll;
- margin-top: 4%;
- ::v-deep .el-tabs__content {
- margin-top: 1%;
- }
- ::v-deep .el-tabs__nav {
- border: none;
- overflow: hidden;
- overflow-x: scroll;
- }
- ::v-deep .el-tabs__item {
- // width: 47%;
- border: 1px solid #a3d3ff;
- border-radius: 5px;
- }
- ::v-deep .el-tabs__item.is-active {
- background-color: #e8f4ff;
- color: #1890ff;
- }
- ::v-deep .el-tabs__header {
- position: fixed;
- width: 53%;
- border: none;
- top: 13%;
- }
- ::v-deep .el-collapse-item__wrap {
- padding: 0 4%;
- }
- .check {
- position: fixed;
- right: 22.1%;
- top: 13.1%;
- height: 4.6%;
- //background-color: #CC9900;
- //color: #fff;
- }
- }
- .projectTabs::-webkit-scrollbar {
- display: none;
- }
- ::v-deep .rmOldPie {
- .el-collapse-item {
- border: none;
- }
- }
- }
- .personInfo >span:not(:nth-child(1)){
- margin-left: 50px;
- }
- ::v-deep .checkingDialog{
- height: 50%;
- margin-top: 6%;
- .el-dialog__body{
- height: 72%;
- }
- .el-textarea__inner{
- width: 246%;
- height: 140px;
- }
- }
- </style>
|