cf18e25e9ef0fe9aa29ade289cc601dab0763536.svn-base 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div id="shuikutianbaoId">
  3. <el-dialog :title="currentObjectName+'督查填报'" width="60%" :before-close="closeDialog" :visible.sync="dialogFormVisible">
  4. <el-container>
  5. <el-main id="dxdcListMain" style="padding:5px 20px;">
  6. <el-tabs v-model="currentViewId" type="card" @tab-click="tabIndexChange">
  7. <el-tab-pane
  8. :label="option.label"
  9. :name="option.label"
  10. v-for="option in options"
  11. :key="option.value">
  12. <component
  13. :is="option.value"
  14. :currentObjectRgstrId="currentObjectRgstrId"
  15. :currentObjectName="currentObjectName"
  16. :currentResCode="currentResCode"
  17. :currentObjectId="currentObjectId"
  18. :activeLabel="activeLabel"
  19. @cancelHandler="cancelHandler"
  20. @addQiTaSuccess="addQiTaSuccess"
  21. ></component>
  22. </el-tab-pane>
  23. </el-tabs>
  24. </el-main>
  25. </el-container>
  26. </el-dialog>
  27. </div>
  28. </template>
  29. <script>
  30. import request from "../../utils/gw_ajax_request.js";
  31. import zongheducha from "../duChaRenYuan/zjQjgZongHeDuCha.vue"
  32. import problemList from './zjQjgProblemList.vue'
  33. // import problemDialog from '../duChaWenTi/problemDialog.vue'
  34. import {getrgstrIdObject} from "../../api/duChaTianBao.js";
  35. export default {
  36. components: {
  37. zongheducha:zongheducha,
  38. // problemDialog:problemDialog,
  39. problemList:problemList
  40. },
  41. props: ['rowData','currentObjectRgstrId','currentResCode','currentObjectId','currentObjectName'],
  42. data() {
  43. return {
  44. options: [
  45. {
  46. value: "zongheducha",
  47. label: "“强监管”综合督查"
  48. },
  49. {
  50. value: "problemList",
  51. label: '问题清单'
  52. }
  53. ],
  54. value: "",
  55. dialogShow:false,
  56. currentViewId: "“强监管”综合督查",
  57. dialogFormVisible:true,
  58. activeLabel: ''
  59. };
  60. },
  61. computed: {
  62. persId() {
  63. return localStorage.getItem("userid")
  64. ? localStorage.getItem("userid")
  65. : "1098101939614724096";
  66. }
  67. },
  68. mounted() {},
  69. watch: {},
  70. methods: {
  71. submitHandler(){
  72. var _self = this;
  73. getrgstrIdObject(this.rowData.code,this.rowData.objId).then(
  74. (res) =>{
  75. this.$confirm('请确认所有信息填报完毕?', '提示', {
  76. confirmButtonText: '确定',
  77. cancelButtonText: '取消',
  78. type: 'warning'
  79. }).then(() => {
  80. let formObj = {
  81. "rgstrId":this.currentObjectRgstrId,
  82. "state":"2"
  83. }
  84. request.post('/dc/insp/rsvrRgstr/update', formObj).then((res) => {
  85. if (res.success) {
  86. _self.$emit("addQiTaSuccess");
  87. _self.$message.success("提交成功");
  88. } else {
  89. _self.$emit('cancelHandler');
  90. }
  91. });
  92. }).catch(() => {
  93. });
  94. },(err) =>{
  95. });
  96. },
  97. closeHandler(){
  98. this.dialogShow = false
  99. this.$emit("addQiTaSuccess");
  100. },
  101. appearDialog(type){
  102. this.dialogShow = true
  103. // this.problemSmallType = type
  104. },
  105. closePDialog(){
  106. this.dialogShow = false
  107. },
  108. showDialog(){
  109. this.dialogFormVisible = true;
  110. },
  111. cancelHandler(){
  112. this.$emit('cancelHandler');
  113. },
  114. addQiTaSuccess(){
  115. this.$emit('addQiTaSuccess');
  116. },
  117. closeDialog(){
  118. this.$confirm('确认退出吗?', '提示', {
  119. confirmButtonText: '确定',
  120. cancelButtonText: '取消',
  121. type: 'warning'
  122. }).then(() => {
  123. this.$emit('cancelHandler');
  124. }).catch(() => {
  125. });
  126. },
  127. tabIndexChange(item){
  128. if(item.label == '问题清单'){
  129. this.activeLabel = item.label
  130. }else{
  131. this.activeLabel = ''
  132. }
  133. }
  134. }
  135. };
  136. </script>
  137. <style>
  138. #shuikutianbaoId .el-dialog{
  139. margin-top: 10vh;
  140. }
  141. </style>