-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1019,13 +1083,17 @@
:remove-visible="authFileRemove"
:preview-visible="authFilePreview"
: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="序列号"
:height="secondHeight - 25"
style="margin-top: 2px"
- :columns="fileColumnList"
+ :columns="rohsAttachmentSummaryColumnList"
:order-ref1="currentRow.site"
- :order-ref2="currentRow.referenceNo"
- order-ref3="rohsAttachment">
+ :order-ref2="currentRow.referenceNo">
@@ -1151,6 +1219,94 @@ export default {
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: [
{
columnProp: 'fileNo',
@@ -1389,7 +1545,10 @@ export default {
if (val === 'attachmentInfo' || val === 'npdInfo') {
this.$nextTick(() => {
if (val === 'attachmentInfo') {
- this.refreshOssRef('modalAttachmentOss')
+ this.refreshOssRef('modalAttachmentTdsOss')
+ this.refreshOssRef('modalAttachmentMsdsOss')
+ this.refreshOssRef('modalAttachmentTestReportOss')
+ this.refreshOssRef('modalAttachmentOtherOss')
}
if (val === 'npdInfo') {
this.refreshOssRef('modalTdsOss')
@@ -2290,7 +2449,10 @@ export default {
})
},
refreshAttachmentPanels () {
- this.refreshOssRef('modalAttachmentOss')
+ this.refreshOssRef('modalAttachmentTdsOss')
+ this.refreshOssRef('modalAttachmentMsdsOss')
+ this.refreshOssRef('modalAttachmentTestReportOss')
+ this.refreshOssRef('modalAttachmentOtherOss')
this.refreshOssRef('modalTdsOss')
this.refreshOssRef('bottomAttachmentOss')
this.refreshOssRef('bottomTdsOss')