2023-09-18 21:55:43 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div>
|
2023-09-20 18:40:49 +08:00
|
|
|
|
<!-- 组庭确认页面 -->
|
2023-11-13 17:40:58 +08:00
|
|
|
|
<el-dialog
|
|
|
|
|
|
title="组庭确认"
|
|
|
|
|
|
:visible="showcourtReview"
|
|
|
|
|
|
@close="cancel"
|
|
|
|
|
|
:destroy-on-close="true"
|
|
|
|
|
|
center
|
|
|
|
|
|
>
|
2023-09-19 20:51:20 +08:00
|
|
|
|
<el-form ref="courtReviewform" :model="courtReviewform">
|
2023-11-02 14:30:57 +08:00
|
|
|
|
<el-form-item label="是否同意组庭:">
|
|
|
|
|
|
<el-radio-group v-model="isAgreePendTral">
|
|
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
2023-11-13 17:40:58 +08:00
|
|
|
|
<!-- </el-form> -->
|
|
|
|
|
|
<el-tag type="warning" v-if="noArbitrator"
|
|
|
|
|
|
>当前案件未指定仲裁员,请先指定仲裁员!</el-tag
|
|
|
|
|
|
>
|
|
|
|
|
|
<div style="display: inline-flex; margin: 1% 9%">
|
|
|
|
|
|
<div v-if="isAgreePendTral == 0">请选择仲裁员</div>
|
|
|
|
|
|
<div v-if="isAgreePendTral == 1 && form.arbitratorName">
|
|
|
|
|
|
当前案件仲裁员
|
|
|
|
|
|
</div>
|
2023-11-02 14:30:57 +08:00
|
|
|
|
</div>
|
2023-11-13 17:40:58 +08:00
|
|
|
|
<div v-if="isAgreePendTral == 1" class="nowarbitrator">
|
|
|
|
|
|
<el-tag size="medium">
|
|
|
|
|
|
{{ form.arbitratorName }}
|
|
|
|
|
|
</el-tag>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- <div v-if="noArbitrator || isAgreePendTral == 0"> -->
|
|
|
|
|
|
<el-form-item
|
|
|
|
|
|
label="仲裁员:"
|
|
|
|
|
|
prop="Arbitor"
|
|
|
|
|
|
v-if="noArbitrator || isAgreePendTral == 0"
|
|
|
|
|
|
:rules="[
|
|
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: '仲裁员不能为空',
|
|
|
|
|
|
trigger: 'blur',
|
|
|
|
|
|
},
|
|
|
|
|
|
]"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
placeholder="请选择仲裁员"
|
|
|
|
|
|
@change="changeArbitor"
|
|
|
|
|
|
v-model="courtReviewform.Arbitor"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in dataList"
|
|
|
|
|
|
:key="item.value"
|
|
|
|
|
|
:label="item.nickName"
|
|
|
|
|
|
:value="item.userId"
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- </div> -->
|
|
|
|
|
|
</el-form>
|
2023-09-18 21:55:43 +08:00
|
|
|
|
<div slot="footer" class="dialog-footer">
|
2023-11-13 17:40:58 +08:00
|
|
|
|
<el-button type="primary" @click="submitForm" class="endbutton"
|
|
|
|
|
|
><span>确 定</span>
|
2023-09-20 18:40:49 +08:00
|
|
|
|
</el-button>
|
2023-11-13 17:40:58 +08:00
|
|
|
|
<el-button @click="cancel" class="endbutton1"
|
|
|
|
|
|
><span> 取 消</span></el-button
|
|
|
|
|
|
>
|
2023-09-18 21:55:43 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-09-19 20:51:20 +08:00
|
|
|
|
import { pendTralSure } from "@/api/caseManagement/caseManagement.js";
|
2023-11-02 14:30:57 +08:00
|
|
|
|
import { arbitrAtor, pendTralCheck } from "@/api/formationCourt/formationCourt";
|
2023-09-19 20:51:20 +08:00
|
|
|
|
import moment from "moment";
|
2023-09-18 21:55:43 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
name: "courtReviewDialog",
|
2023-09-21 09:40:04 +08:00
|
|
|
|
props: ["showcourtReview", "form", "queryParams"],
|
2023-09-18 21:55:43 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2023-11-13 17:40:58 +08:00
|
|
|
|
dataList: [],
|
2023-09-19 20:51:20 +08:00
|
|
|
|
hearDate: "",
|
2023-11-03 17:02:15 +08:00
|
|
|
|
courtReviewform: {
|
2023-11-13 17:40:58 +08:00
|
|
|
|
hearDate: null,
|
2023-11-03 17:02:15 +08:00
|
|
|
|
},
|
2023-11-02 14:30:57 +08:00
|
|
|
|
noArbitrator: false,
|
|
|
|
|
|
isAgreePendTral: 1,
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
queryParams1: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
},
|
|
|
|
|
|
paramsdata: {},
|
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
|
disabledDate(time) {
|
|
|
|
|
|
return time.getTime() < Date.now() - 8.64e7;
|
2023-11-13 17:40:58 +08:00
|
|
|
|
},
|
2023-11-02 14:30:57 +08:00
|
|
|
|
},
|
2023-11-13 17:40:58 +08:00
|
|
|
|
Arbitor: "",
|
2023-09-18 21:55:43 +08:00
|
|
|
|
};
|
|
|
|
|
|
},
|
2023-11-02 14:30:57 +08:00
|
|
|
|
created() {
|
|
|
|
|
|
this.getarbitrAtor();
|
|
|
|
|
|
},
|
|
|
|
|
|
watch: {
|
2023-11-03 17:02:15 +08:00
|
|
|
|
showcourtReview(val) {
|
2023-11-02 14:30:57 +08:00
|
|
|
|
if (val) {
|
|
|
|
|
|
this.isAgreePendTral = 1;
|
2023-11-13 17:40:58 +08:00
|
|
|
|
this.courtReviewform.hearDate = null;
|
2023-11-02 14:30:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
form: {
|
|
|
|
|
|
handler(val) {
|
|
|
|
|
|
if (val.arbitratorName == null) {
|
|
|
|
|
|
this.noArbitrator = true;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.noArbitrator = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
2023-09-18 21:55:43 +08:00
|
|
|
|
methods: {
|
2023-11-02 14:30:57 +08:00
|
|
|
|
// 获取仲裁员信息
|
|
|
|
|
|
getarbitrAtor() {
|
|
|
|
|
|
arbitrAtor({}).then((res) => {
|
|
|
|
|
|
this.dataList = res.rows;
|
|
|
|
|
|
this.total = res.total;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2023-11-13 17:40:58 +08:00
|
|
|
|
changeArbitor(val) {
|
2023-11-02 14:30:57 +08:00
|
|
|
|
this.arbitrators = [];
|
2023-11-13 17:40:58 +08:00
|
|
|
|
this.dataList.forEach((item) => {
|
|
|
|
|
|
if (item.userId == val) {
|
|
|
|
|
|
this.arbitrators.push({
|
|
|
|
|
|
id: item.userId,
|
|
|
|
|
|
arbitratorName: item.nickName,
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2023-11-02 14:30:57 +08:00
|
|
|
|
});
|
|
|
|
|
|
},
|
2023-09-18 21:55:43 +08:00
|
|
|
|
submitForm() {
|
2023-11-02 14:30:57 +08:00
|
|
|
|
if (this.noArbitrator) {
|
|
|
|
|
|
this.paramsdata = {
|
|
|
|
|
|
id: this.form.id,
|
|
|
|
|
|
arbitrators: this.arbitrators,
|
|
|
|
|
|
};
|
|
|
|
|
|
} else {
|
|
|
|
|
|
if (this.isAgreePendTral == 0) {
|
|
|
|
|
|
this.paramsdata = {
|
|
|
|
|
|
isAgreePendTral: 0,
|
|
|
|
|
|
id: this.form.id,
|
|
|
|
|
|
arbitrators: this.arbitrators,
|
|
|
|
|
|
};
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.paramsdata = {
|
|
|
|
|
|
isAgreePendTral: 1,
|
|
|
|
|
|
id: this.form.id,
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-09-19 20:51:20 +08:00
|
|
|
|
this.$refs["courtReviewform"].validate((valid) => {
|
|
|
|
|
|
if (valid) {
|
2023-11-13 17:40:58 +08:00
|
|
|
|
pendTralSure(this.paramsdata)
|
2023-09-19 20:51:20 +08:00
|
|
|
|
.then((res) => {
|
|
|
|
|
|
this.$modal.msgSuccess("确认成功");
|
|
|
|
|
|
this.cancel();
|
2023-11-02 14:30:57 +08:00
|
|
|
|
this.$emit("getcaseApply", this.queryParams);
|
2023-09-19 20:51:20 +08:00
|
|
|
|
})
|
2023-11-13 17:40:58 +08:00
|
|
|
|
.catch((err) => {});
|
2023-09-19 20:51:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
2023-09-18 21:55:43 +08:00
|
|
|
|
},
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
this.$emit("cancelcourtReview");
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2023-09-20 18:40:49 +08:00
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
}
|
2023-11-02 14:30:57 +08:00
|
|
|
|
|
2023-09-19 20:51:20 +08:00
|
|
|
|
.el-form-item {
|
2023-09-18 21:55:43 +08:00
|
|
|
|
margin-left: 10%;
|
|
|
|
|
|
}
|
2023-11-02 14:30:57 +08:00
|
|
|
|
|
2023-09-20 18:40:49 +08:00
|
|
|
|
.endbutton {
|
|
|
|
|
|
width: 124px;
|
|
|
|
|
|
height: 37px;
|
|
|
|
|
|
background: #0072ff;
|
|
|
|
|
|
border-radius: 19px;
|
2023-11-02 14:30:57 +08:00
|
|
|
|
|
2023-09-20 18:40:49 +08:00
|
|
|
|
span {
|
|
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 15px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-family: Microsoft YaHei;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
// line-height: 48px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-11-02 14:30:57 +08:00
|
|
|
|
|
2023-09-20 18:40:49 +08:00
|
|
|
|
.endbutton1 {
|
|
|
|
|
|
width: 124px;
|
|
|
|
|
|
height: 37px;
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border: 1px solid #d0d0d0;
|
|
|
|
|
|
border-radius: 19px;
|
2023-11-02 14:30:57 +08:00
|
|
|
|
|
2023-09-20 18:40:49 +08:00
|
|
|
|
span {
|
|
|
|
|
|
width: 31px;
|
|
|
|
|
|
height: 13px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-family: Microsoft YaHei;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
color: #959595;
|
|
|
|
|
|
// line-height: 48px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-11-13 17:40:58 +08:00
|
|
|
|
.nowarbitrator {
|
|
|
|
|
|
margin-left: 10%;
|
|
|
|
|
|
}
|
2023-11-02 14:30:57 +08:00
|
|
|
|
|
2023-10-07 10:52:38 +08:00
|
|
|
|
::v-deep .el-form-item__error {
|
|
|
|
|
|
left: 90px;
|
|
|
|
|
|
}
|
2023-09-18 21:55:43 +08:00
|
|
|
|
</style>
|