|
@@ -987,9 +987,16 @@ export default {
|
|
|
//新增开票
|
|
//新增开票
|
|
|
addPayment() {
|
|
addPayment() {
|
|
|
this.title = "开票新增";
|
|
this.title = "开票新增";
|
|
|
- this.formData.invoiceTime= new Date()
|
|
|
|
|
|
|
+ this.formData.invoiceTime= this.getTodayDate()
|
|
|
this.detailDialog = true;
|
|
this.detailDialog = true;
|
|
|
},
|
|
},
|
|
|
|
|
+ getTodayDate() {
|
|
|
|
|
+ const today = new Date();
|
|
|
|
|
+ const year = today.getFullYear();
|
|
|
|
|
+ const month = today.getMonth() + 1; // 月份是从0开始的
|
|
|
|
|
+ const day = today.getDate();
|
|
|
|
|
+ return `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
|
|
|
|
|
+ },
|
|
|
//新增编辑开票信息
|
|
//新增编辑开票信息
|
|
|
submitInfo() {
|
|
submitInfo() {
|
|
|
let params = JSON.parse(JSON.stringify(this.formData));
|
|
let params = JSON.parse(JSON.stringify(this.formData));
|