标准清单 检索中心

This commit is contained in:
宋伟佳
2021-06-24 18:00:23 +08:00
parent de7578716b
commit 2e19c04a9f
14 changed files with 2870 additions and 2423 deletions
@@ -151,6 +151,11 @@
width="180"
label="项目名称">
</el-table-column>
<el-table-column
prop="reason"
width="180"
label="不合规原因">
</el-table-column>
<el-table-column
prop="responsibleUnit"
width="180"
@@ -185,7 +190,6 @@
<i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'R4FTCUQSXFUZPUSN3W63'">查看</el-dropdown-item>
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'G7GL8ZAZ5EYK6LRXW5MT'">编辑</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
@@ -231,6 +235,9 @@
<el-form-item class="add-form-item" label="项目名称:">
<div class="seeItem">{{historySeeForm.productName}}</div>
</el-form-item>
<el-form-item class="add-form-item" label="不合规原因:">
<div class="seeItem">{{historySeeForm.reason}}</div>
</el-form-item>
<el-form-item class="add-form-item" label="责任部门:">
<div class="seeItem">{{historySeeForm.responsibleUnit}}</div>
</el-form-item>
@@ -243,8 +250,8 @@
<el-form-item class="add-form-item" label="质量工程师:">
<div class="seeItem">{{historySeeForm.qaEngineer}}</div>
</el-form-item>
<el-form-item class="add-form-item" label="要求关闭时间:">
<div class="seeItem">{{historySeeForm.actualCloseTime}}</div>
<el-form-item class="add-form-item" label="计划关闭时间:">
<div class="seeItem">{{historySeeForm.planCloseTime}}</div>
</el-form-item>
</el-form>
</div>
@@ -461,14 +468,16 @@ export default {
exportTestItem () {
if(this.saveExportType === 'apart') {
if (this.selectedList != null && this.selectedList != ''){
console.log(this.selectedList);
const exportURL = interfaceUrl + 'sarStandUnqualified/sar-stand-unqualified/exportStandUnqulifiedExcel?' +
'exportType' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName
'exportType' + this.saveExportType + '&ids=' + this.selectedList.join(',') + '&exportName=' + this.exportName
window.open(exportURL)
this.$message.success('导出信息成功')
}
} else if (this.saveExportType === 'all') {
console.log(this.selectedList);
const exportURL = interfaceUrl + 'sarStandUnqualified/sar-stand-unqualified/exportStandUnqulifiedExcel?' +
'exportType' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType
'exportType' + this.saveExportType + '&ids=' + this.selectedList.join(',') + '&exportName=' + this.exportName
window.open(exportURL)
this.$message.success('导出信息成功')
}
@@ -525,9 +534,6 @@ export default {
case '查看':
this.showUser(command[0])
break
case '编辑':
this.openEditModal(command[0])
break
}
},
//点击查看按钮事件
@@ -553,6 +559,36 @@ export default {
openEditModal(item) {
console.log(item)
},
detailsStandard (item) {
this.$http.post('lawss/sarTestItem/validateStandNumber', {
standnumber: item.standNum
}, {
_this: this
}, res => {
this.pageType = res.data.standType
let name = ''
switch (this.pageType) {
case 'FOREIGN_LAWS':
name = 'OtherLawsDetails'
break
case 'INLAND_STAND':
name = 'OtherStandardDetails'
break
case 'FOREIGN_STAND':
name = 'OtherStandardDetails'
break
}
let routeUrl = this.$router.resolve({
name: name,
params: {
id: res.data.standid,
pageType: this.pageType
}
})
window.open(routeUrl.href, '_blank')
}, e => {
})
},
// 分页事件
pageChange (page) {
this.pageNo = page