|
|
@ -162,12 +162,12 @@ |
|
|
:title="modalTitle" |
|
|
:title="modalTitle" |
|
|
:visible.sync="modalFlag" |
|
|
:visible.sync="modalFlag" |
|
|
width="1012px" |
|
|
width="1012px" |
|
|
top="4vh" |
|
|
|
|
|
|
|
|
top="3.8vh" |
|
|
v-drag |
|
|
v-drag |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:showClose="false"> |
|
|
:showClose="false"> |
|
|
|
|
|
|
|
|
<el-tabs tab-position="left" type="border-card" v-model="activeName" style="width: 100%;height: 770px;"> |
|
|
|
|
|
|
|
|
<el-tabs tab-position="left" type="border-card" v-model="activeName" style="width: 100%;height: 777px;"> |
|
|
<!-- 基本信息 --> |
|
|
<!-- 基本信息 --> |
|
|
<el-tab-pane label="基本信息" name="basicInfo"> |
|
|
<el-tab-pane label="基本信息" name="basicInfo"> |
|
|
<div style="height: 755px"> |
|
|
<div style="height: 755px"> |
|
|
@ -526,7 +526,7 @@ |
|
|
:data="modalData.materialList" |
|
|
:data="modalData.materialList" |
|
|
@selection-change="materialSelectionChange" |
|
|
@selection-change="materialSelectionChange" |
|
|
:header-cell-style="materialDialogHeaderCellStyle" |
|
|
:header-cell-style="materialDialogHeaderCellStyle" |
|
|
:height="705" |
|
|
|
|
|
|
|
|
:height="715" |
|
|
style="width: 100%"> |
|
|
style="width: 100%"> |
|
|
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> |
|
|
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> |
|
|
<el-table-column type="index" label="序号" width="50" header-align="center" align="center"></el-table-column> |
|
|
<el-table-column type="index" label="序号" width="50" header-align="center" align="center"></el-table-column> |
|
|
@ -538,23 +538,87 @@ |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
|
|
|
|
|
|
<el-tab-pane label="附件信息" name="attachmentInfo"> |
|
|
<el-tab-pane label="附件信息" name="attachmentInfo"> |
|
|
<div style="height: 755px"> |
|
|
|
|
|
<oss-components |
|
|
|
|
|
ref="modalAttachmentOss" |
|
|
|
|
|
:save-visible="authFileSave" |
|
|
|
|
|
:download-visible="authFileDownLoad" |
|
|
|
|
|
:remove-visible="authFileRemove" |
|
|
|
|
|
:preview-visible="authFilePreview" |
|
|
|
|
|
:row-click-select="true" |
|
|
|
|
|
:disabled="modalData.status === '已完成'" |
|
|
|
|
|
label="序列号" |
|
|
|
|
|
:height="705" |
|
|
|
|
|
style="margin-top: 2px" |
|
|
|
|
|
:columns="fileColumnList" |
|
|
|
|
|
:order-ref1="modalData.site || ''" |
|
|
|
|
|
:order-ref2="modalData.referenceNo || ''" |
|
|
|
|
|
order-ref3="rohsAttachment"> |
|
|
|
|
|
</oss-components> |
|
|
|
|
|
|
|
|
<div style="height: 755px; overflow-y: auto;"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: -5px;"> |
|
|
|
|
|
<el-form-item label="TDS" style="display: block;"> |
|
|
|
|
|
<oss-components |
|
|
|
|
|
ref="modalAttachmentTdsOss" |
|
|
|
|
|
:save-visible="authFileSave" |
|
|
|
|
|
:download-visible="authFileDownLoad" |
|
|
|
|
|
:remove-visible="authFileRemove" |
|
|
|
|
|
:preview-visible="authFilePreview" |
|
|
|
|
|
:row-click-select="true" |
|
|
|
|
|
:disabled="modalData.status === '已完成'" |
|
|
|
|
|
label="序列号" |
|
|
|
|
|
:height="145" |
|
|
|
|
|
style="margin-top: 2px" |
|
|
|
|
|
:columns="fileColumnList" |
|
|
|
|
|
:order-ref1="modalData.site || ''" |
|
|
|
|
|
:order-ref2="modalData.referenceNo || ''" |
|
|
|
|
|
order-ref3="rohsAttachmentTds"> |
|
|
|
|
|
</oss-components> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: 150px;"> |
|
|
|
|
|
<el-form-item label="MSDS" style="display: block;"> |
|
|
|
|
|
<oss-components |
|
|
|
|
|
ref="modalAttachmentMsdsOss" |
|
|
|
|
|
:save-visible="authFileSave" |
|
|
|
|
|
:download-visible="authFileDownLoad" |
|
|
|
|
|
:remove-visible="authFileRemove" |
|
|
|
|
|
:preview-visible="authFilePreview" |
|
|
|
|
|
:row-click-select="true" |
|
|
|
|
|
:disabled="modalData.status === '已完成'" |
|
|
|
|
|
label="序列号" |
|
|
|
|
|
:height="145" |
|
|
|
|
|
style="margin-top: 2px" |
|
|
|
|
|
:columns="fileColumnList" |
|
|
|
|
|
:order-ref1="modalData.site || ''" |
|
|
|
|
|
:order-ref2="modalData.referenceNo || ''" |
|
|
|
|
|
order-ref3="rohsAttachmentMsds"> |
|
|
|
|
|
</oss-components> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: 150px;"> |
|
|
|
|
|
<el-form-item label="测试报告/Test Report" style="display: block;"> |
|
|
|
|
|
<oss-components |
|
|
|
|
|
ref="modalAttachmentTestReportOss" |
|
|
|
|
|
:save-visible="authFileSave" |
|
|
|
|
|
:download-visible="authFileDownLoad" |
|
|
|
|
|
:remove-visible="authFileRemove" |
|
|
|
|
|
:preview-visible="authFilePreview" |
|
|
|
|
|
:row-click-select="true" |
|
|
|
|
|
:disabled="modalData.status === '已完成'" |
|
|
|
|
|
label="序列号" |
|
|
|
|
|
:height="145" |
|
|
|
|
|
style="margin-top: 2px" |
|
|
|
|
|
:columns="fileColumnList" |
|
|
|
|
|
:order-ref1="modalData.site || ''" |
|
|
|
|
|
:order-ref2="modalData.referenceNo || ''" |
|
|
|
|
|
order-ref3="rohsAttachmentTestReport"> |
|
|
|
|
|
</oss-components> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-top: 150px;"> |
|
|
|
|
|
<el-form-item label="Other" style="display: block;"> |
|
|
|
|
|
<oss-components |
|
|
|
|
|
ref="modalAttachmentOtherOss" |
|
|
|
|
|
:save-visible="authFileSave" |
|
|
|
|
|
:download-visible="authFileDownLoad" |
|
|
|
|
|
:remove-visible="authFileRemove" |
|
|
|
|
|
:preview-visible="authFilePreview" |
|
|
|
|
|
:row-click-select="true" |
|
|
|
|
|
:disabled="modalData.status === '已完成'" |
|
|
|
|
|
label="序列号" |
|
|
|
|
|
:height="145" |
|
|
|
|
|
style="margin-top: 2px" |
|
|
|
|
|
:columns="fileColumnList" |
|
|
|
|
|
:order-ref1="modalData.site || ''" |
|
|
|
|
|
:order-ref2="modalData.referenceNo || ''" |
|
|
|
|
|
order-ref3="rohsAttachmentOther"> |
|
|
|
|
|
</oss-components> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
@ -1019,13 +1083,17 @@ |
|
|
:remove-visible="authFileRemove" |
|
|
:remove-visible="authFileRemove" |
|
|
:preview-visible="authFilePreview" |
|
|
:preview-visible="authFilePreview" |
|
|
:disabled="currentRow.status === '已完成'" |
|
|
:disabled="currentRow.status === '已完成'" |
|
|
|
|
|
:show-order-ref3-filter="true" |
|
|
|
|
|
:order-ref3-filter-options="rohsAttachmentTypeOptionList" |
|
|
|
|
|
:query-order-ref3-list="rohsAttachmentQueryOrderRef3List" |
|
|
|
|
|
:order-ref3-filter-query-map="rohsAttachmentTypeFilterQueryMap" |
|
|
|
|
|
:order-ref3-label-map="rohsAttachmentTypeLabelMap" |
|
|
label="序列号" |
|
|
label="序列号" |
|
|
:height="secondHeight - 25" |
|
|
:height="secondHeight - 25" |
|
|
style="margin-top: 2px" |
|
|
style="margin-top: 2px" |
|
|
:columns="fileColumnList" |
|
|
|
|
|
|
|
|
:columns="rohsAttachmentSummaryColumnList" |
|
|
:order-ref1="currentRow.site" |
|
|
:order-ref1="currentRow.site" |
|
|
:order-ref2="currentRow.referenceNo" |
|
|
|
|
|
order-ref3="rohsAttachment"> |
|
|
|
|
|
|
|
|
:order-ref2="currentRow.referenceNo"> |
|
|
</oss-components> |
|
|
</oss-components> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="审批信息" name="approvalInformation"> |
|
|
<el-tab-pane label="审批信息" name="approvalInformation"> |
|
|
@ -1151,6 +1219,94 @@ export default { |
|
|
columnWidth: 120 |
|
|
columnWidth: 120 |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
rohsAttachmentTypeOptionList: [ |
|
|
|
|
|
{ value: 'rohsAttachmentTds', label: 'TDS' }, |
|
|
|
|
|
{ value: 'rohsAttachmentMsds', label: 'MSDS' }, |
|
|
|
|
|
{ value: 'rohsAttachmentTestReport', label: '测试报告' }, |
|
|
|
|
|
{ value: 'rohsAttachmentOther', label: 'Other' } |
|
|
|
|
|
], |
|
|
|
|
|
rohsAttachmentTypeLabelMap: { |
|
|
|
|
|
rohsAttachmentTds: 'TDS', |
|
|
|
|
|
rohsAttachmentMsds: 'MSDS', |
|
|
|
|
|
rohsAttachmentTestReport: '测试报告', |
|
|
|
|
|
rohsAttachmentOther: 'Other', |
|
|
|
|
|
rohsAttachment: 'Other' |
|
|
|
|
|
}, |
|
|
|
|
|
rohsAttachmentQueryOrderRef3List: [ |
|
|
|
|
|
'rohsAttachmentTds', |
|
|
|
|
|
'rohsAttachmentMsds', |
|
|
|
|
|
'rohsAttachmentTestReport', |
|
|
|
|
|
'rohsAttachmentOther', |
|
|
|
|
|
'rohsAttachment' |
|
|
|
|
|
], |
|
|
|
|
|
rohsAttachmentTypeFilterQueryMap: { |
|
|
|
|
|
rohsAttachmentTds: ['rohsAttachmentTds'], |
|
|
|
|
|
rohsAttachmentMsds: ['rohsAttachmentMsds'], |
|
|
|
|
|
rohsAttachmentTestReport: ['rohsAttachmentTestReport'], |
|
|
|
|
|
rohsAttachmentOther: ['rohsAttachmentOther', 'rohsAttachment'] |
|
|
|
|
|
}, |
|
|
|
|
|
rohsAttachmentSummaryColumnList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'orderRef3Label', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '类型', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'fileName', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '文件名称', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 160 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'fileRemark', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '备注', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 220 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'createDate', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '上传时间', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 160 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: 'createBy', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '上传人', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120 |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
tdsFileColumnList: [ |
|
|
tdsFileColumnList: [ |
|
|
{ |
|
|
{ |
|
|
columnProp: 'fileNo', |
|
|
columnProp: 'fileNo', |
|
|
@ -1389,7 +1545,10 @@ export default { |
|
|
if (val === 'attachmentInfo' || val === 'npdInfo') { |
|
|
if (val === 'attachmentInfo' || val === 'npdInfo') { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (val === 'attachmentInfo') { |
|
|
if (val === 'attachmentInfo') { |
|
|
this.refreshOssRef('modalAttachmentOss') |
|
|
|
|
|
|
|
|
this.refreshOssRef('modalAttachmentTdsOss') |
|
|
|
|
|
this.refreshOssRef('modalAttachmentMsdsOss') |
|
|
|
|
|
this.refreshOssRef('modalAttachmentTestReportOss') |
|
|
|
|
|
this.refreshOssRef('modalAttachmentOtherOss') |
|
|
} |
|
|
} |
|
|
if (val === 'npdInfo') { |
|
|
if (val === 'npdInfo') { |
|
|
this.refreshOssRef('modalTdsOss') |
|
|
this.refreshOssRef('modalTdsOss') |
|
|
@ -2290,7 +2449,10 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
refreshAttachmentPanels () { |
|
|
refreshAttachmentPanels () { |
|
|
this.refreshOssRef('modalAttachmentOss') |
|
|
|
|
|
|
|
|
this.refreshOssRef('modalAttachmentTdsOss') |
|
|
|
|
|
this.refreshOssRef('modalAttachmentMsdsOss') |
|
|
|
|
|
this.refreshOssRef('modalAttachmentTestReportOss') |
|
|
|
|
|
this.refreshOssRef('modalAttachmentOtherOss') |
|
|
this.refreshOssRef('modalTdsOss') |
|
|
this.refreshOssRef('modalTdsOss') |
|
|
this.refreshOssRef('bottomAttachmentOss') |
|
|
this.refreshOssRef('bottomAttachmentOss') |
|
|
this.refreshOssRef('bottomTdsOss') |
|
|
this.refreshOssRef('bottomTdsOss') |
|
|
|