缺件申报问题修改

dev-scheduling
zhangdi 2 days ago
parent 2cc70b54fa
commit 93a452f5d5
  1. 31
      src/views/productionManagement/shortageApplication/index.vue

@ -24,12 +24,21 @@
<el-button type="primary" plain @click="statusOnLoad(2)">已完成 </el-button> <el-button type="primary" plain @click="statusOnLoad(2)">已完成 </el-button>
</template> </template>
<template #menu="scope"> <template #menu="scope">
<el-button type="text" @click="handleImport">打印 </el-button> <el-button type="text" v-if="scope.row.podStatus == 1" @click="handleDelete(scope.row)"
>删除
</el-button>
<el-button type="text" v-if="scope.row.podStatus == 2" @click="handleImport(scope.row)"
>打印
</el-button>
</template> </template>
</avue-crud> </avue-crud>
<!-- 申报 --> <!-- 申报 -->
<declareAdd v-if="declareAddShow" :showDialog="declareAddShow" @closeDialog="closeDialog"></declareAdd> <declareAdd
v-if="declareAddShow"
:showDialog="declareAddShow"
@closeDialog="closeDialog"
></declareAdd>
</basic-container> </basic-container>
</template> </template>
<script> <script>
@ -60,7 +69,7 @@ export default {
viewBtn: false, viewBtn: false,
editBtn: false, editBtn: false,
addBtn: false, addBtn: false,
delBtn: true, delBtn: false,
addBtnText: '申报', addBtnText: '申报',
editBtnText: '修改', editBtnText: '修改',
viewBtnIcon: ' ', viewBtnIcon: ' ',
@ -83,7 +92,7 @@ export default {
searchLabelPosition: 'left', searchLabelPosition: 'left',
searchGutter: 24, searchGutter: 24,
searchSpan: 6, searchSpan: 6,
menuAlign: 'left', menuAlign: 'center',
gridBtn: false, gridBtn: false,
searchMenuPosition: 'right', searchMenuPosition: 'right',
align: 'center', align: 'center',
@ -202,7 +211,7 @@ export default {
}, },
{ {
label: '当前状态', label: '当前状态',
prop: 'podStatus', prop: 'podStatusName',
search: false, search: false,
sortable: true, sortable: true,
filter: true, filter: true,
@ -218,15 +227,15 @@ export default {
currentPage: 1, currentPage: 1,
total: 0, total: 0,
}, },
query:{ query: {
podStatus:'' podStatus: '',
} },
}; };
}, },
methods: { methods: {
statusOnLoad(status){ statusOnLoad(status) {
this.query.podStatus = status; this.query.podStatus = status;
this.onLoad(this.page,this.query) this.onLoad(this.page, this.query);
}, },
// //
handleImport() { handleImport() {
@ -235,7 +244,7 @@ export default {
// //
closeDialog(isRefresh) { closeDialog(isRefresh) {
this.isShowImport = false; this.isShowImport = false;
this.declareAddShow = false this.declareAddShow = false;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
handleAdd() { handleAdd() {

Loading…
Cancel
Save