|
|
@ -49,6 +49,7 @@ |
|
|
|
:MaxResultCount="MaxResultCountDetails" |
|
|
|
@alterResultCountDetails="alterResultCountDetails" |
|
|
|
@alertoldSkipCountDetails="alertoldSkipCountDetails" |
|
|
|
@buttonClick="currenDrawerButtonClick" |
|
|
|
> |
|
|
|
<template v-if="currentTagName == 'hz' "> |
|
|
|
<!-- @buttonClick="buttonClick" --> |
|
|
@ -213,6 +214,7 @@ |
|
|
|
<pdf |
|
|
|
:urlPDF="urlPDF" |
|
|
|
:title="titlePDF" |
|
|
|
v-if="isShowPDF" |
|
|
|
:isShowPDF="isShowPDF" |
|
|
|
:loadingPDF="loadingPDF" |
|
|
|
@closePDF="closePDF" |
|
|
@ -221,7 +223,7 @@ |
|
|
|
|
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { getPageList, fileStorage, getListByItemcode, getDetailed } from "@/api/wms-api" |
|
|
|
import { getPageList, fileStorage, getListByItemcode, getDetailed,getFilestore } from "@/api/wms-api" |
|
|
|
import { completeSummaryDetailStatus, setDetailDefaultOkStatus, setDetailOkStatus, setDetailNookStatus } from "@/api/wms-job" |
|
|
|
import { tableMixins } from "@/mixins/TableMixins" |
|
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins" |
|
|
@ -519,6 +521,23 @@ export default { |
|
|
|
this.paging(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 抽屉内部按钮 |
|
|
|
currenDrawerButtonClick(val,index, label,item){ |
|
|
|
if(item.prop == "inspectReport"){ |
|
|
|
// 查看检验报告 |
|
|
|
let _file_id = JSON.parse(val.inspectReport)[0].FileKey |
|
|
|
this.isShowPDF = true |
|
|
|
if(this.loadingPDF)return |
|
|
|
this.loadingPDF = true |
|
|
|
getFilestore({blobName:_file_id}).then(res=>{ |
|
|
|
this.urlPDF = 'data:application/pdf;base64,'+res.bytes |
|
|
|
this.titlePDF = res.fileName |
|
|
|
this.loadingPDF = false |
|
|
|
}).catch(res=>{ |
|
|
|
this.loadingPDF = false |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
query() { |
|
|
|
let findRs = '' |
|
|
|
if (this.inputPackingCode == '') { |
|
|
@ -809,6 +828,7 @@ export default { |
|
|
|
bytes: arrayBuffer.substring(arrayBuffer.lastIndexOf(',')+1,arrayBuffer.length) |
|
|
|
} |
|
|
|
) |
|
|
|
console.log(830,{id: that.masterID, summaryDetailId: that.inspectNoticeDetailsFormData.id }, that.inspectNoticeDetailsFormData) |
|
|
|
completeSummaryDetailStatus({id: that.masterID, summaryDetailId: that.inspectNoticeDetailsFormData.id }, that.inspectNoticeDetailsFormData).then(res => { |
|
|
|
// 更新数据============================================================ |
|
|
|
that.inspectNoticeDetailsShow = false |
|
|
@ -819,7 +839,8 @@ export default { |
|
|
|
that.paging() |
|
|
|
that.$message.success('成功完成检验!') |
|
|
|
}).catch(err => { |
|
|
|
this.loading = false |
|
|
|
that.loading = false |
|
|
|
that.$message.error('检验失败,请重试!') |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
@ -834,7 +855,8 @@ export default { |
|
|
|
that.paging() |
|
|
|
that.$message.success('成功完成检验!') |
|
|
|
}).catch(err => { |
|
|
|
this.loading = false |
|
|
|
that.loading = false |
|
|
|
that.$message.error('检验失败,请重试!') |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
@ -993,6 +1015,9 @@ export default { |
|
|
|
}, |
|
|
|
closePDF(){ |
|
|
|
this.isShowPDF = false |
|
|
|
this.urlPDF = '' |
|
|
|
this.titlePDF = '' |
|
|
|
this.loadingPDF = false |
|
|
|
}, |
|
|
|
//设置指定行、列、具体单元格颜色 |
|
|
|
cellStyle({row, column, rowIndex, columnIndex}){ |
|
|
|