| | |
| | | let year = date.getFullYear(); |
| | | let month = String(date.getMonth() + 1).padStart(2, "0"); |
| | | let day = String(date.getDate()).padStart(2, "0"); |
| | | this.editFormFields.lotNo = year + month + day; |
| | | let hour= String(date.getHours()).padStart(2, "0"); |
| | | let minute= String(date.getMinutes()).padStart(2, "0"); |
| | | let second= String(date.getSeconds()).padStart(2, "0"); |
| | | //å°yearæªååä¸¤ä½ |
| | | this.editFormFields.lotNo = (year.toString().substr(-2)) + month+day + hour + minute+second; |
| | | this.editFormFields.productionDate = year + "-" + month + "-" + day; |
| | | this.editFormFields.effectiveDate = year + 2 + "-" + month + "-" + day; |
| | | } |