Compare commits

..

No commits in common. "9a411cc663b505eb8d201e78e46ef6e026be946c" and "2688896660c350705c4489e85c509cc7f8a566c4" have entirely different histories.

14 changed files with 123 additions and 161 deletions

View File

@ -1,7 +1,7 @@
###
# @Author: Do not edit
# @Date: 2023-08-29 09:40:39
# @LastEditTime: 2023-10-16 09:22:52
# @LastEditTime: 2023-09-18 10:44:07
# @LastEditors: DY
# @Description:
###
@ -12,9 +12,9 @@ ENV = 'development'
VUE_APP_TITLE = 产线监控系统
# 芋道管理系统/开发环境
# 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.0.33:48080'
# VUE_APP_BASE_API = 'http://192.168.0.33:48080'
# VUE_APP_BASE_API = 'http://192.168.1.188:48080'
# 路由懒加载

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-09-13 09:02:25
* @LastEditTime: 2023-10-16 14:56:58
* @LastEditTime: 2023-10-08 15:39:38
* @LastEditors: DY
* @Description:
-->

View File

@ -1,12 +1,8 @@
<template>
<div class="app-container">
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
<div v-if="tableData.length">
<base-table v-loading="dataListLoading" :span-method="mergeColumnHandler" :table-props="tableProps" :table-data="tableData" />
<SearchBar :formConfigs="[{ label: '产线平衡分析图', type: 'title' }]" />
<balance-chart ref="lineChart" />
</div>
<div v-else class="no-data-bg"></div>
<!-- <pagination
:limit.sync="listQuery.pageSize"
:page.sync="listQuery.pageNo"
@ -93,7 +89,7 @@ export default {
},
{
type: 'button',
btnName: '查询',
btnName: '搜索',
name: 'search',
color: 'primary',
}

View File

