|
|
|
@ -205,6 +205,21 @@ |
|
|
|
<el-tab-pane label="变更记录" v-if="isAuth('101002002:change')" name="changeRecord"> |
|
|
|
<change-record :data-list="changeRecordList" :height="240" :columns="columnChangeRecord"></change-record> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="产品文件" name="productFile"> |
|
|
|
<oss-components |
|
|
|
v-if="currentRow.testPartNo" |
|
|
|
ref="productFileOss" |
|
|
|
:order-ref1="currentRow.site" |
|
|
|
:order-ref2="currentRow.testPartNo" |
|
|
|
:order-ref3="'inventoryPart'" |
|
|
|
:columns="columnProductFileList" |
|
|
|
height="240px" |
|
|
|
title="产品文件" |
|
|
|
label="PLM物料编码" |
|
|
|
:disabled="false"> |
|
|
|
</oss-components> |
|
|
|
<div v-else style="text-align:center;color:#909399;padding:20px;">请在上方表格中选择一条物料记录</div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
@ -239,6 +254,7 @@ |
|
|
|
technicalSpecificationListSearchByAnyField |
|
|
|
} from "../../../../api/sampleManagement/technicalSpecificationList"; |
|
|
|
import {projectPartSearchByAnyField} from "../../../../api/project/project"; |
|
|
|
import OssComponents from "../../oss/ossComponents.vue"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
FilterSearch, |
|
|
|
@ -251,6 +267,7 @@ |
|
|
|
projectQuotation, |
|
|
|
sample, |
|
|
|
test, |
|
|
|
OssComponents, |
|
|
|
}, |
|
|
|
name: "searchProjectPart", |
|
|
|
data() { |
|
|
|
@ -755,6 +772,68 @@ |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
], |
|
|
|
columnProductFileList: [ |
|
|
|
{ |
|
|
|
columnProp: 'fileName', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '文件名', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 200 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'fileType', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '文件类型', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'createBy', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '上传人', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'createDate', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '上传时间', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 150 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'fileRemark', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '备注', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 150 |
|
|
|
}, |
|
|
|
], |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -980,6 +1059,13 @@ |
|
|
|
if (this.activeName === 'changeRecord') { |
|
|
|
this.getChangeRecordList() |
|
|
|
} |
|
|
|
if (this.activeName === 'productFile') { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.$refs.productFileOss) { |
|
|
|
this.$refs.productFileOss.handleQuery() |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
refreshTable (type) { |
|
|
|
let inData = { |
|
|
|
|