| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
- <div>
- <reviewDetail v-if="detail && detail.id" :detail="detail" />
- <el-alert title="审核意见" :closable="false" class="alert" type="info">
- </el-alert>
- <el-input
- type="textarea"
- :autosize="{ minRows: 2, maxRows: 4 }"
- placeholder="请输入审核意见"
- v-model="remark"
- >
- </el-input>
- <div slot="footer" class="dialog-footer">
- <!-- <el-button @click="$listeners.close">取 消</el-button> -->
- <el-button type="primary" @click="submit(1)" v-if="permission('musicGroupPaymentCalender/auditPass')">审核通过</el-button>
- <el-button type="danger" @click="submit(0)" v-if="permission('musicGroupPaymentCalender/auditRefuse')">驳回</el-button>
- </div>
- </div>
- </template>
- <script>
- import { permission } from '@/utils/directivePage'
- import Vue from "vue";
- import reviewDetail from "./review-detail";
- import { auditPass, auditRefuse } from "@/api/auditManager";
- export default {
- props: ["detail"],
- components: {
- reviewDetail,
- },
- data() {
- return {
- remark: "",
- };
- },
- methods: {
- async submit(val) {
- if (!this.remark) {
- return this.$message.error("请输入审核意见");
- }
- if (val) {
- auditPass({calenderId:this.detail.id,auditMemo:this.remark}).then((res) => {
- if(res.code == 200){
- this.$message.success('审核通过')
- this.$emit('close')
- }
- });
- } else {
- auditRefuse({calenderId:this.detail.id,auditMemo:this.remark}).then((res) => {
- if(res.code == 200){
- this.$message.success('驳回成功')
- this.$emit('close')
- }
- });
- }
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .dialog-footer {
- margin-top: 20px;
- display: block;
- text-align: right;
- }
- </style>
|