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) <=
@@ -1,27 +1,22 @@
<template>
<div>
<!-- 立案审查 -->
<el-dialog
title="立案审查"
:visible="showfilingreview"
width="500px"
@close="cancel"
:destroy-on-close="true"
>
<el-dialog title="立案审查" :visible="showfilingreview" width="500px" @close="cancel" :destroy-on-close="true">
<div class="radiobox">
<el-radio-group v-model="radio">
<el-radio-group v-model="radio" style="margin-bottom: 20px;">
<el-radio :label="1">同意</el-radio>
<el-radio :label="2">拒绝</el-radio>
</el-radio-group>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
<!-- TODO -->
<el-form-item label="拒绝原因" prop="caseCheckReject" v-if="radio == 2">
<el-input type="textarea" :rows="2" placeholder="请输入拒绝原因" v-model="ruleForm.caseCheckReject"></el-input>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm" class="endbutton"
><span>提 交</span></el-button
>
<el-button @click="cancel" class="endbutton1"
><span> 取 消</span></el-button
>
<el-button type="primary" @click="submitForm" class="endbutton"><span>提 交</span></el-button>
<el-button @click="cancel" class="endbutton1"><span> 取 消</span></el-button>
</div>
</el-dialog>
</div>
@@ -37,21 +32,36 @@ export default {
data() {
return {
radio: 1,
ruleForm: {},
rules: {
caseCheckReject: [
{
required: true,
message: "拒绝原因不能为空",
trigger: "blur",
},
],
}
};
},
methods: {
submitForm() {
let paramsdata = {
agreeOrNotCheck: this.radio,
ids: [this.filingreviewdata.id],
};
submitCaseApplicationCheck(paramsdata)
.then((res) => {
this.$modal.msgSuccess("提交成功");
this.cancel();
this.$emit("getcaseApply", this.queryParams);
})
.catch((err) => {});
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
let paramsdata = {
agreeOrNotCheck: this.radio,
ids: [this.filingreviewdata.id],
caseCheckReject:this.ruleForm.caseCheckReject
};
submitCaseApplicationCheck(paramsdata)
.then((res) => {
this.$modal.msgSuccess("提交成功");
this.cancel();
this.$emit("getcaseApply", this.queryParams);
})
.catch((err) => { });
}
});
},
cancel() {
this.$emit("cancelFilingreview");
@@ -64,16 +74,19 @@ export default {
.radiobox {
margin-left: 5%;
}
::v-deep .el-dialog {
width: 800px;
background: #ffffff;
border-radius: 20px;
}
.endbutton {
width: 124px;
height: 37px;
background: #0072ff;
border-radius: 19px;
span {
width: 32px;
height: 15px;
@@ -84,12 +97,14 @@ export default {
// line-height: 48px;
}
}
.endbutton1 {
width: 124px;
height: 37px;
background: #ffffff;
border: 1px solid #d0d0d0;
border-radius: 19px;
span {
width: 31px;
height: 13px;