projects/mes-test #133
10
.env.prod
10
.env.prod
@ -1,3 +1,10 @@
|
|||||||
|
###
|
||||||
|
# @Author: zhp
|
||||||
|
# @Date: 2023-11-07 19:11:40
|
||||||
|
# @LastEditTime: 2023-11-16 16:40:59
|
||||||
|
# @LastEditors: zhp
|
||||||
|
# @Description:
|
||||||
|
###
|
||||||
# 生产环境配置
|
# 生产环境配置
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
@ -5,7 +12,8 @@ ENV = 'production'
|
|||||||
VUE_APP_TITLE = MES系统
|
VUE_APP_TITLE = MES系统
|
||||||
|
|
||||||
# 芋道管理系统/生产环境
|
# 芋道管理系统/生产环境
|
||||||
VUE_APP_BASE_API = '/prod-api'
|
VUE_APP_BASE_API = 'http://192.168.0.33:48082'
|
||||||
|
|
||||||
|
|
||||||
# 根据服务器或域名修改
|
# 根据服务器或域名修改
|
||||||
# PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/'
|
# PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-11-07 19:47:48
|
* @Date: 2023-11-07 19:47:48
|
||||||
* @LastEditTime: 2023-11-08 16:59:32
|
* @LastEditTime: 2023-11-16 17:49:23
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
@ -12,7 +12,7 @@ export function processEquMaterialBomPage(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: '/extend/process-equ-material-bom/page',
|
url: '/extend/process-equ-material-bom/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-11-09 09:37:14
|
* @Date: 2023-11-09 09:37:14
|
||||||
* @LastEditTime: 2023-11-09 14:20:02
|
* @LastEditTime: 2023-11-16 17:47:21
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
// 获得能耗统计查询分页
|
|
||||||
export function processEquValueBomPage(data) {
|
export function processEquValueBomPage(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/extend/process-equ-value-bom/page',
|
url: '/extend/process-equ-value-bom/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-11-07 14:10:18
|
* @Date: 2023-11-07 14:10:18
|
||||||
* @LastEditTime: 2023-11-14 14:46:04
|
* @LastEditTime: 2023-11-16 17:49:52
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
@ -12,7 +12,7 @@ export function getStatisticalDataPage(query) {
|
|||||||
return request({
|
return request({
|
||||||
url: '/base/statistical-data/getStatisticData',
|
url: '/base/statistical-data/getStatisticData',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
data: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.init()
|
// this.init()
|
||||||
// console.log('aaaaaa')
|
// console.log('aaaaaa')
|
||||||
// this.otherPaper()
|
// this.otherPaper()
|
||||||
},
|
},
|
||||||
@ -227,6 +227,7 @@ export default {
|
|||||||
changeMode() {
|
changeMode() {
|
||||||
// hiprintTemplate.clear()
|
// hiprintTemplate.clear()
|
||||||
// console.log(this.modelData)
|
// console.log(this.modelData)
|
||||||
|
this.$nextTick(() => {
|
||||||
const { mode } = this
|
const { mode } = this
|
||||||
const provider = providers[mode]
|
const provider = providers[mode]
|
||||||
hiprint.init({
|
hiprint.init({
|
||||||
@ -255,8 +256,8 @@ export default {
|
|||||||
|
|
||||||
// console.log(this.modelData)
|
// console.log(this.modelData)
|
||||||
// console.log($('#hiprint-printTemplate').empty())
|
// console.log($('#hiprint-printTemplate').empty())
|
||||||
if (this.modelData) {
|
if (this.modelData != {}) {
|
||||||
// console.log(this.modelData);
|
console.log(this.modelData);
|
||||||
$('.hiprintEpContainer').empty()
|
$('.hiprintEpContainer').empty()
|
||||||
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
|
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
|
||||||
$('.hiprint-printTemplate').empty()
|
$('.hiprint-printTemplate').empty()
|
||||||
@ -267,6 +268,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$('.hiprintEpContainer').empty()
|
$('.hiprintEpContainer').empty()
|
||||||
|
console.log(this.modelData);
|
||||||
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
|
hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
|
||||||
$('.hiprint-printTemplate').empty()
|
$('.hiprint-printTemplate').empty()
|
||||||
// const templates = this.$ls.get('KEY_TEMPLATES', {})
|
// const templates = this.$ls.get('KEY_TEMPLATES', {})
|
||||||
@ -278,13 +280,14 @@ export default {
|
|||||||
paginationContainer: '.hiprint-printPagination'
|
paginationContainer: '.hiprint-printPagination'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// hiprintTemplate.design('#hiprint-printTemplate')
|
hiprintTemplate.design('#hiprint-printTemplate')
|
||||||
// console.log(hiprintTemplate)
|
// console.log(hiprintTemplate)
|
||||||
console.log(hiprintTemplate);
|
console.log(hiprintTemplate);
|
||||||
hiprintTemplate.design('#hiprint-printTemplate', { grid: true })
|
// hiprintTemplate.design('#hiprint-printTemplate', { grid: true })
|
||||||
// 获取当前放大比例, 当zoom时传true 才会有
|
// 获取当前放大比例, 当zoom时传true 才会有
|
||||||
this.scaleValue = hiprintTemplate.editingPanel.scale || 1
|
this.scaleValue = hiprintTemplate.editingPanel.scale || 1
|
||||||
// this.scaleValue = hiprintTemplate.editingPanel.scale || 1
|
// this.scaleValue = hiprintTemplate.editingPanel.scale || 1
|
||||||
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 设置纸张大小
|
* 设置纸张大小
|
||||||
|
@ -174,7 +174,7 @@ export default {
|
|||||||
this.listQuery.pageSize = 10;
|
this.listQuery.pageSize = 10;
|
||||||
this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined;
|
this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined;
|
||||||
this.listQuery.name = val.name ? val.name : undefined;
|
this.listQuery.name = val.name ? val.name : undefined;
|
||||||
this.listQuery.name = val.name ? val.name : undefined;
|
this.listQuery.code = val.code ? val.code : undefined;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case 'reset':
|
case 'reset':
|
||||||
|
@ -96,7 +96,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'input',
|
type: 'input',
|
||||||
label: '物料配方名称',
|
label: '参数配方名称',
|
||||||
// selectOptions: [],
|
// selectOptions: [],
|
||||||
// labelField: 'name',
|
// labelField: 'name',
|
||||||
// valueField: 'id',
|
// valueField: 'id',
|
||||||
@ -104,7 +104,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'input',
|
type: 'input',
|
||||||
label: '物料配方编码',
|
label: '参数配方编码',
|
||||||
// selectOptions: [],
|
// selectOptions: [],
|
||||||
// labelField: 'name',
|
// labelField: 'name',
|
||||||
// valueField: 'id',
|
// valueField: 'id',
|
||||||
@ -174,7 +174,7 @@ export default {
|
|||||||
this.listQuery.pageSize = 10;
|
this.listQuery.pageSize = 10;
|
||||||
this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined;
|
this.listQuery.equipmentId = val.equipmentId ? val.equipmentId : undefined;
|
||||||
this.listQuery.name = val.name ? val.name : undefined;
|
this.listQuery.name = val.name ? val.name : undefined;
|
||||||
this.listQuery.name = val.name ? val.name : undefined;
|
this.listQuery.code = val.code ? val.code : undefined;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case 'reset':
|
case 'reset':
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<DialogForm
|
<DialogForm
|
||||||
v-if="open"
|
v-if="open"
|
||||||
ref="form"
|
ref="form"
|
||||||
:dataForm="form"
|
v-model="form"
|
||||||
:rows="[
|
:rows="[
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<DialogForm
|
<DialogForm
|
||||||
v-if="open"
|
v-if="open"
|
||||||
ref="form"
|
ref="form"
|
||||||
:dataForm="form"
|
v-model="form"
|
||||||
:rows="[
|
:rows="[
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@ -208,7 +208,11 @@ export default {
|
|||||||
name: null,
|
name: null,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {
|
||||||
|
name: null,
|
||||||
|
code: undefined,
|
||||||
|
remark:undefined
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
|
@ -246,7 +246,7 @@ export default {
|
|||||||
// 获取工段列表
|
// 获取工段列表
|
||||||
async getWorksectionList(plId) {
|
async getWorksectionList(plId) {
|
||||||
const response = await this.$axios(
|
const response = await this.$axios(
|
||||||
'/base/workshop-section/listByParentId',
|
'/base/core-workshop-section/listByParentId',
|
||||||
{
|
{
|
||||||
params: {
|
params: {
|
||||||
id: plId,
|
id: plId,
|
||||||
|
@ -13,9 +13,8 @@
|
|||||||
<!-- <pre><code v-html="jsondemo"></code></pre> -->
|
<!-- <pre><code v-html="jsondemo"></code></pre> -->
|
||||||
|
|
||||||
<el-skeleton v-if="initing" :rows="6" animated />
|
<el-skeleton v-if="initing" :rows="6" animated />
|
||||||
<div v-else :class="{ 'no-data-bg': !list || list.length == 0 }">
|
<div v-else >
|
||||||
<base-table
|
<base-table
|
||||||
v-if="list && list.length > 0"
|
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
:page="queryParams.pageNo"
|
:page="queryParams.pageNo"
|
||||||
:limit="queryParams.pageSize"
|
:limit="queryParams.pageSize"
|
||||||
|
@ -72,6 +72,9 @@ export default {
|
|||||||
param: 'workOrderIdList',
|
param: 'workOrderIdList',
|
||||||
selectOptions: [],
|
selectOptions: [],
|
||||||
multiple: true,
|
multiple: true,
|
||||||
|
labelField: 'name',
|
||||||
|
valueField: 'id',
|
||||||
|
defaultSelect: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
@ -91,8 +94,8 @@ export default {
|
|||||||
label: '时间段',
|
label: '时间段',
|
||||||
dateType: 'daterange', // datetimerange
|
dateType: 'daterange', // datetimerange
|
||||||
// format: 'yyyy-MM-dd HH:mm:ss',
|
// format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
format: 'yyyy-MM-dd',
|
format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
valueFormat: 'timestamp',
|
valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
||||||
rangeSeparator: '-',
|
rangeSeparator: '-',
|
||||||
startPlaceholder: '开始日期',
|
startPlaceholder: '开始日期',
|
||||||
endPlaceholder: '结束日期',
|
endPlaceholder: '结束日期',
|
||||||
@ -246,7 +249,11 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.$route.query.woIdString) {
|
if (this.$route.query.woIdString) {
|
||||||
this.queryParams.workOrderIdList = this.$route.query.woIdString
|
console.log(this.$route.query.woIdString);
|
||||||
|
this.queryParams.workOrderIdList = [this.$route.query.woIdString]
|
||||||
|
// let arr =[]
|
||||||
|
this.searchBarFormConfig[0].defaultSelect = [this.$route.query.woIdString]
|
||||||
|
console.log(this.searchBarFormConfig[0].defaultSelect);
|
||||||
}
|
}
|
||||||
// if (this.$route.params.startTime && this.$route.params.endTime) {
|
// if (this.$route.params.startTime && this.$route.params.endTime) {
|
||||||
// this.searchBarFormConfig[0].defaultSelect = [
|
// this.searchBarFormConfig[0].defaultSelect = [
|
||||||
@ -302,6 +309,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
async getDataList() {
|
async getDataList() {
|
||||||
|
console.log(this.queryParams);
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
// 执行查询
|
// 执行查询
|
||||||
const {
|
const {
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-10-17 09:26:38
|
* @Date: 2023-10-17 09:26:38
|
||||||
* @LastEditTime: 2023-10-30 14:53:34
|
* @LastEditTime: 2023-11-16 18:52:00
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<doc-alert title="报表设计器" url="https://doc.iocoder.cn/report/" />
|
<!-- <doc-alert title="报表设计器" url="https://doc.iocoder.cn/report/" /> -->
|
||||||
<i-frame :src="url" />
|
<i-frame :src="url" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -17,6 +17,7 @@ import {getAccessToken} from "@/utils/auth";
|
|||||||
export default {
|
export default {
|
||||||
name: "JimuReport",
|
name: "JimuReport",
|
||||||
components: { iFrame },
|
components: { iFrame },
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: process.env.VUE_APP_BASE_API + "/jmreport/list?token=" + getAccessToken(),
|
url: process.env.VUE_APP_BASE_API + "/jmreport/list?token=" + getAccessToken(),
|
||||||
|
Loading…
Reference in New Issue
Block a user