fc29cb72df82b7580d6df4b54b3858477eb67869.svn-base 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <div id="shuikutianbaoId">
  3. <el-dialog :title="currentObjectName+'督查填报'" width="60%" :before-close="closeDialog"
  4. :visible.sync="dialogFormVisible">
  5. <el-container>
  6. <el-main id="dxdcListMain" style="padding:5px 20px;">
  7. <el-tabs v-model="currentViewId" type="card" @tab-click="tabIndexChange">
  8. <el-tab-pane
  9. :label="option.label"
  10. :name="option.label"
  11. v-for="option in options"
  12. :key="option.value">
  13. <component
  14. :is="option.value"
  15. :currentObjectRgstrId="currentObjectRgstrId"
  16. :currentObjectName="currentObjectName"
  17. :currentResCode="currentResCode"
  18. :currentObjectId="currentObjectId"
  19. :activeLabel="activeLabel"
  20. :pType="pType"
  21. :openType="openType"
  22. :labelList="signatureLabelList"
  23. @cancelHandler="cancelHandler"
  24. @addShuiKuSuccess="addShuiKuSuccess"
  25. ></component>
  26. </el-tab-pane>
  27. </el-tabs>
  28. </el-main>
  29. </el-container>
  30. </el-dialog>
  31. </div>
  32. </template>
  33. <script>
  34. import request from "@util/gw_ajax_request.js";
  35. import {getrgstrIdObject, getRsByRgstrId} from "@api/duChaTianBao.js";
  36. import jichuxinxi from "./slzjjdjc/jichuxinxi.vue"
  37. import signature from "./slzjjdjc/signature.vue"
  38. import fundChecState from "./slzjjdjc/growOutState.vue"
  39. import fundFinaState from "./slzjjdjc/growWithState.vue"
  40. import fundUseState from "./slzjjdjc/growDrouState.vue"
  41. import problemList from "./slzjjdjcProblemList"
  42. export default {
  43. components: {
  44. jichuxinxi:jichuxinxi,
  45. signature:signature,
  46. fundChecState:fundChecState,
  47. fundFinaState:fundFinaState,
  48. fundUseState:fundUseState,
  49. problemList:problemList
  50. },
  51. props: ['rowData', 'currentObjectRgstrId', 'currentResCode', 'currentObjectId', 'currentObjectName', 'pType','openType'],
  52. data() {
  53. return {
  54. options: [
  55. {
  56. value: "jichuxinxi",
  57. label: "基础信息"
  58. },
  59. // {
  60. // value: "signature",
  61. // label: '签字确认'
  62. // },
  63. {
  64. value: "fundUseState",
  65. label: '资金使用与管理'
  66. },
  67. {
  68. value: "fundFinaState",
  69. label: '财务管理'
  70. },
  71. {
  72. value: "fundChecState",
  73. label: '会计核算'
  74. },
  75. {
  76. value: "problemList",
  77. label: '问题清单'
  78. }
  79. ],
  80. value: "",
  81. dialogShow: false,
  82. currentViewId: "基础信息",
  83. dialogFormVisible: true,
  84. activeLabel: '',
  85. signatureLabelList: ['督查人员','被检查人员']
  86. };
  87. },
  88. computed: {
  89. persId() {
  90. return localStorage.getItem("userid")
  91. ? localStorage.getItem("userid")
  92. : "1098101939614724096";
  93. },
  94. currentRlcode() {
  95. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  96. }
  97. },
  98. mounted() {
  99. },
  100. watch: {},
  101. methods: {
  102. submitHandler() {
  103. var _self = this;
  104. getRsByRgstrId(this.currentObjectRgstrId, this.pType).then(
  105. (res) => {
  106. if (res.data.baseStat == '0') {
  107. this.$message({
  108. message: '请填写重点环节落实情况!',
  109. type: 'warning'
  110. });
  111. return
  112. } else if (res.data.presStat == '0') {
  113. this.$message({
  114. message: '请填写责任人状态!',
  115. type: 'warning'
  116. });
  117. return
  118. } else if (res.data.resRunStat == '0') {
  119. this.$message({
  120. message: '请填写水库工程实体和运行管理情况!',
  121. type: 'warning'
  122. });
  123. return
  124. } else if (res.data.viewStat == '0') {
  125. this.$message({
  126. message: '走访用户状态!',
  127. type: 'warning'
  128. });
  129. return
  130. }
  131. this.$confirm('请确认所有信息填报完毕?', '提示', {
  132. confirmButtonText: '确定',
  133. cancelButtonText: '取消',
  134. type: 'warning'
  135. }).then(() => {
  136. let formObj = {
  137. "rgstrId": this.currentObjectRgstrId,
  138. "state": "2"
  139. }
  140. let url = '/dc/insp/rsvrRgstr/update';
  141. if(this.pType==22){
  142. url = '/bis/insp/rsml/rgstr';
  143. }
  144. request.post(url, formObj).then((res) => {
  145. if (res.success) {
  146. _self.$emit("addShuiKuSuccess");
  147. _self.$message.success("提交成功");
  148. } else {
  149. _self.$emit('cancelHandler');
  150. }
  151. });
  152. }).catch(() => {
  153. });
  154. }, (err) => {
  155. });
  156. },
  157. closeHandler() {
  158. this.dialogShow = false
  159. this.$emit("addShuiKuSuccess");
  160. },
  161. appearDialog(type) {
  162. this.dialogShow = true
  163. // this.problemSmallType = type
  164. },
  165. closePDialog() {
  166. this.dialogShow = false
  167. },
  168. showDialog() {
  169. this.dialogFormVisible = true;
  170. },
  171. cancelHandler() {
  172. this.$emit('cancelHandler');
  173. },
  174. addShuiKuSuccess() {
  175. this.$emit('addShuiKuSuccess');
  176. },
  177. closeDialog() {
  178. this.$confirm('确认退出吗?', '提示', {
  179. confirmButtonText: '确定',
  180. cancelButtonText: '取消',
  181. type: 'warning'
  182. }).then(() => {
  183. this.$emit('cancelHandler');
  184. }).catch(() => {
  185. });
  186. },
  187. tabIndexChange(item) {
  188. if (item.label == '问题清单') {
  189. this.activeLabel = item.label
  190. } else {
  191. this.activeLabel = ''
  192. }
  193. }
  194. }
  195. };
  196. </script>
  197. <style>
  198. #shuikutianbaoId .el-dialog {
  199. margin-top: 10vh;
  200. }
  201. </style>