|
|
@ -84,7 +84,7 @@ |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-upload class="customer-upload" |
|
|
<el-upload class="customer-upload" |
|
|
drag |
|
|
drag |
|
|
:action="uploadUrl" |
|
|
|
|
|
|
|
|
:action="uploadUrl" ref="uploadFile" |
|
|
:before-upload="beforeUploadHandle" |
|
|
:before-upload="beforeUploadHandle" |
|
|
:on-success="successHandle" accept=".jpg,.pdf,.PDF" |
|
|
:on-success="successHandle" accept=".jpg,.pdf,.PDF" |
|
|
style="text-align: left;"> |
|
|
style="text-align: left;"> |
|
|
@ -94,7 +94,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<!--文件描述--> |
|
|
<!--文件描述--> |
|
|
<el-col :span="4" > |
|
|
<el-col :span="4" > |
|
|
<el-form-item class="customer-item" label="描述:" > |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" label="文件描述:" > |
|
|
<el-input v-model="fileRemark" style="width: 120px;" ></el-input> |
|
|
<el-input v-model="fileRemark" style="width: 120px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -106,11 +106,11 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
:height = "secondHeight" |
|
|
|
|
|
:data="fileContentList" |
|
|
:data="fileContentList" |
|
|
|
|
|
height="265px" |
|
|
border |
|
|
border |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
style="width: 100%;"> |
|
|
|
|
|
|
|
|
style="width: 95%; "> |
|
|
<!-- <el-table-column |
|
|
<!-- <el-table-column |
|
|
fixed="left" |
|
|
fixed="left" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
@ -132,7 +132,7 @@ |
|
|
:align="item.align" |
|
|
:align="item.align" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
label="item.columnLabel"> |
|
|
|
|
|
|
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -144,7 +144,7 @@ |
|
|
<!-- 设备备件 --> |
|
|
<!-- 设备备件 --> |
|
|
<el-tab-pane label="设备备件" name="device_part"> |
|
|
<el-tab-pane label="设备备件" name="device_part"> |
|
|
<el-table |
|
|
<el-table |
|
|
height="140" |
|
|
|
|
|
|
|
|
:height="secondHeight" |
|
|
:data="devicePartList" |
|
|
:data="devicePartList" |
|
|
border |
|
|
border |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
@ -175,7 +175,7 @@ |
|
|
:align="item.align" |
|
|
:align="item.align" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
label="item.columnLabel"> |
|
|
|
|
|
|
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -201,7 +201,7 @@ |
|
|
:align="item.align" |
|
|
:align="item.align" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
label="item.columnLabel"> |
|
|
|
|
|
|
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -227,7 +227,7 @@ |
|
|
:align="item.align" |
|
|
:align="item.align" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
label="item.columnLabel"> |
|
|
|
|
|
|
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -266,7 +266,7 @@ |
|
|
:align="item.align" |
|
|
:align="item.align" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
label="item.columnLabel"> |
|
|
|
|
|
|
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -294,7 +294,7 @@ |
|
|
:align="item.align" |
|
|
:align="item.align" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
label="item.columnLabel"> |
|
|
|
|
|
|
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -340,7 +340,7 @@ |
|
|
:align="item.align" |
|
|
:align="item.align" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
label="item.columnLabel"> |
|
|
|
|
|
|
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -387,6 +387,10 @@ |
|
|
deleteEamObject, |
|
|
deleteEamObject, |
|
|
} from '@/api/eam/eam_object_list.js'; |
|
|
} from '@/api/eam/eam_object_list.js'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
updateOssRef |
|
|
|
|
|
} from '@/api/oss/oss.js'; |
|
|
|
|
|
|
|
|
/*引入組件*/ |
|
|
/*引入組件*/ |
|
|
import comAddUpdateEamObject from "./com_eam_object_add_update";/*新增或者修改的組件*/ |
|
|
import comAddUpdateEamObject from "./com_eam_object_add_update";/*新增或者修改的組件*/ |
|
|
|
|
|
|
|
|
@ -397,6 +401,7 @@ |
|
|
folder: 'eamObject', |
|
|
folder: 'eamObject', |
|
|
eamObjectId: '', |
|
|
eamObjectId: '', |
|
|
uploadUrl: "", |
|
|
uploadUrl: "", |
|
|
|
|
|
ossRet: {}, |
|
|
fileList: [], |
|
|
fileList: [], |
|
|
fileRemark: '', |
|
|
fileRemark: '', |
|
|
currentRow: {}, |
|
|
currentRow: {}, |
|
|
@ -425,178 +430,43 @@ |
|
|
faultBehaviorList: [], |
|
|
faultBehaviorList: [], |
|
|
columnFileContentArray: [ |
|
|
columnFileContentArray: [ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeSeqNo', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'seqNo', |
|
|
|
|
|
|
|
|
columnProp: 'fileName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '派工单号', |
|
|
|
|
|
columnWidth: 60, |
|
|
|
|
|
|
|
|
columnLabel: '文件名称', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeHistSeqNo', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'histSeqNo', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '记录号', |
|
|
|
|
|
columnWidth: 70, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: true, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeRollNo', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'rollNo', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '卷号', |
|
|
|
|
|
columnWidth: 90, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: true, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeEventDesc', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'eventDesc', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '事件', |
|
|
|
|
|
columnWidth: 75, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: true, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeDowntimeCode', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'downtimeCode', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '停机代码', |
|
|
|
|
|
columnWidth: 85, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: true, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeEventTime', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'eventTime', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '时间', |
|
|
|
|
|
columnWidth: 125, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: true, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeEnteredby', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'enteredby', |
|
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
columnProp: 'createdBy', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '录入人', |
|
|
|
|
|
columnWidth: 80, |
|
|
|
|
|
|
|
|
columnLabel: '上传人', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: true, |
|
|
columnSortable: true, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeTillTime', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'tillTime', |
|
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
columnProp: 'createDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '结束时间', |
|
|
|
|
|
columnWidth: 125, |
|
|
|
|
|
|
|
|
columnLabel: '上传时间', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: true, |
|
|
columnSortable: true, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeCompletedFlag', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'completedFlag', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '结束', |
|
|
|
|
|
columnWidth: 35, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeTotalTime', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'totalTime', |
|
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
columnProp: 'orderRef3', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '总时长', |
|
|
|
|
|
columnWidth: 55, |
|
|
|
|
|
|
|
|
columnLabel: '备注', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: true, |
|
|
columnSortable: true, |
|
|
@ -604,181 +474,35 @@ |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303TimeDowntimePhaseIn', |
|
|
|
|
|
tableId: '5303Time', |
|
|
|
|
|
tableName: '时间记录表', |
|
|
|
|
|
columnProp: 'downtimePhaseIn', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '停机所处时段', |
|
|
|
|
|
columnWidth: 90, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: true, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
], |
|
|
columnDevicePartArray: [ |
|
|
columnDevicePartArray: [ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolToolId', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'toolId', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '工具编号', |
|
|
|
|
|
columnWidth: 90, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: true, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolToolDesc', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'toolDesc', |
|
|
|
|
|
|
|
|
columnProp: 'partNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '工具名称', |
|
|
|
|
|
columnWidth: 85, |
|
|
|
|
|
|
|
|
columnLabel: '备件编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: true, |
|
|
columnSortable: true, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolSpec', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'spec', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '规格型号', |
|
|
|
|
|
columnWidth: 80, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolToolQty', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'toolQty', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '工具数量', |
|
|
|
|
|
columnWidth: 60, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolDowntimeUmid', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'umid', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '计量单位', |
|
|
|
|
|
columnWidth: 65, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolActive', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'active', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '在用', |
|
|
|
|
|
columnWidth: 35, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolFamilyId', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'familyId', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '工具分类', |
|
|
|
|
|
columnWidth: 55, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolRemark', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'remark', |
|
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
columnProp: 'partDescription', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '备注', |
|
|
|
|
|
columnWidth: 80, |
|
|
|
|
|
|
|
|
columnLabel: '备件名称', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolCreatedDate', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'createdDate', |
|
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
columnProp: 'qtyUsable', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '录入日期', |
|
|
|
|
|
columnWidth: 125, |
|
|
|
|
|
|
|
|
columnLabel: '可用数量', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -786,24 +510,6 @@ |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 5303, |
|
|
|
|
|
serialNumber: '5303OrderToolCreatedBy', |
|
|
|
|
|
tableId: '5303OrderTool', |
|
|
|
|
|
tableName: '工单工具', |
|
|
|
|
|
columnProp: 'createdBy', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '录入人', |
|
|
|
|
|
columnWidth: 80, |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
], |
|
|
columnCheckItemArray: [ |
|
|
columnCheckItemArray: [ |
|
|
{ |
|
|
{ |
|
|
@ -2507,7 +2213,8 @@ |
|
|
|
|
|
|
|
|
//刷新派设备文档的列表 |
|
|
//刷新派设备文档的列表 |
|
|
getFileContentData() { |
|
|
getFileContentData() { |
|
|
getFileContentList(this.searchData).then(({data}) => { |
|
|
|
|
|
|
|
|
let currentData = {orderRef2: this.currentRow.objectID}; |
|
|
|
|
|
getFileContentList(currentData).then(({data}) => { |
|
|
//区分请求成功和失败的状况 |
|
|
//区分请求成功和失败的状况 |
|
|
if (data && data.code == 200) { |
|
|
if (data && data.code == 200) { |
|
|
this.fileContentList = data.rows; |
|
|
this.fileContentList = data.rows; |
|
|
@ -2519,12 +2226,12 @@ |
|
|
|
|
|
|
|
|
//刷新派设备设备的备件的列表 |
|
|
//刷新派设备设备的备件的列表 |
|
|
getDevicePartData() { |
|
|
getDevicePartData() { |
|
|
getDevicePartList(this.searchData).then(({data}) => { |
|
|
|
|
|
|
|
|
getDevicePartList(this.currentRow).then(({data}) => { |
|
|
//区分请求成功和失败的状况 |
|
|
//区分请求成功和失败的状况 |
|
|
if (data && data.code == 200) { |
|
|
if (data && data.code == 200) { |
|
|
this.fileContentList = data.rows; |
|
|
|
|
|
|
|
|
this.devicePartList = data.rows; |
|
|
} else { |
|
|
} else { |
|
|
this.fileContentList = []; |
|
|
|
|
|
|
|
|
this.devicePartList = []; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
@ -2660,6 +2367,8 @@ |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
this.eamObjectId = row.objectID; |
|
|
this.eamObjectId = row.objectID; |
|
|
this.uploadUrl = this.$http.adornUrl(`/api/sys/file/upload?token=${this.$cookie.get('token')}&folder=` + this.folder + `&objectId=` + this.eamObjectId); |
|
|
this.uploadUrl = this.$http.adornUrl(`/api/sys/file/upload?token=${this.$cookie.get('token')}&folder=` + this.folder + `&objectId=` + this.eamObjectId); |
|
|
|
|
|
//刷新当前页表 |
|
|
|
|
|
this.refreshCurrentTabTable(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -2677,37 +2386,45 @@ |
|
|
this.fileList = fileList |
|
|
this.fileList = fileList |
|
|
this.successNum++ |
|
|
this.successNum++ |
|
|
if (response && response.code === 0) { |
|
|
if (response && response.code === 0) { |
|
|
if (this.num === this.successNum) { |
|
|
|
|
|
// 回写文件的订单属性 |
|
|
|
|
|
let ossRet = response.ossEntity |
|
|
|
|
|
let ossTo = { |
|
|
|
|
|
id: ossRet.id, |
|
|
|
|
|
fileType: this.fileMappingDto.fileType, |
|
|
|
|
|
orderRef1: this.fileMappingDto.orderRef1, |
|
|
|
|
|
orderRef2: this.fileMappingDto.orderRef2, |
|
|
|
|
|
orderRef3: this.fileMappingDto.orderRef3, |
|
|
|
|
|
fileTypeCode: 1, |
|
|
|
|
|
fileSuffix: file.name.substring(file.name.indexOf(".")+1), |
|
|
|
|
|
} |
|
|
|
|
|
updateOssRef(ossTo).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.$confirm('操作成功, 是否继续操作?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.visible = false |
|
|
|
|
|
}) |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$message.warning('上传失败,请重新上传') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 回写文件的订单属性 |
|
|
|
|
|
this.ossRet = response.ossEntity; |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(response.msg) |
|
|
this.$message.error(response.msg) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/*保修当前的数据*/ |
|
|
|
|
|
saveUploadFile(){ |
|
|
|
|
|
let remark = this.fileRemark; |
|
|
|
|
|
if(null === remark || '' === remark){ |
|
|
|
|
|
this.$message.error("请输入文件备注!"); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
/*判断文件是否上传*/ |
|
|
|
|
|
if(null == this.ossRet || {} == this.ossRet){ |
|
|
|
|
|
this.$message.error("请先上传文件!"); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
//设置备注 |
|
|
|
|
|
this.ossRet.orderRef1 = this.currentRow.site; |
|
|
|
|
|
this.ossRet.orderRef3 = remark; |
|
|
|
|
|
updateOssRef(this.ossRet).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.$message.success(data.msg); |
|
|
|
|
|
//刷新当前的清单 |
|
|
|
|
|
this.getFileContentData(); |
|
|
|
|
|
//清空文件上传记录 |
|
|
|
|
|
this.$refs.uploadFile.clearFiles(); |
|
|
|
|
|
this.ossRet = null; |
|
|
|
|
|
this.fileRemark = ''; |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$message.warning(data.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|