ly vor 1 Jahr
Ursprung
Commit
41057e67d5

+ 4 - 2
src/views/business/entrust/workOrder/nextMonth/index.vue

@@ -48,7 +48,8 @@
       label-width="68px"
     >
       <el-form-item label="当前月:">{{
-       moment(currentMonth).format("YYYY年MM月")
+       <!-- moment(currentMonth).format("YYYY年MM月") -->
+       moment().add(1, 'month').format("YYYY年MM月")
       }}</el-form-item>
       <el-form-item label="客户名称:" prop="companyName">
         <el-input
@@ -339,7 +340,8 @@ function handleExport() {
 }
 
 function setCurrentMonth(month) {
-  currentMonth.value = month;
+  // currentMonth.value = month;
+  currentMonth.value = proxy.moment().add(1, 'month').format("YYYY-MM")+"-01";
 }
 
 function setEntrustHandle() {

+ 3 - 2
src/views/business/housingFund/declare/view.vue

@@ -143,7 +143,7 @@
   const loading = ref(false);
   const stopUseBack = ref(false)
   const currentMonth = ref(
-    proxy.moment().format("YYYY-MM-01")
+    // proxy.moment().format("YYYY-MM-01")
   );
   const baseUrl = ref(import.meta.env.VITE_APP_BASE_API);
   const props = defineProps({
@@ -177,7 +177,8 @@
 
   function open(detail) {
     visible.value = true;
-    currentMonth.value = proxy.moment().format("YYYY-MM-01")
+     currentMonth.value = detail.year + "-" + detail.month + "-01"
+    // currentMonth.value = proxy.moment().format("YYYY-MM-01")
     form.value = detail;
     loadData();
   }

+ 5 - 3
src/views/business/socialSecurity/declare/view.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog title="社保申报信息11" v-model="visible" :width="width" append-to-body draggable @close="close"
+  <el-dialog title="社保申报信息" v-model="visible" :width="width" append-to-body draggable @close="close"
     :close-on-click-modal="false">
     <div v-loading="loading">
       <!-- <div slot="title" class="dialog-title-container">
@@ -259,7 +259,7 @@
   const canSave = ref(false);
   const loading = ref(false);
   const currentMonth = ref(
-    proxy.moment().format("YYYY-MM-01")
+   
   );
   const baseUrl = ref(import.meta.env.VITE_APP_BASE_API);
   const props = defineProps({
@@ -293,7 +293,9 @@
 
   function open(detail) {
     visible.value = true;
-    currentMonth.value = proxy.moment().format("YYYY-MM-01")
+   console.log(12,detail.month);
+    // currentMonth.value = proxy.moment().format("YYYY-MM-01")
+    currentMonth.value = detail.year + "-" + detail.month + "-01"
     form.value = detail;
     loadData();
   }