Browse Source

修改采购收货时间赋值

dev_pda
李俊城 1 year ago
parent
commit
b9d6c09fd6
  1. 5
      fe/PDA/common/basic.js
  2. 7
      fe/PDA/pages/task/receipt_result.vue

5
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";

7
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;

Loading…
Cancel
Save