safecheck-client 4.0.0-87 → 4.0.0-88

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.
@@ -177,6 +177,7 @@
177
177
 
178
178
  import { HttpResetClass, PagedList } from 'vue-client'
179
179
  import Vue from 'vue'
180
+ import * as Util from "../../../components/Util";
180
181
  export default {
181
182
  title: '保险登记',
182
183
  props: ['data', 'tabname'],
@@ -192,15 +193,7 @@ export default {
192
193
  }
193
194
  },
194
195
  async ready() {
195
- let dt = new Date()
196
- let year = dt.getFullYear()
197
- let month = dt.getMonth()-2
198
- if(month<=0){
199
- year = year -1
200
- month = dt.getMonth()+10
201
- }
202
- let date = dt.getDate()
203
- this.$refs.paged.$refs.cri.model.f_ins_start_date = year + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
196
+ this.$refs.paged.$refs.cri.model.f_ins_start_date = Util.toStandardDateString()
204
197
  this.initOperators()
205
198
  this.$refs.paged.$refs.cri.model.f_operator = Vue.user.name
206
199
  },