|
|
@@ -236,7 +236,7 @@
|
|
|
? "年"
|
|
|
: scope.row.dateType == "month"
|
|
|
? "月"
|
|
|
- : scope.row.dateType == "days"
|
|
|
+ : scope.row.dateType == "day"
|
|
|
? "天"
|
|
|
: ""
|
|
|
}}
|
|
|
@@ -346,6 +346,7 @@
|
|
|
placeholder="请输入合同名称"
|
|
|
size="small"
|
|
|
style="width: 220px"
|
|
|
+ maxlength="50"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -1204,7 +1205,25 @@ export default {
|
|
|
isMessage: false,
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
+ watch: {
|
|
|
+ date(val) {
|
|
|
+ switch (val) {
|
|
|
+ case "year":
|
|
|
+ this.month = "";
|
|
|
+ this.days = "";
|
|
|
+ break;
|
|
|
+ case "month":
|
|
|
+ this.year = "";
|
|
|
+ this.days = "";
|
|
|
+ break;
|
|
|
+ case "day":
|
|
|
+ this.year = "";
|
|
|
+ this.month = "";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ // console.log(val);
|
|
|
+ },
|
|
|
+ },
|
|
|
computed: {},
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
@@ -1334,7 +1353,7 @@ export default {
|
|
|
this.year = res.data.dateType == "year" ? res.data.dateTime : "";
|
|
|
this.month =
|
|
|
res.data.dateType == "month" ? res.data.dateTime : "";
|
|
|
- this.days = res.data.dateType == "days" ? res.data.dateTime : "";
|
|
|
+ this.days = res.data.dateType == "day" ? res.data.dateTime : "";
|
|
|
if (commad == "supplement") {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.ruleForm.clearValidate();
|
|
|
@@ -1724,7 +1743,7 @@ export default {
|
|
|
this.date = res.data.dateType;
|
|
|
this.year = res.data.dateType == "year" ? res.data.dateTime : "";
|
|
|
this.month = res.data.dateType == "month" ? res.data.dateTime : "";
|
|
|
- this.days = res.data.dateType == "days" ? res.data.dateTime : "";
|
|
|
+ this.days = res.data.dateType == "day" ? res.data.dateTime : "";
|
|
|
}
|
|
|
});
|
|
|
},
|