diff --git a/fe/PDA/common/basic.js b/fe/PDA/common/basic.js index c1fd6b1d6..cb5ac25af 100644 --- a/fe/PDA/common/basic.js +++ b/fe/PDA/common/basic.js @@ -222,6 +222,11 @@ export function getCurrDateTime() { return getDate(date) + " " + getTime(date); } +export function getCurrDateTimeAndT() { + var date = new Date(); + return getDate(date) + "T" + getTime(date); +} + export function getISODateTime() { var date = new Date(); return getDate(date) + "T" + getTime(date) + "Z"; diff --git a/fe/PDA/pages/task/receipt_result.vue b/fe/PDA/pages/task/receipt_result.vue index fe34012e0..fc7611bf0 100644 --- a/fe/PDA/pages/task/receipt_result.vue +++ b/fe/PDA/pages/task/receipt_result.vue @@ -81,7 +81,8 @@ import { showConfirmMsg, goHome, - getCurrDateTime + getCurrDateTime, + getCurrDateTimeAndT } from '@/common/basic.js'; import { @@ -205,13 +206,13 @@ //赋值 that.receiptJob.completeUserId = localStorage.getItem('userId') that.receiptJob.completeUserName = localStorage.getItem('userName_CN') - that.receiptJob.completeTime = getCurrDateTime() + that.receiptJob.completeTime = getCurrDateTimeAndT() that.receiptJob.details.forEach(r => { r.handledToLocationCode = r.recommendToLocationCode; r.worker = localStorage.userName_CN ==""?localStorage.userName:localStorage.userName_CN if (r.purchaseReceiptInspectStatus == 1) { - r.handledArriveDate = getCurrDateTime(); // + r.handledArriveDate = getCurrDateTimeAndT(); // r.purchaseReceiptInspectStatus = 4; //未收货 r.handledQty = 0; // r.handledUom = r.recommendUom;