zhl-methods 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/VERSION.md +10 -0
- package/js/ScanUDI.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/VERSION.md
CHANGED
package/js/ScanUDI.js
CHANGED
|
@@ -107,7 +107,6 @@ export default class ScanUDI {
|
|
|
107
107
|
setDateFormat(date, type, expand) {
|
|
108
108
|
try {
|
|
109
109
|
if (date) {
|
|
110
|
-
date = dayjs(date);
|
|
111
110
|
if (date.length === 8 && date.substr(date.length - 2) == "00") {
|
|
112
111
|
if (type === "expiry") {
|
|
113
112
|
date = dayjs(date).endOf("month");
|
|
@@ -134,6 +133,7 @@ export default class ScanUDI {
|
|
|
134
133
|
}
|
|
135
134
|
date = dayjs("20" + date + "01");
|
|
136
135
|
}
|
|
136
|
+
date = dayjs(date);
|
|
137
137
|
if (date.format("YYYY-MM-DD") == "Invalid Date") {
|
|
138
138
|
this.batch_no = "";
|
|
139
139
|
this.msg = "警告:批次信息解析失败,请手动填写";
|