|
@@ -48,6 +48,16 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="审核状态">
|
|
|
+ <el-select v-model="queryParams.processStatus" placeholder="请选择审核状态" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.process_status"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -89,6 +99,18 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
+ type="danger"
|
|
|
+ plain
|
|
|
+ icon="el-icon-search"
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="openshShow(null,true)"
|
|
|
+ v-hasPermi="['gas:regulatingBoxMaintenance:remove']"
|
|
|
+ >批量审核
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
type="warning"
|
|
|
plain
|
|
|
icon="el-icon-download"
|
|
@@ -120,8 +142,16 @@
|
|
|
<dict-tag :options="dict.type.yes_and_no" :value="scope.row.isNormalInspection"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="备注" align="center" prop="remark" />
|
|
|
<el-table-column label="上传人" align="center" prop="createByName" />
|
|
|
<el-table-column label="上传时间" align="center" prop="createTime" />
|
|
|
+ <el-table-column label="审核状态" align="center" prop="processStatus">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.process_status" :value="scope.row.processStatus"
|
|
|
+ v-if="scope.row.processStatus != null && scope.row.processStatus != '-1' "/>
|
|
|
+ <span v-else></span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="照片" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-image
|
|
@@ -143,6 +173,15 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="openshShow(scope.row)"
|
|
|
+ v-show="scope.row.processStatus == null || scope.row.processStatus == '-1' || scope.row.processStatus == ''"
|
|
|
+ v-hasPermi="['gas:courtyardNetworkManagement:edit']"
|
|
|
+ >审核
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['gas:patrolTeam:remove']"
|
|
@@ -159,6 +198,28 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
|
|
|
+ <el-dialog title="审核" :visible.sync="openSH" width="500px" append-to-body>
|
|
|
+ <el-form ref="formSH" :model="formSH" :rules="rulesSH" label-width="100px">
|
|
|
+ <el-form-item label="审核状态" prop="processStatus">
|
|
|
+ <el-select v-model="formSH.processStatus" placeholder="请选择审核状态" :style="{width: '100%'}">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.process_status"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="审核意见" prop="processComments">
|
|
|
+ <el-input v-model="formSH.processComments" type="textarea" placeholder="请输入审核意见" maxlength="255"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button :loading="buttonLoading" type="primary" @click="submitFormSH">确 定</el-button>
|
|
|
+ <el-button @click="openSH = false">关 闭</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 添加或修改巡检车队对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
@@ -185,6 +246,9 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="备注" prop="remark">
|
|
|
+ <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="照片" prop="photoList">
|
|
|
<imageUpload v-model="form.photoList" :disabled="disabled"/>
|
|
|
</el-form-item>
|
|
@@ -198,16 +262,24 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listPatrolTeam, getPatrolTeam, delPatrolTeam, addPatrolTeam, updatePatrolTeam } from "@/api/gas/patrolTeam";
|
|
|
+import { batchReview,listPatrolTeam, getPatrolTeam, delPatrolTeam, addPatrolTeam, updatePatrolTeam } from "@/api/gas/patrolTeam";
|
|
|
import {listPostAll} from "@/api/system/post";
|
|
|
import Cookies from "js-cookie";
|
|
|
import {getWorker} from "@/api/gas/user";
|
|
|
|
|
|
export default {
|
|
|
name: "PatrolTeam",
|
|
|
- dicts: ['team', 'yes_and_no'],
|
|
|
+ dicts: ['team', 'yes_and_no','process_status'],
|
|
|
data() {
|
|
|
return {
|
|
|
+ openSH: false,
|
|
|
+ formSH: {},
|
|
|
+ rulesSH: {
|
|
|
+ processStatus: [
|
|
|
+ {required: true, message: "审核状态不能为空", trigger: "blur"}
|
|
|
+ ],
|
|
|
+ },
|
|
|
+
|
|
|
// 按钮loading
|
|
|
buttonLoading: false,
|
|
|
disabled: false,
|
|
@@ -317,7 +389,8 @@ export default {
|
|
|
createBy: undefined,
|
|
|
createTime: undefined,
|
|
|
updateBy: undefined,
|
|
|
- updateTime: undefined
|
|
|
+ updateTime: undefined,
|
|
|
+ remark: undefined
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -356,6 +429,47 @@ export default {
|
|
|
this.title = "修改巡检车队";
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ openshShow(data, isBatch) {
|
|
|
+ this.formSH = {
|
|
|
+ id: undefined,
|
|
|
+ uids: [],
|
|
|
+ processStatus: undefined,
|
|
|
+ processComments: undefined,
|
|
|
+ }
|
|
|
+ if (isBatch)
|
|
|
+ this.formSH.uids = this.ids
|
|
|
+ else
|
|
|
+ this.formSH.id = data.id
|
|
|
+ this.openSH = true
|
|
|
+ },
|
|
|
+
|
|
|
+ submitFormSH() {
|
|
|
+ this.$refs["formSH"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ this.buttonLoading = true;
|
|
|
+ if (this.formSH.id != null) {
|
|
|
+ updatePatrolTeam(this.formSH).then(response => {
|
|
|
+ this.$modal.msgSuccess("审核成功");
|
|
|
+ this.openSH = false;
|
|
|
+ this.getList();
|
|
|
+ }).finally(() => {
|
|
|
+ this.buttonLoading = false;
|
|
|
+ });
|
|
|
+ }else if (this.formSH.uids.length > 0) {
|
|
|
+ batchReview(this.formSH).then(response => {
|
|
|
+ this.$modal.msgSuccess("审核成功");
|
|
|
+ this.openSH = false;
|
|
|
+ this.getList();
|
|
|
+ }).finally(() => {
|
|
|
+ this.buttonLoading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|