|
|
@ -939,7 +939,11 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 文件清单 --> |
|
|
<!-- 文件清单 --> |
|
|
<el-dialog title="文件清单" :close-on-click-modal="false" v-drag :visible.sync="fileFlag" width="900px"> |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" v-drag :visible.sync="fileFlag" width="900px"> |
|
|
|
|
|
<span slot="title" class="file-dialog-title"> |
|
|
|
|
|
<span>文件清单</span> |
|
|
|
|
|
<a class="file-dialog-link" href="#" @click.prevent="openFileExternalLink">外部链接</a> |
|
|
|
|
|
</span> |
|
|
<el-tabs v-model="fileActiveTab" type="border-card"> |
|
|
<el-tabs v-model="fileActiveTab" type="border-card"> |
|
|
<el-tab-pane label="QC检验文件" name="qcFile"> |
|
|
<el-tab-pane label="QC检验文件" name="qcFile"> |
|
|
<el-form :inline="true" label-position="top" style="margin-bottom: 10px;"> |
|
|
<el-form :inline="true" label-position="top" style="margin-bottom: 10px;"> |
|
|
@ -3648,6 +3652,18 @@ |
|
|
this.fileFlag = true |
|
|
this.fileFlag = true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 打开文件清单外部链接(按物料编码) |
|
|
|
|
|
openFileExternalLink () { |
|
|
|
|
|
const partNo = (this.currentFileRow && this.currentFileRow.partNo) || this.detailData.partNo |
|
|
|
|
|
if (!partNo) { |
|
|
|
|
|
this.$message.error('物料号不能为空') |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
const baseUrl = window.SITE_CONFIG['processDataUrl'] || 'http://pdm.bt.in/#/public/processData' |
|
|
|
|
|
const targetUrl = `${baseUrl}/${partNo}` |
|
|
|
|
|
window.open(targetUrl, '_blank') |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 获取SOP文件列表(FQC传所有条件:site, partNo, operationDesc, workcenterNo, orderNo) |
|
|
// 获取SOP文件列表(FQC传所有条件:site, partNo, operationDesc, workcenterNo, orderNo) |
|
|
getSopFileList(row) { |
|
|
getSopFileList(row) { |
|
|
this.sopFileLoading = true |
|
|
this.sopFileLoading = true |
|
|
@ -4678,6 +4694,25 @@ |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
.file-dialog-title { |
|
|
|
|
|
display: inline-flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
gap: 10px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.file-dialog-link { |
|
|
|
|
|
color: #17b3a3; |
|
|
|
|
|
text-decoration: underline; |
|
|
|
|
|
font-size: 13px; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.file-dialog-link:visited, |
|
|
|
|
|
.file-dialog-link:active, |
|
|
|
|
|
.file-dialog-link:hover { |
|
|
|
|
|
color: #17b3a3; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/* 搜索卡片样式 */ |
|
|
/* 搜索卡片样式 */ |
|
|
.search-card { |
|
|
.search-card { |
|
|
margin-bottom: 16px; |
|
|
margin-bottom: 16px; |
|
|
|