liuhj 3 miesięcy temu
rodzic
commit
f264cb4b74
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      src/components/system/Payroll.vue

+ 5 - 5
src/components/system/Payroll.vue

@@ -812,15 +812,15 @@ export default {
             this.tableDatatwo=[];
             this.companyName=-1;
             this.cnName='';
-            let newyear=this.value2.getFullYear();
-            let newMonth=this.value2.getMonth() + 1;
-            if((this.value2.getMonth() + 1)<10){
+            let timess=new Date(this.value2)
+            let newyear=timess.getFullYear();
+            let newMonth=timess.getMonth() + 1;
+            if((timess.getMonth() + 1)<10){
                 newMonth='0'+newMonth
             }else{
-                newMonth=this.value2.getMonth() + 1
+                newMonth=timess.getMonth() + 1
             }
             this.value2=newyear+ '-' +newMonth;
-            console.log(this.value2)
             this.GetWageSheetList();
         },
         //薪资详细