| | |
| | | <template> |
| | | <div class="cur-container-box"> |
| | | <div class="content-box"> |
| | | 审核当前项 |
| | | </div> |
| | | <div class="footer-btn-box"> |
| | | <el-button type="primary" size="small" @click="auditPass">通 过</el-button> |
| | | <el-button size="small" @click="auditTurnDown">驳 回</el-button> |
| | | </div> |
| | | <avue-form ref="replyForm" :option="option" v-model="form" :close-on-click-modal="false"> |
| | | |
| | | <el-dialog append-to-body :visible.sync="auditTurnDownPopup" width="30%" :close-on-click-modal="false" |
| | | @close="popupClose" :show-close="false"> |
| | | <avue-form ref="replyForm" :option="option" v-model="form" @submit="handleSubmit" @reset-change="handleReset"> |
| | | <template slot-scope="{size}" slot="menuForm"> |
| | | <el-button type="primary" :size="size" @click="handleSubmit">通 过</el-button> |
| | | <el-button :size="size" @click="handleReset">驳 回</el-button> |
| | | </template> |
| | | |
| | | </avue-form> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | |
| | | data () { |
| | | return { |
| | | auditTurnDownPopup: false, |
| | | |
| | | form: {}, |
| | | option: { |
| | | submitBtn: true, |
| | | submitText: '确定', |
| | | emptyBtn: true, |
| | | emptyText: '取消', |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [ |
| | | { |
| | | span: 24, |
| | | label: "驳回原因", |
| | | span: 23, |
| | | row: true, |
| | | label: "审批意见", |
| | | prop: "confirmNotion", |
| | | type: 'textarea', |
| | | minRows: 3, |
| | | maxRows: 5, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入驳回原因", |
| | | trigger: "blur", |
| | | }], |
| | | rules: [], |
| | | } |
| | | ] |
| | | }, |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | popupClose () { |
| | | this.$refs.replyForm && this.$refs.replyForm.resetForm() |
| | | }, |
| | | |
| | | auditPass () { |
| | | handleSubmit () { |
| | | setCheckPlaceExt({ |
| | | confirmFlag: 2, |
| | | id: this.placeElement.curAuditRow.placeExtId |
| | | }).then(() => { |
| | | this.placeElement.auditBasePopup = false |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | |
| | | this.placeElement.onLoad(this.placeElement.page) |
| | | }) |
| | | }, |
| | | |
| | | auditTurnDown () { |
| | | this.placeElement.auditBasePopup = false |
| | | this.auditTurnDownPopup = true |
| | | }, |
| | | |
| | | handleSubmit (form, done) { |
| | | setCheckPlaceExt({ |
| | | confirmFlag: 3, |
| | | id: this.placeElement.curAuditRow.placeExtId, |
| | | confirmNotion: form.confirmNotion |
| | | confirmNotion: this.form.confirmNotion |
| | | }).then(() => { |
| | | this.auditTurnDownPopup = false |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$refs.replyForm && this.$refs.replyForm.resetForm() |
| | | this.placeElement.auditBasePopup = false |
| | | |
| | | this.placeElement.onLoad(this.placeElement.page) |
| | | done() |
| | | }) |
| | | }, |
| | | |
| | | handleReset () { |
| | | this.auditTurnDownPopup = false |
| | | if ('confirmNotion' in this.form && this.form.confirmNotion.trim() == '' || !this.form.confirmNotion) { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: "请输入审批意见!", |
| | | }) |
| | | } |
| | | |
| | | setCheckPlaceExt({ |
| | | confirmFlag: 3, |
| | | id: this.placeElement.curAuditRow.placeExtId, |
| | | confirmNotion: this.form.confirmNotion |
| | | }).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$refs.replyForm && this.$refs.replyForm.resetForm() |
| | | this.placeElement.auditBasePopup = false |
| | | |
| | | this.placeElement.onLoad(this.placeElement.page) |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="menu"> |
| | | <el-button :size="size" type="text" :disabled="row.confirmFlag == 2 || row.confirmFlag == 4" |
| | | icon="el-icon-s-check" v-if="permission.place_audit_cur" @click="auditCur(row)">审核 |
| | | <el-button :size="size" type="text" icon="el-icon-s-check" v-if="permission.place_audit_cur" |
| | | @click="auditCur({ ...row, confirmFlag: 1 })">审核 |
| | | </el-button> |
| | | |
| | | <el-button :size="size" type="text" icon="el-icon-edit" v-if="permission.place_manage_tenants" |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" |
| | | @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
| | | @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | |
| | | <template slot-scope="{ row, size, index }" slot="menu"> |
| | | <el-button :size="size" type="text" v-if="row.applyStatus === 4" @click="handleWork(row)">调整申请 |
| | |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 140, |
| | | menuWidth: 210, |
| | | |
| | | height: "auto", |
| | | calcHeight: 54, |