|
|
|
@ -94,9 +94,26 @@ export default class returningDom extends BasePage {
|
|
|
|
|
this.redirectTo(this.page.raw.handover.returning.index);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 上传
|
|
|
|
|
*/
|
|
|
|
|
getNowFormatDate() {
|
|
|
|
|
var date = new Date();
|
|
|
|
|
var seperator1 = '-';
|
|
|
|
|
var year = date.getFullYear();
|
|
|
|
|
var month: any = date.getMonth() + 1;
|
|
|
|
|
var strDate: any = date.getDate();
|
|
|
|
|
if (month >= 1 && month <= 9) {
|
|
|
|
|
month = '0' + month;
|
|
|
|
|
}
|
|
|
|
|
if (strDate >= 0 && strDate <= 9) {
|
|
|
|
|
strDate = '0' + strDate;
|
|
|
|
|
}
|
|
|
|
|
var currentdate = year + seperator1 + month + seperator1 + strDate;
|
|
|
|
|
return currentdate;
|
|
|
|
|
}
|
|
|
|
|
async onReady() {
|
|
|
|
|
this.startMobile = this.getNowFormatDate();
|
|
|
|
|
this.endMobile = this.getNowFormatDate();
|
|
|
|
|
await this.onSubmit();
|
|
|
|
|
}
|
|
|
|
|
async onSubmit() {
|
|
|
|
|
if (this.startMobile == '' || this.endMobile == '') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|