修改设备管理页面新需求

master
LAPTOP-R6EHHS26\86155 1 year ago
parent 6c442c25fc
commit 0aba07ca3e

@ -390,12 +390,12 @@ export default class ChangePalletNew extends BasePage {
title: '成功',
type: 'default',
});
setTimeout(() => {
uni.navigateBack({});
// setTimeout(() => {
// uni.redirectTo({
// url: `/pages/equipment/Inspection/index?listitem=`,
// });
// }, 1000);
}, 1000);
} else {
(this.$refs.uToast as any).show({
title: '失败',

@ -102,14 +102,7 @@ export default class ChangePalletNew extends BasePage {
];
userinfo: any = null;
// remove: any = {};
onShow() {
this.onLoad;
}
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
async onLoad() {
async onShow() {
console.log(uni.getStorageSync('userinfo'));
this.userinfo = uni.getStorageSync('userinfo');
if (this.userinfo) {
@ -118,6 +111,13 @@ export default class ChangePalletNew extends BasePage {
this.listdata = model.orderNoItemList;
}
}
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
async onLoad() {
// console.log(uni.getStorageSync('userinfo'));
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }

@ -109,7 +109,7 @@ export default class ChangePalletNew extends BasePage {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
async onLoad() {
async onShow() {
console.log(uni.getStorageSync('userinfo'));
this.userinfo = uni.getStorageSync('userinfo');
if (this.userinfo) {
@ -123,6 +123,9 @@ export default class ChangePalletNew extends BasePage {
this.listdata = model.orderNoItemList;
}
}
async onLoad() {
// console.log(uni.getStorageSync('userinfo'));
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }

@ -680,12 +680,12 @@ export default class ChangePalletNew extends BasePage {
type: 'default',
});
this.Clear(); //
setTimeout(() => {
uni.navigateBack({});
// setTimeout(() => {
// uni.redirectTo({
// url: `/pages/equipment/Repair/index?listitem=`,
// });
// }, 1000);
}, 1000);
} else {
(this.$refs.uToast as any).show({
title: '失败',

@ -362,6 +362,12 @@ export default class ChangePalletNew extends BasePage {
});
}
async onSubmit() {
// setTimeout(() => {
// uni.navigateBack({});
// // uni.redirectTo({
// // url: `/pages/equipment/Spotcheck/index?listitem=`,
// // });
// }, 1000);
if (this.orderNo == '' || this.orderNo.length == 0) {
// this.customToast('');
(this.$refs.uToast as any).show({
@ -396,12 +402,13 @@ export default class ChangePalletNew extends BasePage {
title: '成功',
type: 'default',
});
setTimeout(() => {
uni.navigateBack({});
// setTimeout(() => {
// uni.redirectTo({
// url: `/pages/equipment/Spotcheck/index?listitem=`,
// });
// }, 1000);
}, 1000);
} else {
(this.$refs.uToast as any).show({
title: '失败',

@ -106,15 +106,9 @@ export default class ChangePalletNew extends BasePage {
];
userinfo: any = null;
// remove: any = {};
onShow() {
async onShow() {
this.onLoad;
}
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
async onLoad() {
console.log(uni.getStorageSync('userinfo'));
console.log('1111');
this.userinfo = uni.getStorageSync('userinfo');
if (this.userinfo) {
await this.model.getTodayTask(this.userinfo.userName);
@ -122,6 +116,20 @@ export default class ChangePalletNew extends BasePage {
this.listdata = model.orderNoItemList;
}
}
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
async onLoad() {
// console.log('1222')
// console.log(uni.getStorageSync('userinfo'));
// this.userinfo = uni.getStorageSync('userinfo');
// if (this.userinfo) {
// await this.model.getTodayTask(this.userinfo.userName);
// console.log(model.orderNoItemList);
// this.listdata = model.orderNoItemList;
// }
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }

@ -127,7 +127,7 @@ export default class ChangePalletNew extends BasePage {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
async onLoad() {
async onShow() {
console.log(uni.getStorageSync('userinfo'));
this.userinfo = uni.getStorageSync('userinfo');
if (this.userinfo) {
@ -141,6 +141,9 @@ export default class ChangePalletNew extends BasePage {
this.listdata = model.orderNoItemList;
}
}
async onLoad() {
// console.log(uni.getStorageSync('userinfo'));
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }

@ -633,12 +633,13 @@ export default class ChangePalletNew extends BasePage {
title: '成功',
type: 'default',
});
uni.navigateBack({});
// setTimeout(() => {
setTimeout(() => {
// uni.redirectTo({
// url: `/pages/equipment/Upkeep/index?listitem=`,
// });
// }, 1000);
uni.navigateBack({});
}, 1000);
} else {
(this.$refs.uToast as any).show({
title: '失败',

Loading…
Cancel
Save