| | |
| | | } |
| | | } |
| | | |
| | | int i=0; |
| | | for (ConfigAuditReportProblem problem : configAuditDto.getProblemList()) { |
| | | i++; |
| | | problem.setReportId(reportId); |
| | | problem.setNo(i); |
| | | if (problem.getId() != null) { |
| | | problemService.update(problem); |
| | | } else { |
| | |
| | | from config_item_warehouse_detail |
| | | where project_id =${projectId} and is_delete =0 and src_id =${srcId} |
| | | ORDER BY UPDATE_DATE DESC |
| | | LIMIT 1 |
| | | </select> |
| | | </mapper> |
| | |
| | | <div> |
| | | <div style="text-align: center;font-weight: 600;border-bottom:1px solid rgba(0,0,0,.2);height: 40px;line-height: 40px;font-size: 18px">审核内容</div> |
| | | <el-form-item label="状态标记" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> |
| | | √合格 ×不合格 NA不适用 |
| | | √合格   ×不合格   NA不适用 |
| | | </el-form-item> |
| | | <div class="table-container"> |
| | | <el-table ref="tableConfigAuditList" class="el-software el-margin-top-bot" border |
| | |
| | | <el-input v-model="row.auditContent" placeholder="审核内容"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="auditResult" align="center" width="150" label="审核结果"> |
| | | <el-table-column prop="auditResult" align="center" width="200" label="审核结果"> |
| | | <template v-slot="{ row }"> |
| | | <zt-dict v-model="row.auditResult" placeholder="审核结果" dict="status_tag" |
| | | clearable></zt-dict> |
| | | <zt-dict v-model="row.auditResult" placeholder="审核结果" dict="status_tag" :radio="true"></zt-dict> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remark" label="备注" width="100" align="center"> |
| | |
| | | ...res.data |
| | | } |
| | | if(this.dataForm.configAuditReport === null){ |
| | | this.dataForm.contractReview={} |
| | | this.dataForm.configAuditReport={} |
| | | } |
| | | console.log(this.dataForm, "getInfo this.dataForm") |
| | | }, |
| | |
| | | return |
| | | } |
| | | if (submitType === 'tj' || submitType === 'bl') { |
| | | console.log(this.stepMarker, "this.stepMarker") |
| | | if (this.stepMarker === 'wplz_wpjs') { |
| | | if (this.dataForm.circulatOrder.acceptSituation == null || this.dataForm.circulatOrder.virusLibraryVersion == null) { |
| | | if (!this.dataForm.circulatOrder.acceptSituation || !this.dataForm.circulatOrder.virusLibraryVersion) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | | } |
| | | if (this.stepMarker === 'wplz_jcjs') { |
| | | if (this.dataForm.circulatOrder.detectAcceptSituation == null) { |
| | | if (!this.dataForm.circulatOrder.detectAcceptSituation) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | | } |
| | | if (this.stepMarker === 'wplz_xzjc') { |
| | | if (this.dataForm.circulatOrder.detectSituation == null) { |
| | | if (!this.dataForm.circulatOrder.detectSituation) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | | } |
| | | if (this.stepMarker === 'wplz_wprk') { |
| | | if (this.dataForm.circulatOrder.depositSituation == null) { |
| | | if (!this.dataForm.circulatOrder.depositSituation) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | |
| | | <div class="" style="width: 100%;"> |
| | | <div class="el-flex" style="height: 40px"> |
| | | <div style="width: 60%"> |
| | | <zt-select v-model="dataForm.softwareTestOrder.contractSign" url="/sys/userEx/getUsersList" |
| | | <zt-select v-model="dataForm.softwareTestOrder.contractSign" :datas="usersList" |
| | | placeholder="承托方人员"/> |
| | | <!-- <span>{{ dataForm.contractSign }}</span>--> |
| | | </div> |
| | |
| | | }, |
| | | deliverableList: [], |
| | | measuredList: [], |
| | | } |
| | | }, |
| | | usersList:[] |
| | | } |
| | | }, |
| | | methods: { |
| | | // getDictLabel(event,name){ |
| | | // if(name.indexOf("其他")!=-1){ |
| | | // console.log(name,'字典名字q34567') |
| | | // this.eventIndex = event |
| | | // this.inputName='q14eeff' |
| | | // } |
| | | // }, |
| | | getChangeInputData(data, ogn) { |
| | | // console.log(ogn) |
| | | this.$set(this.dataForm.softwareTestOrder, ogn, data); |
| | |
| | | this.dataForm.testAgencyInfo = {} |
| | | } |
| | | } |
| | | await this.getusersList() |
| | | // console.log(this.dataForm, "this.dataForm") |
| | | console.log(this.dataForm, "getInfo this.dataForm") |
| | | }, |
| | |
| | | tableBody.scrollTop = tableBody.scrollHeight |
| | | }) |
| | | }, |
| | | async getusersList() { |
| | | let res = await this.$http.get(`/sys/userEx/getUsersList`) |
| | | if (res.success) { |
| | | this.usersList = res.data; |
| | | } |
| | | }, |
| | | async deleteDeliverableRow(index,id) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | if (id != null) { |
| | |
| | | |
| | | package com.zt.modules.oss.cloud; |
| | | |
| | | import com.aspose.words.Document; |
| | | import com.aspose.words.SaveFormat; |
| | | import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
| | | import com.spire.xls.Workbook; |
| | | import com.zt.common.exception.ErrorCode; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.*; |
| | | import java.net.URLEncoder; |
| | | import java.nio.charset.StandardCharsets; |
| | | |
| | | /** |
| | | * 本地上传 |
| | |
| | | documentBytes = outputStream.toByteArray(); |
| | | headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); |
| | | } |
| | | if (filename.endsWith(".doc") || filename.endsWith(".docx") || filename.endsWith(".xlsx")) { |
| | | |
| | | if (filename.endsWith(".doc")) { |
| | | // 使用 Aspose.Words 进行文档转换 |
| | | Document doc = new Document(in); |
| | | ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
| | | doc.save(outputStream, SaveFormat.DOCX); |
| | | |
| | | documentBytes = outputStream.toByteArray(); |
| | | headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); |
| | | headers.setContentDispositionFormData("attachment", filename.replace(".doc", ".docx")); |
| | | |
| | | } else if (filename.endsWith(".docx") || filename.endsWith(".xlsx")) { |
| | | documentBytes = FileCopyUtils.copyToByteArray(in); |
| | | headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); |
| | | headers.setContentDispositionFormData("attachment", filename); |