生产管理问题修改

dev-scheduling
zhangdi 7 days ago
parent e20e922adb
commit 1d80453b46
  1. 2
      src/views/processManagement/taskDispatch.vue
  2. 8
      src/views/productionManagement/beforeAndAfterPlating/afterPlating.vue
  3. 3
      src/views/productionManagement/beforeAndAfterPlating/index.vue

@ -65,6 +65,7 @@ export default {
height: 'auto', height: 'auto',
calcHeight: 32, calcHeight: 32,
tip: false, tip: false,
rowKey:'id',
simplePage: true, simplePage: true,
searchShow: true, searchShow: true,
searchMenuSpan: 12, searchMenuSpan: 12,
@ -74,7 +75,6 @@ export default {
border: true, border: true,
index: true, index: true,
selection: true, selection: true,
selectable: false,
viewBtn: false, viewBtn: false,
delBtn: false, delBtn: false,
editBtn: false, editBtn: false,

@ -153,7 +153,7 @@ export default {
searchChange(params, done) { searchChange(params, done) {
this.query = params; this.query = params;
this.page.currentPage = 1; this.page.currentPage = 1;
this.onLoad(this.page, params); this.onLoad(this.page, this.query);
done(); done();
}, },
currentChange(currentPage) { currentChange(currentPage) {
@ -191,6 +191,12 @@ export default {
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
if(this.tabPosition == 'beforePlatingEntry'){
this.query.paType=1
}
if(this.tabPosition == 'beforePlatingBound'){
this.query.paType=2
}
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data.records; this.data = res.data.data.records;
this.loading = false; this.loading = false;

@ -165,7 +165,7 @@ export default {
searchChange(params, done) { searchChange(params, done) {
this.query = params; this.query = params;
this.page.currentPage = 1; this.page.currentPage = 1;
this.onLoad(this.page, params); this.onLoad(this.page, this.query);
done(); done();
}, },
currentChange(currentPage) { currentChange(currentPage) {
@ -196,6 +196,7 @@ export default {
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
this.query.paType=3
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data.records; this.data = res.data.data.records;
this.loading = false; this.loading = false;

Loading…
Cancel
Save