|
|
@ -132,9 +132,13 @@ export default { |
|
|
|
// 获取制单日期 |
|
|
|
newDate() { |
|
|
|
let date = new Date() |
|
|
|
let year = date.getFullYear() // 年 |
|
|
|
let month = date.getMonth() // 月 |
|
|
|
this.formobj.checkApply = year + '年' + month + '月' |
|
|
|
let year = date.getFullYear() // 本年 |
|
|
|
let month = date.getMonth() // 上一月 |
|
|
|
let day = date.getDate() // 本日 |
|
|
|
if (day > 6) { |
|
|
|
month = date.getMonth() + 1 // 本月 |
|
|
|
} |
|
|
|
this.formobj.withApply = year + '年' + month + '月' |
|
|
|
}, |
|
|
|
init() { |
|
|
|
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|
|
|