|
@@ -43,7 +43,8 @@
|
|
|
@click="handleAdd"
|
|
|
v-hasPermi="['pssr:airtight:add']"
|
|
|
v-if="isApprove==0"
|
|
|
- >新增</el-button>
|
|
|
+ >新增
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -54,7 +55,8 @@
|
|
|
@click="handleUpdate"
|
|
|
v-hasPermi="['pssr:airtight:edit']"
|
|
|
v-if="isApprove==0"
|
|
|
- >修改</el-button>
|
|
|
+ >修改
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -77,18 +79,20 @@
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['pssr:airtight:remove']"
|
|
|
v-if="isApprove==0"
|
|
|
- >删除</el-button>
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ icon="el-icon-upload2"
|
|
|
+ size="mini"
|
|
|
+ @click="handleImport"
|
|
|
+ v-hasPermi="['pssr:airtight:edit']"
|
|
|
+ v-if="isApprove==0"
|
|
|
+ >导入
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- icon="el-icon-upload2"
|
|
|
- size="mini"
|
|
|
- @click="handleImport"
|
|
|
- v-hasPermi="['pssr:airtight:edit']"
|
|
|
- v-if="isApprove==0"
|
|
|
- >导入</el-button>
|
|
|
- </el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
@@ -97,7 +101,8 @@
|
|
|
@click="handleExport"
|
|
|
v-hasPermi="['pssr:airtight:export']"
|
|
|
v-if="isApprove==0"
|
|
|
- >导出</el-button>
|
|
|
+ >导出
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -133,19 +138,19 @@
|
|
|
>驳回
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
-
|
|
|
<div style="width: 100%;text-align: center;margin-bottom: 15px">
|
|
|
<h2>气密确认表</h2><br>
|
|
|
<span>备注:气密检查,如果检查不符合要求,必须查找原因并立即整改。</span><br>
|
|
|
<span>要求:试验时间为1小时,若泄漏率达标,即为合格。泄漏率=(保压始压力(kpa)-保压终压力(kpa))/保压始压力(kpa)×100%</span>
|
|
|
</div>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="airtightList" @selection-change="handleSelectionChange" :height="clientHeight" border>
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table v-loading="loading" :data="airtightList" @selection-change="handleSelectionChange" :height="clientHeight"
|
|
|
+ border>
|
|
|
+ <el-table-column type="selection" width="55" align="center"/>
|
|
|
<el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
|
|
@@ -160,7 +165,11 @@
|
|
|
<el-table-column label="气密压力(kpa)" align="center" prop="airtightPressure" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="保压始压力(kpa)" align="center" prop="initialPressure" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="保压终压力(kpa)" align="center" prop="finalPressure" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="泄露率" align="center" prop="leakageRate" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column label="泄露率" align="center" prop="leakageRate" :show-overflow-tooltip="true">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.leakageRate">{{ scope.row.leakageRate }}%</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="合格标准(泄露率)" align="center" prop="standard" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="合格(是/否)" align="center" prop="uptoStandard" :show-overflow-tooltip="true"/>
|
|
|
<!--<el-table-column label="确认人" align="center" prop="identifyingPerson" :show-overflow-tooltip="true"/>-->
|
|
@@ -183,7 +192,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="驳回原因" align="center" prop="reason" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width"
|
|
|
+ v-if="isApprove==0">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -198,14 +208,16 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['pssr:airtight:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ >修改
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['pssr:airtight:remove']"
|
|
|
- >删除</el-button>
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -222,25 +234,25 @@
|
|
|
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
<el-form-item label="单元" prop="unit">
|
|
|
- <el-input v-model="form.unit" placeholder="请输入单元" />
|
|
|
+ <el-input v-model="form.unit" placeholder="请输入单元"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="系统名称" prop="systemName">
|
|
|
- <el-input v-model="form.systemName" placeholder="请输入系统名称" />
|
|
|
+ <el-input v-model="form.systemName" placeholder="请输入系统名称"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="气密介质" prop="airtightMedium">
|
|
|
- <el-input v-model="form.airtightMedium" placeholder="请输入气密介质" />
|
|
|
+ <el-input v-model="form.airtightMedium" placeholder="请输入气密介质"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="气密压力(kpa)" prop="airtightPressure">
|
|
|
- <el-input v-model="form.airtightPressure" placeholder="请输入气密压力(kpa)" />
|
|
|
+ <el-input v-model="form.airtightPressure" placeholder="请输入气密压力(kpa)"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="保压始压力(kpa)" prop="initialPressure">
|
|
|
- <el-input v-model="form.initialPressure" placeholder="请输入保压始压力(kpa)" />
|
|
|
+ <el-input v-model="form.initialPressure" placeholder="请输入保压始压力(kpa)"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="保压终压力(kpa)" prop="finalPressure">
|
|
|
- <el-input v-model="form.finalPressure" placeholder="请输入保压终压力(kpa)" />
|
|
|
+ <el-input v-model="form.finalPressure" placeholder="请输入保压终压力(kpa)"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="合格标准(泄露率)" prop="standard">
|
|
|
- <el-input v-model="form.standard" placeholder="请输入合格标准(泄露率)" />
|
|
|
+ <el-input v-model="form.standard" placeholder="请输入合格标准(泄露率)"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="确认人1" prop="confirm1">
|
|
|
<el-select v-model="form.confirm1" clearable filterable style="width: 100%;"
|
|
@@ -261,7 +273,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注" prop="remarks">
|
|
|
- <el-input v-model="form.remarks" placeholder="请输入备注" />
|
|
|
+ <el-input v-model="form.remarks" placeholder="请输入备注"/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -312,39 +324,40 @@
|
|
|
<el-button @click="cancelBatch">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <!-- 用户导入对话框 -->
|
|
|
- <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
|
- <el-upload
|
|
|
- ref="upload"
|
|
|
- :limit="1"
|
|
|
- accept=".xlsx, .xls"
|
|
|
- :headers="upload.headers"
|
|
|
- :action="upload.url"
|
|
|
- :disabled="upload.isUploading"
|
|
|
- :on-progress="handleFileUploadProgress"
|
|
|
- :on-success="handleFileSuccess"
|
|
|
- :auto-upload="false"
|
|
|
- drag
|
|
|
- >
|
|
|
- <i class="el-icon-upload"></i>
|
|
|
- <div class="el-upload__text">
|
|
|
- 将文件拖到此处,或
|
|
|
- <em>点击上传</em>
|
|
|
- </div>
|
|
|
- <div class="el-upload__tip" slot="tip">
|
|
|
- <!--<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据-->
|
|
|
- <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
|
|
|
- <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
|
|
|
- <input name="type" :value="upload.type" hidden />
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
|
|
|
- </el-upload>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
- <el-button @click="upload.open = false">取 消</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
+ <!-- 用户导入对话框 -->
|
|
|
+ <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px"
|
|
|
+ append-to-body>
|
|
|
+ <el-upload
|
|
|
+ ref="upload"
|
|
|
+ :limit="1"
|
|
|
+ accept=".xlsx, .xls"
|
|
|
+ :headers="upload.headers"
|
|
|
+ :action="upload.url"
|
|
|
+ :disabled="upload.isUploading"
|
|
|
+ :on-progress="handleFileUploadProgress"
|
|
|
+ :on-success="handleFileSuccess"
|
|
|
+ :auto-upload="false"
|
|
|
+ drag
|
|
|
+ >
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
+ <div class="el-upload__text">
|
|
|
+ 将文件拖到此处,或
|
|
|
+ <em>点击上传</em>
|
|
|
+ </div>
|
|
|
+ <div class="el-upload__tip" slot="tip">
|
|
|
+ <!--<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据-->
|
|
|
+ <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
|
|
|
+ <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
|
|
|
+ <input name="type" :value="upload.type" hidden/>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
|
|
|
+ </el-upload>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
+ <el-button @click="upload.open = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<!-- 附件对话框 -->
|
|
|
<el-dialog v-dialogDrag :close-on-click-modal="false" :visible.sync="doc.open" append-to-body title="现场照片"
|
|
@@ -352,15 +365,15 @@
|
|
|
<el-image v-for="file in doc.fileList" :key="file.id" :src="file.fileUrl" lazy></el-image>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <!-- 驳回原因对话框 -->
|
|
|
+ <!-- 驳回原因对话框 -->
|
|
|
<el-dialog v-dialogDrag :close-on-click-modal="false" :visible.sync="reason.open" append-to-body title="驳回"
|
|
|
width="1000px">
|
|
|
- <el-table :data="items" border>
|
|
|
+ <el-table :data="items" border>
|
|
|
<el-table-column label="单元" align="center" prop="unit" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="系统名称" align="center" prop="systemName" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="驳回原因" align="center" prop="reason" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.reason" placeholder="请输入驳回原因"/>
|
|
|
+ <el-input v-model="scope.row.reason" placeholder="请输入驳回原因"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -369,7 +382,7 @@
|
|
|
<el-button @click="reasonCancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
-</div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -380,7 +393,6 @@ import {
|
|
|
getAirtight,
|
|
|
handleConfirmAirtight,
|
|
|
handleTurnDownAirtight,
|
|
|
- importTemplate,
|
|
|
listAirtight,
|
|
|
updateAirtight,
|
|
|
updateAirtightBatch,
|
|
@@ -392,12 +404,11 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import {getPssrUser} from "@/api/pssr/aboveall";
|
|
|
import {listFile} from "@/api/pssr/file";
|
|
|
import {doApprove} from "@/api/pssr/approve";
|
|
|
-import {updateMaterialBatch} from "@/api/pssr/material";
|
|
|
|
|
|
export default {
|
|
|
- dicts:['pssr_approve_status'],
|
|
|
+ dicts: ['pssr_approve_status'],
|
|
|
name: "Airtight",
|
|
|
- components: { Treeselect },
|
|
|
+ components: {Treeselect},
|
|
|
props: {
|
|
|
subId: {
|
|
|
type: Number,
|
|
@@ -444,29 +455,29 @@ export default {
|
|
|
title: "",
|
|
|
// 部门树选项
|
|
|
deptOptions: undefined,
|
|
|
- clientHeight:300,
|
|
|
+ clientHeight: 300,
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
openBatch: false,
|
|
|
- // 用户导入参数
|
|
|
- upload: {
|
|
|
- //下载模板请求地址
|
|
|
- downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
|
|
|
- //下载模板类型
|
|
|
- type: 'airtight',
|
|
|
- // 是否显示弹出层(用户导入)
|
|
|
- open: false,
|
|
|
- // 弹出层标题(用户导入)
|
|
|
- title: "",
|
|
|
- // 是否禁用上传
|
|
|
- isUploading: false,
|
|
|
- // 是否更新已经存在的用户数据
|
|
|
- updateSupport: 0,
|
|
|
- // 设置上传的请求头部
|
|
|
- headers: { Authorization: "Bearer " + getToken() },
|
|
|
- // 上传的地址
|
|
|
- url: process.env.VUE_APP_BASE_API + "/pssr/airtight/importData?subId=" + this.subId
|
|
|
- },
|
|
|
+ // 用户导入参数
|
|
|
+ upload: {
|
|
|
+ //下载模板请求地址
|
|
|
+ downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
|
|
|
+ //下载模板类型
|
|
|
+ type: 'airtight',
|
|
|
+ // 是否显示弹出层(用户导入)
|
|
|
+ open: false,
|
|
|
+ // 弹出层标题(用户导入)
|
|
|
+ title: "",
|
|
|
+ // 是否禁用上传
|
|
|
+ isUploading: false,
|
|
|
+ // 是否更新已经存在的用户数据
|
|
|
+ updateSupport: 0,
|
|
|
+ // 设置上传的请求头部
|
|
|
+ headers: {Authorization: "Bearer " + getToken()},
|
|
|
+ // 上传的地址
|
|
|
+ url: process.env.VUE_APP_BASE_API + "/pssr/airtight/importData?subId=" + this.subId
|
|
|
+ },
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -500,16 +511,16 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
- // 根据名称筛选部门树
|
|
|
- deptName(val) {
|
|
|
- this.$refs.tree.filter(val);
|
|
|
- }
|
|
|
- },
|
|
|
+ // 根据名称筛选部门树
|
|
|
+ deptName(val) {
|
|
|
+ this.$refs.tree.filter(val);
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
- //设置表格高度对应屏幕高度
|
|
|
- this.$nextTick(() => {
|
|
|
- this.clientHeight = document.body.clientHeight - 350
|
|
|
- })
|
|
|
+ //设置表格高度对应屏幕高度
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.clientHeight = document.body.clientHeight - 350
|
|
|
+ })
|
|
|
this.getList();
|
|
|
this.getTreeselect();
|
|
|
getPssrUser().then(res => {
|
|
@@ -526,12 +537,12 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- /** 查询部门下拉树结构 */
|
|
|
- getTreeselect() {
|
|
|
- treeselect().then(response => {
|
|
|
- this.deptOptions = response.data;
|
|
|
- });
|
|
|
- },
|
|
|
+ /** 查询部门下拉树结构 */
|
|
|
+ getTreeselect() {
|
|
|
+ treeselect().then(response => {
|
|
|
+ this.deptOptions = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
@@ -575,9 +586,9 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.items=selection;
|
|
|
+ this.items = selection;
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
- this.single = selection.length!==1
|
|
|
+ this.single = selection.length !== 1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
@@ -620,54 +631,54 @@ export default {
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$confirm('是否确认删除?', "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(function() {
|
|
|
- return delAirtight(ids);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.msgSuccess("删除成功");
|
|
|
- })
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function () {
|
|
|
+ return delAirtight(ids);
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("删除成功");
|
|
|
+ })
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|
|
|
this.$confirm('是否确认导出所有气密数据项?', "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(function() {
|
|
|
- return exportAirtight(queryParams);
|
|
|
- }).then(response => {
|
|
|
- this.download(response.msg);
|
|
|
- })
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function () {
|
|
|
+ return exportAirtight(queryParams);
|
|
|
+ }).then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /** 导入按钮操作 */
|
|
|
+ handleImport() {
|
|
|
+ this.upload.title = "用户导入";
|
|
|
+ this.upload.open = true;
|
|
|
+ },
|
|
|
+ /** 下载模板操作 */
|
|
|
+ importTemplate() {
|
|
|
+ this.$refs['downloadFileForm'].submit()
|
|
|
+ },
|
|
|
+ // 文件上传中处理
|
|
|
+ handleFileUploadProgress(event, file, fileList) {
|
|
|
+ this.upload.isUploading = true;
|
|
|
+ },
|
|
|
+ // 文件上传成功处理
|
|
|
+ handleFileSuccess(response, file, fileList) {
|
|
|
+ this.upload.open = false;
|
|
|
+ this.upload.isUploading = false;
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
+ this.$alert(response.msg, "导入结果", {dangerouslyUseHTMLString: true});
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ // 提交上传文件
|
|
|
+ submitFileForm() {
|
|
|
+ this.$refs.upload.submit();
|
|
|
},
|
|
|
- /** 导入按钮操作 */
|
|
|
- handleImport() {
|
|
|
- this.upload.title = "用户导入";
|
|
|
- this.upload.open = true;
|
|
|
- },
|
|
|
- /** 下载模板操作 */
|
|
|
- importTemplate() {
|
|
|
- this.$refs['downloadFileForm'].submit()
|
|
|
- },
|
|
|
- // 文件上传中处理
|
|
|
- handleFileUploadProgress(event, file, fileList) {
|
|
|
- this.upload.isUploading = true;
|
|
|
- },
|
|
|
- // 文件上传成功处理
|
|
|
- handleFileSuccess(response, file, fileList) {
|
|
|
- this.upload.open = false;
|
|
|
- this.upload.isUploading = false;
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
- this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- // 提交上传文件
|
|
|
- submitFileForm() {
|
|
|
- this.$refs.upload.submit();
|
|
|
- },
|
|
|
/** 确认按钮操作*/
|
|
|
handleApprove() {
|
|
|
doApprove(this.subId).then(res => {
|
|
@@ -699,7 +710,7 @@ export default {
|
|
|
},
|
|
|
/** 报告附件按钮操作 */
|
|
|
handleDoc(row) {
|
|
|
- this.doc.fileList=[]
|
|
|
+ this.doc.fileList = []
|
|
|
this.doc.open = true;
|
|
|
this.doc.queryParams.itemId = row.id
|
|
|
this.getFileList()
|
|
@@ -715,14 +726,14 @@ export default {
|
|
|
reasonCancel() {
|
|
|
this.reason.open = false;
|
|
|
},
|
|
|
- submitReasonForm(){
|
|
|
+ submitReasonForm() {
|
|
|
handleTurnDownAirtight(this.items).then(res => {
|
|
|
this.msgSuccess("驳回成功");
|
|
|
this.reason.open = false;
|
|
|
this.$emit('refreshHisList');
|
|
|
})
|
|
|
},
|
|
|
- handleBatch(){
|
|
|
+ handleBatch() {
|
|
|
this.reset();
|
|
|
this.openBatch = true
|
|
|
},
|