|
@@ -1,6 +1,12 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="90px"
|
|
|
+ >
|
|
|
<el-form-item label="指标名称" prop="quotaName">
|
|
|
<el-input v-model="queryParams.quotaName"></el-input>
|
|
|
</el-form-item>
|
|
@@ -8,7 +14,9 @@
|
|
|
<el-input v-model="queryParams.bondedName"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-search" @click="handleQuery"
|
|
|
+ >搜索</el-button
|
|
|
+ >
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -20,7 +28,8 @@
|
|
|
icon="el-icon-plus"
|
|
|
@click="handleAdd"
|
|
|
v-hasPermi="['business:QUOTABONDED:add']"
|
|
|
- >新增</el-button>
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -29,7 +38,8 @@
|
|
|
:disabled="single"
|
|
|
@click="handleUpdate"
|
|
|
v-hasPermi="['business:QUOTABONDED:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -38,46 +48,113 @@
|
|
|
:disabled="multiple"
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['business:QUOTABONDED:remove']"
|
|
|
- >删除</el-button>
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ <right-toolbar
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
+ @queryTable="getList"
|
|
|
+ ></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
<el-table :data="QUOTABONDEDList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="保税区名称" align="center" prop="bondedName" width="140"></el-table-column>
|
|
|
- <el-table-column label="指标名称" align="center" prop="quotaName" width="180"></el-table-column>
|
|
|
- <el-table-column label="得分" align="center" prop="score"></el-table-column>
|
|
|
- <el-table-column label="录入方式" align="center" prop="enterType"></el-table-column>
|
|
|
- <el-table-column label="数值" align="center" prop="numValue"></el-table-column>
|
|
|
- <el-table-column label="文字说明" align="center" prop="remark" width="280"></el-table-column>
|
|
|
- <el-table-column label="附件" align="center" prop="fileNames" width="280">
|
|
|
+ <el-table-column
|
|
|
+ label="保税区名称"
|
|
|
+ align="center"
|
|
|
+ prop="bondedName"
|
|
|
+ width="140"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="指标名称"
|
|
|
+ align="center"
|
|
|
+ prop="quotaName"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="得分"
|
|
|
+ align="center"
|
|
|
+ prop="score"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="录入方式"
|
|
|
+ align="center"
|
|
|
+ prop="enterType"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="数值"
|
|
|
+ align="center"
|
|
|
+ prop="numValue"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="文字说明"
|
|
|
+ align="center"
|
|
|
+ prop="remark"
|
|
|
+ width="280"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="附件" align="center" prop="fileNames" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-link @click="download(scope.row.fileNames)">{{scope.row.fileNames}}</el-link>
|
|
|
+ <el-link @click="download(scope.row.fileNames)">{{
|
|
|
+ scope.row.fileNames
|
|
|
+ }}</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" fixed="right" width="150">
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" width="350">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
+ v-if="scope.row.auditStatus == 0 || scope.row.auditStatus == null"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleApprove(scope.row)"
|
|
|
+ v-hasPermi="['business:QUOTABONDED:remove']"
|
|
|
+ >提交审核</el-button
|
|
|
+ >
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ scope.row.auditStatus == 1 &&
|
|
|
+ (scope.row.approvalStatus == 0 ||
|
|
|
+ scope.row.approvalStatus == null)
|
|
|
+ "
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleAdminApprove(scope.row)"
|
|
|
+ v-hasPermi="['business:QUOTABONDED:remove']"
|
|
|
+ >审核</el-button
|
|
|
+ >
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.approvalStatus == 1 && (scope.row.reportStatus == 0 || scope.row.reportStatus == null)"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="handleReport(scope.row)"
|
|
|
+ v-hasPermi="['business:QUOTABONDED:remove']"
|
|
|
+ >上报</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.auditStatus == 0 || scope.row.auditStatus == null"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['business:QUOTABONDED:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['business:QUOTABONDED:remove']"
|
|
|
- >删除</el-button>
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
|
- v-show="total>0"
|
|
|
+ v-show="total > 0"
|
|
|
:total="total"
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
@@ -87,32 +164,65 @@
|
|
|
<!-- 添加或修改辅助指标-综保区对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules">
|
|
|
-
|
|
|
<el-form-item label-width="100px" label="保税区" prop="bondedName">
|
|
|
- <el-select v-model="form.bondedName" placeholder="请选择保税区" clearable filterable @change="selectBondedChange" style="width:100%">
|
|
|
-<!-- <el-option v-for="dict in BONDEDList" :key="dict.id" :label="dict.bondedName" :value="dict" />-->
|
|
|
+ <el-select
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="form.bondedName"
|
|
|
+ placeholder="请选择保税区"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ @change="selectBondedChange"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <!-- <el-option v-for="dict in BONDEDList" :key="dict.id" :label="dict.bondedName" :value="dict" />-->
|
|
|
<el-option
|
|
|
v-for="item in deptList"
|
|
|
:key="item.deptId"
|
|
|
:label="item.deptName"
|
|
|
- :value="item.deptName">
|
|
|
+ :value="item.deptName"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label-width="100px" label="辅助指标" prop="quotaName">
|
|
|
- <el-select v-model="form.quotaName" placeholder="请选择辅助指标" clearable filterable @change="selectQuotaChange" style="width:100%">
|
|
|
- <el-option v-for="dict in QUOTAFEEList" :key="dict.id" :label="dict.quotaName" :value="dict" />
|
|
|
+ <el-select
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="form.quotaName"
|
|
|
+ placeholder="请选择辅助指标"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ @change="selectQuotaChange"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in QUOTAFEEList"
|
|
|
+ :key="dict.id"
|
|
|
+ :label="dict.quotaName"
|
|
|
+ :value="dict"
|
|
|
+ />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label-width="100px" label="录入方式" prop="enterType">
|
|
|
- <el-select v-model="form.enterType" placeholder="请选择录入方式" clearable filterable style="width:100%">
|
|
|
+ <el-select
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="form.enterType"
|
|
|
+ placeholder="请选择录入方式"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
<el-option value="附件">附件</el-option>
|
|
|
<el-option value="文字说明">文字说明</el-option>
|
|
|
<el-option value="数值">数值</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="form.enterType == '附件'" label-width="100px" prop="linkUrls" label="上传附件">
|
|
|
+ <el-form-item
|
|
|
+ v-if="form.enterType == '附件'"
|
|
|
+ label-width="100px"
|
|
|
+ prop="linkUrls"
|
|
|
+ label="上传附件"
|
|
|
+ >
|
|
|
<el-upload
|
|
|
class="upload-demo"
|
|
|
ref="upload"
|
|
@@ -123,39 +233,80 @@
|
|
|
:on-change="handleChange"
|
|
|
:multiple="true"
|
|
|
>
|
|
|
- <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
+ <div v-if="isAppoval" slot="tip" class="el-upload__tip">
|
|
|
+ 审核无法修改
|
|
|
+ </div>
|
|
|
+ <el-button slot="trigger" size="small" type="primary"
|
|
|
+ >选取文件</el-button
|
|
|
+ >
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="form.enterType == '文字说明'" label-width="100px" prop="remark" label="说明">
|
|
|
- <el-input type="textarea" v-model="form.remark" rows="5"></el-input>
|
|
|
+ <el-form-item
|
|
|
+ v-if="form.enterType == '文字说明'"
|
|
|
+ label-width="100px"
|
|
|
+ prop="remark"
|
|
|
+ label="说明"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="form.remark"
|
|
|
+ rows="5"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="form.enterType == '数值'" label-width="100px" prop="numValue" label="数值">
|
|
|
- <el-input v-model="form.numValue"></el-input>
|
|
|
+ <el-form-item
|
|
|
+ v-if="form.enterType == '数值'"
|
|
|
+ label-width="100px"
|
|
|
+ prop="numValue"
|
|
|
+ label="数值"
|
|
|
+ >
|
|
|
+ <el-input :disabled="isAppoval" v-model="form.numValue"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label-width="100px" prop="score" label="分值">
|
|
|
- <el-input v-model="form.score"></el-input>
|
|
|
+ <el-input :disabled="isAppoval" v-model="form.score"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
+ <div slot="footer" v-if="!isAppoval" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
+ <div slot="footer" v-else class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="setRejectAndResolve('resolve')"
|
|
|
+ >通 过</el-button
|
|
|
+ >
|
|
|
+ <el-button type="warning" @click="setRejectAndResolve('reject')"
|
|
|
+ >驳 回</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listQUOTABONDED, getQUOTABONDED, delQUOTABONDED, addQUOTABONDED, updateQUOTABONDED } from "@/api/norm/QUOTABONDED";
|
|
|
+import {
|
|
|
+ listQUOTABONDED,
|
|
|
+ getQUOTABONDED,
|
|
|
+ delQUOTABONDED,
|
|
|
+ addQUOTABONDED,
|
|
|
+ updateQUOTABONDED,
|
|
|
+ setApprove,
|
|
|
+ setAdminApprove,
|
|
|
+ setAdminReport,
|
|
|
+} from "@/api/norm/QUOTABONDED";
|
|
|
+
|
|
|
+
|
|
|
import { listQUOTAFEE } from "@/api/norm/QUOTAFEE";
|
|
|
import { listBONDED } from "@/api/portal/BONDED/BONDED.js";
|
|
|
-import { uploadFiles,downloadFiles } from '@/api/common';
|
|
|
-import { listDept } from '@/api/system/dept'
|
|
|
+import { uploadFiles, downloadFiles } from "@/api/common";
|
|
|
+import { listDept } from "@/api/system/dept";
|
|
|
|
|
|
export default {
|
|
|
name: "QUOTABONDED",
|
|
|
data() {
|
|
|
return {
|
|
|
+ isAppoval: false,
|
|
|
// 根路径
|
|
|
baseURL: process.env.VUE_APP_BASE_API,
|
|
|
// 遮罩层
|
|
@@ -202,23 +353,23 @@ export default {
|
|
|
stopTime: null,
|
|
|
linkUrls: null,
|
|
|
remark: null,
|
|
|
- fileNames: null
|
|
|
+ fileNames: null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
bondedName: [
|
|
|
- { required: true, message: "综保区名称不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "综保区名称不能为空", trigger: "blur" },
|
|
|
],
|
|
|
quotaName: [
|
|
|
- { required: true, message: "指标名称不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "指标名称不能为空", trigger: "blur" },
|
|
|
],
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- listQUOTAFEE().then(response => {
|
|
|
+ listQUOTAFEE().then((response) => {
|
|
|
response.rows.forEach((item, index) => {
|
|
|
response.rows[index].status = item.status == 0 ? false : true;
|
|
|
});
|
|
@@ -228,20 +379,23 @@ export default {
|
|
|
this.BONDEDList = response.rows;
|
|
|
});
|
|
|
this.getList();
|
|
|
- this.getDeptList()
|
|
|
+ this.getDeptList();
|
|
|
+
|
|
|
},
|
|
|
- methods: {
|
|
|
|
|
|
+ methods: {
|
|
|
// 获取保税区列表
|
|
|
getDeptList() {
|
|
|
this.loading = true;
|
|
|
- listDept({parentId: '100'}).then(response => {
|
|
|
- this.deptList = response.data
|
|
|
+ listDept({ parentId: "100" }).then((response) => {
|
|
|
+ this.deptList = response.data;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
selectBondedChange(val) {
|
|
|
- const selectedDept = this.deptList.find(item => item.deptName === this.form.bondedName);
|
|
|
+ const selectedDept = this.deptList.find(
|
|
|
+ (item) => item.deptName === this.form.bondedName
|
|
|
+ );
|
|
|
if (selectedDept) {
|
|
|
this.form.bondedId = selectedDept.deptId;
|
|
|
}
|
|
@@ -255,7 +409,7 @@ export default {
|
|
|
/** 查询辅助指标-综保区列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listQUOTABONDED(this.queryParams).then(response => {
|
|
|
+ listQUOTABONDED(this.queryParams).then((response) => {
|
|
|
this.QUOTABONDEDList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -284,7 +438,7 @@ export default {
|
|
|
remark: null,
|
|
|
fileNames: null,
|
|
|
enterType: null,
|
|
|
- numValue: null
|
|
|
+ numValue: null,
|
|
|
};
|
|
|
this.fileList = [];
|
|
|
this.resetForm("form");
|
|
@@ -301,12 +455,13 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.id)
|
|
|
- this.single = selection.length!==1
|
|
|
- this.multiple = !selection.length
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
+ this.single = selection.length !== 1;
|
|
|
+ this.multiple = !selection.length;
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
+ this.isAppoval = false;
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "辅助指标录入新增";
|
|
@@ -314,8 +469,8 @@ export default {
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
- const id = row.id || this.ids
|
|
|
- getQUOTABONDED(id).then(response => {
|
|
|
+ const id = row.id || this.ids;
|
|
|
+ getQUOTABONDED(id).then((response) => {
|
|
|
this.form = response.data;
|
|
|
this.form.linkUrls = this.baseURL + response.data.linkUrls;
|
|
|
this.fileList = [];
|
|
@@ -329,30 +484,36 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
async submitForm() {
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!(parseInt(this.form.score) == this.form.score)) {
|
|
|
this.$message.error("得分必须为整数");
|
|
|
return;
|
|
|
}
|
|
|
- if (this.form.enterType == '附件' && this.form.linkUrls == null) {
|
|
|
+ if (this.form.enterType == "附件" && this.form.linkUrls == null) {
|
|
|
this.$message.error("请上传附件");
|
|
|
return;
|
|
|
}
|
|
|
- if (this.form.enterType == '文字说明' && this.form.remark == null) {
|
|
|
+ if (this.form.enterType == "文字说明" && this.form.remark == null) {
|
|
|
this.$message.error("请录入文字说明");
|
|
|
return;
|
|
|
}
|
|
|
- if (this.form.enterType == '数值' && this.form.numValue == null) {
|
|
|
+ if (this.form.enterType == "数值" && this.form.numValue == null) {
|
|
|
this.$message.error("请录入数值");
|
|
|
return;
|
|
|
}
|
|
|
- if (this.form.numValue != null && !(parseInt(this.form.numValue) == this.form.numValue || parseFloat(this.form.numValue) == this.form.numValue)) {
|
|
|
+ if (
|
|
|
+ this.form.numValue != null &&
|
|
|
+ !(
|
|
|
+ parseInt(this.form.numValue) == this.form.numValue ||
|
|
|
+ parseFloat(this.form.numValue) == this.form.numValue
|
|
|
+ )
|
|
|
+ ) {
|
|
|
this.$message.error("数值必须为整数或小数");
|
|
|
return;
|
|
|
}
|
|
|
if (this.form.id != null) {
|
|
|
- let formData = new FormData()
|
|
|
+ let formData = new FormData();
|
|
|
if (this.fileList.length < 1) {
|
|
|
this.$message.error("请选择文件传输!");
|
|
|
return;
|
|
@@ -360,20 +521,20 @@ export default {
|
|
|
this.fileList.forEach((item) => {
|
|
|
formData.append("file", item.raw);
|
|
|
});
|
|
|
- uploadFiles(formData).then(res=>{
|
|
|
- if(res.code == 200){
|
|
|
+ uploadFiles(formData).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
this.form.linkUrls = res.fileNames;
|
|
|
this.form.fileNames = res.newFileNames;
|
|
|
|
|
|
- updateQUOTABONDED(this.form).then(response => {
|
|
|
+ updateQUOTABONDED(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
} else {
|
|
|
- addQUOTABONDED(this.form).then(response => {
|
|
|
+ addQUOTABONDED(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
@@ -382,21 +543,83 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 管理员驳回审核
|
|
|
+ setRejectAndResolve(type) {
|
|
|
+ let val;
|
|
|
+ if (type == "resolve") {
|
|
|
+ val = 1;
|
|
|
+ } else {
|
|
|
+ val = 2;
|
|
|
+ }
|
|
|
+ setAdminApprove({ quotoBondedId: this.form.id, type: val }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success(val == 1 ? "审核成功":"驳回成功");
|
|
|
+ this.getList();
|
|
|
+ this.open = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除辅助指标-综保区编号为"' + ids + '"的数据项?').then(function() {
|
|
|
- return delQUOTABONDED(ids);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
- }).catch(() => {});
|
|
|
+ this.$modal
|
|
|
+ .confirm('是否确认删除辅助指标-综保区编号为"' + ids + '"的数据项?')
|
|
|
+ .then(function () {
|
|
|
+ return delQUOTABONDED(ids);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
+
|
|
|
+ // 用户提交审核
|
|
|
+ handleApprove(data) {
|
|
|
+ setApprove({ quotoBondedId: data.id }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("提交成功");
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 管理审核审核
|
|
|
+ handleAdminApprove(row) {
|
|
|
+ this.reset();
|
|
|
+ const id = row.id || this.ids;
|
|
|
+ this.isAppoval = true;
|
|
|
+ getQUOTABONDED(id).then((response) => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.form.linkUrls = this.baseURL + response.data.linkUrls;
|
|
|
+ this.fileList = [];
|
|
|
+ this.fileList.push({
|
|
|
+ name: response.data.fileNames,
|
|
|
+ url: response.data.linkUrls,
|
|
|
+ });
|
|
|
+ this.open = true;
|
|
|
+ this.title = "辅助指标录入修改";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 管理上报
|
|
|
+ handleReport(data) {
|
|
|
+ setAdminReport({ quotoBondedId: data.id, type: 1 }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("上报成功");
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
- this.download('business/QUOTABONDED/export', {
|
|
|
- ...this.queryParams
|
|
|
- }, `QUOTABONDED_${new Date().getTime()}.xlsx`)
|
|
|
+ this.download(
|
|
|
+ "business/QUOTABONDED/export",
|
|
|
+ {
|
|
|
+ ...this.queryParams,
|
|
|
+ },
|
|
|
+ `QUOTABONDED_${new Date().getTime()}.xlsx`
|
|
|
+ );
|
|
|
},
|
|
|
|
|
|
handleChange(file, fileList) {
|
|
@@ -406,14 +629,12 @@ export default {
|
|
|
this.fileList = fileList;
|
|
|
},
|
|
|
download(resource) {
|
|
|
- console.log("resource",resource)
|
|
|
- downloadFiles(resource).then(res=>{
|
|
|
- if(res.code == 200) {
|
|
|
-
|
|
|
-
|
|
|
+ console.log("resource", resource);
|
|
|
+ downloadFiles(resource).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
}
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|