复审日期转换为字符串的格式
This commit is contained in:
+16
-2
@@ -3899,8 +3899,22 @@ export default {
|
||||
handler: function() {
|
||||
if(this.sarBussionessStandEO.issueTime !== undefined && this.sarBussionessStandEO.issueTime !== null && this.sarBussionessStandEO.issueTime !== ''){
|
||||
let date = new Date(this.$moment(this.sarBussionessStandEO.issueTime).format('YYYY-MM-DD'))
|
||||
const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||
this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||
|
||||
let year = date.getFullYear()+5;
|
||||
let month =(date.getMonth() + 1).toString();
|
||||
let day = (date.getDate()).toString();
|
||||
if (month.length == 1) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (day.length == 1) {
|
||||
day = "0" + day;
|
||||
}
|
||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
||||
console.log(FSRQBUSS,"FSRQBUSS");
|
||||
this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user