| | |
| | | :componentData="componentDataDataLook"/> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 新-跟报告生成的一样 --> |
| | | <el-dialog |
| | | title="数据查看" |
| | | :visible.sync="lookDialogVisible" |
| | | width="60%" |
| | | :append-to-body="true" |
| | | :modal="!lookDialogVisible0" |
| | | > |
| | | <div style="max-height: 75vh;overflow-y: auto;"> |
| | | <template v-for="(a,b) in sampleList"> |
| | | <el-divider></el-divider> |
| | | <p style="margin: 10px 0;font-weight: 700;">样品:<el-tag size="small">{{a.insSample.sample}}</el-tag> 样品编号:{{a.insSample.sampleCode}}</p> |
| | | <el-card class="box-card" style="margin-top: 16px;" v-for="(item,index) in a.historyList" :key="index"> |
| | | <div slot="header" style="display: flex;justify-content: space-between;"> |
| | | <span>{{ item.laboratory }}</span> |
| | | </div> |
| | | <el-table |
| | | :data="item.insOrderUserList" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="submitTime" |
| | | label="提交日期" |
| | | min-width="150"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="submitUserName" |
| | | label="提交人" |
| | | min-width="90"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="term" |
| | | label="实验阶段" |
| | | min-width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="note" |
| | | label="实验操作" |
| | | min-width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="tell" |
| | | label="再次检验原因" |
| | | min-width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="操作" |
| | | min-width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="lookDetail(item,scope.row.num,a.insSample)" type="text" size="small">查看</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | <p v-if="a.historyList.length==0" style="text-align: center;">暂无检验数据</p> |
| | | </template> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="检验详情" |
| | | :visible.sync="lookDialogVisible0" |
| | | width="100%" :fullscreen="true" :modal="false" :append-to-body="true"> |
| | | <Inspection v-if="lookDialogVisible0" |
| | | :orderId="sampleId" |
| | | :orderId0="orderId0" |
| | | :userInfo="{}" |
| | | :inspectorList="currentItem.inspectorList" |
| | | :sonLaboratory="currentItem.laboratory" |
| | | :state="2" |
| | | :orderStateId="currentItem.orderStateId" |
| | | :version="currentItem.version" |
| | | :isLook="true" |
| | | :num1="currentItem.num1" |
| | | :noBack="true"/> |
| | | </el-dialog> |
| | | <el-dialog :title="deleteTilte" :visible.sync="deleteDialogVisible" width="80%"> |
| | | <div style="height: 70vh;overflow-y: auto;" v-if="deleteDialogVisible"> |
| | | <ValueTable ref="ValueTableDataDelete" :url="$api.insOrder.selectNoProducts+'?orderId='+orderId+'&ids='+this.revocationInsProductIds" |
| | |
| | | <script> |
| | | import ValueTable from '../tool/value-table.vue' |
| | | import Add from '../do/b1-ins-order/add.vue' |
| | | import Inspection from '../do/b1-inspect-order-plan/Inspection.vue' |
| | | import vueQr from 'vue-qr' |
| | | import PrintJS from 'print-js' |
| | | export default { |
| | | components: { |
| | | ValueTable, |
| | | Inspection, |
| | | Add, |
| | | vueQr |
| | | }, |
| | |
| | | BZDialogVisible:false, |
| | | downVisible:false, |
| | | downList:[], |
| | | formType:[] |
| | | formType:[], |
| | | currentInfo:{}, |
| | | sampleList:[], |
| | | lookDialogVisible:false, |
| | | lookDialogVisible0:false, |
| | | sampleId:null, |
| | | orderId0:null, |
| | | currentItem:{}, |
| | | } |
| | | }, |
| | | watch:{ |
| | |
| | | }, |
| | | // 数据查看 |
| | | handleDataLook(row) { |
| | | this.componentDataDataLook.entity.id = row.id |
| | | this.dataDialogVisible = true; |
| | | // this.componentDataDataLook.entity.id = row.id |
| | | // this.dataDialogVisible = true; |
| | | |
| | | this.currentInfo = row |
| | | this.$axios.get(this.$api.insReport.getInsOrderStateCount+'?id='+row.id).then(res => { |
| | | this.sampleList = res.data |
| | | this.sampleList.forEach(a=>{ |
| | | a.historyList = a.insOrderStates |
| | | a.historyList.forEach(item => { |
| | | item.arr = [] |
| | | this.$set(item,'numValue',1) |
| | | if(item.num>0){ |
| | | for(var i=0;i<item.num;i++){ |
| | | item.arr.push({ |
| | | label:'记录'+(i+1), |
| | | value:i+1 |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }) |
| | | this.lookDialogVisible = true |
| | | }) |
| | | }, |
| | | // 查看检验详情 |
| | | lookDetail(row,value,insSample){ |
| | | this.lookDialogVisible0 = true |
| | | let inspectorList = [] |
| | | if(row.userName){ |
| | | inspectorList = row.userName.split(',') |
| | | } |
| | | this.sampleId = insSample.id |
| | | this.orderId0 = insSample.insOrderId |
| | | this.currentItem = { |
| | | num1:value, |
| | | inspectorList:inspectorList, |
| | | ...row |
| | | } |
| | | }, |
| | | // 下载报告 |
| | | download(row) { |
| | | this.downList = row.reportDtos |