projects/mesxc-zhp #332
							
								
								
									
										6
									
								
								.env.dev
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								.env.dev
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
			
		||||
###
 | 
			
		||||
 # @Author: Do not edit
 | 
			
		||||
 # @Date: 2023-08-29 09:40:39
 | 
			
		||||
 # @LastEditTime: 2024-04-10 16:58:06
 | 
			
		||||
 # @LastEditTime: 2024-04-12 14:13:52
 | 
			
		||||
 # @LastEditors: zhp
 | 
			
		||||
 # @Description:
 | 
			
		||||
###
 | 
			
		||||
@@ -20,11 +20,11 @@ VUE_APP_TITLE = MES系统
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.1.8:48082'
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.4.173:9001'
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.1.104:48082'
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.0.33:48082'
 | 
			
		||||
VUE_APP_BASE_API = 'http://192.168.0.33:48082'
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.1.62:48082'
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.1.78:48082'
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.1.47:48082'
 | 
			
		||||
VUE_APP_BASE_API = 'http://192.168.1.78:48082'
 | 
			
		||||
# VUE_APP_BASE_API = 'http://192.168.1.78:48082'
 | 
			
		||||
# socket地址
 | 
			
		||||
# VUE_APP_Socket_API = 'ws://10.70.2.2:8080'
 | 
			
		||||
# VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081'
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: zwq
 | 
			
		||||
 * @Date: 2021-11-18 14:16:25
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @LastEditTime: 2024-04-11 13:35:46
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:26:22
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
<template>
 | 
			
		||||
@@ -100,20 +100,6 @@ import { parseTime } from '../../core/mixins/code-filter';
 | 
			
		||||
import attrAdd from './attr-add';
 | 
			
		||||
// import {DICT_TYPE, getDictDatas} from "@/utils/dict";
 | 
			
		||||
import { publicFormatter } from '@/utils/dict';
 | 
			
		||||
const tableBtn = [
 | 
			
		||||
	{
 | 
			
		||||
    type: this.$auth.hasPermi('extend:process-equ-material-bom-det:update')
 | 
			
		||||
      ? 'edit'
 | 
			
		||||
      : '',
 | 
			
		||||
		btnName: '编辑',
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
    type: this.$auth.hasPermi('extend:process-equ-material-bom-det:delete')
 | 
			
		||||
      ? 'delete'
 | 
			
		||||
      : '',
 | 
			
		||||
		btnName: '删除',
 | 
			
		||||
	},
 | 
			
		||||
];
 | 
			
		||||
