|
|
@@ -1,172 +1,155 @@
|
|
|
-<!-- 巡点检工单 -->
|
|
|
+<!-- 维修工单 -->
|
|
|
<template>
|
|
|
- <div class="patrolInspection">
|
|
|
- <div class="search">
|
|
|
- <el-form label-width="120px">
|
|
|
- <el-row>
|
|
|
- <el-col :md="4" :sm="8" :xs="8">
|
|
|
- <el-form-item label="工单编号">
|
|
|
- <el-input
|
|
|
- v-model="searchForm.code"
|
|
|
- placeholder="请输入"
|
|
|
- size="small"
|
|
|
- ></el-input> </el-form-item
|
|
|
- ></el-col>
|
|
|
- <el-col :md="4" :sm="8" :xs="8">
|
|
|
- <el-form-item label="规则名称">
|
|
|
- <el-select
|
|
|
- v-model="searchForm.ruleId"
|
|
|
- size="small"
|
|
|
- clearable
|
|
|
- style="width: 100%"
|
|
|
- filterable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in ruleNameList"
|
|
|
- :key="item.id"
|
|
|
- :value="item.id"
|
|
|
- :label="item.name"
|
|
|
- ></el-option> </el-select></el-form-item
|
|
|
- ></el-col>
|
|
|
- <!-- <el-col :md="4" :sm="8" :xs="8">
|
|
|
- <el-form-item label="状态">
|
|
|
- <el-select
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- v-model="searchForm.orderStatus"
|
|
|
+ <div class="ele-body">
|
|
|
+ <el-card shadow="never">
|
|
|
+ <div class="filter-container">
|
|
|
+ <el-form
|
|
|
+ label-width="100px"
|
|
|
+ class="ele-form-search"
|
|
|
+ @keyup.enter.native="reload"
|
|
|
+ @submit.native.prevent
|
|
|
+ >
|
|
|
+ <el-row :gutter="15">
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
+ <el-form-item label="工单编号">
|
|
|
+ <el-input
|
|
|
+ v-model="searchForm.code"
|
|
|
+ placeholder="请输入"
|
|
|
+ size="small"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
+ <el-form-item label="规则名称">
|
|
|
+ <el-select
|
|
|
+ v-model="searchForm.ruleId"
|
|
|
+ size="small"
|
|
|
+ clearable
|
|
|
+ style="width: 100%"
|
|
|
+ filterable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in ruleNameList"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ ></el-option> </el-select
|
|
|
+ ></el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
+ <el-form-item label="状态">
|
|
|
+ <el-select
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ v-model="searchForm.status"
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in ticketStatus"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.label"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
+ <el-form-item label="开始结束时间">
|
|
|
+ <el-date-picker
|
|
|
+ class="form-input"
|
|
|
+ size="small"
|
|
|
+ v-model="searchForm.date"
|
|
|
+ type="daterange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ :md="4"
|
|
|
+ :sm="16"
|
|
|
+ :xs="16"
|
|
|
+ style="display: flex; justify-content: flex-end"
|
|
|
+ v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }"
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ icon="el-icon-refresh-left"
|
|
|
size="small"
|
|
|
+ @click="reload('reset')"
|
|
|
+ >重置</el-button
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="item in ticketStatus"
|
|
|
- :key="item.id"
|
|
|
- :value="item.id"
|
|
|
- :label="item.label"
|
|
|
- ></el-option>
|
|
|
- </el-select> </el-form-item
|
|
|
- ></el-col> -->
|
|
|
- <el-col :md="8" :sm="8" :xs="8">
|
|
|
- <el-form-item label="开始结束时间">
|
|
|
- <el-date-picker
|
|
|
- class="form-input"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-search"
|
|
|
size="small"
|
|
|
- v-model="searchForm.date"
|
|
|
- type="daterange"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
- >
|
|
|
- </el-date-picker> </el-form-item
|
|
|
- ></el-col>
|
|
|
- <el-col :md="4" :sm="16" :xs="16" style="text-align: right">
|
|
|
- <el-button icon="el-icon-refresh-left" size="small" @click="rest"
|
|
|
- >重置</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-search"
|
|
|
- size="small"
|
|
|
- @click="search"
|
|
|
- >搜索</el-button
|
|
|
- ></el-col
|
|
|
- >
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <div class="table">
|
|
|
- <el-table
|
|
|
- :data="tableData"
|
|
|
- border
|
|
|
- height="99%"
|
|
|
- tooltip-effect="dark"
|
|
|
- :header-cell-style="{ background: '#F0F3F3', border: 'none' }"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- width="80px"
|
|
|
- label="序号"
|
|
|
- type="index"
|
|
|
- :index="indexMethod"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="code" label="工单编号" />
|
|
|
- <el-table-column prop="planCode" label="计划单号" />
|
|
|
- <el-table-column prop="planName" label="维修名称" />
|
|
|
- <!-- <el-table-column prop="createTime" label="设备分类" /> -->
|
|
|
- <el-table-column prop="ruleName" label="规则名称" />
|
|
|
- <el-table-column prop="createUserName" label="创建人" />
|
|
|
- <el-table-column prop="createTime" label="创建时间" />
|
|
|
- <el-table-column prop="acceptTime" label="开始时间" />
|
|
|
- <el-table-column prop="finishTime" label="结束时间" />
|
|
|
- <el-table-column prop="planFinishTime" label="计划完成时间" />
|
|
|
- <el-table-column prop="orderStatus" label="执行结果">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- {{
|
|
|
- row.acceptanceStatus
|
|
|
- ? resultStatus.filter(
|
|
|
- (item) => item.code == row.acceptanceStatus
|
|
|
- )[0].label
|
|
|
- : ''
|
|
|
- }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="orderStatus" label="状态">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- {{
|
|
|
- ticketStatus.filter((item) => item.id == row.orderStatus)[0].label
|
|
|
- }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="practicalTime" label="实际工时">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- {{ time_interval(row.acceptTime, row.finishTime) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" width="150">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <el-link
|
|
|
- v-if="row.orderStatus !== 3 && row.orderStatus !== 4"
|
|
|
- type="primary"
|
|
|
- :underline="false"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="toSigningUpWork(row)"
|
|
|
+ @click="reload('search')"
|
|
|
+ >搜索</el-button
|
|
|
+ ></el-col
|
|
|
>
|
|
|
- 报工
|
|
|
- </el-link>
|
|
|
- <el-link
|
|
|
- v-if="row.orderStatus !== 3 && row.orderStatus !== 4"
|
|
|
- type="primary"
|
|
|
- :underline="false"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="toRedeploy(row)"
|
|
|
- >
|
|
|
- 转派
|
|
|
- </el-link>
|
|
|
- <el-link
|
|
|
- type="primary"
|
|
|
- :underline="false"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="openDetail(row)"
|
|
|
- >
|
|
|
- 详情
|
|
|
- </el-link>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- <div class="table-footer">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="total"
|
|
|
- :page-sizes="[15, 30, 50, 100, 500]"
|
|
|
- :page-size.sync="pages.size"
|
|
|
- :current-page.sync="pages.page"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- @size-change="handleSizeChange"
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <ele-pro-table
|
|
|
+ ref="table"
|
|
|
+ :columns="columns"
|
|
|
+ :datasource="datasource"
|
|
|
+ :pageSize="20"
|
|
|
>
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
+ <!-- 操作列 -->
|
|
|
+ <template v-slot:action="{ row }">
|
|
|
+ <el-link
|
|
|
+ v-if="row.orderStatus == 3 && row.createUserId == userId"
|
|
|
+ type="primary"
|
|
|
+ :underline="false"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="goDetail(row)"
|
|
|
+ >
|
|
|
+ 验收
|
|
|
+ </el-link>
|
|
|
+ <el-link
|
|
|
+ v-if="
|
|
|
+ row.orderStatus !== 3 &&
|
|
|
+ row.orderStatus !== 4 &&
|
|
|
+ userId === row.executeUserId
|
|
|
+ "
|
|
|
+ type="primary"
|
|
|
+ :underline="false"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="toSigningUpWork(row)"
|
|
|
+ >
|
|
|
+ 报工
|
|
|
+ </el-link>
|
|
|
+ <el-link
|
|
|
+ v-if="
|
|
|
+ row.orderStatus !== 3 &&
|
|
|
+ row.orderStatus !== 4 &&
|
|
|
+ userId === row.executeUserId
|
|
|
+ "
|
|
|
+ type="primary"
|
|
|
+ :underline="false"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="toRedeploy(row)"
|
|
|
+ >
|
|
|
+ 转派
|
|
|
+ </el-link>
|
|
|
+ <el-link
|
|
|
+ type="primary"
|
|
|
+ :underline="false"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="openDetail(row)"
|
|
|
+ >
|
|
|
+ 详情
|
|
|
+ </el-link>
|
|
|
+ </template>
|
|
|
+ </ele-pro-table>
|
|
|
+ </el-card>
|
|
|
<!-- 验收 -->
|
|
|
<RepairDetailsDialog ref="detailsDialogRef" @refesh="getData" />
|
|
|
<!-- 转派弹窗 -->
|
|
|
@@ -175,14 +158,20 @@
|
|
|
<signingUpWork ref="signingUpWorkRef" @refresh="getData" />
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
- import redeployOther from '../components/redeployOther.vue';
|
|
|
- import signingUpWork from '../components/signingUpWork.vue';
|
|
|
import RepairDetailsDialog from '@/views/bpm/tickets/components/RepairDetailsDialog.vue';
|
|
|
+ import redeployOther from '@/views/bpm/tickets/components/redeployOther.vue';
|
|
|
+ import signingUpWork from '@/views/bpm/tickets/components/signingUpWork.vue';
|
|
|
import { ticketStatus, resultStatus } from '@/utils/dict/tickets';
|
|
|
import { getWorkOrderList, getRule } from '@/api/tickets';
|
|
|
import pagenation from '@/components/Pagination';
|
|
|
+
|
|
|
+ // 修改
|
|
|
+ import {
|
|
|
+ notifyMessagePageAPI,
|
|
|
+ updateNotifyMessageReadByIdAPI
|
|
|
+ } from '@/api/bpm/task';
|
|
|
+ import { mapGetters } from 'vuex';
|
|
|
export default {
|
|
|
components: {
|
|
|
pagenation,
|
|
|
@@ -192,49 +181,206 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- resultStatus,
|
|
|
ruleNameList: [],
|
|
|
- tableData: [],
|
|
|
- statusOptions: [],
|
|
|
- ticketStatus,
|
|
|
+ userId: '',
|
|
|
+ ticketStatus: [],
|
|
|
+ resultStatus,
|
|
|
+ //
|
|
|
+ addOrEditDialogFlag: false,
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ columnKey: 'index',
|
|
|
+ label: '序号',
|
|
|
+ type: 'index',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'code',
|
|
|
+ label: '工单编号',
|
|
|
+ minWidth: '200',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'planCode',
|
|
|
+ label: '计划单号',
|
|
|
+ width: '200',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'planName',
|
|
|
+ label: '维修名称',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'ruleName',
|
|
|
+ label: '规则名称',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'equiCode',
|
|
|
+ label: '设备编号',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: 'equiName',
|
|
|
+ label: '设备名称',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'requestUserName',
|
|
|
+ label: '报修人',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'executeUserName',
|
|
|
+ label: '执行人',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'acceptTime',
|
|
|
+ label: '开始时间',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'finishTime',
|
|
|
+ label: '结束时间',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'planFinishTime',
|
|
|
+ label: '计划完成时间',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: '180',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'acceptanceStatus',
|
|
|
+ label: '执行结果',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return _row.acceptanceStatus
|
|
|
+ ? resultStatus.filter(
|
|
|
+ (item) => item.code == _row.acceptanceStatus
|
|
|
+ )[0].label
|
|
|
+ : '';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'orderStatus',
|
|
|
+ label: '状态',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return ticketStatus.filter(
|
|
|
+ (item) => item.id == _row.orderStatus
|
|
|
+ )[0]?.label;
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: 'practicalTime',
|
|
|
+ label: '实际工时',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ let _this = this;
|
|
|
+ return _this.time_interval(_row.acceptTime, _row.finishTime);
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ columnKey: 'action',
|
|
|
+ label: '操作',
|
|
|
+ minWidth: 200,
|
|
|
+ align: 'center',
|
|
|
+ slot: 'action',
|
|
|
+ fixed: 'right'
|
|
|
+ }
|
|
|
+ ],
|
|
|
searchForm: {
|
|
|
code: '',
|
|
|
- orderStatus: 4,
|
|
|
ruleId: '',
|
|
|
date: '',
|
|
|
startTime: '',
|
|
|
endTime: '',
|
|
|
- type: 3
|
|
|
- },
|
|
|
- pages: {
|
|
|
- page: 1,
|
|
|
- size: 15
|
|
|
+ executeUserId: '',
|
|
|
+ statusType: 2,
|
|
|
+ type: 3,
|
|
|
+ orderStatus: 4,
|
|
|
+ executeUserId: ''
|
|
|
},
|
|
|
+ tableData: [],
|
|
|
+ size: 20,
|
|
|
+ page: 1,
|
|
|
total: 0
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
- this.getRuleNameList();
|
|
|
- this.getData();
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['user']),
|
|
|
+ // 是否开启响应式布局
|
|
|
+ styleResponsive() {
|
|
|
+ return this.$store.state.theme.styleResponsive;
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
- // 转派
|
|
|
- toRedeploy(row) {
|
|
|
- this.$refs.redeployOtherRef.open(row);
|
|
|
+ //新增或修改模板
|
|
|
+ async handleAddOrEdit(row) {
|
|
|
+ await updateNotifyMessageReadByIdAPI([row.id]);
|
|
|
+ this.$refs.table.reload();
|
|
|
},
|
|
|
- // 报工
|
|
|
- toSigningUpWork(row) {
|
|
|
- this.$refs.signingUpWorkRef.open(row);
|
|
|
- },
|
|
|
- reload(where) {
|
|
|
- this.$refs.table.reload({ page: 1, ...where });
|
|
|
+ reload(type) {
|
|
|
+ if (type == 'reset') {
|
|
|
+ this.searchForm.code = '';
|
|
|
+ this.searchForm.status = '';
|
|
|
+ this.searchForm.ruleId = '';
|
|
|
+ this.searchForm.date = '';
|
|
|
+ this.searchForm.startTime = '';
|
|
|
+ this.searchForm.endTime = '';
|
|
|
+ }
|
|
|
+ this.$refs.table.reload({ page: 1, where: this.searchForm });
|
|
|
},
|
|
|
- openDetail(row) {
|
|
|
- row.title = '工单详情';
|
|
|
- row.tabLabel = '工单信息';
|
|
|
- this.$refs.detailsDialogRef.init(row, true);
|
|
|
+
|
|
|
+ // 获取table数据
|
|
|
+ async datasource({ page, where, limit, ...row }) {
|
|
|
+ this.searchForm.executeUserId = this.userId;
|
|
|
+ let form = this.searchForm;
|
|
|
+ const res = await getWorkOrderList({
|
|
|
+ ...form,
|
|
|
+ ...where,
|
|
|
+ pageNum: page,
|
|
|
+ size: limit,
|
|
|
+ userId: this.user.info.userId
|
|
|
+ });
|
|
|
+
|
|
|
+ this.total = res.total;
|
|
|
+ this.$emit('recount');
|
|
|
+ return res;
|
|
|
},
|
|
|
- // 获取规则名列表(维修)
|
|
|
+
|
|
|
+ // 获取规则名列表(设备维修)
|
|
|
async getRuleNameList() {
|
|
|
const res = await getRule({
|
|
|
status: 1,
|
|
|
@@ -246,19 +392,32 @@
|
|
|
this.ruleNameList = res.list || [];
|
|
|
}
|
|
|
},
|
|
|
- // 实现分页序号连贯
|
|
|
- indexMethod(index) {
|
|
|
- index = index + 1 + (this.pages.page - 1) * this.pages.size;
|
|
|
- return index;
|
|
|
+
|
|
|
+ // 验收
|
|
|
+ goDetail(row) {
|
|
|
+ row.title = '工单详情';
|
|
|
+ row.tabLabel = '工单信息';
|
|
|
+ this.$refs.detailsDialogRef.init(row);
|
|
|
+ },
|
|
|
+ // 转派
|
|
|
+ toRedeploy(row) {
|
|
|
+ this.$refs.redeployOtherRef.open(row);
|
|
|
+ },
|
|
|
+ // 报工
|
|
|
+ toSigningUpWork(row) {
|
|
|
+ this.$refs.signingUpWorkRef.open(row);
|
|
|
+ },
|
|
|
+ openDetail(row) {
|
|
|
+ row.title = '工单详情';
|
|
|
+ row.tabLabel = '工单信息';
|
|
|
+ this.$refs.detailsDialogRef.init(row, true);
|
|
|
},
|
|
|
getData() {
|
|
|
- let userId = localStorage.getItem('userId');
|
|
|
- console.log(userId);
|
|
|
let par = {
|
|
|
...this.pages,
|
|
|
...this.searchForm,
|
|
|
- executeUserId: userId,
|
|
|
- statusType: 2
|
|
|
+ executeUserId: this.userId,
|
|
|
+ statusType: 0
|
|
|
};
|
|
|
if (this.searchForm.date) {
|
|
|
par.startTime = this.searchForm.date[0];
|
|
|
@@ -269,30 +428,7 @@
|
|
|
this.tableData = res.list;
|
|
|
this.total = res.total;
|
|
|
});
|
|
|
- },
|
|
|
- search() {
|
|
|
- this.pages.page = 1;
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- rest() {
|
|
|
- this.searchForm = {
|
|
|
- code: '',
|
|
|
- orderStatus: 4,
|
|
|
- ruleId: '',
|
|
|
- date: '',
|
|
|
- startTime: '',
|
|
|
- endTime: '',
|
|
|
- type: 3
|
|
|
- };
|
|
|
- this.pages.page = 1;
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- handleCurrentChange() {
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- handleSizeChange() {
|
|
|
- this.pages.page = 1;
|
|
|
- this.getData();
|
|
|
+ this.$emit('recount');
|
|
|
},
|
|
|
// 计算实际工时
|
|
|
time_interval(dt1, dt2) {
|
|
|
@@ -318,31 +454,80 @@
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.userId = localStorage.getItem('userId');
|
|
|
+ this.searchForm.executeUserId = this.userId;
|
|
|
+ this.getRuleNameList();
|
|
|
+ console.log(ticketStatus);
|
|
|
+
|
|
|
+ this.ticketStatus = ticketStatus.filter((item) => {
|
|
|
+ return [0, 2, 3].includes(item.id);
|
|
|
+ });
|
|
|
+ console.log(this.ticketStatus);
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
- .patrolInspection {
|
|
|
- height: 100%;
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- .search {
|
|
|
- flex: 0 0 50px;
|
|
|
- }
|
|
|
- .table {
|
|
|
- flex: 1;
|
|
|
- .el-table {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- }
|
|
|
- }
|
|
|
- .table-footer {
|
|
|
- flex: 0 0 30px;
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- }
|
|
|
- }
|
|
|
+ // 步骤条边线显示
|
|
|
+ // ::v-deep .el-step__head.is-process .el-step__icon.is-text {
|
|
|
+ // border: none !important;
|
|
|
+ // background: none !important;
|
|
|
+ // }
|
|
|
+ // ::v-deep .el-step:last-of-type .el-step__line {
|
|
|
+ // display: block !important;
|
|
|
+ // width: 3px !important;
|
|
|
+ // }
|
|
|
+ // ::v-deep .el-steps:last-child .el-step__line {
|
|
|
+ // display: none !important;
|
|
|
+ // }
|
|
|
+ // .patrolInspection {
|
|
|
+ // height: 100%;
|
|
|
+ // width: 100%;
|
|
|
+ // display: flex;
|
|
|
+ // flex-direction: column;
|
|
|
+ // .search {
|
|
|
+ // flex: 0 0 50px;
|
|
|
+ // }
|
|
|
+ // .table {
|
|
|
+ // flex: 1;
|
|
|
+ // .el-table {
|
|
|
+ // width: 100%;
|
|
|
+ // display: flex;
|
|
|
+ // flex-direction: column;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // .table-footer {
|
|
|
+ // flex: 0 0 30px;
|
|
|
+ // display: flex;
|
|
|
+ // justify-content: flex-end;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // 修改
|
|
|
+ // ::v-deep .el-card__body {
|
|
|
+ // padding: 0;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .app-container {
|
|
|
+ // background: #f0f3f3;
|
|
|
+ // min-height: calc(100vh - 84px);
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .zw-page-table {
|
|
|
+ // background: #ffffff;
|
|
|
+ // padding-top: 20px;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .pagination-wrap {
|
|
|
+ // display: flex;
|
|
|
+ // justify-content: flex-end;
|
|
|
+ // padding: 10px 0;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .table {
|
|
|
+ // width: 100%;
|
|
|
+ // margin-top: 10px;
|
|
|
+ // }
|
|
|
</style>
|