@ -1,12 +1,8 @@
<template>
<div class="app-container">
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
<div v-if="tableData.length">
<base-table v-loading="dataListLoading" :table-props="tableProps" :table-data="tableData" />
<SearchBar :formConfigs="[{ label: '产品产量对比图', type: 'title' }]" />
<line-chart ref="lineChart" />
</div>
<div v-else class="no-data-bg"></div>
<!-- <pagination
:limit.sync="listQuery.pageSize"
:page.sync="listQuery.pageNo"
@ -86,7 +82,7 @@ export default {
},
{
type: 'button',
btnName: '查询',
btnName: '搜索',
name: 'search',
color: 'primary',
}
@ -105,8 +101,6 @@ export default {
this.optionArrUrl.forEach((item, index) => {
item(params).then((response) => {
this.formConfig[index].selectOptions = response.data.list
// this.formConfig[0].defaultSelect = response.data.list[0].id
this.$set(this.formConfig[0], 'defaultSelect', response.data.list[0].id)
});
});
},
@ -118,13 +112,11 @@ export default {
let arr = [
{
prop: 'lineName',
label: '产线',
fixed: 'left'
label: '产线'
},
{
prop: 'sum',
label: '合计',
fixed: 'left'
label: '合计'
},
{
prop: res.data ? res.data.nameData[0].name : undefined,

View File

@ -1,8 +1,8 @@
<!--
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: DY
* @LastEditTime: 2023-10-16 11:16:48
* @LastEditors: zwq
* @LastEditTime: 2023-08-01 16:59:06
* @Description:
-->
<template>
@ -12,30 +12,21 @@
ref="dataForm"
@keyup.enter.native="dataFormSubmit()"
label-width="80px">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="工厂编码" prop="code">
<el-input
v-model="dataForm.code"
clearable
placeholder="请输入工厂编码" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工厂名称" prop="name">
<el-input
v-model="dataForm.name"
clearable
placeholder="请输入工厂名称" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="地址" prop="address">
<el-input v-model="dataForm.address" clearable placeholder="请输入地址" />
</el-form-item>
</el-col>
<!-- <el-form-item label="启用状态" prop="enabled">
<el-select
v-model="dataForm.enabled"
@ -47,12 +38,9 @@
:value="dict.value" />
</el-select>
</el-form-item> -->
<el-col :span="12">
<el-form-item label="备注" prop="remark">
<el-input v-model="dataForm.remark" clearable placeholder="请输入备注" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</template>

View File

@ -29,7 +29,7 @@
@cancel="handleCancel"
@confirm="handleConfirm"
:before-close="handleCancel"
width="50%">
width="70%">
<add-or-update
ref="addOrUpdate"
@refreshDataList="successSubmit"></add-or-update>

View File

@ -28,20 +28,24 @@ import { getProductPage } from '@/api/core/base/product';
const tableProps = [
{
prop: 'productionLineName',
label: '产线'
label: '产线',
align: 'center',
},
{
prop: 'productName',
label: '在制产品'
label: '在制产品',
align: 'center',
},
{
prop: 'startTime',
label: '开始时间',
align: 'center',
filter: parseTime,
},
{
prop: 'endTime',
label: '结束时间',
align: 'center',
filter: parseTime,
},
];

View File

@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 13:52:10
* @LastEditors: DY
* @LastEditTime: 2023-10-16 13:40:00
* @LastEditTime: 2023-09-21 10:48:54
* @Description:
-->
<template>
@ -12,26 +12,18 @@
ref="dataForm"
@keyup.enter.native="dataFormSubmit()"
label-width="90px">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="工段编码" prop="code">
<el-input
v-model="dataForm.code"
clearable
placeholder="请输入工段编码" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工段名称" prop="name">
<el-input
v-model="dataForm.name"
clearable
placeholder="请输入工段名称" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item prop="productionLineId" label="产线">
<el-select
v-model="dataForm.productionLineId" filterable clearable placeholder="请选择产线">
@ -44,13 +36,9 @@
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="排序" prop="sort">
<el-input-number v-model="dataForm.sort" :min="1" :max="100" clearable placeholder="请输入排序" />
</el-form-item>
</el-col>
</el-row>
<el-form-item label="备注" prop="remark">
<el-input v-model="dataForm.remark" clearable placeholder="请输入备注" />
</el-form-item>

View File

@ -29,7 +29,7 @@
@cancel="handleCancel"
@confirm="handleConfirm"
:before-close="handleCancel"
width="50%">
width="70%">
<add-or-update
ref="addOrUpdate"
@refreshDataList="successSubmit"></add-or-update>
@ -50,28 +50,34 @@ import {
const tableProps = [
{
prop: 'code',
label: '工段编码'
label: '工段编码',
align: 'center',
},
{
prop: 'name',
label: '工段名称'
label: '工段名称',
align: 'center',
},
{
prop: 'productionLineName',
label: '产线'
label: '产线',
align: 'center',
},
{
prop: 'sort',
label: '排序'
label: '排序',
align: 'center',
},
{
prop: 'remark',
label: '备注'
label: '备注',
align: 'center',
},
{
prop: 'createTime',
label: '创建时间',
filter: parseTime
align: 'center',
filter: parseTime,
},
];
@ -113,14 +119,14 @@ export default {
name: 'search',
color: 'primary',
},
// {
// type: 'separate',
// },
// {
// type: 'button',
// btnName: '',
// name: 'reset',
// },
{
type: 'separate',
},
{
type: 'button',
btnName: '重置',
name: 'reset',
},
{
type: 'separate',
},

View File

@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-08-29 14:59:29
* @LastEditTime: 2023-10-16 15:10:42
* @LastEditTime: 2023-10-13 11:03:11
* @LastEditors: DY
* @Description:
-->
@ -12,7 +12,6 @@
ref="searchBarForm"
@headBtnClick="buttonClick" />
<base-table
v-if="showData.length"
class="right-aside"
v-loading="dataListLoading"
:table-props="tableProps"
@ -23,7 +22,6 @@
@selection-change="selectChange"
>
</base-table>
<div v-else class="no-data-bg"></div>
<pagination
:limit.sync="listQuery.pageSize"
:page.sync="listQuery.pageNo"
@ -197,8 +195,7 @@ export default {
type: 'button',
btnName: '导出',
name: 'export',
color: 'primary',
plain: true
color: 'warning',
}
],
};

View File

@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-08-29 14:59:29
* @LastEditTime: 2023-10-16 15:18:23
* @LastEditTime: 2023-10-13 11:00:59
* @LastEditors: DY
* @Description:
-->
@ -12,7 +12,6 @@
ref="searchBarForm"
@headBtnClick="buttonClick" />
<base-table
v-if="showData.length"
class="right-aside"
v-loading="dataListLoading"
:table-props="tableProps"
@ -30,7 +29,6 @@
:method-list="tableBtn"
@clickBtn="handleClick" />
</base-table>
<div v-else class="no-data-bg"></div>
<pagination
:limit.sync="listQuery.pageSize"
:page.sync="listQuery.pageNo"
@ -147,8 +145,7 @@ export default {
type: 'button',
btnName: '导出',
name: 'export',
color: 'primary',
plain: true
color: 'warning',
}
],
};

