94 lines
3.5 KiB
Vue
94 lines
3.5 KiB
Vue
<template>
|
|
<div>
|
|
<!-- 仲裁员批量审核 -->
|
|
<el-dialog title="仲裁员批量审核" :visible="caseVisablearBitration" destroy-on-close width="30%" @close="cancel" center>
|
|
<div>
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
|
|
<el-form-item label="审核意见" prop="checkOpinion">
|
|
<el-input type="textarea" :rows="2" placeholder="请输入审核意见" v-model="ruleForm.checkOpinion"></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="驳回原因">
|
|
<el-input type="textarea" :rows="2" placeholder="请输入驳回原因" v-model="ruleForm.arbitrateReject"></el-input>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="primary" class="endbutton" @click="submitForm(1)"><span>同 意</span></el-button>
|
|
<el-button type="danger" class="endbutton" @click="submitForm(2)"><span>驳 回</span></el-button>
|
|
<el-button class="endbutton" @click="cancel"><span>取 消</span></el-button>
|
|
</div>
|
|
</el-dialog>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import {checkArbitrateRecordBatch} from '@/api/batchManagement/batchManagement.js'
|
|
export default {
|
|
props: ["caseVisablearBitration","queryParams","arbitratorDeter"],
|
|
data() {
|
|
return {
|
|
ruleForm: {},
|
|
rules: {
|
|
checkOpinion: [
|
|
{
|
|
required: true,
|
|
message: "审核意见不能为空",
|
|
trigger: "blur",
|
|
},
|
|
],
|
|
}
|
|
|
|
};
|
|
},
|
|
watch: {
|
|
caseVisablearBitration(val) {
|
|
if (val) {
|
|
// this.ruleForm = {};
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
|
|
},
|
|
methods: {
|
|
submitForm(val){
|
|
this.$refs["ruleForm"].validate((valid) => {
|
|
if(valid){
|
|
if(val==1){
|
|
let values = {
|
|
batchNumber:this.arbitratorDeter.batchNumber,
|
|
agreeOrNotCheck:1,
|
|
arbitrateRecord:this.ruleForm
|
|
}
|
|
checkArbitrateRecordBatch(values).then(res=>{
|
|
this.$modal.msgSuccess("确认成功");
|
|
this.cancel();
|
|
this.$emit("getList", this.queryParams);
|
|
}).catch((err) => {});
|
|
}else if(val==2){
|
|
let values = {
|
|
batchNumber:this.arbitratorDeter.batchNumber,
|
|
agreeOrNotCheck:2,
|
|
arbitrateRecord:this.ruleForm
|
|
}
|
|
checkArbitrateRecordBatch(values).then(res=>{
|
|
this.$modal.msgSuccess("驳回成功");
|
|
this.cancel();
|
|
this.$emit("getList", this.queryParams);
|
|
}).catch((err) => {});
|
|
}
|
|
}
|
|
})
|
|
},
|
|
cancel() {
|
|
|
|
this.$emit("cancelCaseBitration");
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
::v-deep .el-dialog {
|
|
background: #ffffff;
|
|
border-radius: 20px;
|
|
}
|
|
</style> |