| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <template>
- <div id="yigonglitianbaoId">
- <el-dialog :title="currentObjectName+'督查填报'" width="60%" :before-close="closeDialog"
- :visible.sync="dialogFormVisible">
- <el-container>
- <el-main id="dxdcListMain" style="padding:5px 20px;">
- <el-tabs v-model="currentViewId" type="card" @tab-click="tabIndexChange">
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="option in options"
- :key="option.value">
- <component
- v-if="currentViewId == option.label"
- :is="option.value"
- :currentObjectRgstrId="currentObjectRgstrId"
- :currentObjectName="currentObjectName"
- :currentResCode="currentResCode"
- :currentObjectId="currentObjectId"
- :activeLabel="activeLabel"
- :rowData="rowData"
- :name="option.label"
- :openType="openType"
- @cancelHandler="cancelHandler"
- @addxinRenYinSuccess="addyiGongLiSuccess"
- ></component>
- </el-tab-pane>
- </el-tabs>
- </el-main>
- </el-container>
- </el-dialog>
- </div>
- </template>
- <script>
- import request from "@util/gw_ajax_request.js";
- import {getrgstrIdObject} from "@api/duChaTianBao.js";
- import jichuxinxi from "./jichuxinxi.vue";
- import reviewQualification from "./reviewQualification.vue";
- import scdb from "./scdb.vue";
- import fvtcYtgc from "./fvtcYtgc.vue";
- import fvtcHnt from "./fvtcHnt.vue";
- import problemList from './problemList.vue';
- // import problemDialog from './problemDialog.vue';
- import signature from './signature.vue';
- export default {
- components: {
- jichuxinxi,
- reviewQualification,
- scdb,
- fvtcYtgc,
- fvtcHnt,
- signature,
- problemList
- },
- props: ['rowData', 'currentObjectRgstrId', 'currentResCode', 'currentObjectId', 'currentObjectName','openType'],
- data() {
- return {
- options: [
- {
- value: "jichuxinxi",
- label: '基础信息'
- },
- {
- value: "reviewQualification",
- label: '资质复核'
- },
- {
- value: "scdb",
- label: '检测行为抽查'
- },
- {
- value: "fvtcYtgc",
- label: '检测能力岩土工程'
- },
- {
- value: "fvtcHnt",
- label: '检测能力混凝土'
- },
- {
- value: "signature",
- label: '签字确认'
- },
- {
- value: "problemList",
- label: '问题清单'
- }
- ],
- value: "",
- dialogShow: false,
- currentViewId: "基础信息",
- dialogFormVisible: true,
- activeLabel: ''
- };
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- }
- },
- mounted() {
- },
- watch: {},
- methods: {
- submitHandler() {
- var _self = this;
- getrgstrIdObject(this.rowData.code, this.rowData.objId).then(
- (res) => {
- 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("addyiGongLiSuccess");
- _self.$message.success("提交成功");
- } else {
- _self.$emit('cancelHandler');
- }
- });
- }).catch(() => {
- });
- }, (err) => {
- });
- },
- closeHandler() {
- this.dialogShow = false
- this.$emit("addyiGongLiSuccess");
- },
- appearDialog(type) {
- this.dialogShow = true
- // this.problemSmallType = type
- },
- closePDialog() {
- this.dialogShow = false
- },
- showDialog() {
- this.dialogFormVisible = true;
- },
- cancelHandler() {
- this.$emit('cancelHandler');
- },
- addyiGongLiSuccess() {
- this.$emit('addyiGongLiSuccess');
- },
- closeDialog() {
- this.$confirm('确认退出吗?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.$emit('cancelHandler');
- }).catch(() => {
- });
- },
- tabIndexChange(item) {
- },
- addyiGongLiSuccess() {
- this.$emit('addyiGongLiSuccess');
- }
- }
- };
- </script>
- <style>
- #yigonglitianbaoId .el-dialog {
- margin-top: 10vh;
- }
- </style>
|