87869823 by zrj

8.21 日期定格10月

1 parent 853a0cbc
...@@ -168,6 +168,7 @@ ...@@ -168,6 +168,7 @@
168 size="small" 168 size="small"
169 style="width: 100%;" type="date" 169 style="width: 100%;" type="date"
170 value-format="YYYY-MM-DD" 170 value-format="YYYY-MM-DD"
171 :default-value="nowYearMonth"
171 /> 172 />
172 </template> 173 </template>
173 </el-table-column> 174 </el-table-column>
...@@ -186,6 +187,7 @@ ...@@ -186,6 +187,7 @@
186 size="small" 187 size="small"
187 style="width: 100%;" type="date" 188 style="width: 100%;" type="date"
188 value-format="YYYY-MM-DD" 189 value-format="YYYY-MM-DD"
190 :default-value="nowYearMonth"
189 /> 191 />
190 </template> 192 </template>
191 </el-table-column> 193 </el-table-column>
...@@ -409,6 +411,7 @@ const countrys = ref([]) ...@@ -409,6 +411,7 @@ const countrys = ref([])
409 const mnaList = ref([]) 411 const mnaList = ref([])
410 const cptId = ref('') 412 const cptId = ref('')
411 const showCheck = ref(false) 413 const showCheck = ref(false)
414 const nowYearMonth = new Date().getFullYear() + "-10-01"
412 const rules = ref( 415 const rules = ref(
413 { 416 {
414 nationality: [{required: true, trigger: 'change', message: language.value == 0 ? '请选择' : 'Please choose'},], 417 nationality: [{required: true, trigger: 'change', message: language.value == 0 ? '请选择' : 'Please choose'},],
...@@ -602,7 +605,7 @@ const getPassportInfo = (res) => { ...@@ -602,7 +605,7 @@ const getPassportInfo = (res) => {
602 passportNo: res.data.code, 605 passportNo: res.data.code,
603 issueDate: res.data.issueDate?.slice(0, 10), 606 issueDate: res.data.issueDate?.slice(0, 10),
604 expiryDate: res.data.validToDate?.slice(0, 10), 607 expiryDate: res.data.validToDate?.slice(0, 10),
605 passportCopy: res.data.pic 608 passportCopy: res.data.pic,
606 } 609 }
607 form.value.cptVisaInfoBos.push(obj) 610 form.value.cptVisaInfoBos.push(obj)
608 } else { 611 } else {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!