|
|
|
@ -22,7 +22,9 @@ |
|
|
|
:before-open="beforeOpen" |
|
|
|
:before-open="beforeOpen" |
|
|
|
> |
|
|
|
> |
|
|
|
<template #menu-left> </template> |
|
|
|
<template #menu-left> </template> |
|
|
|
<template #menu-right> </template> |
|
|
|
<template #menu-right> |
|
|
|
|
|
|
|
<el-button type="primary" @click="handleImport" v-if="permission.qualityGrade_import">导入</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template #menu="{ row }"> </template> |
|
|
|
<template #menu="{ row }"> </template> |
|
|
|
|
|
|
|
|
|
|
|
<template #isThickness="scope"> |
|
|
|
<template #isThickness="scope"> |
|
|
|
@ -32,10 +34,18 @@ |
|
|
|
<span>{{scope.row.isLocal == 1 ? '√' : ''}}</span> |
|
|
|
<span>{{scope.row.isLocal == 1 ? '√' : ''}}</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
|
|
|
|
<basic-import v-if="isShowImport" title="导入" :isShow="isShowImport" |
|
|
|
|
|
|
|
templateUrl="/blade-scheduling/qualityGrade/downloadTemplate" |
|
|
|
|
|
|
|
templateName="质量等级模板.xls" |
|
|
|
|
|
|
|
importUrl="/blade-scheduling/qualityGrade/importExcel" |
|
|
|
|
|
|
|
@closeDialog="closeDialog"> |
|
|
|
|
|
|
|
</basic-import> |
|
|
|
</basic-container> |
|
|
|
</basic-container> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
import basicImport from '@/components/basic-import/main.vue' |
|
|
|
import { |
|
|
|
import { |
|
|
|
getListGualityGrade, |
|
|
|
getListGualityGrade, |
|
|
|
removeGualityGrade, |
|
|
|
removeGualityGrade, |
|
|
|
@ -44,12 +54,13 @@ import { |
|
|
|
} from '@/api/productionSchedulingPlan/basic'; |
|
|
|
} from '@/api/productionSchedulingPlan/basic'; |
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
components: {basicImport}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
form: {}, |
|
|
|
form: {}, |
|
|
|
selectionList: [], |
|
|
|
selectionList: [], |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
|
|
|
|
|
isShowImport:false, |
|
|
|
loading: false, |
|
|
|
loading: false, |
|
|
|
page: { |
|
|
|
page: { |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
@ -235,6 +246,15 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
handleImport(){ |
|
|
|
|
|
|
|
this.isShowImport = true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
closeDialog(val){ |
|
|
|
|
|
|
|
this.isShowImport = false |
|
|
|
|
|
|
|
if(val){ |
|
|
|
|
|
|
|
this.onLoad(this.page, this.query) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
beforeOpen(done, type) { |
|
|
|
beforeOpen(done, type) { |
|
|
|
if (['edit', 'view'].includes(type)) { |
|
|
|
if (['edit', 'view'].includes(type)) { |
|
|
|
console.log('form----------',this.form) |
|
|
|
console.log('form----------',this.form) |
|
|
|
|