3d7b3c92644686ca8c6d375eb1f7c77b7c8ed03e.svn-base 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <template>
  2. <div>
  3. <!-- <el-dialog :title="'责任人填报'" :visible.sync="dialogFormVisible"> -->
  4. <el-container style="height:520px;">
  5. <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;">
  6. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">信息填报</p>
  7. <p style="margin-top:10px;margin-bottom: 10px;">
  8. <i class="left-vertical"></i>
  9. <span>检测资质检查</span>
  10. <span class="hrs"></span>
  11. </p>
  12. <el-form :model="formObj" :label-width="formLabelWidth">
  13. <el-form-item label="是否存在涂改、倒卖、出租、出借或其他形式非法转让《资质等级证书》的情况">
  14. <el-radio v-model="formObj.isAilCer" label="1">是</el-radio>
  15. <el-radio v-model="formObj.isAilCer" label="2">否</el-radio>
  16. <el-button
  17. @click="addProblem('isAilCer',formObj.isAilCer)"
  18. type="text"
  19. v-if="formObj.isAilCer =='1'">
  20. <i class="el-icon-circle-plus add-problem-icon"></i>
  21. </el-button>
  22. </el-form-item>
  23. <el-form-item label="是否未取得相应资质,擅自承担检测业务的情况">
  24. <el-radio v-model="formObj.isAchUnd" label="1">是</el-radio>
  25. <el-radio v-model="formObj.isAchUnd" label="2">否</el-radio>
  26. <el-button
  27. @click="addProblem('isAchUnd',formObj.isAchUnd)"
  28. type="text"
  29. v-if="formObj.isAchUnd =='1'">
  30. <i class="el-icon-circle-plus add-problem-icon"></i>
  31. </el-button>
  32. </el-form-item>
  33. <el-form-item label="是否存在转包质量检测业务或未经委托方同意分包质量检测业务的情况">
  34. <el-radio v-model="formObj.isSubBus" label="1">是</el-radio>
  35. <el-radio v-model="formObj.isSubBus" label="2">否</el-radio>
  36. <el-button
  37. @click="addProblem('isSubBus',formObj.isSubBus)"
  38. type="text"
  39. v-if="formObj.isSubBus =='1'">
  40. <i class="el-icon-circle-plus add-problem-icon"></i>
  41. </el-button>
  42. </el-form-item>
  43. <el-form-item label="是否存在超出资质等级范围从事检测活动的情况">
  44. <el-radio v-model="formObj.isBeyEng" label="1">是</el-radio>
  45. <el-radio v-model="formObj.isBeyEng" label="2">否</el-radio>
  46. <el-button
  47. @click="addProblem('isBeyEng',formObj.isBeyEng)"
  48. type="text"
  49. v-if="formObj.isBeyEng =='1'">
  50. <i class="el-icon-circle-plus add-problem-icon"></i>
  51. </el-button>
  52. </el-form-item>
  53. <p style="margin-top:10px;margin-bottom: 10px;">
  54. <i class="left-vertical"></i>
  55. <span>检测报告检查</span>
  56. <span class="hrs"></span>
  57. </p>
  58. <el-form-item label="是否按照规定在质量检测报告上签字盖章">
  59. <el-radio v-model="formObj.isProSig" label="1">是</el-radio>
  60. <el-radio v-model="formObj.isProSig" label="2">否</el-radio>
  61. <el-button
  62. @click="addProblem('isProSig',formObj.isProSig)"
  63. type="text"
  64. v-if="formObj.isProSig =='2'">
  65. <i class="el-icon-circle-plus add-problem-icon"></i>
  66. </el-button>
  67. </el-form-item>
  68. <el-form-item label="检测单位是否及时提供检测报告">
  69. <el-radio v-model="formObj.isProRep" label="1">是</el-radio>
  70. <el-radio v-model="formObj.isProRep" label="2">否</el-radio>
  71. <el-button
  72. @click="addProblem('isProRep',formObj.isProRep)"
  73. type="text"
  74. v-if="formObj.isProRep =='2'">
  75. <i class="el-icon-circle-plus add-problem-icon"></i>
  76. </el-button>
  77. </el-form-item>
  78. <el-form-item label="是否存在虚假检测报告、伪造检测数据等行为">
  79. <el-radio v-model="formObj.isFalFak" label="1">是</el-radio>
  80. <el-radio v-model="formObj.isFalFak" label="2">否</el-radio>
  81. <el-button
  82. @click="addProblem('isFalFak',formObj.isFalFak)"
  83. type="text"
  84. v-if="formObj.isFalFak =='1'">
  85. <i class="el-icon-circle-plus add-problem-icon"></i>
  86. </el-button>
  87. </el-form-item>
  88. <p style="margin-top:10px;margin-bottom: 10px;">
  89. <i class="left-vertical"></i>
  90. <span>检测活动检查</span>
  91. <span class="hrs"></span>
  92. </p>
  93. <el-form-item label="是否按照国家和行业标准开展检测活动;无相关标准的,是否由检测单位提出方案,委托方确认后实施">
  94. <el-radio v-model="formObj.isStaImp" label="1">是</el-radio>
  95. <el-radio v-model="formObj.isStaImp" label="2">否</el-radio>
  96. <el-button
  97. @click="addProblem('isStaImp',formObj.isStaImp)"
  98. type="text"
  99. v-if="formObj.isStaImp =='2'">
  100. <i class="el-icon-circle-plus add-problem-icon"></i>
  101. </el-button>
  102. </el-form-item>
  103. <el-form-item label="质量检测试样的取样是否严格执行国家和行业标准">
  104. <el-radio v-model="formObj.isSamSta" label="1">是</el-radio>
  105. <el-radio v-model="formObj.isSamSta" label="2">否</el-radio>
  106. <el-button
  107. @click="addProblem('isSamSta',formObj.isSamSta)"
  108. type="text"
  109. v-if="formObj.isSamSta =='2'">
  110. <i class="el-icon-circle-plus add-problem-icon"></i>
  111. </el-button>
  112. </el-form-item>
  113. <el-form-item label="">
  114. <el-button type="primary" @click="addHandler" v-if="openType">保 存</el-button>
  115. </el-form-item>
  116. </el-form>
  117. </el-main>
  118. <problem-dialog
  119. v-if="showAddProblemDialog && openType"
  120. :objType="62"
  121. :villType="62"
  122. :objId="currentObjectId"
  123. :objName="currentObjectName"
  124. :problemMiddleType="'乙级检测单位'"
  125. :problData="probId"
  126. @closeDialog="closePlDialog"
  127. :currentObjectRgstrId="currentObjectRgstrId"
  128. ></problem-dialog>
  129. <!--<add-pic-com v-if="jqmmDialogShow" :dialogTitle="'相关材料'" :jqmmEngId="id" :type="type" :openType="openType" @jqmmDialogClose="jqmmDialogClose"></add-pic-com>-->
  130. </el-container>
  131. </div>
  132. </template>
  133. <script>
  134. import inputWith from "@widget/inuptWith.vue"
  135. import problemDialog from "../../duChaWenTi/problemDialog.vue";
  136. import request from "@util/gw_ajax_request.js"
  137. import {getRgstridBeh} from "@api/duChaTianBao.js"
  138. export default {
  139. components: {
  140. inputWith: inputWith,
  141. problemDialog
  142. },
  143. props: ['currentObjectId', 'currentObjectName', 'currentObjectRgstrId', 'openType'],
  144. data() {
  145. var checkTel = (rule, value, callback) => {
  146. var isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/;//座机
  147. var isMob = /^[1][3,4,5,7,8][0-9]{9}$/;// 座机格式
  148. if (value && !isMob.test(value) && !isPhone.test(value)) {
  149. callback(new Error('请输入合理电话'));
  150. } else if (value && (isMob.test(value) || isPhone.test(value))) {
  151. callback();
  152. }
  153. // setTimeout(() => {
  154. // }, 1000);
  155. };
  156. return {
  157. id: "",
  158. objtbStatu: {
  159. wtuntStat: "",
  160. rgstrId: "",
  161. id: "",
  162. state: ""
  163. },
  164. rules: {
  165. wiunWaoLegPersTel: [
  166. {validator: checkTel, trigger: 'blur'}
  167. ],
  168. techPersTel: [
  169. {validator: checkTel, trigger: 'blur'}
  170. ],
  171. patrolPersTel: [
  172. {validator: checkTel, trigger: 'blur'}
  173. ],
  174. },
  175. jqmmDialogShow: false,
  176. type: '',
  177. formObj: {},
  178. dialogFormVisible: false,
  179. formLabelWidth: '400px',
  180. loading: true,
  181. operationType1: '',
  182. rsvrRules: null,
  183. probId: '',
  184. showAddProblemDialog: false
  185. }
  186. },
  187. computed: {
  188. recPersId() {
  189. return localStorage.getItem("userid") ? localStorage.getItem("userid") : ''
  190. }
  191. },
  192. created() {
  193. this.findItemByType()
  194. },
  195. mounted() {
  196. this.getRgstridObj();
  197. },
  198. watch: {
  199. currentObjectRgstrId(n, o) {
  200. this.getRgstridObj();
  201. },
  202. },
  203. methods: {
  204. jqmmDialogClose() {
  205. this.jqmmDialogShow = false;
  206. },
  207. showPic(type) {
  208. this.type = type
  209. this.jqmmDialogShow = true
  210. },
  211. getRgstridObj() {
  212. var _self = this;
  213. getRgstridBeh(_self.currentObjectRgstrId).then((res) => {
  214. _self.formObj = res.data;
  215. _self.id = res.data.id;
  216. });
  217. },
  218. addHandler() {
  219. var _self = this;
  220. _self.formObj['rgstrId'] = _self.currentObjectRgstrId;
  221. _self.formObj['recPersId'] = _self.recPersId;
  222. _self.objtbStatu.rgstrId = _self.currentObjectRgstrId;
  223. _self.objtbStatu.id = _self.currentObjectRgstrId;
  224. if (this.formObj.isAilCer != null &&
  225. this.formObj.isAchUnd != null &&
  226. this.formObj.isSubBus != null &&
  227. this.formObj.isBeyEng != null &&
  228. this.formObj.isProSig != null &&
  229. this.formObj.isProRep != null &&
  230. this.formObj.isFalFak != null &&
  231. this.formObj.isStaImp != null &&
  232. this.formObj.isSamSta != null) {
  233. this.formObj.state = "1"
  234. } else if (this.formObj.isAilCer == null &&
  235. this.formObj.isAchUnd == null &&
  236. this.formObj.isSubBus == null &&
  237. this.formObj.isBeyEng == null &&
  238. this.formObj.isProSig == null &&
  239. this.formObj.isProRep == null &&
  240. this.formObj.isFalFak == null &&
  241. this.formObj.isStaImp == null &&
  242. this.formObj.isSamSta == null
  243. ) {
  244. this.formObj['state'] = "0";
  245. } else {
  246. this.formObj['state'] = "1";
  247. }
  248. this.$confirm('确认保存行为检测能力情况信息?', '提示', {
  249. confirmButtonText: '确定',
  250. cancelButtonText: '取消',
  251. type: 'warning'
  252. })
  253. .then(() => {
  254. try {
  255. request.post('/bis/insp/cdep/beh', _self.formObj).then((res) => {
  256. if (res.success) {
  257. _self.$message.success("修改成功");
  258. _self.$emit("addShuiKuSuccess");
  259. }
  260. });
  261. } catch (e) {
  262. }
  263. })
  264. .catch(() => {
  265. });
  266. },
  267. cancelHandler() {
  268. this.$emit('cancelHandler');
  269. },
  270. findItemByType() {
  271. const obj = {
  272. tname: "BIS_INSP_CDEP_BEH",
  273. }
  274. request.post("/bis/insp/item/ques/info/findItemByType", obj).then(res => {
  275. this.rsvrRules = res.data;
  276. })
  277. },
  278. addProblem(item, iValue) {
  279. let rest = this.rsvrRules.filter(e => {
  280. return e.iValue === iValue && e.eName === item;
  281. });
  282. if (rest[0]) {
  283. this.probId = rest[0].id;
  284. }
  285. this.showAddProblemDialog = true;
  286. },
  287. formatRadio(val) {
  288. if (val == '1') {
  289. return '是'
  290. } else if (val == '2') {
  291. return '否'
  292. } else {
  293. return val
  294. }
  295. },
  296. closePlDialog(val) {
  297. this.showAddProblemDialog = false;
  298. }
  299. },
  300. }
  301. </script>
  302. <style scoped>
  303. #dcdxHeader {
  304. padding: 15px 20px;
  305. }
  306. #dxdcFooter {
  307. text-align: center;
  308. }
  309. #dxdcAside {
  310. border: 1px solid #d5d5ff;
  311. }
  312. .el-dialog__wrapper .el-treeWhite {
  313. /* max-height: 260px !important; */
  314. }
  315. .add-problem-icon {
  316. font-size: 16px;
  317. }
  318. .el-icon-camera-solid, .el-icon-circle-plus {
  319. margin-left: 20px;
  320. color: #00bbff;
  321. font-size: 18px;
  322. line-height: 12px;
  323. vertical-align: middle;
  324. cursor: pointer;
  325. }
  326. .el-icon-circle-plus {
  327. vertical-align: top;
  328. }
  329. .left-vertical {
  330. width: 8px;
  331. height: 17px;
  332. background: rgb(250, 205, 145);
  333. display: inline-block;
  334. vertical-align: bottom;
  335. }
  336. .hrs {
  337. display: inline-block;
  338. width: calc(100% - 40px);
  339. margin-left: 10px;
  340. height: 1px;
  341. vertical-align: middle;
  342. background-color: #ddd;
  343. }
  344. </style>