|
|
@ -52,7 +52,13 @@ export default class returningDom extends BasePage {
|
|
|
|
endMobile = '';
|
|
|
|
endMobile = '';
|
|
|
|
materialList = [];
|
|
|
|
materialList = [];
|
|
|
|
OddList: any = [];
|
|
|
|
OddList: any = [];
|
|
|
|
label: any = '';
|
|
|
|
data: any = {
|
|
|
|
|
|
|
|
label: '',
|
|
|
|
|
|
|
|
value: '',
|
|
|
|
|
|
|
|
amount: 0,
|
|
|
|
|
|
|
|
sendSpot: '',
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
startParams = {
|
|
|
|
startParams = {
|
|
|
|
year: true,
|
|
|
|
year: true,
|
|
|
|
month: true,
|
|
|
|
month: true,
|
|
|
@ -77,14 +83,18 @@ export default class returningDom extends BasePage {
|
|
|
|
this.endMobile = endParams.year + '-' + endParams.month + '-' + endParams.day;
|
|
|
|
this.endMobile = endParams.year + '-' + endParams.month + '-' + endParams.day;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onCheck(e: any) {
|
|
|
|
onCheck(e: any) {
|
|
|
|
console.log('eeeee', e.data[0].lineData.label);
|
|
|
|
// 修改退料 筛选后选择一条可以将相关信息赋值到退料页面
|
|
|
|
this.label = e.data[0].lineData.label;
|
|
|
|
console.log('eeeee', e.data[0].lineData);
|
|
|
|
|
|
|
|
this.data.label = e.data[0].lineData.label;
|
|
|
|
|
|
|
|
this.data.value = e.data[0].lineData.value;
|
|
|
|
|
|
|
|
this.data.sendSpot = e.data[0].lineData.sendSpot;
|
|
|
|
|
|
|
|
this.data.amount = e.data[0].lineData.amount;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
back() {
|
|
|
|
back() {
|
|
|
|
if (this.label == '' || this.label == null) {
|
|
|
|
if (this.data.label == '' || this.data.label == null) {
|
|
|
|
this.redirectTo(this.page.raw.handover.returning.index);
|
|
|
|
this.redirectTo(this.page.raw.handover.returning.index);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
sessionStorage.setItem('labelCode', JSON.stringify(this.label));
|
|
|
|
sessionStorage.setItem('data', JSON.stringify(this.data));
|
|
|
|
this.redirectTo(this.page.raw.handover.returning.index);
|
|
|
|
this.redirectTo(this.page.raw.handover.returning.index);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|