|
|
@@ -1,42 +1,30 @@
|
|
|
<template>
|
|
|
- <el-dialog title="缴费信息" :visible.sync="show" center width="600px">
|
|
|
+ <el-dialog title="确定答复意向" :visible.sync="show" center width="600px">
|
|
|
<el-form
|
|
|
hide-required-asterisk
|
|
|
:model="form"
|
|
|
:rules="rules"
|
|
|
ref="form"
|
|
|
label-width="140px"
|
|
|
- style="padding-right: 130px;"
|
|
|
+ style="padding-right: 130px"
|
|
|
>
|
|
|
- <el-form-item label="是否缴费完成" prop="payment">
|
|
|
- <el-radio-group v-model="form.payment">
|
|
|
- <el-radio :label="true">
|
|
|
- 是
|
|
|
- </el-radio>
|
|
|
- <el-radio :label="false">
|
|
|
- 否
|
|
|
- </el-radio>
|
|
|
+ <el-form-item label="是否决定答复" prop="decideReply">
|
|
|
+ <el-radio-group v-model="form.decideReply">
|
|
|
+ <el-radio :label="true"> 是 </el-radio>
|
|
|
+ <el-radio :label="false"> 否 </el-radio>
|
|
|
</el-radio-group>
|
|
|
+ <div class="el-form-tips" v-if="!form.decideReply">注:放弃答复后,案件立即终止,请谨慎操作</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="受理通知书" prop="attachment1" v-if="form.payment">
|
|
|
- <attachment-upload
|
|
|
- v-model="form.attachment1"
|
|
|
- :fileSize.sync="form.attachment1.size"
|
|
|
- ></attachment-upload>
|
|
|
+ <el-form-item label="准备答复意见" prop="isClientReady" v-if="form.decideReply">
|
|
|
+ <el-radio-group v-model="form.isClientReady">
|
|
|
+ <el-radio :label="true"> 客户准备 </el-radio>
|
|
|
+ <el-radio :label="false"> 律师准备 </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <template v-else>
|
|
|
- <el-form-item prop="attachment2">
|
|
|
- <div slot="label" style="line-height: 22px;">
|
|
|
- <div>无款不予受理</div>
|
|
|
- <div>通知书</div>
|
|
|
- </div>
|
|
|
- <attachment-upload v-model="form.attachment2" :fileSize.sync="form.attachment2.size">
|
|
|
- </attachment-upload>
|
|
|
- </el-form-item>
|
|
|
- </template>
|
|
|
+
|
|
|
<el-form-item>
|
|
|
- <el-button style="width: 150px;" size="normal" type="primary" @click="onSubmit">提交</el-button>
|
|
|
- <el-button style="width: 120px;" size="normal" @click="show = false">取消</el-button>
|
|
|
+ <el-button style="width: 150px" size="normal" type="primary" @click="onSubmit">提交</el-button>
|
|
|
+ <el-button style="width: 120px" size="normal" @click="show = false">取消</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
@@ -52,33 +40,11 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
form: {
|
|
|
- payment: true,
|
|
|
- attachment1: { attachmentName: '受理通知书', fileName: '', url: '', remark: '', size: '' },
|
|
|
- attachment2: { attachmentName: '无款不予受理通知书', fileName: '', url: '', remark: '', size: '' }
|
|
|
+ decideReply: true
|
|
|
},
|
|
|
show: false,
|
|
|
rules: {
|
|
|
- payment: { required: true, message: '请输入附件名称', trigger: 'blur' },
|
|
|
- attachment1: {
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- if (!value.url) {
|
|
|
- callback(new Error('请上传受理通知书'));
|
|
|
- } else {
|
|
|
- callback();
|
|
|
- }
|
|
|
- },
|
|
|
- trigger: 'change'
|
|
|
- },
|
|
|
- attachment2: {
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- if (!value.url) {
|
|
|
- callback(new Error('请上传无款不予受理通知书'));
|
|
|
- } else {
|
|
|
- callback();
|
|
|
- }
|
|
|
- },
|
|
|
- trigger: 'change'
|
|
|
- }
|
|
|
+ isClientReady: { required: true, message: '请选择准备答复意见', trigger: 'change' }
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -95,14 +61,13 @@ export default {
|
|
|
submit() {
|
|
|
let info = { ...this.info };
|
|
|
|
|
|
- info.payment = this.form.payment;
|
|
|
+ info.decideReply = this.form.decideReply;
|
|
|
|
|
|
- if (info.payment) {
|
|
|
- this.$emit('uploadAttement', this.form.attachment1);
|
|
|
- info.logoWorkflow = 'PENDING_REVIEW';
|
|
|
+ if (info.decideReply) {
|
|
|
+ info.isClientReady = this.form.isClientReady;
|
|
|
+ info.workflow = 'REPLY_SUBMISSIONS';
|
|
|
} else {
|
|
|
- this.$emit('uploadAttement', this.form.attachment2);
|
|
|
- info.logoWorkflow = 'UNPAID';
|
|
|
+ info.workflow = 'NO_REPLY';
|
|
|
}
|
|
|
|
|
|
this.$emit('submit', info);
|
|
|
@@ -111,5 +76,11 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
-<style></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+.el-form-tips {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #d75e41;
|
|
|
+ line-height: 17px;
|
|
|
+ margin-top: 18px;
|
|
|
+}
|
|
|
+</style>
|