fix: 优化驳回流程页面选择样式

approve-sys
tony 3 years ago
parent 8b163c914e
commit 3cf1c0e1e0

@ -17,7 +17,7 @@
<!-- <el-button icon="el-icon-edit-outline" type="primary" size="mini" @click="handleAssign"></el-button>--> <!-- <el-button icon="el-icon-edit-outline" type="primary" size="mini" @click="handleAssign"></el-button>-->
<!-- <el-button icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate"></el-button>--> <!-- <el-button icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate"></el-button>-->
<el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退</el-button> <el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退</el-button>
<!-- <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject"></el-button>--> <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject"></el-button>
</div> </div>
</el-col> </el-col>
@ -140,7 +140,7 @@
>{{item.name}}</el-radio-button> >{{item.name}}</el-radio-button>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="审批意见" prop="comment" :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]"> <el-form-item label="退回意见" prop="comment" :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]">
<el-input style="width: 50%" type="textarea" v-model="taskForm.comment" placeholder="请输入意见"/> <el-input style="width: 50%" type="textarea" v-model="taskForm.comment" placeholder="请输入意见"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -149,6 +149,19 @@
<el-button type="primary" @click="taskReturn"> </el-button> <el-button type="primary" @click="taskReturn"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
<!--驳回流程-->
<el-dialog :title="rejectTitle" :visible.sync="rejectOpen" width="40%" append-to-body>
<el-form ref="taskForm" :model="taskForm" label-width="80px" >
<el-form-item label="驳回意见" prop="comment" :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]">
<el-input style="width: 50%" type="textarea" v-model="taskForm.comment" placeholder="请输入意见"/>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="rejectOpen = false"> </el-button>
<el-button type="primary" @click="taskReject"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -225,6 +238,8 @@ export default {
completeOpen: false, completeOpen: false,
returnTitle: null, returnTitle: null,
returnOpen: false, returnOpen: false,
rejectOpen: false,
rejectTitle: null,
userData:[], userData:[],
}; };
}, },
@ -477,6 +492,11 @@ export default {
}, },
/** 驳回任务 */ /** 驳回任务 */
handleReject() { handleReject() {
this.rejectOpen = true;
this.rejectTitle = "驳回流程";
},
/** 驳回任务 */
taskReject() {
this.$refs["taskForm"].validate(valid => { this.$refs["taskForm"].validate(valid => {
if (valid) { if (valid) {
rejectTask(this.taskForm).then(res => { rejectTask(this.taskForm).then(res => {

Loading…
Cancel
Save