Compare commits

..

No commits in common. "3da077bdf380d4f35158612f488e22f3e64577ae" and "51d6ce5dbbdf62467e8ad135aa42dea42699acf6" have entirely different histories.

12 changed files with 121 additions and 231 deletions

View File

@ -1,8 +1,8 @@
### ###
# @Author: Do not edit # @Author: Do not edit
# @Date: 2023-08-29 09:40:39 # @Date: 2023-08-29 09:40:39
# @LastEditTime: 2023-11-15 14:37:35 # @LastEditTime: 2023-11-15 09:09:12
# @LastEditors: DY # @LastEditors: zhp
# @Description: # @Description:
### ###
# 开发环境配置 # 开发环境配置
@ -18,8 +18,8 @@ VUE_APP_TITLE = MES系统
# VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.2.173:48080'
# VUE_APP_BASE_API = 'http://192.168.1.49:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48080'
# VUE_APP_BASE_API = 'http://192.168.1.8:48080' # VUE_APP_BASE_API = 'http://192.168.1.8:48080'
# VUE_APP_BASE_API = 'http://192.168.0.33:48082' VUE_APP_BASE_API = 'http://192.168.4.159:48080'
VUE_APP_BASE_API = 'http://192.168.1.56:48080' # VUE_APP_BASE_API = 'http://192.168.1.56:48080'
# VUE_APP_BASE_API = 'http://192.168.4.159:48080' # VUE_APP_BASE_API = 'http://192.168.4.159:48080'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -1,7 +1,7 @@
/* /*
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-10-21 11:50:46 * @Date: 2023-10-21 11:50:46
* @LastEditTime: 2023-11-15 10:44:41 * @LastEditTime: 2023-11-06 17:49:42
* @LastEditors: DY * @LastEditors: DY
* @Description: * @Description:
*/ */
@ -67,14 +67,6 @@ export function getCoreWOList(query) {
}) })
} }
// 根据工单id获得所有列表
export function getCoreWOListById(ids) {
return request({
url: '/base/core-work-order/list?ids='+ ids ,
method: 'get'
})
}
// 创建工单预使用原料 // 创建工单预使用原料
export function createCoreWOMa(data) { export function createCoreWOMa(data) {
return request({ return request({
@ -143,4 +135,4 @@ export function statusChange(data) {
method: 'post', method: 'post',
data: data data: data
}) })
} }

View File

@ -1,7 +1,7 @@
/* /*
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-11-08 15:56:52 * @Date: 2023-11-08 15:56:52
* @LastEditTime: 2023-11-13 09:15:17 * @LastEditTime: 2023-11-11 19:52:54
* @LastEditors: DY * @LastEditors: DY
* @Description: * @Description:
*/ */

View File

@ -1,7 +1,7 @@
/* /*
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-11-08 15:56:52 * @Date: 2023-11-08 15:56:52
* @LastEditTime: 2023-11-13 08:52:12 * @LastEditTime: 2023-11-10 09:04:50
* @LastEditors: DY * @LastEditors: DY
* @Description: * @Description:
*/ */
@ -58,10 +58,10 @@ export function getCheckDetPage(query) {
}) })
} }
// 获得设备巡检所有列表 // 获得x巡检所有列表
export function getcheckList(query) { export function getcheckList(query) {
return request({ return request({
url: '/base/equipment-check/listAll', url: '/base/equipment-check/list',
method: 'get', method: 'get',
params: query params: query
}) })

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2021-11-18 14:16:25 * @Date: 2021-11-18 14:16:25
* @LastEditors: DY * @LastEditors: DY
* @LastEditTime: 2023-11-15 10:32:19 * @LastEditTime: 2023-11-04 17:57:18
* @Description: * @Description:
--> -->
<template> <template>
@ -326,15 +326,9 @@ export default {
// //
this.urlOptions.infoURL(id).then(response => { this.urlOptions.infoURL(id).then(response => {
this.dataForm = response.data this.dataForm = response.data
if (this.dataForm.unit !== undefined) { this.dataForm.unit = String(this.dataForm.unit)
this.dataForm.unit = String(this.dataForm.unit) this.dataForm.materialType = String(this.dataForm.materialType)
} this.dataForm.productType = String(this.dataForm.productType)
if (this.dataForm.materialType !== undefined) {
this.dataForm.materialType = String(this.dataForm.materialType)
}
if (this.dataForm.productType !== undefined) {
this.dataForm.productType = String(this.dataForm.productType)
}
}); });
// //
this.getList(); this.getList();

View File

@ -45,8 +45,6 @@ import {
getCorePLPage, getCorePLPage,
deleteCorePL deleteCorePL
} from '@/api/base/coreProductionLine'; } from '@/api/base/coreProductionLine';
import { getStatus } from '@/api/core/base/productionLine';
import codeFilter from '../../core/mixins/code-filter';
const tableProps = [ const tableProps = [
{ {
@ -69,7 +67,7 @@ const tableProps = [
{ {
prop: 'enabled', prop: 'enabled',
label: '当前状态', label: '当前状态',
filter: codeFilter('lineStatus') filter: (val) => ['停用', '启用'][val]
}, },
{ {
prop: 'description', prop: 'description',
@ -137,28 +135,14 @@ export default {
created() {}, created() {},
methods: { methods: {
// //
getDataList() { // getDataList() {
this.dataListLoading = true; // this.dataListLoading = true;
this.urlOptions.getDataListURL(this.listQuery).then(response => { // this.urlOptions.getDataListURL(this.listQuery).then(response => {
// this.tableData = response.data.list; // this.tableData = response.data.list;
this.getStatus(response.data.list) // this.listQuery.total = response.data.total;
this.listQuery.total = response.data.total; // this.dataListLoading = false;
this.dataListLoading = false; // });
}); // },
},
getStatus(list) {
const ids = list.map((i) => {
return i.id;
});
getStatus(ids).then((response) => {
response.forEach((a) => {
list.forEach((b) => {
if (b.id === a.id) b.enabled = a.status;
});
});
this.tableData = list;
});
},
buttonClick(val) { buttonClick(val) {
switch (val.btnName) { switch (val.btnName) {
case 'search': case 'search':

View File

@ -2,26 +2,22 @@
* @Author: zwq * @Author: zwq
* @Date: 2021-11-18 14:16:25 * @Date: 2021-11-18 14:16:25
* @LastEditors: DY * @LastEditors: DY
* @LastEditTime: 2023-11-15 14:18:38 * @LastEditTime: 2023-11-06 17:08:22
* @Description: * @Description:
--> -->
<template> <template>
<!-- <el-drawer <el-drawer
:visible.sync="visible" :visible.sync="visible"
:show-close="false" :show-close="false"
:wrapper-closable="false" :wrapper-closable="false"
class="drawer" class="drawer"
size="50%"> --> size="50%">
<div class="app-container"> <small-title slot="title" :no-padding="true">
<!-- <small-title slot="title" :no-padding="true">
{{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }} {{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }}
</small-title> --> </small-title>
<div v-show="workOrderButton.length">
<el-button v-for="(work, index) in workOrderButton" :key="index" type="primary" @click="init(work.id, true)">{{ work.name }}</el-button>
</div>
<div class="content"> <div class="content">
<div> <div>
<h1>工单编码{{ dataForm.code }}</h1> <h2>工单编码{{ dataForm.code }}</h2>
</div> </div>
<small-title <small-title
style="margin: 16px 0; padding-left: 8px" style="margin: 16px 0; padding-left: 8px"
@ -51,9 +47,6 @@
<el-col :span="8">关联产线:{{ dataForm.productLineNames }}</el-col> <el-col :span="8">关联产线:{{ dataForm.productLineNames }}</el-col>
<el-col :span="8">物料计算方式:{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展' : '' }}</el-col> <el-col :span="8">物料计算方式:{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展' : '' }}</el-col>
</el-row> </el-row>
<el-row :gutter="20">
<el-col :span="8">关联工艺:{{ dataForm.processFlowName }}</el-col>
</el-row>
</div> </div>
<small-title <small-title
@ -64,7 +57,7 @@
<div class="formContent"> <div class="formContent">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8">订单创建时间: <el-col :span="8">订单创建时间:
<span v-for="(item, index) in orderArray" :key="index" style="margin-right: 10px; white-space: normal">{{ item.createTime }}</span> <span v-for="(item, index) in orderArray" :key="index" style="margin-right: 10px">{{ item.createTime }}</span>
</el-col> </el-col>
<el-col :span="8">计划开始时间:{{ dataForm.planStartTime }}</el-col> <el-col :span="8">计划开始时间:{{ dataForm.planStartTime }}</el-col>
<el-col :span="8">计划完成时间:{{ dataForm.planFinishTime }}</el-col> <el-col :span="8">计划完成时间:{{ dataForm.planFinishTime }}</el-col>
@ -81,7 +74,7 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8">废片数量:{{ dataForm.nokQuantity }}</el-col> <el-col :span="8">废片数量:{{ dataForm.nokQuantity }}</el-col>
<el-col :span="8">检测瑕疵数:{{ }}</el-col> <el-col :span="8">检测瑕疵数:{{ 0 }}</el-col>
</el-row> </el-row>
</div> </div>
@ -133,18 +126,17 @@
@pagination="getList" /> --> @pagination="getList" /> -->
</div> </div>
<!-- <div class="drawer-body__footer"> <div class="drawer-body__footer">
<el-button type="primary" @click="goback()">关闭</el-button> <el-button type="primary" @click="goback()">关闭</el-button>
</div> --> </div>
</div> </div>
</div> </el-drawer>
</template> </template>
<script> <script>
// import basicAdd from '../../core/mixins/basic-add'; // import basicAdd from '../../core/mixins/basic-add';
import { getCoreWO, getMaterialBomPage, getConOrderList, getCoreWOListById } from "@/api/base/coreWorkOrder"; import { getCoreWO, getMaterialBomPage, getConOrderList } from "@/api/base/coreWorkOrder";
import { orderList } from "@/api/base/orderManage"; import { orderList } from "@/api/base/orderManage";
import { getProcessFlowList } from '@/api/base/orderManage'
import SmallTitle from './SmallTitle'; import SmallTitle from './SmallTitle';
import { publicFormatter } from "@/utils/dict"; import { publicFormatter } from "@/utils/dict";
@ -225,36 +217,10 @@ export default {
orderArray: [], orderArray: [],
visible: false, visible: false,
isdetail: false, isdetail: false,
workOrderButton: [],
processFlowList: []
}; };
}, },
created() { mounted() {},
this.getDict()
},
mounted() {
if (this.$route.query.woIdString) {
const idList = this.$route.query.woIdString.split(',')
getCoreWOListById(idList).then(res => {
this.workOrderButton = res.data.map(work => {
return {
id: work.id,
name: work.name
}
})
this.init(this.workOrderButton[0].id, true)
})
} else {
this.init(this.$route.query.id, true)
}
},
methods: { methods: {
getDict() {
//
getProcessFlowList().then(res => {
this.processFlowList = res.data || []
})
},
fitlerP(val) { fitlerP(val) {
if (val) { if (val) {
if (val === 1) { if (val === 1) {
@ -354,14 +320,6 @@ export default {
// //
this.urlOptions.infoURL(id).then(response => { this.urlOptions.infoURL(id).then(response => {
this.dataForm = response.data this.dataForm = response.data
//
if (this.dataForm.processFlowId) {
this.processFlowList.filter(item => {
if (item.id === this.dataForm.processFlowId) {
this.dataForm.processFlowName = item.name
}
})
}
// //
this.getList(); this.getList();
}); });
@ -443,7 +401,6 @@ export default {
font-size: 16px; font-size: 16px;
line-height: 1.5; line-height: 1.5;
margin-bottom: 10px; margin-bottom: 10px;
width: 100%;
} }
.action_btn { .action_btn {
float: right; float: right;

View File

@ -40,17 +40,17 @@
ref="material" ref="material"
@refreshDataList="closeDetail"></add-or-update> @refreshDataList="closeDetail"></add-or-update>
<!-- 查看详情 --> <!-- 查看详情 -->
<!-- <detail <detail
v-if="detailVisible" v-if="detailVisible"
ref="detail" ref="detail"
@refreshDataList="closeDetail"></detail> --> @refreshDataList="closeDetail"></detail>
</div> </div>
</template> </template>
<script> <script>
import AddOrUpdate from './add-or-updata'; import AddOrUpdate from './add-or-updata';
import AddWorkOrder from './addWorkOrder' import AddWorkOrder from './addWorkOrder'
// import Detail from './detail.vue'; import Detail from './detail.vue';
import basicPage from '../../core/mixins/basic-page'; import basicPage from '../../core/mixins/basic-page';
import { parseTime } from '../../core/mixins/code-filter'; import { parseTime } from '../../core/mixins/code-filter';
import { import {
@ -112,7 +112,8 @@ export default {
mixins: [basicPage], mixins: [basicPage],
components: { components: {
AddWorkOrder, AddWorkOrder,
AddOrUpdate AddOrUpdate,
Detail
}, },
data() { data() {
return { return {
@ -251,8 +252,7 @@ export default {
type: 'input', type: 'input',
label: '工单名称', label: '工单名称',
placeholder: '工单名称', placeholder: '工单名称',
param: 'name', param: 'name'
defaultSelect: ''
}, },
{ {
type: 'select', type: 'select',
@ -298,14 +298,7 @@ export default {
], ],
}; };
}, },
mounted() { created() {},
console.log(this.$route.query.workOrderName)
if (this.$route.query.workOrderName) {
this.listQuery.name = this.$route.query.workOrderName;
this.formConfig[0].defaultSelect = this.$route.query.workOrderName;
}
this.getDataList()
},
methods: { methods: {
refreshWorkOrder(val) { refreshWorkOrder(val) {
console.log(val) console.log(val)
@ -329,17 +322,11 @@ export default {
this.$refs.material.init(val.data, true); this.$refs.material.init(val.data, true);
}); });
} else if (val.type === 'detail') { } else if (val.type === 'detail') {
this.$router.push({ this.detailVisible = true;
path: '/core/core-work-order-detail', this.addOrEditTitle = "详情";
query:{ this.$nextTick(() => {
id: val.data.id this.$refs.detail.init(val.data.id, true);
} });
});
// this.detailVisible = true;
// this.addOrEditTitle = "";
// this.$nextTick(() => {
// this.$refs.detail.init(val.data.id, true);
// });
} else { } else {
const param = { const param = {
id: val.data.id, id: val.data.id,

View File

@ -150,37 +150,48 @@ export default {
getData() { getData() {
this.urlOptions.getDataListURL(this.listQuery).then(res => { this.urlOptions.getDataListURL(this.listQuery).then(res => {
// //
this.tableData = [] if (res.data) {
if (Object.values(res.data.coreProductionLineMonthVOS).length > 0) {
this.setHeader() this.setHeader()
let yAllData = [], proNameList = [] res.data.forEach(item => {
Object.values(res.data.coreProductionLineMonthVOS).forEach(pro => { console.log('111', item.recordTime, moment(item.recordTime).format('DD'))
// this.tableData.push({
let yData = [] proName: item.proName,
const tempData = { specifications: item.specifications
proName: pro[0].proName,
specifications: pro[0].specifications,
sum: 0
}
proNameList.push(pro[0].proName)
pro.forEach(item => {
//
//
const day = parseTime(item.recordTime).slice(8, 10) < 10 ? parseTime(item.recordTime).slice(9, 10) : parseTime(item.recordTime).slice(8, 10)
// console.log('!1', day < 10)
tempData['value' + day] = item.countSum
tempData.sum += item.countSum
yData[day] = item.countSum
// yData.push(item.countSum)
}) })
this.tableData.push(tempData)
yAllData.push(yData)
})
this.$nextTick(() => {
this.$refs.lineChart.initChart(this.xData, yAllData, proNameList)
}) })
} }
console.log('饿', this.tableData)
// res.data.data.forEach(item => {
// let yData = []
// lineName.push(item.lineName)
// // let obj = {}
// // obj.lineName = item.lineName,
// // obj.sum = item.sum,
// item.data.forEach((ele, index) => {
// // console.log(ele)
// ele.children.forEach((e) => {
// // let yData = []
// yData.push(e.dynamicValue)
// })
// })
// yAllData.push(yData)
// });
// console.log(lineName)
// } else {
// this.tableProps = arr
// this.tableData = []
// xData = []
// yAllData = []
// lineName = []
// }
// res.data.data[0].data[0].children.forEach((item, index) => {
// // console.log(item)
// yData.push(item.dynamicValue)
// // let data = 'data' + Number(index+1)
// // obj['' + item.dynamicName + ''] = item.dynamicValue
// })
// console.log(this.yData)
// this.$refs.lineChart.initChart(this.xData, yAllData, lineName)
// this.total = response.data.total; // this.total = response.data.total;
// this.dataListLoading = false; // this.dataListLoading = false;
}); });

View File

@ -25,7 +25,7 @@
<script> <script>
import { getPdlDataOneDay } from '@/api/core/monitoring/data24' import { getPdlDataOneDay } from '@/api/core/monitoring/data24'
import { parseTime } from '../../mixins/code-filter'; import { parseTime } from '../../mixins/code-filter';
import { getSchedulingMonitoringRecord } from '@/api/monitoring/teamProduction' import { Loading } from 'element-ui';
export default { export default {
name: 'productionLineData24', name: 'productionLineData24',
@ -48,8 +48,6 @@ export default {
tableData: [], tableData: [],
tableProps: [], tableProps: [],
spanInfo: {}, spanInfo: {},
monitorList: [],
ResData: []
}; };
}, },
computed: {}, computed: {},
@ -58,7 +56,7 @@ export default {
}, },
methods: { methods: {
/** 构建tableProps - 依据第一个元素所提供的信息 */ /** 构建tableProps - 依据第一个元素所提供的信息 */
async buildProps() { buildProps() {
// //
var currentTime = new Date(); var currentTime = new Date();
let timeArr = [] let timeArr = []
@ -67,6 +65,7 @@ export default {
for (let i = 0; i < 24; i ++) { for (let i = 0; i < 24; i ++) {
timeArr.unshift(new Date(currentTime.getFullYear(), currentTime.getMonth(), currentTime.getDate(), currentTime.getHours() - i, 0, 0).getTime()) timeArr.unshift(new Date(currentTime.getFullYear(), currentTime.getMonth(), currentTime.getDate(), currentTime.getHours() - i, 0, 0).getTime())
} }
console.log("24小时内的开始时间" + timeArr, timeArr.length);
for(const times of timeArr) { for(const times of timeArr) {
const subprop = { const subprop = {
label: parseTime(times), label: parseTime(times),
@ -74,7 +73,7 @@ export default {
children: [ children: [
{ prop: times + '_up', label: '上片数据' }, { prop: times + '_up', label: '上片数据' },
{ prop: times + '_down', label: '下片数据' }, { prop: times + '_down', label: '下片数据' },
{ prop: times + '_area', label: '良品面积' }, { prop: times + '_good', label: '良品面积' },
{ prop: times + '_bad', label: '报废数据' }, { prop: times + '_bad', label: '报废数据' },
{ prop: times + '_percent', label: '报废比例(%)' } { prop: times + '_percent', label: '报废比例(%)' }
] ]
@ -82,13 +81,7 @@ export default {
this.arr.push(subprop) this.arr.push(subprop)
} }
this.tableProps = this.arr this.tableProps = this.arr
const paramsTime = [parseTime(timeArr[0]), parseTime(timeArr[23])] console.log('111', this.tableProps)
await getSchedulingMonitoringRecord({checkTime: paramsTime}).then(res =>{
//
this.monitorList = res.data.data
console.log('报废', this.monitorList)
this.buildData(this.ResData);
})
}, },
setRowSpan(arr) { setRowSpan(arr) {
let count = 0 let count = 0
@ -105,47 +98,28 @@ export default {
} }
} }
}) })
console.log('打印数组长度', this.spanArr)
}, },
/** 把 list 里的数据转换成 tableProps 对应的格式 */ /** 把 list 里的数据转换成 tableProps 对应的格式 */
convertList(list) { convertList(list) {
// let sectionArr= [] let sectionArr= []
let temp = Object.values(list.datamap) console.log('打印看下数据list', list)
console.log('111', temp) list.forEach((ele, index) => {
let tempData = {}
temp.forEach(item => { tempData[ele.recordTime + '_up'] = ele.inputNum
// 线list tempData[ele.recordTime + '_down'] = ele.outputNum
console.log('22', item) tempData[ele.recordTime + '_up'] = ele.inputNum
let lineData = {} tempData['proLineName'] = ele.lineName
lineData['proLineName'] = item[0].lineName tempData['workOrderName'] = ele.workOrderName
let works = [], specs = [] tempData['spec'] = ele.specifications
item.forEach(it => { this.tableData.push(tempData)
works.push(it.workOrderName) console.log('看看数据', this.tableData, tempData)
specs.push(it.specifications) const { proLineName } = tempData
lineData[it.recordTime + '_up'] = it.inputNum sectionArr.push(proLineName)
lineData[it.recordTime + '_down'] = it.outputNum
lineData[it.recordTime + '_area'] = it.area
})
console.log('你好', this.monitorList)
this.monitorList.forEach(m => {
console.log('455', m)
if (m.lineName === lineData.proLineName) {
m.data.forEach(bad => {
//
// console.log('233', Date.parse(bad.dynamicName))
const stamp = Date.parse(bad.dynamicName)
lineData[stamp + '_bad'] = bad.dynamicValue
lineData[stamp + '_percent'] = (lineData[stamp + '_bad'] / lineData[stamp + '_down'] * 100).toFixed(2) + '%'
})
}
})
lineData['workOrderName'] = works.join(',')
lineData['spec'] = specs.join(',')
this.tableData.push(lineData)
}) })
console.log('打印', this.tableData) this.setRowSpan(sectionArr)
// this.setRowSpan(sectionArr) console.log('工段名称列表', sectionArr)
// console.log('', sectionArr)
}, },
buildData(data) { buildData(data) {
@ -167,9 +141,8 @@ export default {
}, },
async getList() { async getList() {
await this.urlOptions.getDataListURL().then(res => { this.urlOptions.getDataListURL().then(res => {
console.log('看看数据', res) console.log('看看数据', res)
this.ResData = res.data
this.arr = [ this.arr = [
{ {
prop: 'proLineName', prop: 'proLineName',
@ -191,6 +164,7 @@ export default {
} }
] ]
this.buildProps(); this.buildProps();
this.buildData(res.data);
}) })
// // const data = this.res.data; // // const data = this.res.data;

View File

@ -29,8 +29,7 @@
filterable filterable
:disabled="isdetail" :disabled="isdetail"
style="width: 100%" style="width: 100%"
placeholder="请选择设备名称" placeholder="请选择设备名称">
@change="setConfig">
<el-option <el-option
v-for="dict in eqList" v-for="dict in eqList"
:key="dict.id" :key="dict.id"
@ -79,7 +78,7 @@
type="date" type="date"
:disabled="isdetail" :disabled="isdetail"
format='yyyy-MM-dd' format='yyyy-MM-dd'
value-format="timestamp" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择巡检时间" /> placeholder="选择巡检时间" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -203,13 +202,6 @@ export default {
const configres = await getcheckConfigByEqList() const configres = await getcheckConfigByEqList()
this.configList = configres.data this.configList = configres.data
}, },
async setConfig() {
const configres = await getcheckConfigByEqList({equipmentId: this.dataForm.equipmentId})
this.configList = configres.data
this.dataForm.equipmentCode = this.eqList.filter(item => {
return item.id === this.dataForm.equipmentId
})[0].code
},
goback() { goback() {
this.$emit('refreshDataList'); this.$emit('refreshDataList');
this.visible = false; this.visible = false;
@ -234,7 +226,7 @@ export default {
this.$refs['dataForm'].resetFields(); this.$refs['dataForm'].resetFields();
if (this.dataForm.id) { if (this.dataForm.id) {
// //
getEqCheckLog(this.dataForm.id).then(response => { getEqCheckLog(this.dataForm.id).then(response => {
this.formLoading = false this.formLoading = false
this.dataForm = response.data; this.dataForm = response.data;

View File

@ -58,7 +58,6 @@ import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin'; import basicPageMixin from '@/mixins/lb/basicPageMixin';
import addRecord from './addRecord.vue'; import addRecord from './addRecord.vue';
import { exportCheckLogExcel } from '@/api/equipment/base/inspection/record' import { exportCheckLogExcel } from '@/api/equipment/base/inspection/record'
import { parseTime } from '../../../../core/mixins/code-filter';
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@ -91,13 +90,13 @@ export default {
: undefined, : undefined,
].filter((v) => v), ].filter((v) => v),
tableProps: [ tableProps: [
{ prop: 'configName', label: '配置名称' }, { prop: 'repairOrderNumber', label: '配置名称' },
{ prop: 'equipmentName', label: '设备名称' }, { prop: 'maintenanceDuration', label: '设备名称' },
// { prop: 'lineName', label: '' }, { prop: 'lineName', label: '数据来源' },
// { prop: 'sectionName', label: '' }, { prop: 'sectionName', label: '计划巡检时间' },
{ prop: 'actualTime', label: '实际巡检时间', filter: parseTime }, { prop: 'equipmentName', label: '实际巡检时间' },
// { prop: 'maintenanceDetail', label: '' }, { prop: 'maintenanceDetail', label: '完成状态' },
{ prop: 'responsible', label: '巡检人' }, { prop: 'repairman', label: '巡检人' },
], ],
searchBarFormConfig: [ searchBarFormConfig: [
{ {
@ -223,7 +222,7 @@ export default {
}, },
// //
form: {}, form: {},
basePath: '/base/equipment-check-log', basePath: '/base/equipment-repair-log',
mode: null, mode: null,
}; };
}, },