|
@@ -136,50 +136,49 @@
|
|
|
<H2>隔离/盲板一览表</H2>
|
|
|
</div>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="blindList" @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">
|
|
|
+ <u-table v-loading="loading" :data="blindList" @selection-change="handleSelectionChange" :height="clientHeight"
|
|
|
+ border>
|
|
|
+ <u-table-column type="selection" width="55" align="center"/>
|
|
|
+ <u-table-column label="审批状态" align="center" prop="approveStatus" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
|
|
|
<el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
|
|
|
<el-tag v-if="scope.row.approveStatus==3" type="success">已确认1</el-tag>
|
|
|
<el-tag v-if="scope.row.approveStatus==2" type="success">已确认2</el-tag>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="区域" align="center" prop="unitNo" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="盲板编号" align="center" prop="blindNo" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="隔离类型" align="center" prop="isoType" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="尺寸" align="center" prop="blindSize" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="压力等级" align="center" prop="pressureRate" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="盲板类型" align="center" prop="blindType" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="介质" align="center" prop="medium" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="“8”字盲板" align="center" prop="figure" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="PID" align="center" prop="pidNo" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="位置" align="center" prop="location" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="开车前状态" align="center" prop="startupStatus" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="实际状态" align="center" prop="actualStatus" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="是否满足" align="center" prop="satisfy" :show-overflow-tooltip="true" width="150"/>
|
|
|
- <el-table-column label="拆装人员" align="center" prop="inConfirm1" :show-overflow-tooltip="true"
|
|
|
- width="150">
|
|
|
+ </u-table-column>
|
|
|
+ <u-table-column label="区域" align="center" prop="unitNo" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="盲板编号" align="center" prop="blindNo" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="隔离类型" align="center" prop="isoType" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="尺寸" align="center" prop="blindSize" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="压力等级" align="center" prop="pressureRate" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="盲板类型" align="center" prop="blindType" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="介质" align="center" prop="medium" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="“8”字盲板" align="center" prop="figure" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="PID" align="center" prop="pidNo" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="位置" align="center" prop="location" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="开车前状态" align="center" prop="startupStatus" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="实际状态" align="center" prop="actualStatus" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="是否满足" align="center" prop="satisfy" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="拆装人员" align="center" prop="inConfirm1" :show-overflow-tooltip="true"
|
|
|
+ width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.confirm1Name }}</span>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="确认人" align="center" prop="inConfirm2" :show-overflow-tooltip="true" width="150">
|
|
|
+ </u-table-column>
|
|
|
+ <u-table-column label="确认人" align="center" prop="inConfirm2" :show-overflow-tooltip="true" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.confirm2Name }}</span>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="确认时间" align="center" prop="installDate" width="100">
|
|
|
+ </u-table-column>
|
|
|
+ <u-table-column label="确认时间" align="center" prop="installDate" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.installDate, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
- </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" width="150"/>
|
|
|
- <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0" width="120"
|
|
|
- class-name="small-padding fixed-width">
|
|
|
+ </u-table-column>
|
|
|
+ <u-table-column label="驳回原因" align="center" prop="reason" :show-overflow-tooltip="true"/>
|
|
|
+ <u-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="150"/>
|
|
|
+ <u-table-column label="操作" align="center" fixed="right" v-if="isApprove==0" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -194,7 +193,6 @@
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
- v-if="scope.row.approveStatus!=2"
|
|
|
v-hasPermi="['pssr:blind:edit']"
|
|
|
>修改
|
|
|
</el-button>
|
|
@@ -203,13 +201,12 @@
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
- v-if="scope.row.approveStatus!=2"
|
|
|
v-hasPermi="['pssr:blind:remove']"
|
|
|
>删除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ </u-table-column>
|
|
|
+ </u-table>
|
|
|
|
|
|
<pagination
|
|
|
v-show="total>0"
|
|
@@ -217,6 +214,7 @@
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
@pagination="getList"
|
|
|
+ :pageSizes="[20,50,100,500]"
|
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改盲板对话框 -->
|
|
@@ -375,7 +373,7 @@
|
|
|
:key="user.userId"/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="时间" v-hasPermi="['pssr:date:edit']" prop="installDate">
|
|
|
+ <el-form-item label="时间" v-hasPermi="['pssr:date:edit']" prop="installDate">
|
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
|
v-model="form.installDate"
|
|
|
type="date"
|
|
@@ -392,7 +390,7 @@
|
|
|
<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
|
|
@@ -417,7 +415,7 @@
|
|
|
<!--是否更新已经存在的用户数据-->
|
|
|
<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 />
|
|
|
+ <input name="type" :value="upload.type" hidden/>
|
|
|
</form>
|
|
|
</div>
|
|
|
<div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
|
|
@@ -433,14 +431,14 @@
|
|
|
width="1000px">
|
|
|
<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="blindNo" :show-overflow-tooltip="true" width="150"/>
|
|
|
<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>
|
|
@@ -449,7 +447,7 @@
|
|
|
<el-button @click="reasonCancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
-</div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -460,7 +458,6 @@ import {
|
|
|
getBlind,
|
|
|
handleConfirmApprove,
|
|
|
handleTurnDownBlind,
|
|
|
- importTemplate,
|
|
|
listBlind,
|
|
|
updateBlind,
|
|
|
updateBlindBatch,
|
|
@@ -472,7 +469,6 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import {doApprove} from "@/api/pssr/approve";
|
|
|
import {getPssrUser} from "@/api/pssr/aboveall";
|
|
|
import {listFile} from "@/api/pssr/file";
|
|
|
-import {updateMaterialBatch} from "@/api/pssr/material";
|
|
|
|
|
|
export default {
|
|
|
dicts: ['pssr_approve_status'],
|
|
@@ -618,7 +614,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleTurnDown(val) {
|
|
|
- this.reason.open=true;
|
|
|
+ this.reason.open = true;
|
|
|
},
|
|
|
userFormat(userId) {
|
|
|
for (let item of this.userOptions) {
|
|
@@ -734,7 +730,7 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.items=selection;
|
|
|
+ this.items = selection;
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
this.single = selection.length !== 1
|
|
|
this.multiple = !selection.length
|
|
@@ -751,13 +747,7 @@ export default {
|
|
|
const id = row.id || this.ids
|
|
|
getBlind(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
- if (response.data.approveStatus != 2) {
|
|
|
- if (this.isApprove == 0) {
|
|
|
- this.open = true;
|
|
|
- } else {
|
|
|
- this.approveOpen = true;
|
|
|
- }
|
|
|
- }
|
|
|
+ this.open = true;
|
|
|
this.title = "修改盲板";
|
|
|
});
|
|
|
},
|
|
@@ -835,7 +825,7 @@ export default {
|
|
|
},
|
|
|
/** 报告附件按钮操作 */
|
|
|
handleDoc(row) {
|
|
|
- this.doc.fileList=[]
|
|
|
+ this.doc.fileList = []
|
|
|
this.doc.open = true;
|
|
|
this.doc.queryParams.itemId = row.id
|
|
|
this.getFileList()
|
|
@@ -852,14 +842,14 @@ export default {
|
|
|
reasonCancel() {
|
|
|
this.reason.open = false;
|
|
|
},
|
|
|
- submitReasonForm(){
|
|
|
+ submitReasonForm() {
|
|
|
handleTurnDownBlind(this.items).then(res => {
|
|
|
this.msgSuccess("驳回成功");
|
|
|
this.reason.open = false;
|
|
|
this.$emit('refreshHisList');
|
|
|
})
|
|
|
},
|
|
|
- handleBatch(){
|
|
|
+ handleBatch() {
|
|
|
this.reset();
|
|
|
this.openBatch = true
|
|
|
},
|