|
|
@ -230,6 +230,7 @@ |
|
|
<el-form :inline="true" label-position="top" style="margin-top: -15px"> |
|
|
<el-form :inline="true" label-position="top" style="margin-top: -15px"> |
|
|
<el-form-item label=" "> |
|
|
<el-form-item label=" "> |
|
|
<el-button type="primary" :disabled="showModalFlag" @click="openPropertyChooseModal">选择属性信息</el-button> |
|
|
<el-button type="primary" :disabled="showModalFlag" @click="openPropertyChooseModal">选择属性信息</el-button> |
|
|
|
|
|
<el-button type="primary" style="margin-left: 8px;" @click="openTestSpecDialog">测试规范</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
@ -451,6 +452,31 @@ |
|
|
</oss-components> |
|
|
</oss-components> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
|
title="测试规范附件" |
|
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
|
:visible.sync="testSpecDialogVisible" |
|
|
|
|
|
width="900px" |
|
|
|
|
|
v-drag |
|
|
|
|
|
@close="handleTestSpecDialogClose"> |
|
|
|
|
|
<oss-components |
|
|
|
|
|
ref="testSpecOss" |
|
|
|
|
|
:save-visible="authFileSave" |
|
|
|
|
|
:download-visible="authFileDownLoad" |
|
|
|
|
|
:remove-visible="authFileRemove" |
|
|
|
|
|
:preview-visible="authFilePreview" |
|
|
|
|
|
:disabled="showModalFlag || modalData.status === '已完成'" |
|
|
|
|
|
:row-click-select="true" |
|
|
|
|
|
label="序列号" |
|
|
|
|
|
:height="460" |
|
|
|
|
|
style="margin-top: 2px" |
|
|
|
|
|
:columns="judgeCriteriaFileColumnList" |
|
|
|
|
|
:order-ref1="modalData.site || ''" |
|
|
|
|
|
:order-ref2="modalData.referenceNo || ''" |
|
|
|
|
|
order-ref3="testSpec"> |
|
|
|
|
|
</oss-components> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog title="选择-项目" :close-on-click-modal="false" @close="closeProjectInfoDialog" |
|
|
<el-dialog title="选择-项目" :close-on-click-modal="false" @close="closeProjectInfoDialog" |
|
|
@open="searchProjectInfoList" :visible.sync="chooseProjectListFlag" width="35%"> |
|
|
@open="searchProjectInfoList" :visible.sync="chooseProjectListFlag" width="35%"> |
|
|
<el-form label-position="top" :model="searchProjectData" ref="closeProjectInfoForm"> |
|
|
<el-form label-position="top" :model="searchProjectData" ref="closeProjectInfoForm"> |
|
|
@ -580,6 +606,7 @@ export default { |
|
|
tagNo1: null, |
|
|
tagNo1: null, |
|
|
modalFlag: false, |
|
|
modalFlag: false, |
|
|
judgeCriteriaDialogVisible: false, |
|
|
judgeCriteriaDialogVisible: false, |
|
|
|
|
|
testSpecDialogVisible: false, |
|
|
judgeCriteriaFileList: [], |
|
|
judgeCriteriaFileList: [], |
|
|
judgeCriteriaFileColumnList: [ |
|
|
judgeCriteriaFileColumnList: [ |
|
|
{ |
|
|
{ |
|
|
@ -778,6 +805,7 @@ export default { |
|
|
if (!site || this.isEditMode) { |
|
|
if (!site || this.isEditMode) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
this.testSpecDialogVisible = false |
|
|
this.modalData.customerId = '' |
|
|
this.modalData.customerId = '' |
|
|
this.modalData.customerName = '' |
|
|
this.modalData.customerName = '' |
|
|
this.modalData.projectId = '' |
|
|
this.modalData.projectId = '' |
|
|
@ -886,6 +914,12 @@ export default { |
|
|
ref.handleQuery() |
|
|
ref.handleQuery() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
refreshTestSpecOssTable () { |
|
|
|
|
|
const ref = this.$refs.testSpecOss |
|
|
|
|
|
if (ref && typeof ref.handleQuery === 'function') { |
|
|
|
|
|
ref.handleQuery() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
refreshJudgeCriteriaFileList () { |
|
|
refreshJudgeCriteriaFileList () { |
|
|
if (!this.modalData.site || !this.modalData.referenceNo) { |
|
|
if (!this.modalData.site || !this.modalData.referenceNo) { |
|
|
this.judgeCriteriaFileList = [] |
|
|
this.judgeCriteriaFileList = [] |
|
|
@ -921,9 +955,26 @@ export default { |
|
|
this.refreshJudgeCriteriaOssTable() |
|
|
this.refreshJudgeCriteriaOssTable() |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
openTestSpecDialog () { |
|
|
|
|
|
if (!this.modalData.site) { |
|
|
|
|
|
this.$message.warning('请先选择申请工厂') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (!this.modalData.referenceNo) { |
|
|
|
|
|
this.$message.warning('单据编号为空,无法上传附件') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.testSpecDialogVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.refreshTestSpecOssTable() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
handleJudgeCriteriaDialogClose () { |
|
|
handleJudgeCriteriaDialogClose () { |
|
|
this.refreshJudgeCriteriaFileList() |
|
|
this.refreshJudgeCriteriaFileList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
handleTestSpecDialogClose () { |
|
|
|
|
|
// placeholder to align with dialog close event and keep lifecycle symmetric |
|
|
|
|
|
}, |
|
|
previewJudgeCriteriaFile (row) { |
|
|
previewJudgeCriteriaFile (row) { |
|
|
if (!this.authFilePreview) { |
|
|
if (!this.authFilePreview) { |
|
|
this.$message.warning('没有附件预览权限') |
|
|
this.$message.warning('没有附件预览权限') |
|
|
@ -1480,6 +1531,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
handleModalClose () { |
|
|
handleModalClose () { |
|
|
this.judgeCriteriaDialogVisible = false |
|
|
this.judgeCriteriaDialogVisible = false |
|
|
|
|
|
this.testSpecDialogVisible = false |
|
|
this.modalFlag = false |
|
|
this.modalFlag = false |
|
|
}, |
|
|
}, |
|
|
buildLabPayload (source) { |
|
|
buildLabPayload (source) { |
|
|
|