Merge branch 'dev' into gyj

This commit is contained in:
gyj
2023-12-12 19:07:02 +08:00
4 changed files with 95 additions and 58 deletions
@@ -36,7 +36,7 @@
<el-col :span="12">
<el-form-item label="借款开始日期:" prop="loanStartDate">
<el-date-picker v-model="formData.loanStartDate" type="datetime" placeholder="借款开始日期"
@change="setStartTime">
>
</el-date-picker>
</el-form-item>
</el-col>
@@ -961,16 +961,16 @@ export default {
this.$emit("cancel");
},
// 校验借款开始日期与结束日期
setStartTime() {
if (
this.setTime(this.formData.loanStartDate) >=
this.setTime(this.formData.loanEndDate)
) {
this.$message.error("借款开始日期应早于借款结束日期");
this.formData.loanStartDate = "";
this.formData.loanEndDate = "";
}
},
// setStartTime() {
// if (
// this.setTime(this.formData.loanStartDate) >=
// this.setTime(this.formData.loanEndDate)
// ) {
// this.$message.error("借款开始日期应早于借款结束日期");
// this.formData.loanStartDate = "";
// this.formData.loanEndDate = "";
// }
// },
setEndTime() {
if (
this.setTime(this.formData.loanEndDate) <=