|
@@ -524,6 +524,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
addBtn (type) {
|
|
addBtn (type) {
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
|
|
+ this.form.signdate = this.getTodayDate()
|
|
|
if (this.flagTag != 2){
|
|
if (this.flagTag != 2){
|
|
|
this.$message.error('当前项目报备审核未通过,不可创建合同');
|
|
this.$message.error('当前项目报备审核未通过,不可创建合同');
|
|
|
}else {
|
|
}else {
|
|
@@ -550,6 +551,13 @@ export default {
|
|
|
// })
|
|
// })
|
|
|
// }
|
|
// }
|
|
|
},
|
|
},
|
|
|
|
|
+ getTodayDate() {
|
|
|
|
|
+ const today = new Date();
|
|
|
|
|
+ const year = today.getFullYear();
|
|
|
|
|
+ const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从0开始,需+1
|
|
|
|
|
+ const day = String(today.getDate()).padStart(2, '0');
|
|
|
|
|
+ return `${year}-${month}-${day}`;
|
|
|
|
|
+ },
|
|
|
async onSubmit () {
|
|
async onSubmit () {
|
|
|
this.$refs.form.validate(async val => {
|
|
this.$refs.form.validate(async val => {
|
|
|
if (val) {
|
|
if (val) {
|