| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <template>
- <div>
- <!-- <el-dialog :title="'责任人填报'" :visible.sync="dialogFormVisible"> -->
- <el-container style="height:520px;">
- <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;">
- <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">信息填报</p>
- <p style="margin-top:10px;margin-bottom: 10px;">
- <i class="left-vertical"></i>
- <span>检测资质检查</span>
- <span class="hrs"></span>
- </p>
- <el-form :model="formObj" :label-width="formLabelWidth">
- <el-form-item label="是否存在涂改、倒卖、出租、出借或其他形式非法转让《资质等级证书》的情况">
- <el-radio v-model="formObj.isAilCer" label="1">是</el-radio>
- <el-radio v-model="formObj.isAilCer" label="2">否</el-radio>
- <el-button
- @click="addProblem('isAilCer',formObj.isAilCer)"
- type="text"
- v-if="formObj.isAilCer =='1'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <el-form-item label="是否未取得相应资质,擅自承担检测业务的情况">
- <el-radio v-model="formObj.isAchUnd" label="1">是</el-radio>
- <el-radio v-model="formObj.isAchUnd" label="2">否</el-radio>
- <el-button
- @click="addProblem('isAchUnd',formObj.isAchUnd)"
- type="text"
- v-if="formObj.isAchUnd =='1'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <el-form-item label="是否存在转包质量检测业务或未经委托方同意分包质量检测业务的情况">
- <el-radio v-model="formObj.isSubBus" label="1">是</el-radio>
- <el-radio v-model="formObj.isSubBus" label="2">否</el-radio>
- <el-button
- @click="addProblem('isSubBus',formObj.isSubBus)"
- type="text"
- v-if="formObj.isSubBus =='1'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <el-form-item label="是否存在超出资质等级范围从事检测活动的情况">
- <el-radio v-model="formObj.isBeyEng" label="1">是</el-radio>
- <el-radio v-model="formObj.isBeyEng" label="2">否</el-radio>
- <el-button
- @click="addProblem('isBeyEng',formObj.isBeyEng)"
- type="text"
- v-if="formObj.isBeyEng =='1'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <p style="margin-top:10px;margin-bottom: 10px;">
- <i class="left-vertical"></i>
- <span>检测报告检查</span>
- <span class="hrs"></span>
- </p>
- <el-form-item label="是否按照规定在质量检测报告上签字盖章">
- <el-radio v-model="formObj.isProSig" label="1">是</el-radio>
- <el-radio v-model="formObj.isProSig" label="2">否</el-radio>
- <el-button
- @click="addProblem('isProSig',formObj.isProSig)"
- type="text"
- v-if="formObj.isProSig =='2'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <el-form-item label="检测单位是否及时提供检测报告">
- <el-radio v-model="formObj.isProRep" label="1">是</el-radio>
- <el-radio v-model="formObj.isProRep" label="2">否</el-radio>
- <el-button
- @click="addProblem('isProRep',formObj.isProRep)"
- type="text"
- v-if="formObj.isProRep =='2'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <el-form-item label="是否存在虚假检测报告、伪造检测数据等行为">
- <el-radio v-model="formObj.isFalFak" label="1">是</el-radio>
- <el-radio v-model="formObj.isFalFak" label="2">否</el-radio>
- <el-button
- @click="addProblem('isFalFak',formObj.isFalFak)"
- type="text"
- v-if="formObj.isFalFak =='1'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <p style="margin-top:10px;margin-bottom: 10px;">
- <i class="left-vertical"></i>
- <span>检测活动检查</span>
- <span class="hrs"></span>
- </p>
- <el-form-item label="是否按照国家和行业标准开展检测活动;无相关标准的,是否由检测单位提出方案,委托方确认后实施">
- <el-radio v-model="formObj.isStaImp" label="1">是</el-radio>
- <el-radio v-model="formObj.isStaImp" label="2">否</el-radio>
- <el-button
- @click="addProblem('isStaImp',formObj.isStaImp)"
- type="text"
- v-if="formObj.isStaImp =='2'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <el-form-item label="质量检测试样的取样是否严格执行国家和行业标准">
- <el-radio v-model="formObj.isSamSta" label="1">是</el-radio>
- <el-radio v-model="formObj.isSamSta" label="2">否</el-radio>
- <el-button
- @click="addProblem('isSamSta',formObj.isSamSta)"
- type="text"
- v-if="formObj.isSamSta =='2'">
- <i class="el-icon-circle-plus add-problem-icon"></i>
- </el-button>
- </el-form-item>
- <el-form-item label="">
- <el-button type="primary" @click="addHandler" v-if="openType">保 存</el-button>
- </el-form-item>
- </el-form>
- </el-main>
- <problem-dialog
- v-if="showAddProblemDialog && openType"
- :objType="62"
- :villType="62"
- :objId="currentObjectId"
- :objName="currentObjectName"
- :problemMiddleType="'乙级检测单位'"
- :problData="probId"
- @closeDialog="closePlDialog"
- :currentObjectRgstrId="currentObjectRgstrId"
- ></problem-dialog>
- <!--<add-pic-com v-if="jqmmDialogShow" :dialogTitle="'相关材料'" :jqmmEngId="id" :type="type" :openType="openType" @jqmmDialogClose="jqmmDialogClose"></add-pic-com>-->
- </el-container>
- </div>
- </template>
- <script>
- import inputWith from "@widget/inuptWith.vue"
- import problemDialog from "../../duChaWenTi/problemDialog.vue";
- import request from "@util/gw_ajax_request.js"
- import {getRgstridBeh} from "@api/duChaTianBao.js"
- export default {
- components: {
- inputWith: inputWith,
- problemDialog
- },
- props: ['currentObjectId', 'currentObjectName', 'currentObjectRgstrId', 'openType'],
- data() {
- var checkTel = (rule, value, callback) => {
- var isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/;//座机
- var isMob = /^[1][3,4,5,7,8][0-9]{9}$/;// 座机格式
- if (value && !isMob.test(value) && !isPhone.test(value)) {
- callback(new Error('请输入合理电话'));
- } else if (value && (isMob.test(value) || isPhone.test(value))) {
- callback();
- }
- // setTimeout(() => {
- // }, 1000);
- };
- return {
- id: "",
- objtbStatu: {
- wtuntStat: "",
- rgstrId: "",
- id: "",
- state: ""
- },
- rules: {
- wiunWaoLegPersTel: [
- {validator: checkTel, trigger: 'blur'}
- ],
- techPersTel: [
- {validator: checkTel, trigger: 'blur'}
- ],
- patrolPersTel: [
- {validator: checkTel, trigger: 'blur'}
- ],
- },
- jqmmDialogShow: false,
- type: '',
- formObj: {},
- dialogFormVisible: false,
- formLabelWidth: '400px',
- loading: true,
- operationType1: '',
- rsvrRules: null,
- probId: '',
- showAddProblemDialog: false
- }
- },
- computed: {
- recPersId() {
- return localStorage.getItem("userid") ? localStorage.getItem("userid") : ''
- }
- },
- created() {
- this.findItemByType()
- },
- mounted() {
- this.getRgstridObj();
- },
- watch: {
- currentObjectRgstrId(n, o) {
- this.getRgstridObj();
- },
- },
- methods: {
- jqmmDialogClose() {
- this.jqmmDialogShow = false;
- },
- showPic(type) {
- this.type = type
- this.jqmmDialogShow = true
- },
- getRgstridObj() {
- var _self = this;
- getRgstridBeh(_self.currentObjectRgstrId).then((res) => {
- _self.formObj = res.data;
- _self.id = res.data.id;
- });
- },
- addHandler() {
- var _self = this;
- _self.formObj['rgstrId'] = _self.currentObjectRgstrId;
- _self.formObj['recPersId'] = _self.recPersId;
- _self.objtbStatu.rgstrId = _self.currentObjectRgstrId;
- _self.objtbStatu.id = _self.currentObjectRgstrId;
- if (this.formObj.isAilCer != null &&
- this.formObj.isAchUnd != null &&
- this.formObj.isSubBus != null &&
- this.formObj.isBeyEng != null &&
- this.formObj.isProSig != null &&
- this.formObj.isProRep != null &&
- this.formObj.isFalFak != null &&
- this.formObj.isStaImp != null &&
- this.formObj.isSamSta != null) {
- this.formObj.state = "1"
- } else if (this.formObj.isAilCer == null &&
- this.formObj.isAchUnd == null &&
- this.formObj.isSubBus == null &&
- this.formObj.isBeyEng == null &&
- this.formObj.isProSig == null &&
- this.formObj.isProRep == null &&
- this.formObj.isFalFak == null &&
- this.formObj.isStaImp == null &&
- this.formObj.isSamSta == null
- ) {
- this.formObj['state'] = "0";
- } else {
- this.formObj['state'] = "1";
- }
- this.$confirm('确认保存行为检测能力情况信息?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- try {
- request.post('/bis/insp/cdep/beh', _self.formObj).then((res) => {
- if (res.success) {
- _self.$message.success("修改成功");
- _self.$emit("addShuiKuSuccess");
- }
- });
- } catch (e) {
- }
- })
- .catch(() => {
- });
- },
- cancelHandler() {
- this.$emit('cancelHandler');
- },
- findItemByType() {
- const obj = {
- tname: "BIS_INSP_CDEP_BEH",
- }
- request.post("/bis/insp/item/ques/info/findItemByType", obj).then(res => {
- this.rsvrRules = res.data;
- })
- },
- addProblem(item, iValue) {
- let rest = this.rsvrRules.filter(e => {
- return e.iValue === iValue && e.eName === item;
- });
- if (rest[0]) {
- this.probId = rest[0].id;
- }
- this.showAddProblemDialog = true;
- },
- formatRadio(val) {
- if (val == '1') {
- return '是'
- } else if (val == '2') {
- return '否'
- } else {
- return val
- }
- },
- closePlDialog(val) {
- this.showAddProblemDialog = false;
- }
- },
- }
- </script>
- <style scoped>
- #dcdxHeader {
- padding: 15px 20px;
- }
- #dxdcFooter {
- text-align: center;
- }
- #dxdcAside {
- border: 1px solid #d5d5ff;
- }
- .el-dialog__wrapper .el-treeWhite {
- /* max-height: 260px !important; */
- }
- .add-problem-icon {
- font-size: 16px;
- }
- .el-icon-camera-solid, .el-icon-circle-plus {
- margin-left: 20px;
- color: #00bbff;
- font-size: 18px;
- line-height: 12px;
- vertical-align: middle;
- cursor: pointer;
- }
- .el-icon-circle-plus {
- vertical-align: top;
- }
- .left-vertical {
- width: 8px;
- height: 17px;
- background: rgb(250, 205, 145);
- display: inline-block;
- vertical-align: bottom;
- }
- .hrs {
- display: inline-block;
- width: calc(100% - 40px);
- margin-left: 10px;
- height: 1px;
- vertical-align: middle;
- background-color: #ddd;
- }
- </style>
|