|
|
|
|
@ -22,8 +22,8 @@ |
|
|
|
|
<el-button @click="handleIssue" type="primary"> 批量下发 </el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu-right="{ size }"> |
|
|
|
|
<el-button type="warning" plain>临期</el-button> |
|
|
|
|
<el-button type="danger" plain>超期</el-button> |
|
|
|
|
<el-button type="warning" plain @click="handleSearch(1)">临期</el-button> |
|
|
|
|
<el-button type="danger" plain @click="handleSearch(2)">超期</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<el-button type="text" @click="handleView(scope.row, 'view')">详情</el-button> |
|
|
|
|
@ -334,7 +334,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '试验标准', |
|
|
|
|
prop: 'cycleTestItemStandard', |
|
|
|
|
prop: 'cycleTestStandardName', |
|
|
|
|
type: 'textarea', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
@ -517,7 +517,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
selectionList: [], |
|
|
|
|
dialogType: '', |
|
|
|
|
issueType:'one' |
|
|
|
|
issueType:'one', |
|
|
|
|
filterType:'' |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
@ -603,6 +604,12 @@ export default { |
|
|
|
|
this.issueDialog = true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 临期超期筛选数据 |
|
|
|
|
handleSearch(val){ |
|
|
|
|
this.page.currentPage = 1 |
|
|
|
|
this.filterType = val |
|
|
|
|
this.onLoad(this.page) |
|
|
|
|
}, |
|
|
|
|
// 单个下发 |
|
|
|
|
issueRow(row) { |
|
|
|
|
this.issueType = 'one' |
|
|
|
|
@ -627,8 +634,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
writeSubmit() { |
|
|
|
|
this.$refs.writeForm.validate(valid => { |
|
|
|
|
console.log('valid=============================', valid); |
|
|
|
|
console.log('fileList=============================', this.fileList); |
|
|
|
|
if (valid) { |
|
|
|
|
let params ={ |
|
|
|
|
id:this.writeForm.id, |
|
|
|
|
@ -637,7 +642,6 @@ export default { |
|
|
|
|
testAttachId:this.writeForm.isDone == 1 ? this.fileList.map(item => item.attachId).join(',') : '', |
|
|
|
|
reasonForNo:this.writeForm.isDone == 2 ? this.writeForm.reasonForNo ? this.writeForm.reasonForNo : '' : '' |
|
|
|
|
} |
|
|
|
|
console.log('params==============',params) |
|
|
|
|
writeTask(params).then(res =>{ |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
this.$message.success('填报成功') |
|
|
|
|
@ -651,10 +655,12 @@ export default { |
|
|
|
|
}, |
|
|
|
|
searchReset() { |
|
|
|
|
this.query = {}; |
|
|
|
|
this.filterType = '' |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
}, |
|
|
|
|
searchChange(params, done) { |
|
|
|
|
this.query = params; |
|
|
|
|
this.filterType = '' |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.onLoad(this.page, params); |
|
|
|
|
done(); |
|
|
|
|
@ -705,7 +711,7 @@ export default { |
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query),this.filterType).then(res => { |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
|
|