在制品页面逻辑调整

dev-scheduling
zhangdi 2 months ago
parent b1a48a548b
commit a98e6342c3
  1. 25
      src/views/productionManagement/WIPChange.vue

@ -173,7 +173,7 @@ export default {
}, },
{ {
label: '调度员', label: '调度员',
prop: 'searchCode', prop: 'dispatchManName',
search: true, search: true,
sortable: true, sortable: true,
filter: true, filter: true,
@ -233,6 +233,28 @@ export default {
closeDialog() { closeDialog() {
this.isHandleShow = false; this.isHandleShow = false;
this.isAssignShow = false; this.isAssignShow = false;
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad(this.page, this.query);
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
this.onLoad(this.page, this.query);
},
refreshChange() {
this.onLoad(this.page, this.query);
},
searchReset() {
this.query = {};
this.treeDeptId = '';
this.onLoad(this.page, this.query);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
@ -240,7 +262,6 @@ export default {
this.data = res.data.data.records; this.data = res.data.data.records;
this.loading = false; this.loading = false;
this.page.total = res.data.data.total; this.page.total = res.data.data.total;
this.selectionClear();
}); });
}, },
}, },

Loading…
Cancel
Save