批量管理接口联调
This commit is contained in:
@@ -2,28 +2,47 @@
|
||||
<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"><span>同 意</span></el-button>
|
||||
<el-button type="danger" class="endbutton"><span>驳 回</span></el-button>
|
||||
<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"],
|
||||
dicts: ["manager_type"],
|
||||
props: ["caseVisablearBitration","queryParams","arbitratorDeter"],
|
||||
data() {
|
||||
return {
|
||||
|
||||
ruleForm: {},
|
||||
rules: {
|
||||
checkOpinion: [
|
||||
{
|
||||
required: true,
|
||||
message: "审核意见不能为空",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
caseVisablearBitration(val) {
|
||||
if (val) {
|
||||
this.ruleForm = {};
|
||||
// this.ruleForm = {};
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -31,7 +50,37 @@ export default {
|
||||
|
||||
},
|
||||
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");
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user