View File

@ -11,14 +11,13 @@
ref="search-bar" />
<el-skeleton v-if="initing" :rows="6" animated />
<!-- :span-method="mergeColumnHandler" -->
<div v-else :class="{ 'no-data-bg': !tableData || tableData.length == 0 }">
<base-table
v-if="tableData && tableData.length > 0"
v-else
:table-props="tableProps"
:table-data="tableData"
@emitFun="handleEmitFun"
/>
</div>
@emitFun="handleEmitFun"></base-table>
<!-- :page="queryParams.pageNo"
:limit="queryParams.pageSize" -->
</div>
</template>
@ -66,10 +65,10 @@ export default {
label: times.slice(0, 10) + ' ' + times.slice(11),
align: 'center',
children: [
{ prop: times + '_in', label: '投入数量' },
{ prop: times + '_out', label: '产出数量' },
{ prop: times + '_junk', label: '报废数量' },
{ prop: times + '_area', label: '产出面积' }
{ prop: times + '_in', label: '投入数量', align: 'center' },
{ prop: times + '_out', label: '产出数量', align: 'center' },
{ prop: times + '_junk', label: '报废数量', align: 'center' },
{ prop: times + '_area', label: '产出面积', align: 'center' }
]
}
this.arr.push(subprop)
@ -150,14 +149,14 @@ export default {
{
prop: 'proLineName',
label: '生产线',
fixed: 'left',
showOverflowTooltip: true
align: 'center',
fixed: 'left'
},
{
prop: 'spec',
label: '产品规格',
fixed: 'left',
showOverflowTooltip: true
align: 'center',
fixed: 'left'
}
]
this.buildProps(res.data.nameData);

View File

@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-08-29 14:59:29
* @LastEditTime: 2023-10-16 15:19:04
* @LastEditTime: 2023-10-13 11:03:43
* @LastEditors: DY
* @Description:
-->
@ -13,7 +13,6 @@
ref="searchBarForm"
@headBtnClick="buttonClick" />
<base-table
v-if="showData.length"
class="right-aside"
v-loading="dataListLoading"
:table-props="tableProps"
@ -31,7 +30,6 @@
:method-list="tableBtn"
@clickBtn="handleClick" />
</base-table>
<div v-else class="no-data-bg"></div>
<pagination
:limit.sync="listQuery.pageSize"
:page.sync="listQuery.pageNo"
@ -190,8 +188,7 @@ export default {
type: 'button',
btnName: '导出',
name: 'export',
color: 'primary',
plain: true
color: 'warning',
}
],
};

View File

@ -6,17 +6,13 @@
@select-changed="handleSearchBarChanged"
@headBtnClick="buttonClick" />
<base-table
v-if="showData.length"
class="right-aside"
v-loading="dataListLoading"
:table-props="tableProps"
:page="listQuery.pageNo"
:limit="listQuery.pageSize"
:selectWidth="55"
:table-data="showData"
:selectWidth="55"
@selection-change="selectChange"
/>
<div v-else class="no-data-bg"></div>
<pagination
:limit.sync="listQuery.pageSize"
:page.sync="listQuery.pageNo"
@ -50,31 +46,38 @@ import html2canvas from 'html2canvas'
const tableProps = [
{
prop: 'proLineName',
label: '产线名称'
label: '产线名称',
align: 'center',
},
{
prop: 'sectionName',
label: '工段名称'
label: '工段名称',
align: 'center',
},
{
prop: 'inputNum',
label: '进片数量/片'
label: '进片数量/片',
align: 'center',
},
{
prop: 'outputNum',
label: '出片数量/片'
label: '出片数量/片',
align: 'center',
},
{
prop: 'lossNum',
label: '损耗数量/片'
label: '损耗数量/片',
align: 'center',
},
{
prop: 'lossArea',
label: '损耗面积/m²'
label: '损耗面积/m²',
align: 'center',
},
{
prop: 'lossRate',
label: '损耗比例/%'
label: '损耗比例/%',
align: 'center',
}
];
@ -131,20 +134,15 @@ export default {
},
{
type: 'button',
btnName: '查询',
btnName: '搜索',
name: 'search',
color: 'primary',
},
{
type: 'separate',
},
{
type: 'button',
btnName: '导出',
name: 'export',
color: 'primary',
plain: true
}
},
],
};
},