|
|
@@ -112,6 +112,10 @@ export default {
|
|
|
type: String,
|
|
|
default: "120px",
|
|
|
},
|
|
|
+ dateType :{
|
|
|
+ type: String,
|
|
|
+ default: "0",
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -131,14 +135,42 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.fields.forEach((field) => {
|
|
|
- if (field.label === "报价时间" && !this.formData[field.list]) {
|
|
|
- this.$set(this.formData, field.list, [
|
|
|
- this.currentDate,
|
|
|
- this.currentDate,
|
|
|
- ]);
|
|
|
- this.$set(this.formData, field.name[0], this.currentDate);
|
|
|
- this.$set(this.formData, field.name[1], this.currentDate);
|
|
|
+ if(this.dateType!="3"){
|
|
|
+ if (field.label === "报价时间" && !this.formData[field.list]) {
|
|
|
+ this.$set(this.formData, field.list, [
|
|
|
+ this.currentDate,
|
|
|
+ this.currentDate,
|
|
|
+ ]);
|
|
|
+ this.$set(this.formData, field.name[0], this.currentDate);
|
|
|
+ this.$set(this.formData, field.name[1], this.currentDate);
|
|
|
+ }
|
|
|
+ if (field.label === "签单时间" && !this.formData[field.list]) {
|
|
|
+ this.$set(this.formData, field.list, [
|
|
|
+ '',
|
|
|
+ '',
|
|
|
+ ]);
|
|
|
+ this.$set(this.formData, field.name[0], '');
|
|
|
+ this.$set(this.formData, field.name[1], '');
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (field.label === "报价时间" && !this.formData[field.list]) {
|
|
|
+ this.$set(this.formData, field.list, [
|
|
|
+ '',
|
|
|
+ '',
|
|
|
+ ]);
|
|
|
+ this.$set(this.formData, field.name[0], '');
|
|
|
+ this.$set(this.formData, field.name[1], '');
|
|
|
+ }
|
|
|
+ if (field.label === "签单时间" && !this.formData[field.list]) {
|
|
|
+ this.$set(this.formData, field.list, [
|
|
|
+ this.currentDate,
|
|
|
+ this.currentDate,
|
|
|
+ ]);
|
|
|
+ this.$set(this.formData, field.name[0], this.currentDate);
|
|
|
+ this.$set(this.formData, field.name[1], this.currentDate);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
});
|
|
|
this.formFields = this.fields;
|
|
|
this.resetForm();
|