|
|
@@ -144,6 +144,7 @@
|
|
|
<span v-else><el-link :underline="false" type="info">暂无</el-link></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="驳回时间" prop="rejectedAt" min-width="110"></el-table-column>
|
|
|
<el-table-column label="操作" align="right" fixed="right" min-width="110">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="editRow(row)" type="primary" size="mini" plain>
|
|
|
@@ -257,6 +258,7 @@ export default {
|
|
|
},
|
|
|
beforeGetData() {
|
|
|
let data = {
|
|
|
+ sort: 'rejectedAt,desc',
|
|
|
query: {
|
|
|
// submit: true,
|
|
|
isRejected: true
|
|
|
@@ -350,168 +352,6 @@ export default {
|
|
|
},
|
|
|
operation2() {
|
|
|
this.$message('操作2');
|
|
|
- },
|
|
|
- deleteRow(row) {
|
|
|
- this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
|
|
|
- .then(() => {
|
|
|
- return this.$http.post(`/rate/del/${row.id}`);
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.$message.success('删除成功');
|
|
|
- this.getData();
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- if (e !== 'cancel') {
|
|
|
- this.$message.error(e.error);
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- audit(row, status, remark) {
|
|
|
- this.$set(row, 'loading', true);
|
|
|
-
|
|
|
- this.$confirm('确认此承办单位同意上报?', '提示', {
|
|
|
- confirmButtonText: '同意上报',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.$http
|
|
|
- .post('/rate/audit', {
|
|
|
- id: row.id,
|
|
|
- status: status,
|
|
|
- score: 0,
|
|
|
- remark: remark
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$set(row, 'loading', false);
|
|
|
- this.$message.success('上报成功');
|
|
|
- this.getData();
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- console.log(e);
|
|
|
- this.$set(row, 'loading', false);
|
|
|
- this.$message.error(e.error);
|
|
|
- });
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: '已取消'
|
|
|
- });
|
|
|
- this.$set(row, 'loading', false);
|
|
|
- });
|
|
|
- },
|
|
|
- dismiss(row) {
|
|
|
- this.dialogDismiss = true;
|
|
|
- this.form = row;
|
|
|
- },
|
|
|
- saveDismiss() {
|
|
|
- let row = this.form;
|
|
|
- this.$set(row, 'loading', true);
|
|
|
- this.$http
|
|
|
- .post('/rate/audit', {
|
|
|
- id: this.form.id,
|
|
|
- status: 'REVIEW_DENY',
|
|
|
- score: 0,
|
|
|
- remark: this.reason
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$set(row, 'loading', false);
|
|
|
- this.$message.success('退回成功');
|
|
|
- this.getData();
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- this.$set(row, 'loading', false);
|
|
|
- console.log(e);
|
|
|
- this.$message.error(e.error);
|
|
|
- });
|
|
|
- this.form = '';
|
|
|
- this.reason = '';
|
|
|
- this.dialogDismiss = false;
|
|
|
- },
|
|
|
- supervision(id) {
|
|
|
- this.$router.push({
|
|
|
- path: '/organizationExpert',
|
|
|
- query: {
|
|
|
- id: id
|
|
|
- }
|
|
|
- });
|
|
|
- // this.dialogVisible = true;
|
|
|
- // this.rateId = id;
|
|
|
- },
|
|
|
- addRegulatory(id) {
|
|
|
- this.$http
|
|
|
- .post('/rate/addExpert', {
|
|
|
- id: this.rateId,
|
|
|
- userId: id
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.saving = false;
|
|
|
- this.$message.success('成功');
|
|
|
- this.dialogVisible = false;
|
|
|
- this.recordId = '';
|
|
|
- this.getData();
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- console.log(e);
|
|
|
- this.saving = false;
|
|
|
- this.$message.error(e.error);
|
|
|
- });
|
|
|
- },
|
|
|
- openScore(row) {
|
|
|
- this.dialogScore = true;
|
|
|
- this.scoreInfo = row;
|
|
|
- },
|
|
|
- saveScore() {
|
|
|
- this.scoreInfo.status = 'SUBMIT_PAPER_MATERIALS';
|
|
|
- this.$http
|
|
|
- .post(
|
|
|
- '/rate/save',
|
|
|
- {
|
|
|
- ...this.scoreInfo
|
|
|
- },
|
|
|
- { body: 'json' }
|
|
|
- )
|
|
|
- .then(res => {
|
|
|
- this.$message.success('OK');
|
|
|
- this.dialogScore = false;
|
|
|
- // this.scoreInfo = '';
|
|
|
- this.getData();
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- console.log(e);
|
|
|
- this.$message.error(e.error);
|
|
|
- });
|
|
|
- },
|
|
|
- saveComplete(row) {
|
|
|
- this.$confirm('确认已收到区文旅局提交的材料?', '提示', {
|
|
|
- confirmButtonText: '已收到',
|
|
|
- cancelButtonText: '暂未收到',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.$http
|
|
|
- .post('/rate/paperMaterial', {
|
|
|
- id: row.id,
|
|
|
- status: 'COMPLETE',
|
|
|
- remark: '市文旅局已确认收到区文旅局提交的材料'
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$message.success('确认成功');
|
|
|
- this.getData();
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- console.log(e);
|
|
|
- this.$message.error(e.error);
|
|
|
- });
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: '已取消'
|
|
|
- });
|
|
|
- this.$set(row, 'loading', false);
|
|
|
- });
|
|
|
}
|
|
|
}
|
|
|
};
|