| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- <template>
- <div id="shuikutianbaoId">
- <el-dialog
- :title="currentObjectName+'督查填报'"
- :before-close="closeDialog"
- :visible.sync="dialogFormVisible"
- width='70%'
- >
- <el-container>
- <!-- <el-container> -->
- <el-main id="dxdcListMain" style="padding:5px 20px;">
- <!-- <el-button
- type="primary"
- style="margin-bottom: 10px;position: relative;margin-left: 90%;"
- @click="appearDialog()"
- >添加问题</el-button> -->
- <problem-dialog
- v-if="dialogShow"
- :objType="0"
- :villType="0"
- :objId="currentObjectId"
- :objName="currentObjectName"
- :problemMiddleType="'小水库'"
- :problemSmallType="problemSmallType"
- @closeDialog="closePDialog"
- :currentObjectRgstrId="currentObjectRgstrId"
- ></problem-dialog>
- <el-tabs v-model="currentViewId" type="card" @tab-click="handleClickTabs">
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="option in option"
- :key="option.value"
- >
- <component
- :is="option.value"
- :currentObjectEngScale="currentObjectEngScale"
- :currentObjectRgstrId="currentObjectRgstrId"
- :currentGroupId="currentGroupId"
- :currentAdcode="currentAdcode"
- :currentObjectName="currentObjectName"
- :currentResCode="currentResCode"
- :currentObjectId="currentObjectId"
- :gdX="gdX"
- :gdY="gdY"
- :ifView="ifView"
- :currentRsvrNm="currentRsvrNm"
- :szRuls="szRuls"
- :openType="openType"
- :showOrEdit="showOrEdit"
- :activedName="activedName"
- @cancelHandler="cancelHandler"
- @addShuiKuSuccess="addShuiKuSuccess"
- ></component>
- </el-tab-pane>
- </el-tabs>
- </el-main>
- <!-- </el-container> -->
- </el-container>
- <!-- <span slot="footer" class="dialog-footer" style="justify-content: flex-end;display: flex;margin-right: 20px;">
- <el-button @click="closeHandler">关 闭</el-button>
- <el-button type="primary" @click="submitHandler">提 交</el-button>
- </span>-->
- <!-- 添加/编辑人员弹窗 -->
- </el-dialog>
- </div>
- </template>
- <script>
- import request from "../../utils/gw_ajax_request.js";
- import Sztb_Aqglqk from "../duChaRenYuan/Sztb_Aqglqk.vue";
- import Sztb_RcglAndyh from "../duChaRenYuan/Sztb_RcglAndyh.vue";
- import Sztb_BaseInfo from "../duChaRenYuan/Sztb_BaseInfo.vue";
- import Sztb_Glzrtx from "../zonghexinxi/Sztb_Glzrtx.vue";
- import Sztb_Gcstqk from "../duChaRenYuan/Sztb_Gcstqk.vue";
- import Sztb_Aqztpj from "../duChaRenYuan/Sztb_Aqztpj.vue";
- import Sztb_Wtqd from "../duChaRenYuan/Sztb_Wtqd.vue";
- import problemDialog from "../duChaWenTi/problemDialog.vue";
- import {getrgstrIdObject} from "../../api/duChaTianBao.js";
- // 2020新水闸督查填报
- import Sztb_BasicSituation from "./shuizha/Sztb_basicSituation.vue";
- import Sztb_AqglqkNew from "./shuizha/Sztb_AqglqkNew.vue";
- import Sztb_RcglAndyhNew from "./shuizha/Sztb_RcglAndyhNew.vue";
- import Sztb_GlzrtxNew from "./shuizha/Sztb_GlzrtxNew.vue";
- import Sztb_GcstqkNew from "./shuizha/Sztb_GcstqkNew.vue";
- import pblmReCheck from "./shuizha/pblmReCheck.vue";
- import pblmConfirmShett from "../duChaDuiXiang/pblmConfirmShett"
- export default {
- components: {
- Sztb_Aqglqk: Sztb_Aqglqk,
- Sztb_RcglAndyh: Sztb_RcglAndyh,
- Sztb_BaseInfo: Sztb_BaseInfo,
- Sztb_Glzrtx: Sztb_Glzrtx,
- Sztb_Gcstqk: Sztb_Gcstqk,
- Sztb_Aqztpj: Sztb_Aqztpj,
- Sztb_Wtqd: Sztb_Wtqd,
- problemDialog: problemDialog,
- // 2020新水闸填报
- Sztb_BasicSituation,
- Sztb_AqglqkNew,
- Sztb_RcglAndyhNew,
- Sztb_GlzrtxNew,
- Sztb_GcstqkNew,
- pblmReCheck,
- pblmConfirmShett
- },
- props: [
- "rowData",
- "currentObjectRgstrId",
- "currentGroupId",
- "currentAdcode",
- "currentResCode",
- "currentObjectId",
- "currentObjectName",
- "currentObjectEngScale",
- "showOrEdit",
- "gdX", "gdY",
- "openType",
- "ifView",
- "currentRsvrNm"
- ],
- data() {
- return {
- option:[],
- options: [
- {
- value: "Sztb_BaseInfo",
- label: "基础信息纠错"
- },
- {
- value: "Sztb_Glzrtx",
- label: "管理责任体系建设和落实情况"
- },
- {
- value: "Sztb_Aqglqk",
- label: "安全管理情况"
- },
- {
- value: "Sztb_RcglAndyh",
- label: "日常管理和维修养护情况"
- },
- {
- value: "Sztb_Gcstqk",
- label: "工程实体情况"
- },
- {
- value: "Sztb_Wtqd",
- label: "问题清单"
- },
- // {
- // value: "Sztb_Aqztpj",
- // label: "工程安全整体评价"
- // }
- ],
- // 2020新水闸填报
- optionsNew: [
- {
- value: "Sztb_BaseInfo",
- label: "基础信息纠错"
- },
- {
- value: "Sztb_BasicSituation",
- label: "基本情况"
- },
- {
- value: "pblmReCheck",
- label: '问题整改复查情况'
- },
- // {
- // value: "Sztb_GlzrtxNew",
- // label: "管理责任体系"
- // },
- // {
- // value: "Sztb_AqglqkNew",
- // label: "安全管理情况"
- // },
- // {
- // value: "Sztb_RcglAndyhNew",
- // label: "日常管理与维护"
- // },
- // {
- // value: "Sztb_GcstqkNew",
- // label: "工程实体缺陷"
- // },
- {
- value: "Sztb_Wtqd",
- label: "问题清单"
- },
- {
- value: "pblmConfirmShett",
- label: '问题确认单'
- }
- ],
- options1: [
- {
- value: "Sztb_BaseInfo",
- label: "基础信息纠错"
- },
- {
- value: "Sztb_BasicSituation",
- label: "基本情况"
- }
- ],
- value: "",
- dialogShow: false,
- currentViewId: "基础信息纠错",
- dialogFormVisible: true,
- szRuls: [],
- activedName: "",
- tableName: 'BIS_INSP_WAGA_MRS_CI'
- };
- },
- created() {
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- },
- currentRlcode() {
- return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
- }
- },
- mounted() {
- if (this.currentRlcode.indexOf('63') == '0' || this.currentRlcode.indexOf('66') == '0') { //青海省
- this.option = this.options;
- }else{
- this.option = this.optionsNew;
- }
- },
- watch: {
- currentObjectEngScale(n, o) {
- this.currentObjectEngScale = n;
- }
- },
- methods: {
- getItemByType() {
- const obj = {
- // tname: "BIS_INSP_WAGA_MRS_CI"
- tname: this.tableName
- }
- request.post("/bis/insp/item/ques/info/findItemByType", obj).then(res => {
- console.log(res);
- this.szRuls = res.data;
- })
- },
- submitHandler() {
- var _self = this;
- getrgstrIdObject(this.rowData.code, this.rowData.objId).then(
- res => {
- if (res.data.baseStat == "0") {
- this.$message({
- message: "请填写重点环节落实情况!",
- type: "warning"
- });
- return;
- } else if (res.data.presStat == "0") {
- this.$message({
- message: "请填写责任人状态!",
- type: "warning"
- });
- return;
- } else if (res.data.resRunStat == "0") {
- this.$message({
- message: "请填写水库工程实体和运行管理情况!",
- type: "warning"
- });
- return;
- } else if (res.data.viewStat == "0") {
- this.$message({
- message: "走访用户状态!",
- type: "warning"
- });
- return;
- }
- this.$confirm("请确认所有信息填报完毕?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- let formObj = {
- rgstrId: this.currentObjectRgstrId,
- state: "2"
- };
- request.post("/dc/insp/rsvrRgstr/update", formObj).then(res => {
- if (res.success) {
- _self.$emit("addShuiKuSuccess");
- _self.$message.success("提交成功");
- } else {
- _self.$emit("cancelHandler");
- }
- });
- })
- .catch(() => {
- });
- },
- err => {
- }
- );
- },
- closeHandler() {
- this.dialogShow = false;
- this.$emit("addShuiKuSuccess");
- },
- appearDialog(type) {
- this.dialogShow = true;
- // this.problemSmallType = type
- },
- closePDialog() {
- this.dialogShow = false;
- },
- showDialog() {
- this.dialogFormVisible = true;
- },
- cancelHandler() {
- this.$emit("cancelHandler");
- },
- addShuiKuSuccess(val) {
- if(val=="1"){
- this.option = this.options1;
- }
- if(val=="0"){
- this.option = this.optionsNew;
- }
- this.$emit("addShuiKuSuccess");
- },
- closeDialog() {
- let _self = this;
- this.$confirm("确认退出吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- _self.$emit("cancelHandler");
- })
- .catch(() => {
- });
- },
- handleClickTabs(tab, event) {
- console.log(tab.label);
- this.activedName = tab.label;
- if (this.activedName === '管理责任体系') {
- this.tableName = 'BIS_INSP_WAGA_MRS_CI';
- } else if (this.activedName === '安全管理情况') {
- this.tableName = 'BIS_INSP_WAGA_SAFE_MANAGE';
- } else if (this.activedName === '日常管理与维护') {
- this.tableName = 'BIS_INSP_WAGA_DMAM_INFO';
- } else if (this.activedName === '工程实体缺陷') {
- this.tableName = 'BIS_INSP_WAGA_PROEN_INFO';
- }
- this.getItemByType()
- }
- }
- };
- </script>
- <style>
- #shuikutianbaoId .el-dialog {
- margin-top: 10vh;
- }
- </style>
|