|
|
|
@ -1,10 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="JNPF-common-layout">
|
|
|
|
|
<div class="JNPF-common-layout-center">
|
|
|
|
@ -12,9 +5,8 @@
|
|
|
|
|
<el-form @submit.native.prevent>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="维修时间">
|
|
|
|
|
<JnpfDateRangePicker v-model="query.maintenanceDate"
|
|
|
|
|
format="yyyy-MM-dd" startPlaceholder="开始日期"
|
|
|
|
|
endPlaceholder="结束日期" >
|
|
|
|
|
<JnpfDateRangePicker v-model="query.maintenanceDate" format="yyyy-MM-dd"
|
|
|
|
|
startPlaceholder="开始日期" endPlaceholder="结束日期">
|
|
|
|
|
</JnpfDateRangePicker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -32,8 +24,7 @@
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="维修进度">
|
|
|
|
|
<JnpfSelect v-model="query.maintenancePlan" placeholder="请选择" clearable
|
|
|
|
|
:options="maintenancePlanOptions"
|
|
|
|
|
:props="maintenancePlanProps" multiple >
|
|
|
|
|
:options="maintenancePlanOptions" :props="maintenancePlanProps" multiple>
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -42,10 +33,10 @@
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh-right" @click="reset()">重置</el-button>
|
|
|
|
|
<el-button type="text" icon="el-icon-arrow-down" @click="showAll=true" v-if="!showAll">
|
|
|
|
|
<el-button type="text" icon="el-icon-arrow-down" @click="showAll = true" v-if="!showAll">
|
|
|
|
|
展开
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" icon="el-icon-arrow-up" @click="showAll=false" v-else>
|
|
|
|
|
<el-button type="text" icon="el-icon-arrow-up" @click="showAll = false" v-else>
|
|
|
|
|
收起
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -69,99 +60,68 @@
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange'
|
|
|
|
|
:span-method="arraySpanMethod"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="repairOrderNumber"
|
|
|
|
|
label="维修单号" align="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table v-loading="listLoading" :data="list" @sort-change='sortChange'
|
|
|
|
|
:span-method="arraySpanMethod" border>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
|
|
|
|
|
<el-table-column prop="repairOrderNumber" label="维修单号" align="center" width="150"fixed="left">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="number"
|
|
|
|
|
label="设备编码" align="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column prop="number" label="设备编码" align="center"width="150"fixed="left">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="name"
|
|
|
|
|
label="设备名称" align="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column prop="name" label="设备名称" align="center"width="150"fixed="left">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="maintenancePersonnel"
|
|
|
|
|
label="维修人" align="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column prop="maintenancePersonnel" label="维修人" align="center"width="150">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="maintenanceDate"
|
|
|
|
|
label="维修时间" align="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column prop="maintenanceDate" label="维修时间" align="center"width="150">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="维修方式" prop="maintenanceMethods" algin="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="维修方式" prop="maintenanceMethods" align="center"width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.maintenanceMethods}}
|
|
|
|
|
{{ scope.row.maintenanceMethods }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="maintenanceDescribe"
|
|
|
|
|
label="维修描述" align="left"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="维修进度" prop="maintenancePlan" algin="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="维修进度" prop="maintenancePlan" align="center"width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.maintenancePlan}}
|
|
|
|
|
{{ scope.row.maintenancePlan }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="是否产生费用" prop="expensesIncurred" algin="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="是否产生费用" prop="expensesIncurred" align="center"width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.expensesIncurred}}
|
|
|
|
|
{{ scope.row.expensesIncurred }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="costAmount"
|
|
|
|
|
label="费用金额" align="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column prop="costAmount" label="费用金额" align="center"width="150">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="costDetail"
|
|
|
|
|
label="费用说明" align="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column prop="costDetail" label="费用说明" align="center"width="150">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="是否计入租户账单" prop="tenantBill" algin="left"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="是否计入租户账单" prop="tenantBill" align="center"width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.tenantBill}}
|
|
|
|
|
{{ scope.row.tenantBill }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作"
|
|
|
|
|
fixed="right" width="150" >
|
|
|
|
|
<template slot-scope="scope" >
|
|
|
|
|
<el-button type="text"
|
|
|
|
|
@click="addOrUpdateHandle(scope.row)" >编辑
|
|
|
|
|
<el-table-column prop="maintenanceDescribe" label="维修描述" align="center"width="300">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="150" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" @click="addOrUpdateHandle(scope.row)">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">删除
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text"
|
|
|
|
|
@click="goDetail(scope.row.id)">详情
|
|
|
|
|
<el-button type="text" @click="goDetail(scope.row.id)">详情
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</JNPF-table>
|
|
|
|
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initData"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
|
|
|
|
@pagination="initData" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh"/>
|
|
|
|
|
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/>
|
|
|
|
|
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
|
|
|
|
|
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" />
|
|
|
|
|
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/>
|
|
|
|
|
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible = false" />
|
|
|
|
|
<ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" @close="toFormDetailVisible = false" />
|
|
|
|
|
<SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson"
|
|
|
|
|
@superQuery="superQuery" />
|
|
|
|
@ -170,39 +130,39 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import {mapGetters} from "vuex";
|
|
|
|
|
import {getDictionaryDataSelector} from '@/api/systemData/dictionary'
|
|
|
|
|
import JNPFForm from './form'
|
|
|
|
|
import Detail from './Detail'
|
|
|
|
|
import ExportBox from '@/components/ExportBox'
|
|
|
|
|
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
|
|
|
|
|
import {getDataInterfaceRes} from '@/api/systemData/dataInterface'
|
|
|
|
|
import { getConfigData } from '@/api/onlineDev/visualDev'
|
|
|
|
|
import { getDefaultCurrentValueUserIdAsync } from '@/api/permission/user'
|
|
|
|
|
import { getDefaultCurrentValueDepartmentIdAsync } from '@/api/permission/organize'
|
|
|
|
|
import columnList from './columnList'
|
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
|
import SuperQuery from '@/components/SuperQuery'
|
|
|
|
|
import superQueryJson from './superQueryJson'
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import { mapGetters } from "vuex";
|
|
|
|
|
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
|
|
|
|
|
import JNPFForm from './form'
|
|
|
|
|
import Detail from './Detail'
|
|
|
|
|
import ExportBox from '@/components/ExportBox'
|
|
|
|
|
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
|
|
|
|
|
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
|
|
|
|
|
import { getConfigData } from '@/api/onlineDev/visualDev'
|
|
|
|
|
import { getDefaultCurrentValueUserIdAsync } from '@/api/permission/user'
|
|
|
|
|
import { getDefaultCurrentValueDepartmentIdAsync } from '@/api/permission/organize'
|
|
|
|
|
import columnList from './columnList'
|
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
|
import SuperQuery from '@/components/SuperQuery'
|
|
|
|
|
import superQueryJson from './superQueryJson'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
JNPFForm,
|
|
|
|
|
Detail,
|
|
|
|
|
ExportBox,ToFormDetail , SuperQuery
|
|
|
|
|
ExportBox, ToFormDetail, SuperQuery
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
|
|
keyword:'',
|
|
|
|
|
keyword: '',
|
|
|
|
|
expandsTree: true,
|
|
|
|
|
refreshTree: true,
|
|
|
|
|
toFormDetailVisible:false,
|
|
|
|
|
expandObj:{},
|
|
|
|
|
toFormDetailVisible: false,
|
|
|
|
|
expandObj: {},
|
|
|
|
|
columnOptions: [],
|
|
|
|
|
mergeList: [],
|
|
|
|
|
exportList:[],
|
|
|
|
|
exportList: [],
|
|
|
|
|
columnList,
|
|
|
|
|
|
|
|
|
|
showAll: false,
|
|
|
|
@ -211,10 +171,10 @@
|
|
|
|
|
uploadBoxVisible: false,
|
|
|
|
|
detailVisible: false,
|
|
|
|
|
query: {
|
|
|
|
|
maintenanceDate:undefined,
|
|
|
|
|
number:undefined,
|
|
|
|
|
name:undefined,
|
|
|
|
|
maintenancePlan:undefined,
|
|
|
|
|
maintenanceDate: undefined,
|
|
|
|
|
number: undefined,
|
|
|
|
|
name: undefined,
|
|
|
|
|
maintenancePlan: undefined,
|
|
|
|
|
},
|
|
|
|
|
treeProps: {
|
|
|
|
|
children: 'children',
|
|
|
|
@ -238,16 +198,16 @@
|
|
|
|
|
flowListVisible: false,
|
|
|
|
|
flowList: [],
|
|
|
|
|
exportBoxVisible: false,
|
|
|
|
|
maintenanceMethodsOptions:[{"fullName":"保修期内","id":"1"},{"fullName":"更换配件","id":"2"},{"fullName":"更换设备","id":"3"}],
|
|
|
|
|
maintenanceMethodsProps:{"label":"fullName","value":"id" },
|
|
|
|
|
maintenancePlanOptions:[{"fullName":"维修中","id":"1"},{"fullName":"已维修","id":"2"}],
|
|
|
|
|
maintenancePlanProps:{"label":"fullName","value":"id" },
|
|
|
|
|
expensesIncurredOptions:[{"fullName":"是","id":"1"},{"fullName":"否","id":"2"}],
|
|
|
|
|
expensesIncurredProps:{"label":"fullName","value":"id" },
|
|
|
|
|
tenantBillOptions:[{"fullName":"是 ","id":"1"},{"fullName":"否","id":"2"}],
|
|
|
|
|
tenantBillProps:{"label":"fullName","value":"id" },
|
|
|
|
|
maintenanceMethodsOptions: [{ "fullName": "保修期内", "id": "1" }, { "fullName": "更换配件", "id": "2" }, { "fullName": "更换设备", "id": "3" }],
|
|
|
|
|
maintenanceMethodsProps: { "label": "fullName", "value": "id" },
|
|
|
|
|
maintenancePlanOptions: [{ "fullName": "维修中", "id": "1" }, { "fullName": "已维修", "id": "2" }],
|
|
|
|
|
maintenancePlanProps: { "label": "fullName", "value": "id" },
|
|
|
|
|
expensesIncurredOptions: [{ "fullName": "是", "id": "1" }, { "fullName": "否", "id": "2" }],
|
|
|
|
|
expensesIncurredProps: { "label": "fullName", "value": "id" },
|
|
|
|
|
tenantBillOptions: [{ "fullName": "是 ", "id": "1" }, { "fullName": "否", "id": "2" }],
|
|
|
|
|
tenantBillProps: { "label": "fullName", "value": "id" },
|
|
|
|
|
interfaceRes: {
|
|
|
|
|
repairOrderId:[] ,
|
|
|
|
|
repairOrderId: [],
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -291,9 +251,9 @@
|
|
|
|
|
},
|
|
|
|
|
loadNode(node, resolve) {
|
|
|
|
|
const nodeData = node.data
|
|
|
|
|
const config ={
|
|
|
|
|
treeInterfaceId:"",
|
|
|
|
|
treeTemplateJson:[]
|
|
|
|
|
const config = {
|
|
|
|
|
treeInterfaceId: "",
|
|
|
|
|
treeTemplateJson: []
|
|
|
|
|
}
|
|
|
|
|
if (config.treeInterfaceId) {
|
|
|
|
|
//这里是为了拿到参数中关联的字段的值,后端自行拿
|
|
|
|
@ -372,7 +332,7 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
newList.forEach(item => {
|
|
|
|
|
if (item.children && item.children.length ) {
|
|
|
|
|
if (item.children && item.children.length) {
|
|
|
|
|
item.children.forEach((child, index) => {
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
this.mergeList.push({
|
|
|
|
@ -410,13 +370,13 @@
|
|
|
|
|
}
|
|
|
|
|
this.exportList = exportList
|
|
|
|
|
},
|
|
|
|
|
goDetail(id){
|
|
|
|
|
goDetail(id) {
|
|
|
|
|
this.detailVisible = true
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.Detail.init(id)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
sortChange({column, prop, order}) {
|
|
|
|
|
sortChange({ column, prop, order }) {
|
|
|
|
|
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
|
|
|
|
|
this.listQuery.sidx = !order ? '' : prop
|
|
|
|
|
this.initData()
|
|
|
|
@ -435,16 +395,16 @@
|
|
|
|
|
...this.query,
|
|
|
|
|
keyword: this.keyword,
|
|
|
|
|
dataType: 0,
|
|
|
|
|
menuId:this.menuId,
|
|
|
|
|
moduleId:'583194294618161349',
|
|
|
|
|
type:1,
|
|
|
|
|
menuId: this.menuId,
|
|
|
|
|
moduleId: '583194294618161349',
|
|
|
|
|
type: 1,
|
|
|
|
|
};
|
|
|
|
|
request({
|
|
|
|
|
url: `/api/example/EquipmentMaintenanceRecords/getList`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: _query
|
|
|
|
|
}).then(res => {
|
|
|
|
|
var _list =res.data.list;
|
|
|
|
|
var _list = res.data.list;
|
|
|
|
|
this.list = _list.map(o => ({
|
|
|
|
|
...o,
|
|
|
|
|
...this.expandObj,
|
|
|
|
@ -472,10 +432,10 @@
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handelUpload(){
|
|
|
|
|
handelUpload() {
|
|
|
|
|
this.uploadBoxVisible = true
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.UploadBox.init("","example/EquipmentMaintenanceRecords")
|
|
|
|
|
this.$refs.UploadBox.init("", "example/EquipmentMaintenanceRecords")
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
openSuperQuery() {
|
|
|
|
@ -490,10 +450,10 @@
|
|
|
|
|
this.initData()
|
|
|
|
|
},
|
|
|
|
|
addOrUpdateHandle(row, isDetail) {
|
|
|
|
|
let id = row?row.id:""
|
|
|
|
|
let id = row ? row.id : ""
|
|
|
|
|
this.formVisible = true
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.JNPFForm.init(id, isDetail,this.list)
|
|
|
|
|
this.$refs.JNPFForm.init(id, isDetail, this.list)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
exportData() {
|
|
|
|
@ -503,7 +463,7 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
download(data) {
|
|
|
|
|
let query = {...data, ...this.listQuery, ...this.query,menuId:this.menuId}
|
|
|
|
|
let query = { ...data, ...this.listQuery, ...this.query, menuId: this.menuId }
|
|
|
|
|
request({
|
|
|
|
|
url: `/api/example/EquipmentMaintenanceRecords/Actions/Export`,
|
|
|
|
|
method: 'post',
|
|
|
|
@ -516,10 +476,10 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
search() {
|
|
|
|
|
this.listQuery.currentPage=1
|
|
|
|
|
this.listQuery.pageSize=20
|
|
|
|
|
this.listQuery.sort="desc"
|
|
|
|
|
this.listQuery.sidx=""
|
|
|
|
|
this.listQuery.currentPage = 1
|
|
|
|
|
this.listQuery.pageSize = 20
|
|
|
|
|
this.listQuery.sort = "desc"
|
|
|
|
|
this.listQuery.sidx = ""
|
|
|
|
|
this.initData()
|
|
|
|
|
},
|
|
|
|
|
refresh(isrRefresh) {
|
|
|
|
@ -535,5 +495,5 @@
|
|
|
|
|
if (isrRefresh) this.reset()
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|