40d5a64da1d5cab754c7c36f7edec3d18b6cc3d3.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <div class="popupContentClass" :style="{'height':testHeight1+'px'}">
  3. <p style="margin-top:20px;">
  4. <div style="display: flex;align-items: center;margin-bottom: 10px">
  5. <div style="width: 4px;height: 14px;background: rgba(44,158,255,1);border-radius: 1px;margin-right: 10px;"></div>
  6. <span style="font-size:14px;font-family:MicrosoftYaHei;color:rgba(51,51,51,1);">行政责任人信息</span>
  7. </div>
  8. </p>
  9. <el-row class="rowClass1">
  10. <el-col :span="6" class="nameClass">是否有行政责任人:</el-col>
  11. <el-col :span="18" class="valueClass" :style="{'height':testHeight+'px'}">
  12. {{formObj.hasWiunWaoLegPers == "1"?"是":formObj.hasWiunWaoLegPers == "2"?"否":""}}
  13. </el-col>
  14. </el-row>
  15. <el-row class="rowClass1" v-if="formObj.hasWiunWaoLegPers == '1'&&formObj.hasWiunWaoLegPers != ''">
  16. <el-col :span="6" class="nameClass">责任人名称:</el-col>
  17. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.wiunWaoLegPers}}</el-col>
  18. <el-col :span="6" class="nameClass">责任人电话:</el-col>
  19. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.wiunWaoLegPersTel}}</el-col>
  20. </el-row>
  21. <el-row class="rowClass1" v-if="formObj.hasWiunWaoLegPers == '1'&&formObj.hasWiunWaoLegPers != ''">
  22. <el-col :span="6" class="nameClass">责任人职务:</el-col>
  23. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.wiunWaoLegPersDuty}}</el-col>
  24. <el-col :span="6" class="nameClass">是否接受过岗位培训:</el-col>
  25. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  26. {{formObj.wiunWaoLegPersTrain == '1' ? '是' : formObj.wiunWaoLegPersTrain == '2' ? '否' : ''}}
  27. </el-col>
  28. </el-row>
  29. <el-row class="rowClass" v-if="formObj.hasWiunWaoLegPers == '1'&&formObj.hasWiunWaoLegPers != ''">
  30. <el-col :span="6" class="nameClass">是否明确规范性履职标准:</el-col>
  31. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  32. {{formObj.wiunWaoLegPersCnps == '1' ? '是' : formObj.wiunWaoLegPersCnps == '2' ? '否' : ''}}
  33. </el-col>
  34. <el-col :span="6" class="nameClass">履职情况:</el-col>
  35. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  36. {{formObj.wiunWaoLegPersResu&&formObj.wiunWaoLegPersResu == "1"?"好":
  37. formObj.wiunWaoLegPersResu&&formObj.wiunWaoLegPersResu == "2"?"基本到位":
  38. formObj.wiunWaoLegPersResu&&formObj.wiunWaoLegPersResu == "3"?"差":""
  39. }}
  40. </el-col>
  41. </el-row>
  42. <p style="margin-top:20px;">
  43. <div style="display: flex;align-items: center;margin-bottom: 10px">
  44. <div style="width: 4px;height: 14px;background: rgba(44,158,255,1);border-radius: 1px;margin-right: 10px;"></div>
  45. <span style="font-size:14px;font-family:MicrosoftYaHei;color:rgba(51,51,51,1);">技术责任人情况</span>
  46. </div>
  47. </p>
  48. <el-row class="rowClass1">
  49. <el-col :span="6" class="nameClass">是否有技术责任人:</el-col>
  50. <el-col :span="18" class="valueClass" :style="{'height':testHeight+'px'}">
  51. {{formObj.hasTechPers&&formObj.hasTechPers == "1"?"是":
  52. formObj.hasTechPers&&formObj.hasTechPers == "2"?"否":""}}
  53. </el-col>
  54. </el-row>
  55. <el-row class="rowClass1" v-if="formObj.hasTechPers == '1'&&formObj.hasTechPers != ''">
  56. <el-col :span="6" class="nameClass">责任人名称:</el-col>
  57. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  58. {{formObj.techPers}}
  59. </el-col>
  60. <el-col :span="6" class="nameClass">责任人电话:</el-col>
  61. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  62. {{formObj.techPersTel}}
  63. </el-col>
  64. </el-row>
  65. <el-row class="rowClass1" v-if="formObj.hasTechPers == '1'&&formObj.hasTechPers != ''">
  66. <el-col :span="6" class="nameClass">责任人职务:</el-col>
  67. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  68. {{formObj.techPersDuty}}
  69. </el-col>
  70. <el-col :span="6" class="nameClass">是否接受过岗位培训:</el-col>
  71. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  72. {{formObj.techPersTrain == '1' ? '是' : formObj.techPersTrain == '2' ? '否' : ''}}
  73. </el-col>
  74. </el-row>
  75. <el-row class="rowClass" v-if="formObj.hasTechPers == '1'&&formObj.hasTechPers != ''">
  76. <el-col :span="6" class="nameClass">是否明确规范性履职标准:</el-col>
  77. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  78. {{formObj.techPersCnps == '1' ? '是' : formObj.techPersCnps == '2' ? '否' : ''}}
  79. </el-col>
  80. <el-col :span="6" class="nameClass">履职情况:</el-col>
  81. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  82. {{formObj.techPersResu&&formObj.techPersResu == "1"?"好":
  83. formObj.techPersResu&&formObj.techPersResu == "2"?"基本到位":
  84. formObj.techPersResu&&formObj.techPersResu == "3"?"差":""}}
  85. </el-col>
  86. </el-row>
  87. <p style="margin-top:20px;">
  88. <div style="display: flex;align-items: center;margin-bottom: 10px">
  89. <div style="width: 4px;height: 14px;background: rgba(44,158,255,1);border-radius: 1px;margin-right: 10px;"></div>
  90. <span style="font-size:14px;font-family:MicrosoftYaHei;color:rgba(51,51,51,1);">巡查责任人情况</span>
  91. </div>
  92. </p>
  93. <el-row class="rowClass1">
  94. <el-col :span="6" class="nameClass">是否有巡查责任人:</el-col>
  95. <el-col :span="18" class="valueClass" :style="{'height':testHeight+'px'}">
  96. {{formObj.hasPatrolPers&&formObj.hasPatrolPers == "1"?"是":
  97. formObj.hasPatrolPers&&formObj.hasPatrolPers == "2"?"否":""}}
  98. </el-col>
  99. </el-row>
  100. <el-row class="rowClass1" v-if="formObj.hasPatrolPers == '1'&&formObj.hasPatrolPers != ''">
  101. <el-col :span="6" class="nameClass">责任人名称:</el-col>
  102. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  103. {{formObj.patrolPers}}
  104. </el-col>
  105. <el-col :span="6" class="nameClass">责任人电话:</el-col>
  106. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  107. {{formObj.patrolPersTel}}
  108. </el-col>
  109. </el-row>
  110. <el-row class="rowClass1" v-if="formObj.hasPatrolPers == '1'&&formObj.hasPatrolPers != ''">
  111. <el-col :span="6" class="nameClass">是否接受过岗位培训:</el-col>
  112. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  113. {{formObj.patrolPersTrain == '1' ? '是' : formObj.patrolPersTrain == '2' ? '否' : ''}}
  114. </el-col>
  115. <el-col :span="6" class="nameClass">是否明确规范性履职标准:</el-col>
  116. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">
  117. {{formObj.patrolPersCnps == '1' ? '是' : formObj.patrolPersCnps == '2' ? '否' : ''}}
  118. </el-col>
  119. </el-row>
  120. <el-row class="rowClass1" v-if="formObj.hasPatrolPers == '1'&&formObj.hasPatrolPers != ''">
  121. <el-col :span="6" class="nameClass">履职情况:</el-col>
  122. <el-col :span="18" class="valueClass" :style="{'height':testHeight+'px'}">
  123. {{formObj.patrolPersResu&&formObj.patrolPersResu == "1"?"好":
  124. formObj.patrolPersResu&&formObj.patrolPersResu == "2"?"基本到位":
  125. formObj.patrolPersResu&&formObj.patrolPersResu == "3"?"差":""}}
  126. </el-col>
  127. </el-row>
  128. </div>
  129. </template>
  130. <script>
  131. import inputWith from "../../../../../widgets/inuptWith.vue";
  132. import request from "../../../../../utils/gw_ajax_request.js";
  133. import { getRgstrid, addBasePres } from "../../../../../api/duChaTianBao.js";
  134. import { formatDateTimeD } from "../../../../../utils/gw_date.js";
  135. export default {
  136. components: {
  137. inputWith: inputWith
  138. },
  139. props: ["currentObjectRgstrId","dialogHeightA"],
  140. data() {
  141. var checkTel = (rule, value, callback) => {
  142. var isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/; //座机
  143. var isMob = /^[1][3,4,5,7,8][0-9]{9}$/; // 座机格式
  144. if (!isMob.test(value) && !isPhone.test(value)) {
  145. callback(new Error("请输入合理电话"));
  146. } else {
  147. callback();
  148. }
  149. };
  150. return {
  151. testHeight:(window.innerHeight * 0.5 - 114) / 6,
  152. testHeight1:window.innerHeight * 0.5,
  153. rules: {
  154. wiunWaoLegPersTel: [{ validator: checkTel, trigger: "blur" }],
  155. techPersTel: [{ validator: checkTel, trigger: "blur" }],
  156. patrolPersTel: [{ validator: checkTel, trigger: "blur" }]
  157. },
  158. formObj: {
  159. dutyId: "",
  160. hasPatrolPers: "", //是否有巡查责任人
  161. hasTechPers: "", //是否有技术责任人
  162. hasWiunWaoLegPers: "", //是否有行政责任人
  163. patrolPers: "", //巡查责任人姓名
  164. patrolPersDuty: "", //巡查责任人职务
  165. patrolPersResu: "", //巡查责任人履职情况 0 1 2
  166. patrolPersTel: "", //巡查责任人电话
  167. rgstrId: "", //水库督查登记ID
  168. techPers: "", //技术责任人姓名
  169. techPersDuty: "", //技术责任人职务
  170. techPersResu: "", //技术责任人履职情况
  171. techPersTel: "", //技术责任人电话
  172. wiunWaoLegPers: "", //行政责任人姓名
  173. wiunWaoLegPersDuty: "", //行政责任人职务
  174. wiunWaoLegPersResu: "", //行政责任人履职情况
  175. wiunWaoLegPersTel: "" //行政责任人电话
  176. },
  177. dialogFormVisible: false,
  178. formLabelWidth: "160px",
  179. loading: true,
  180. operationType1: ""
  181. };
  182. },
  183. computed: {
  184. recPersId() {
  185. return localStorage.getItem("userid")? localStorage.getItem("userid"): "";
  186. }
  187. },
  188. mounted() {
  189. this.getRgstridObj();
  190. },
  191. watch: {
  192. currentObjectRgstrId(n, o) {
  193. this.getRgstridObj();
  194. }
  195. },
  196. methods: {
  197. getRgstridObj() {
  198. var _self = this;
  199. getRgstrid(_self.currentObjectRgstrId).then(res => {
  200. if (res.data) {
  201. _self.formObj = res.data;
  202. _self.operationType1 = "update";
  203. } else {
  204. _self.formObj = {};
  205. _self.operationType1 = "add";
  206. }
  207. });
  208. },
  209. addHandler() {
  210. var _self = this;
  211. _self.formObj["rgstrId"] = _self.currentObjectRgstrId;
  212. _self.formObj["recPersId"] = _self.recPersId;
  213. console.log(_self.formObj);
  214. if (_self.operationType1 == "add") {
  215. try {
  216. request.post("/dc/insp/basePres", _self.formObj).then(res => {
  217. if (res.success) {
  218. _self.$message.success("添加成功");
  219. _self.$emit("addShuiKuSuccess");
  220. }
  221. });
  222. } catch (e) {}
  223. } else if (_self.operationType1 == "update") {
  224. try {
  225. request.post("/dc/insp/basePres/update", _self.formObj).then(res => {
  226. if (res.success) {
  227. _self.$message.success("修改成功");
  228. _self.$emit("addShuiKuSuccess");
  229. }
  230. });
  231. } catch (e) {}
  232. }
  233. this.$emit("cancelHandler");
  234. },
  235. cancelHandler() {
  236. this.$emit("cancelHandler");
  237. },
  238. formatRadio(val) {
  239. if (val == "1") {
  240. return "是";
  241. } else if (val == "0") {
  242. return "否";
  243. } else {
  244. return val;
  245. }
  246. }
  247. }
  248. };
  249. </script>
  250. <style scoped>
  251. @import "../../../assets/css/popup.css";
  252. </style>