|  |  |  | @ -3,14 +3,16 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <el-form :model="inputQuery" :rules="rules" ref="inputQuery" label-width="100px"> | 
			
		
	
		
			
				
					|  |  |  |  |       <div style=" float: right; | 
			
		
	
		
			
				
					|  |  |  |  |               text-align: right; | 
			
		
	
		
			
				
					|  |  |  |  |             margin-bottom: 8px;"> | 
			
		
	
		
			
				
					|  |  |  |  |             margin-bottom: 8px;" | 
			
		
	
		
			
				
					|  |  |  |  |       > | 
			
		
	
		
			
				
					|  |  |  |  |         <el-button type="primary" size="mini" icon="search" @click="addCert" | 
			
		
	
		
			
				
					|  |  |  |  |                    style="text-align:right" | 
			
		
	
		
			
				
					|  |  |  |  |         >添加资质证书 | 
			
		
	
		
			
				
					|  |  |  |  |         </el-button> | 
			
		
	
		
			
				
					|  |  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table v-loading="certLoading" :data="certList" style=" width: 100%;margin-top: 20px" border | 
			
		
	
		
			
				
					|  |  |  |  |                 highlight-current-row> | 
			
		
	
		
			
				
					|  |  |  |  |                 highlight-current-row | 
			
		
	
		
			
				
					|  |  |  |  |       > | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column type="index" label="序号" width="50"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="证书名称" prop="name"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="证书编号" prop="code"></el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -52,7 +54,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |       </el-table> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" | 
			
		
	
		
			
				
					|  |  |  |  |                        :url-list="imgList"/> | 
			
		
	
		
			
				
					|  |  |  |  |                        :url-list="imgList" | 
			
		
	
		
			
				
					|  |  |  |  |       /> | 
			
		
	
		
			
				
					|  |  |  |  |       <pagination | 
			
		
	
		
			
				
					|  |  |  |  |         v-show="certTotal>0" | 
			
		
	
		
			
				
					|  |  |  |  |         :total="certTotal" | 
			
		
	
	
		
			
				
					|  |  |  | @ -63,14 +66,14 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <el-dialog | 
			
		
	
		
			
				
					|  |  |  |  |         title="添加资质证书" | 
			
		
	
		
			
				
					|  |  |  |  |         :title="formMap[formName]" | 
			
		
	
		
			
				
					|  |  |  |  |         :visible.sync="addCertVisible" | 
			
		
	
		
			
				
					|  |  |  |  |         :close-on-click-modal="false" | 
			
		
	
		
			
				
					|  |  |  |  |         :close-on-press-escape="false" | 
			
		
	
		
			
				
					|  |  |  |  |         width="70%" | 
			
		
	
		
			
				
					|  |  |  |  |         v-if="addCertVisible" | 
			
		
	
		
			
				
					|  |  |  |  |         append-to-body | 
			
		
	
		
			
				
					|  |  |  |  |         @close='closeLocalDialog' | 
			
		
	
		
			
				
					|  |  |  |  |         @close="closeLocalDialog" | 
			
		
	
		
			
				
					|  |  |  |  |       > | 
			
		
	
		
			
				
					|  |  |  |  |         <deviceAddCert | 
			
		
	
		
			
				
					|  |  |  |  |           :closeDialog="closeLocalDialog" | 
			
		
	
	
		
			
				
					|  |  |  | @ -86,22 +89,22 @@ | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import {modifyCompany, addCompany, bindCorp, previewImage} from "@/api/purchase/supCompany"; | 
			
		
	
		
			
				
					|  |  |  |  | import store from "@/store"; | 
			
		
	
		
			
				
					|  |  |  |  | import {regionDataPlus, CodeToText} from "element-china-area-data"; | 
			
		
	
		
			
				
					|  |  |  |  | import {deleteDeviceCert, updateDeviceCert} from "@/api/dev/deviceCert"; | 
			
		
	
		
			
				
					|  |  |  |  | import {filterDeviceCert} from "@/api/dev/deviceCert"; | 
			
		
	
		
			
				
					|  |  |  |  | import corpMaintainSelect from "@/views/basic/corpMaintain/corpMaintainSelect" | 
			
		
	
		
			
				
					|  |  |  |  | import deviceAddCert from "@/views/inventory/cert/depCertAddDialog.vue"; | 
			
		
	
		
			
				
					|  |  |  |  | import draggable from "vuedraggable"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getUUID, isBlank} from "@/utils/strUtil"; | 
			
		
	
		
			
				
					|  |  |  |  | import supCertSetSelectDialog from "@/views/purchase/cert/supCertSetSelectDialog"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getBasicUnitMaintains, getCorpList} from "@/api/basic/basicUnitMaintain"; | 
			
		
	
		
			
				
					|  |  |  |  | import ElImageViewer from "element-ui/packages/image/src/image-viewer" | 
			
		
	
		
			
				
					|  |  |  |  | import { modifyCompany, addCompany, bindCorp, previewImage } from '@/api/purchase/supCompany' | 
			
		
	
		
			
				
					|  |  |  |  | import store from '@/store' | 
			
		
	
		
			
				
					|  |  |  |  | import { regionDataPlus, CodeToText } from 'element-china-area-data' | 
			
		
	
		
			
				
					|  |  |  |  | import { deleteDeviceCert, updateDeviceCert } from '@/api/dev/deviceCert' | 
			
		
	
		
			
				
					|  |  |  |  | import { filterDeviceCert } from '@/api/dev/deviceCert' | 
			
		
	
		
			
				
					|  |  |  |  | import corpMaintainSelect from '@/views/basic/corpMaintain/corpMaintainSelect' | 
			
		
	
		
			
				
					|  |  |  |  | import deviceAddCert from '@/views/inventory/cert/depCertAddDialog.vue' | 
			
		
	
		
			
				
					|  |  |  |  | import draggable from 'vuedraggable' | 
			
		
	
		
			
				
					|  |  |  |  | import { getUUID, isBlank } from '@/utils/strUtil' | 
			
		
	
		
			
				
					|  |  |  |  | import supCertSetSelectDialog from '@/views/purchase/cert/supCertSetSelectDialog' | 
			
		
	
		
			
				
					|  |  |  |  | import { getBasicUnitMaintains, getCorpList } from '@/api/basic/basicUnitMaintain' | 
			
		
	
		
			
				
					|  |  |  |  | import ElImageViewer from 'element-ui/packages/image/src/image-viewer' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   name: "invDeviceEdit", | 
			
		
	
		
			
				
					|  |  |  |  |   name: 'invDeviceEdit', | 
			
		
	
		
			
				
					|  |  |  |  |   props: { | 
			
		
	
		
			
				
					|  |  |  |  |     // closeDialog: { | 
			
		
	
		
			
				
					|  |  |  |  |     //   type: Function, | 
			
		
	
	
		
			
				
					|  |  |  | @ -117,23 +120,28 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     // } | 
			
		
	
		
			
				
					|  |  |  |  |     idQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |       type: Object, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     rowData: { | 
			
		
	
		
			
				
					|  |  |  |  |       type: Object, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true, | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   watch: { | 
			
		
	
		
			
				
					|  |  |  |  |     rowData: function(newVal, oldVal) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       this.searchData(newVal); | 
			
		
	
		
			
				
					|  |  |  |  |       this.searchData(newVal) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   , | 
			
		
	
		
			
				
					|  |  |  |  |   data() { | 
			
		
	
		
			
				
					|  |  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |  |       formName: null, | 
			
		
	
		
			
				
					|  |  |  |  |       formMap: { | 
			
		
	
		
			
				
					|  |  |  |  |         "add": "添加资质证书", | 
			
		
	
		
			
				
					|  |  |  |  |         "edit": "编辑资质证书" | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       BASE_URL: process.env.VUE_APP_BASE_API, | 
			
		
	
		
			
				
					|  |  |  |  |       headers: {}, | 
			
		
	
		
			
				
					|  |  |  |  |       classesDisplay: false, | 
			
		
	
	
		
			
				
					|  |  |  | @ -147,94 +155,94 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         companyName: null, | 
			
		
	
		
			
				
					|  |  |  |  |         contacts: null, | 
			
		
	
		
			
				
					|  |  |  |  |         mobile: null, | 
			
		
	
		
			
				
					|  |  |  |  |         detailAddr: null, | 
			
		
	
		
			
				
					|  |  |  |  |         detailAddr: null | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       rules: { | 
			
		
	
		
			
				
					|  |  |  |  |         companyName: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请输入企业名称", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "blur" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请输入企业名称', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'blur' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         creditNum: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请输入统一社会信用代码", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "blur" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请输入统一社会信用代码', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'blur' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         classes: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请选择企业类别", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "change" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请选择企业类别', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'change' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         area: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请选择所属地区", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "change" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请选择所属地区', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'change' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         detailAddr: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请输入详细地址", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "change" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请输入详细地址', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'change' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         contacts: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请输入联系人", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "change" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请输入联系人', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'change' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         mobile: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请输入联系电话", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "change" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请输入联系电话', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'change' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         email: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请输入邮箱", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "change" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请输入邮箱', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'change' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         updateCause: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             message: "请输入变更原因", | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: "change" | 
			
		
	
		
			
				
					|  |  |  |  |             message: '请输入变更原因', | 
			
		
	
		
			
				
					|  |  |  |  |             trigger: 'change' | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |         ] | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       uploadUrl: "", | 
			
		
	
		
			
				
					|  |  |  |  |       fileUrl: "", | 
			
		
	
		
			
				
					|  |  |  |  |       certFileUrl: "", | 
			
		
	
		
			
				
					|  |  |  |  |       uploadUrl: '', | 
			
		
	
		
			
				
					|  |  |  |  |       fileUrl: '', | 
			
		
	
		
			
				
					|  |  |  |  |       certFileUrl: '', | 
			
		
	
		
			
				
					|  |  |  |  |       url: 'http://127.0.0.1:9996/udiwms/image/register/file/getImage?type=image1&name=t11111.jpg', | 
			
		
	
		
			
				
					|  |  |  |  |       certQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |         devCodeFk: "", | 
			
		
	
		
			
				
					|  |  |  |  |         devCodeFk: '', | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 20, | 
			
		
	
		
			
				
					|  |  |  |  |         type: 1 | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       expire: { | 
			
		
	
		
			
				
					|  |  |  |  |         0: "有效", | 
			
		
	
		
			
				
					|  |  |  |  |         1: "失效" | 
			
		
	
		
			
				
					|  |  |  |  |         0: '有效', | 
			
		
	
		
			
				
					|  |  |  |  |         1: '失效' | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       certList: [], | 
			
		
	
		
			
				
					|  |  |  |  |       certTotal: 0, | 
			
		
	
		
			
				
					|  |  |  |  |       certLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |       addCertVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       salesmanQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |         name: "", | 
			
		
	
		
			
				
					|  |  |  |  |         name: '', | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 20 | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
	
		
			
				
					|  |  |  | @ -247,9 +255,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       selectLocalVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       productQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |         ylqxzcrbarmc: "", | 
			
		
	
		
			
				
					|  |  |  |  |         cpmctymc: "", | 
			
		
	
		
			
				
					|  |  |  |  |         ggxh: "", | 
			
		
	
		
			
				
					|  |  |  |  |         ylqxzcrbarmc: '', | 
			
		
	
		
			
				
					|  |  |  |  |         cpmctymc: '', | 
			
		
	
		
			
				
					|  |  |  |  |         ggxh: '', | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 20 | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
	
		
			
				
					|  |  |  | @ -260,170 +268,170 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       uuid: null, | 
			
		
	
		
			
				
					|  |  |  |  |       companyApplyUpdateVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       companyEditDisabled: true, | 
			
		
	
		
			
				
					|  |  |  |  |       companyEditButtonStr: "编辑", | 
			
		
	
		
			
				
					|  |  |  |  |       addType: "1", //证书类型(1:资质证书;2:技术材料) | 
			
		
	
		
			
				
					|  |  |  |  |       companyEditButtonStr: '编辑', | 
			
		
	
		
			
				
					|  |  |  |  |       addType: '1', //证书类型(1:资质证书;2:技术材料) | 
			
		
	
		
			
				
					|  |  |  |  |       checkFlag: { | 
			
		
	
		
			
				
					|  |  |  |  |         0: "草稿", | 
			
		
	
		
			
				
					|  |  |  |  |         1: "已通过", | 
			
		
	
		
			
				
					|  |  |  |  |         2: "已拒绝", | 
			
		
	
		
			
				
					|  |  |  |  |         3: "变更未审核", | 
			
		
	
		
			
				
					|  |  |  |  |         6: "未审核", | 
			
		
	
		
			
				
					|  |  |  |  |         0: '草稿', | 
			
		
	
		
			
				
					|  |  |  |  |         1: '已通过', | 
			
		
	
		
			
				
					|  |  |  |  |         2: '已拒绝', | 
			
		
	
		
			
				
					|  |  |  |  |         3: '变更未审核', | 
			
		
	
		
			
				
					|  |  |  |  |         6: '未审核' | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       editTye: 1, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       selectCorpVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       selectCertVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       certType: 1, | 
			
		
	
		
			
				
					|  |  |  |  |       customerId: null, | 
			
		
	
		
			
				
					|  |  |  |  |       customerId: null | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }; | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     // console.log("第一次this.rowData:") | 
			
		
	
		
			
				
					|  |  |  |  |     // console.log(this.rowData) | 
			
		
	
		
			
				
					|  |  |  |  |     // if (this.rowData.editType == 1) { | 
			
		
	
		
			
				
					|  |  |  |  |     //   this.getDeviceCertList(); | 
			
		
	
		
			
				
					|  |  |  |  |     // } | 
			
		
	
		
			
				
					|  |  |  |  |     // this.getBasicUnitMaintainsList(); | 
			
		
	
		
			
				
					|  |  |  |  |     this.headers = { | 
			
		
	
		
			
				
					|  |  |  |  |       ADMINID: store.getters.adminId, | 
			
		
	
		
			
				
					|  |  |  |  |       ADMINTOKEN: store.getters.token, | 
			
		
	
		
			
				
					|  |  |  |  |     }; | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   components: { | 
			
		
	
		
			
				
					|  |  |  |  |     draggable, deviceAddCert, corpMaintainSelect, supCertSetSelectDialog, ElImageViewer | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   , | 
			
		
	
		
			
				
					|  |  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |  |     searchData(query) { | 
			
		
	
		
			
				
					|  |  |  |  |       console.log("完成!") | 
			
		
	
		
			
				
					|  |  |  |  |       console.log(query) | 
			
		
	
		
			
				
					|  |  |  |  |       // console.log('完成!') | 
			
		
	
		
			
				
					|  |  |  |  |       // console.log(query) | 
			
		
	
		
			
				
					|  |  |  |  |       this.idQuery = { ...query } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       this.getDeviceCertList(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.getDeviceCertList() | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     //预览照片 | 
			
		
	
		
			
				
					|  |  |  |  |     showImgViewer(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgList = []; | 
			
		
	
		
			
				
					|  |  |  |  |       this.certFileUrl = this.BASE_URL + '/udiwms/image/register/file/getImage?type=image2&name=' | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgList = [] | 
			
		
	
		
			
				
					|  |  |  |  |       previewImage({ imageUrl: row.filePath, certFileUrl: this.certFileUrl }).then(response => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.imgList = response.data; | 
			
		
	
		
			
				
					|  |  |  |  |           this.imgList = response.data | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgViewerVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgViewerVisible = true | 
			
		
	
		
			
				
					|  |  |  |  |       const m = (e) => { | 
			
		
	
		
			
				
					|  |  |  |  |         e.preventDefault() | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       document.body.style.overflow = 'hidden'; | 
			
		
	
		
			
				
					|  |  |  |  |       document.addEventListener("touchmove", m, false); // 禁止页面滑动 | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       document.body.style.overflow = 'hidden' | 
			
		
	
		
			
				
					|  |  |  |  |       document.addEventListener('touchmove', m, false) // 禁止页面滑动 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     closeImgViewer() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgViewerVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgViewerVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |       const m = (e) => { | 
			
		
	
		
			
				
					|  |  |  |  |         e.preventDefault() | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       document.body.style.overflow = 'auto'; | 
			
		
	
		
			
				
					|  |  |  |  |       document.removeEventListener("touchmove", m, true); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       document.body.style.overflow = 'auto' | 
			
		
	
		
			
				
					|  |  |  |  |       document.removeEventListener('touchmove', m, true) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     selectBasicCorp() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectCorpVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectCorpVisible = true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     cancelDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.closeDialog(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.closeDialog() | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     //关闭添加证书界面 | 
			
		
	
		
			
				
					|  |  |  |  |     closeLocalDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.addCertVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectCertVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.addCertVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectCertVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |       // this.getCompanyCertList(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.getDeviceCertList(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.getDeviceCertList() | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  |     //添加资质证书 | 
			
		
	
		
			
				
					|  |  |  |  |     addCert(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       console.log("this.inputQuery.devCodeFk",this.inputQuery.devCodeFk) | 
			
		
	
		
			
				
					|  |  |  |  |       if (isBlank(this.inputQuery.devCodeFk)) { | 
			
		
	
		
			
				
					|  |  |  |  |         return this.$message.error("请先选择设备"); | 
			
		
	
		
			
				
					|  |  |  |  |         return this.$message.error('请先选择设备') | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       console.log(this.inputQuery.devCodeFk) | 
			
		
	
		
			
				
					|  |  |  |  |       if (this.$isNotBlank(row) && this.$isNotBlank(row.id)) { | 
			
		
	
		
			
				
					|  |  |  |  |         this.formName = 2 | 
			
		
	
		
			
				
					|  |  |  |  |         this.inputQuery.formData = row; | 
			
		
	
		
			
				
					|  |  |  |  |         this.editTye = 2; | 
			
		
	
		
			
				
					|  |  |  |  |         this.formName = "edit" | 
			
		
	
		
			
				
					|  |  |  |  |         this.inputQuery.formData = row | 
			
		
	
		
			
				
					|  |  |  |  |         this.editTye = 2 | 
			
		
	
		
			
				
					|  |  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |  |         this.formName = 1; | 
			
		
	
		
			
				
					|  |  |  |  |         this.inputQuery.formData = {}; | 
			
		
	
		
			
				
					|  |  |  |  |         this.inputQuery.formData.addType = 1; | 
			
		
	
		
			
				
					|  |  |  |  |         this.editTye = 1; | 
			
		
	
		
			
				
					|  |  |  |  |         this.formName = "add" | 
			
		
	
		
			
				
					|  |  |  |  |         this.inputQuery.formData = {} | 
			
		
	
		
			
				
					|  |  |  |  |         this.inputQuery.formData.addType = 1 | 
			
		
	
		
			
				
					|  |  |  |  |         this.editTye = 1 | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.addCertVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.addCertVisible = true | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  |     //页数 | 
			
		
	
		
			
				
					|  |  |  |  |     certHandleCurrentChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.certQuery.page = val.page; | 
			
		
	
		
			
				
					|  |  |  |  |       this.certQuery.page = val.page | 
			
		
	
		
			
				
					|  |  |  |  |       // this.getCompanyCertList(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.getDeviceCertList(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.getDeviceCertList() | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     getDeviceCertList() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.certLoading = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.certLoading = true | 
			
		
	
		
			
				
					|  |  |  |  |       // let certRuery = {} | 
			
		
	
		
			
				
					|  |  |  |  |       // this.certQuery.customerId = this.inputEdit.customerId; | 
			
		
	
		
			
				
					|  |  |  |  |       console.log("获取idQuery:") | 
			
		
	
		
			
				
					|  |  |  |  |       console.log(this.idQuery) | 
			
		
	
		
			
				
					|  |  |  |  |       this.certQuery.devCodeFk = this.idQuery.code; | 
			
		
	
		
			
				
					|  |  |  |  |       this.certQuery.type=1; | 
			
		
	
		
			
				
					|  |  |  |  |       this.inputQuery={...this.idQuery}; | 
			
		
	
		
			
				
					|  |  |  |  |       this.inputQuery.devCodeFk=this.idQuery.code; | 
			
		
	
		
			
				
					|  |  |  |  |       console.log(this.inputQuery); | 
			
		
	
		
			
				
					|  |  |  |  |       console.log("获取this.certQuery:") | 
			
		
	
		
			
				
					|  |  |  |  |       console.log(this.certQuery) | 
			
		
	
		
			
				
					|  |  |  |  |       // console.log('获取idQuery:') | 
			
		
	
		
			
				
					|  |  |  |  |       // console.log(this.idQuery) | 
			
		
	
		
			
				
					|  |  |  |  |       this.certQuery.devCodeFk = this.idQuery.devCodeFk | 
			
		
	
		
			
				
					|  |  |  |  |       this.certQuery.type = 1 | 
			
		
	
		
			
				
					|  |  |  |  |       this.inputQuery = { ...this.idQuery } | 
			
		
	
		
			
				
					|  |  |  |  |       this.inputQuery.devCodeFk = this.idQuery.devCodeFk | 
			
		
	
		
			
				
					|  |  |  |  |       // console.log(this.inputQuery) | 
			
		
	
		
			
				
					|  |  |  |  |       // console.log('获取this.certQuery:') | 
			
		
	
		
			
				
					|  |  |  |  |       // console.log(this.certQuery) | 
			
		
	
		
			
				
					|  |  |  |  |       filterDeviceCert(this.certQuery) | 
			
		
	
		
			
				
					|  |  |  |  |         .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |           this.certLoading = false; | 
			
		
	
		
			
				
					|  |  |  |  |           this.certList = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |           this.certTotal = response.data.total; | 
			
		
	
		
			
				
					|  |  |  |  |           this.certLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |           this.certList = response.data.list || [] | 
			
		
	
		
			
				
					|  |  |  |  |           this.certTotal = response.data.total | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |         .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |           this.certLoading = false; | 
			
		
	
		
			
				
					|  |  |  |  |           this.certList = []; | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |           this.certLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |           this.certList = [] | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     deleteDeviceCert(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.$confirm("是否删除?", "提示", { | 
			
		
	
		
			
				
					|  |  |  |  |         confirmButtonText: "确定", | 
			
		
	
		
			
				
					|  |  |  |  |         cancelButtonText: "取消", | 
			
		
	
		
			
				
					|  |  |  |  |         type: "warning", | 
			
		
	
		
			
				
					|  |  |  |  |       this.$confirm('是否删除?', '提示', { | 
			
		
	
		
			
				
					|  |  |  |  |         confirmButtonText: '确定', | 
			
		
	
		
			
				
					|  |  |  |  |         cancelButtonText: '取消', | 
			
		
	
		
			
				
					|  |  |  |  |         type: 'warning' | 
			
		
	
		
			
				
					|  |  |  |  |       }).then(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.certLoading = true; | 
			
		
	
		
			
				
					|  |  |  |  |         this.certLoading = true | 
			
		
	
		
			
				
					|  |  |  |  |         let tquery = { | 
			
		
	
		
			
				
					|  |  |  |  |           id: row.id, | 
			
		
	
		
			
				
					|  |  |  |  |           filePath: row.filePath, | 
			
		
	
		
			
				
					|  |  |  |  |         }; | 
			
		
	
		
			
				
					|  |  |  |  |           filePath: row.filePath | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         deleteDeviceCert(tquery) | 
			
		
	
		
			
				
					|  |  |  |  |           .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |             this.certLoading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             this.certLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |             if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |               this.getDeviceCertList(); | 
			
		
	
		
			
				
					|  |  |  |  |               this.getDeviceCertList() | 
			
		
	
		
			
				
					|  |  |  |  |               this.$message({ | 
			
		
	
		
			
				
					|  |  |  |  |                 type: "success", | 
			
		
	
		
			
				
					|  |  |  |  |                 message: "删除成功!", | 
			
		
	
		
			
				
					|  |  |  |  |               }); | 
			
		
	
		
			
				
					|  |  |  |  |                 type: 'success', | 
			
		
	
		
			
				
					|  |  |  |  |                 message: '删除成功!' | 
			
		
	
		
			
				
					|  |  |  |  |               }) | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |               this.$message.error(response.message); | 
			
		
	
		
			
				
					|  |  |  |  |               this.$message.error(response.message) | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |           }) | 
			
		
	
		
			
				
					|  |  |  |  |           .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |             this.certLoading = false; | 
			
		
	
		
			
				
					|  |  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |  |             this.certLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |           }) | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   , | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     // console.log("触发设备资质组件 idQuery",this.idQuery) | 
			
		
	
		
			
				
					|  |  |  |  |     // if (this.rowData.editType == 1) { | 
			
		
	
		
			
				
					|  |  |  |  |     this.getDeviceCertList() | 
			
		
	
		
			
				
					|  |  |  |  |     // } | 
			
		
	
		
			
				
					|  |  |  |  |     // this.getBasicUnitMaintainsList(); | 
			
		
	
		
			
				
					|  |  |  |  |     this.headers = { | 
			
		
	
		
			
				
					|  |  |  |  |       ADMINID: store.getters.adminId, | 
			
		
	
		
			
				
					|  |  |  |  |       ADMINTOKEN: store.getters.token | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   components: { | 
			
		
	
		
			
				
					|  |  |  |  |     draggable, deviceAddCert, corpMaintainSelect, supCertSetSelectDialog, ElImageViewer | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   // filters: { | 
			
		
	
		
			
				
					|  |  |  |  |   //   statusFilterType(status) { | 
			
		
	
		
			
				
					|  |  |  |  |   //     const statusMap = { | 
			
		
	
	
		
			
				
					|  |  |  | @ -437,7 +445,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |   //   , | 
			
		
	
		
			
				
					|  |  |  |  |   // }, | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | ; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
		
			
				
					|  |  |  |  | <style scoped> | 
			
		
	
		
			
				
					|  |  |  |  | .itemTag { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |