0b09751b18a1d5db8ab1734c85c1fc4c1e42d084.svn-base 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <div >
  3. <el-dialog :title="formObj.wiuName+'基础信息'" :visible.sync="dialogFormVisible" width="40%" :append-to-body="true" height="500">
  4. <el-container id="qskJichuxinxiContainer">
  5. <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;overflow-x: hidden;">
  6. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">详情</p>
  7. <el-row :gutter="5" style="padding:5px;">
  8. <el-col :span="5" style="color:#409EFF;text-align:left;font-weight:normal;"> 取水户名称:</el-col>
  9. <el-col :span="5" style="text-align:left;">{{formObj.wiuName}}</el-col>
  10. <el-col :span="7" style="color:#409EFF;text-align:left;font-weight:normal;"> 取水户身份:</el-col>
  11. <el-col :span="7" style="text-align:left;">{{formObj.idtType | idtType}}</el-col>
  12. </el-row>
  13. <el-row :gutter="5" style="padding:5px;">
  14. <el-col :span="5" style="color:#409EFF;text-align:left;font-weight:normal;"> 取水户姓名:</el-col>
  15. <el-col :span="5" style="text-align:left;">{{formObj.name}}</el-col>
  16. <el-col :span="7" style="color:#409EFF;text-align:left;font-weight:normal;">{{formObj.wiuNat | wiuNat}}:</el-col>
  17. <el-col :span="7" style="text-align:left;">{{formObj.wiuNatName}}</el-col>
  18. </el-row>
  19. <el-row :gutter="5" style="padding:5px;">
  20. <el-col :span="5" style="color:#409EFF;text-align:left;font-weight:normal;"> {{formObj.codeType | codeType}}:</el-col>
  21. <el-col :span="5" style="text-align:left;">{{formObj.codeVal}}</el-col>
  22. <el-col :span="7" style="color:#409EFF;text-align:left;font-weight:normal;">取水户联系人:</el-col>
  23. <el-col :span="7" style="text-align:left;">{{formObj.wiuContact}}</el-col>
  24. </el-row>
  25. <el-row :gutter="5" style="padding:5px;">
  26. <el-col :span="7" style="color:#409EFF;text-align:left;font-weight:normal;">取水户联系方式:</el-col>
  27. <el-col :span="5" style="text-align:left;">{{formObj.wiuContactTel}}</el-col>
  28. </el-row>
  29. </el-main>
  30. </el-container>
  31. </el-dialog>
  32. </div>
  33. </template>
  34. <script>
  35. import { getQskBaseInfo } from "@api/zhxxAPI.js";
  36. import request from "@util/gw_ajax_request.js";
  37. export default {
  38. components: {
  39. },
  40. props: ["currentQshCode"],
  41. data() {
  42. return {
  43. dialogFormVisible:false,
  44. formObj: {
  45. rsName: "",
  46. rsAdmName: "",
  47. rsLoc: "",
  48. intm: "",
  49. engScal: "",
  50. totCap: "",
  51. damMaxHigh: "",
  52. damTypeStr: "",
  53. regCode: "",
  54. rsvrLong: "",
  55. rsvrLat: "",
  56. resCreateTime: ""
  57. },
  58. formLabelWidth: "160px",
  59. loading: true,
  60. currentQshCode1: "",
  61. };
  62. },
  63. computed: {
  64. recPersId() {
  65. return localStorage.getItem("userid")
  66. ? localStorage.getItem("userid")
  67. : "";
  68. }
  69. },
  70. mounted() {
  71. this.dialogFormVisible = true;
  72. this.currentQshCode1 = this.currentQshCode;
  73. this.getBaseInfo();
  74. },
  75. watch: {
  76. currentQshCode(n, o) {
  77. this.currentQshCode1 = this.currentQshCode;
  78. this.getBaseInfo();
  79. }
  80. },
  81. methods: {
  82. showDialog(){
  83. this.dialogFormVisible = true;
  84. },
  85. getBaseInfo() {
  86. var _self = this;
  87. if(_self.currentQshCode1 == ""){
  88. return
  89. }
  90. request.get(`/att/wiu/base/${_self.currentQshCode1}`).then(res => {
  91. if (res.data) {
  92. _self.formObj = res.data;
  93. } else {
  94. _self.formObj = {};
  95. }
  96. }).catch(err =>{
  97. console.log(err);
  98. });
  99. }
  100. },
  101. filters:{
  102. idtType(val){
  103. if(val == '1'){
  104. return '法定代表人'
  105. }else if(val == '2'){
  106. return '负责人'
  107. }else{
  108. return ''
  109. }
  110. },
  111. wiuNat(val){
  112. if(val == '1'){
  113. return '法人'
  114. }else if(val == '2'){
  115. return '其他组织'
  116. }else if(val == '3'){
  117. return '法人的分支机构'
  118. }else if(val == '4'){
  119. return '自然人'
  120. }else{
  121. return '法人'
  122. }
  123. },
  124. codeType(val){
  125. if(val == '1'){
  126. return '统一社会信用代码'
  127. }else if(val == '2'){
  128. return '身份证号'
  129. }else{
  130. return '身份证号'
  131. }
  132. },
  133. }
  134. };
  135. </script>
  136. <style>
  137. .qskJichuxinxiContainer .el-dialog__body{
  138. padding-top: 0px;
  139. padding-right: 20px;
  140. padding-bottom: 20px;
  141. padding-left: 20px;
  142. }
  143. </style>