const tableProps = [
 | 
			
		||||
	{
 | 
			
		||||
    prop: 'materialName',
 | 
			
		||||
@@ -150,7 +136,22 @@ export default {
 | 
			
		||||
	components: { SmallTitle, attrAdd },
 | 
			
		||||
	data() {
 | 
			
		||||
		return {
 | 
			
		||||
			tableBtn,
 | 
			
		||||
      tableBtn:[
 | 
			
		||||
        {
 | 
			
		||||
          type: this.$auth.hasPermi(
 | 
			
		||||
            'extend:process-equ-material-bom-det:query'
 | 
			
		||||
          )
 | 
			
		||||
            ? 'edit'
 | 
			
		||||
            : '',
 | 
			
		||||
          btnName: '编辑',
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          type: this.$auth.hasPermi('extend:process-equ-material-bom-det:delete')
 | 
			
		||||
            ? 'delete'
 | 
			
		||||
            : '',
 | 
			
		||||
          btnName: '删除',
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
			tableProps,
 | 
			
		||||
			topBtnConfig,
 | 
			
		||||
			addOrUpdateVisible: false,
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: zwq
 | 
			
		||||
 * @Date: 2021-11-18 14:16:25
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @LastEditTime: 2024-04-11 13:35:42
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:27:07
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
<template>
 | 
			
		||||
@@ -110,20 +110,6 @@ import { parseTime } from '../../core/mixins/code-filter';
 | 
			
		||||
import attrAdd from './attr-add';
 | 
			
		||||
// import {DICT_TYPE, getDictDatas} from "@/utils/dict";
 | 
			
		||||
 | 
			
		||||
const tableBtn = [
 | 
			
		||||
	{
 | 
			
		||||
    type: this.$auth.hasPermi('extend:process-equ-value-bom-det:update')
 | 
			
		||||
      ? 'edit'
 | 
			
		||||
      : '',
 | 
			
		||||
		btnName: '编辑',
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
    type: this.$auth.hasPermi('extend:process-equ-value-bom-det:delete')
 | 
			
		||||
      ? 'delete'
 | 
			
		||||
      : '',
 | 
			
		||||
		btnName: '删除',
 | 
			
		||||
	},
 | 
			
		||||
];
 | 
			
		||||
const tableProps = [
 | 
			
		||||
	{
 | 
			
		||||
    prop: 'valueName',
 | 
			
		||||
@@ -173,7 +159,20 @@ export default {
 | 
			
		||||
	components: { SmallTitle, attrAdd },
 | 
			
		||||
	data() {
 | 
			
		||||
		return {
 | 
			
		||||
			tableBtn,
 | 
			
		||||
      tableBtn:[
 | 
			
		||||
        {
 | 
			
		||||
          type: this.$auth.hasPermi('extend:process-equ-value-bom-det:update')
 | 
			
		||||
            ? 'edit'
 | 
			
		||||
            : '',
 | 
			
		||||
          btnName: '编辑',
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          type: this.$auth.hasPermi('extend:process-equ-value-bom-det:delete')
 | 
			
		||||
            ? 'delete'
 | 
			
		||||
            : '',
 | 
			
		||||
          btnName: '删除',
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
			tableProps,
 | 
			
		||||
			topBtnConfig,
 | 
			
		||||
      addOrUpdateVisible: false,
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: zwq
 | 
			
		||||
 * @Date: 2023-08-01 14:55:51
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @LastEditTime: 2024-04-10 16:31:48
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:12:55
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
<template>
 | 
			
		||||
@@ -131,7 +131,7 @@ export default {
 | 
			
		||||
          width: 250
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          type: this.$auth.hasPermi('monitoring:materiel-date-from:query') ? 'button' : '',
 | 
			
		||||
          type: this.$auth.hasPermi('base:material-use-log:query') ? 'button' : '',
 | 
			
		||||
          btnName: '查询',
 | 
			
		||||
          name: 'search',
 | 
			
		||||
          color: 'primary',
 | 
			
		||||
@@ -163,13 +163,13 @@ export default {
 | 
			
		||||
        // },
 | 
			
		||||
        {
 | 
			
		||||
          type: this.$auth.hasPermi(
 | 
			
		||||
            'monitoring:materiel-date-from:export'
 | 
			
		||||
            'base:material-use-log:export'
 | 
			
		||||
          )
 | 
			
		||||
            ? 'separate'
 | 
			
		||||
            : '',
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          type: this.$auth.hasPermi('monitoring:materiel-date-from:export') ? 'button' : '',
 | 
			
		||||
          type: this.$auth.hasPermi('base:material-use-log:export') ? 'button' : '',
 | 
			
		||||
        	btnName: '导出',
 | 
			
		||||
        	name: 'export',
 | 
			
		||||
          color: 'primary',
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: zwq
 | 
			
		||||
 * @Date: 2023-08-01 14:55:51
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @LastEditTime: 2024-04-07 16:26:56
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:16:03
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
<template>
 | 
			
		||||
@@ -97,10 +97,13 @@ export default {
 | 
			
		||||
        //   }
 | 
			
		||||
        //   : undefined,
 | 
			
		||||
        {
 | 
			
		||||
            type: 'processDetail',
 | 
			
		||||
        	 type: this.$auth.hasPermi(
 | 
			
		||||
             'extend:process-retrospect:query'
 | 
			
		||||
           )
 | 
			
		||||
            ? 'button'
 | 
			
		||||
            : '',
 | 
			
		||||
            btnName: '查看工艺详情',
 | 
			
		||||
          },
 | 
			
		||||
 | 
			
		||||
      ].filter((v) => v),
 | 
			
		||||
      list: [],
 | 
			
		||||
      listQuery: {
 | 
			
		||||
@@ -137,7 +140,7 @@ export default {
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
       	 type: this.$auth.hasPermi(
 | 
			
		||||
            'monitoring:process-traceability:query'
 | 
			
		||||
             'extend:process-retrospect:query'
 | 
			
		||||
          )
 | 
			
		||||
            ? 'button'
 | 
			
		||||
            : '',
 | 
			
		||||
 
 | 
			
		||||
@@ -1,14 +1,15 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: Do not edit
 | 
			
		||||
 * @Date: 2023-12-13 14:10:04
 | 
			
		||||
 * @LastEditTime: 2024-03-29 09:43:52
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:21:34
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
<template>
 | 
			
		||||
  <div>
 | 
			
		||||
    <el-row style="float: right; margin-bottom: 5px">
 | 
			
		||||
      <el-button v-if="!edit" :disabled="noData" size="small" @click="edit = true">编辑</el-button>
 | 
			
		||||
      <el-button v-if="!edit && this.$auth.hasPermi('base:report-auto-original-glass:update')" :disabled="noData"
 | 
			
		||||
        size="small" @click="edit = true">编辑</el-button>
 | 
			
		||||
      <el-button v-if="edit" size="small" @click="handleReturn()">返回</el-button>
 | 
			
		||||
      <el-button v-if="edit" size="small" @click="updateData">保存</el-button>
 | 
			
		||||
    </el-row>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2023-12-12 13:45:25
 | 
			
		||||
 * @LastEditTime: 2024-03-29 09:48:24
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:22:16
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -13,11 +13,12 @@
 | 
			
		||||
        </el-date-picker>
 | 
			
		||||
      </el-form-item>
 | 
			
		||||
      <el-button type="primary" @click="getDataList()">查询</el-button>
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('report:glass-month:export')" type="primary" size="small" plain
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" size="small" plain
 | 
			
		||||
        @click="handleExport">导出</el-button>
 | 
			
		||||
    </el-form>
 | 
			
		||||
    <el-row style="float: right; margin-bottom: 5px">
 | 
			
		||||
      <el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
 | 
			
		||||
        size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
 | 
			
		||||
      <el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
 | 
			
		||||
    </el-row>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2023-12-12 13:45:25
 | 
			
		||||
 * @LastEditTime: 2024-04-08 11:45:52
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:22:46
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -12,13 +12,15 @@
 | 
			
		||||
        <el-date-picker v-model="reportTime" type="month" size="small" @change="changeTime" placeholder="选择月">
 | 
			
		||||
        </el-date-picker>
 | 
			
		||||
      </el-form-item>
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('report:auto-production:query')" type="primary" @click="getDataList()">查询
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" @click="getDataList()">
 | 
			
		||||
        查询
 | 
			
		||||
      </el-button>
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('report:auto-production:export')" type="primary" size="small" plain
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('base:report-auto-production:export')" type="primary" size="small" plain
 | 
			
		||||
        @click="handleExport">导出</el-button>
 | 
			
		||||
    </el-form>
 | 
			
		||||
    <el-row style="float: right; margin-bottom: 5px">
 | 
			
		||||
      <el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
 | 
			
		||||
        size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
 | 
			
		||||
      <el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
 | 
			
		||||
    </el-row>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2023-12-12 13:45:25
 | 
			
		||||
 * @LastEditTime: 2024-03-29 09:48:41
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:22:51
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -14,13 +14,15 @@
 | 
			
		||||
          style="width: 350px" placeholder="选择周">
 | 
			
		||||
        </el-date-picker>
 | 
			
		||||
      </el-form-item>
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('report:auto-production:query')" type="primary" @click="getDataList()">查询
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" @click="getDataList()">
 | 
			
		||||
        查询
 | 
			
		||||
      </el-button>
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('report:auto-production:export')" type="primary" size="small" plain
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('base:report-auto-production:export')" type="primary" size="small" plain
 | 
			
		||||
        @click="handleExport">导出</el-button>
 | 
			
		||||
    </el-form>
 | 
			
		||||
    <el-row style="float: right; margin-bottom: 5px">
 | 
			
		||||
      <el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
 | 
			
		||||
        size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
 | 
			
		||||
      <el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
 | 
			
		||||
    </el-row>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2023-12-12 13:45:25
 | 
			
		||||
 * @LastEditTime: 2024-04-08 11:46:49
 | 
			
		||||
 * @LastEditTime: 2024-04-12 14:22:54
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -14,15 +14,17 @@
 | 
			
		||||
          style="width: 350px" placeholder="选择年">
 | 
			
		||||
        </el-date-picker>
 | 
			
		||||
      </el-form-item>
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('report:auto-production:query')" type="primary" @click="getDataList()">查询
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" @click="getDataList()">
 | 
			
		||||
        查询
 | 
			
		||||
      </el-button>
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('report:auto-production:export')" type="primary" size="small" plain
 | 
			
		||||
      <el-button v-if="this.$auth.hasPermi('base:report-auto-production:export')" type="primary" size="small" plain
 | 
			
		||||
        @click="handleExport">导出</el-button>
 | 
			
		||||
      <!-- <el-button type="primary" icon="el-icon-edit-outline" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="isSave" type="success" @click="saveDataList()">保存</el-button> -->
 | 
			
		||||
    </el-form>
 | 
			
		||||
    <el-row style="float: right; margin-bottom: 5px">
 | 
			
		||||
      <el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
 | 
			
		||||
        size="small" @click="editDataList()">编辑</el-button>
 | 
			
		||||
      <el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
 | 
			
		||||
      <el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
 | 
			
		||||
    </el-row>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user