小小儁爺
2026-03-12 0c8bc58122c1f620d5a9c692262e94f9fab351a6
1.设备模块优化2.看板修改
已修改13个文件
158 ■■■■■ 文件已修改
.env.production 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/checkStandard.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceManager/maintainStandard.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/bzcj.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/cgdd.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/ckgl.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/dccj.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/zhkb.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/zpcj.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mouldManager/mouldCheckStand.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produce/stepReport.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produce/stepReport2.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production
@@ -6,4 +6,4 @@
# 文件下载地址   下载数据模板地址
# 本地服务器
VUE_APP_BASE_API_FILE = 'http://121.196.36.24:8019/'
VUE_APP_BASE_API_FILE = 'http://192.168.2.138:8080/'
src/views/deviceManager/checkStandard.vue
@@ -597,7 +597,11 @@
      }
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
    this.handleRequest()
  },
  mounted() {
@@ -749,6 +753,9 @@
      if (this.tableDataDialog.length === 0) {
        return this.$message.info('设备关联点检项信息不能为空!')
      }
      if (this.tableDataDialog.filter(i => !i.checkitem_code).length > 0) {
        return this.$message.info('设备关联点检项信息不能为空!')
      }
      this.$refs.dialogForm.validate(valid => {
        if (valid) {
src/views/deviceManager/maintainStandard.vue
@@ -559,7 +559,11 @@
      }
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
    this.handleRequest()
  },
  mounted() {
@@ -710,6 +714,10 @@
        return this.$message.info('设备关联保养项信息不能为空!')
      }
      if (this.tableDataDialog.filter(i => !i.repairitem_code).length > 0) {
        return this.$message.info('设备关联保养项信息不能为空!')
      }
      this.$refs.dialogForm.validate(valid => {
        if (valid) {
          this.$store.state.app.buttonIsDisabled = true
src/views/kanbanManager/bzcj.vue
@@ -1,6 +1,10 @@
<template>
  <div>
    <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between">
    <div
      class="kb_dashboard"
      :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}"
      style="display:flex;flex-direction: column;justify-content: space-between"
    >
      <div class="kb_backgroundCustom" />
@@ -87,6 +91,11 @@
  name: 'Cjsc',
  data() {
    return {
      zoomX: 1,
      zoomY: 1,
      topDistance: 0,
      leftDistance: 0,
      headTime: '',
      cjzl03_xData: [],
@@ -162,8 +171,18 @@
    setInterval(() => {
      this.getWorkShopProduceBottomRightData()
    }, 30 * 1000)
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  methods: {
    // 获取页面高度
    getHeight() {
      this.zoomX = window.innerWidth / 1920
      this.zoomY = window.innerHeight / 1080
      this.topDistance = (window.innerHeight - 1080) / 2
      this.leftDistance = (window.innerWidth - 1920) / 2
    },
    getWorkShopProduceTopData() {
      WorkShopProduceTopData({ wkshopcode: '0503' }).then(res => {
        const flag = this.compareArrays(this.configTableTop.data, res.data)
src/views/kanbanManager/cgdd.vue
@@ -1,6 +1,9 @@
<template>
  <div>
    <div class="kb_dashboard">
    <div
      class="kb_dashboard"
      :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}"
    >
      <div class="kb_backgroundCustom" />
      <div class="kb_header">
@@ -84,6 +87,11 @@
  data() {
    return {
      zoomX: 1,
      zoomY: 1,
      topDistance: 0,
      leftDistance: 0,
      onLine: navigator.onLine, // 监听网络是否在线
      headTime: '',
@@ -196,12 +204,22 @@
    setInterval(() => {
      this.getPurchaseRight()
    }, 20 * 1000)
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  beforeDestroy() {
    window.removeEventListener('online', this.updateOnlineStatus)
    window.removeEventListener('offline', this.updateOnlineStatus)
  },
  methods: {
    // 获取页面高度
    getHeight() {
      this.zoomX = window.innerWidth / 1920
      this.zoomY = window.innerHeight / 1080
      this.topDistance = (window.innerHeight - 1080) / 2
      this.leftDistance = (window.innerWidth - 1920) / 2
    },
    // 更新网络状态
    updateOnlineStatus(e) {
      if (e.isFirst) {
src/views/kanbanManager/ckgl.vue
@@ -1,6 +1,9 @@
<template>
  <div>
    <div class="kb_dashboard">
    <div
      class="kb_dashboard"
      :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}"
    >
      <div class="kb_backgroundCustom" />
      <div class="kb_header">
@@ -96,6 +99,10 @@
  data() {
    return {
      zoomX: 1,
      zoomY: 1,
      topDistance: 0,
      leftDistance: 0,
      onLine: navigator.onLine, // 监听网络是否在线
      headTime: '',
@@ -221,12 +228,22 @@
    }, 20 * 1000)
    this.getEcharts()
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  beforeDestroy() {
    window.removeEventListener('online', this.updateOnlineStatus)
    window.removeEventListener('offline', this.updateOnlineStatus)
  },
  methods: {
    // 获取页面高度
    getHeight() {
      this.zoomX = window.innerWidth / 1920
      this.zoomY = window.innerHeight / 1080
      this.topDistance = (window.innerHeight - 1080) / 2
      this.leftDistance = (window.innerWidth - 1920) / 2
    },
    // 更新网络状态
    updateOnlineStatus(e) {
      if (e.isFirst) {
src/views/kanbanManager/dccj.vue
@@ -1,6 +1,10 @@
<template>
  <div>
    <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between">
    <div
      class="kb_dashboard"
      :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}"
      style="display:flex;flex-direction: column;justify-content: space-between"
    >
      <div class="kb_backgroundCustom" />
@@ -87,6 +91,10 @@
  name: 'Cjsc',
  data() {
    return {
      zoomX: 1,
      zoomY: 1,
      topDistance: 0,
      leftDistance: 0,
      headTime: '',
      cjzl03_xData: [],
@@ -162,8 +170,17 @@
    setInterval(() => {
      this.getWorkShopProduceBottomRightData()
    }, 30 * 1000)
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  methods: {
    // 获取页面高度
    getHeight() {
      this.zoomX = window.innerWidth / 1920
      this.zoomY = window.innerHeight / 1080
      this.topDistance = (window.innerHeight - 1080) / 2
      this.leftDistance = (window.innerWidth - 1920) / 2
    },
    getWorkShopProduceTopData() {
      WorkShopProduceTopData({ wkshopcode: '0502' }).then(res => {
        const flag = this.compareArrays(this.configTableTop.data, res.data)
src/views/kanbanManager/zhkb.vue
@@ -1,6 +1,10 @@
<template>
  <div>
    <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between">
    <div
      class="kb_dashboard"
      :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}"
      style="display:flex;flex-direction: column;justify-content: space-between"
    >
      <div class="kb_backgroundCustom" />
@@ -175,6 +179,10 @@
  name: 'Cjsc',
  data() {
    return {
      zoomX: 1,
      zoomY: 1,
      topDistance: 0,
      leftDistance: 0,
      headTime: '',
      LeftTopData01: [],
@@ -218,8 +226,17 @@
    setInterval(() => {
      this.getWorkShopCompreRightBottom()
    }, 25 * 1000)
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  methods: {
    // 获取页面高度
    getHeight() {
      this.zoomX = window.innerWidth / 1920
      this.zoomY = window.innerHeight / 1080
      this.topDistance = (window.innerHeight - 1080) / 2
      this.leftDistance = (window.innerWidth - 1920) / 2
    },
    getWorkShopCompreLeftTop() {
      const res = [
        { org_code: '0501', org_name: '装配车间' },
src/views/kanbanManager/zpcj.vue
@@ -1,6 +1,10 @@
<template>
  <div>
    <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between">
    <div
      class="kb_dashboard"
      :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}"
      style="display:flex;flex-direction: column;justify-content: space-between"
    >
      <div class="kb_backgroundCustom" />
@@ -87,6 +91,10 @@
  name: 'Cjsc',
  data() {
    return {
      zoomX: 1,
      zoomY: 1,
      topDistance: 0,
      leftDistance: 0,
      headTime: '',
      cjzl03_xData: [],
@@ -162,8 +170,17 @@
    setInterval(() => {
      this.getWorkShopProduceBottomRightData()
    }, 30 * 1000)
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  methods: {
    // 获取页面高度
    getHeight() {
      this.zoomX = window.innerWidth / 1920
      this.zoomY = window.innerHeight / 1080
      this.topDistance = (window.innerHeight - 1080) / 2
      this.leftDistance = (window.innerWidth - 1920) / 2
    },
    getWorkShopProduceTopData() {
      WorkShopProduceTopData({ wkshopcode: '0501' }).then(res => {
        const flag = this.compareArrays(this.configTableTop.data, res.data)
src/views/mouldManager/mouldCheckStand.vue
@@ -448,7 +448,11 @@
      }
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
  window.addEventListener('resize', this.getHeight)
  this.getHeight()
},
created() {
    this.handleRequest()
  },
  mounted() {
src/views/produce/stepReport.vue
@@ -1361,6 +1361,11 @@
            if (parseFloat(this.dialogForm.noreportqty) < parseFloat(this.dialogForm.startqty) + parseFloat(this.dialogForm.noputqty)) {
              return this.$message.info('合格数量加不良数量不能大于了未报数量!')
            }
            if (parseFloat(this.dialogForm.startqty) === 0 && this.defectTableData.length === 0) {
              return this.$message.info('合格数量不能为零!')
            }
            let inbarcode = ''
            if (this.tableData.find(i => i.id === this.radioSelected).isend === 'Y') {
              const data1 = {
src/views/produce/stepReport2.vue
@@ -1400,6 +1400,11 @@
            if (parseFloat(this.dialogForm.noreportqty) < parseFloat(this.dialogForm.startqty) + parseFloat(this.dialogForm.noputqty)) {
              return this.$message.info('合格数量加不良数量不能大于了未报数量!')
            }
            if (parseFloat(this.dialogForm.startqty) === 0 && this.defectTableData.length === 0) {
              return this.$message.info('合格数量不能为零!')
            }
            let inbarcode = ''
            if (this.tableData.find(i => i.id === this.radioSelected).isend === 'Y') {
              const data1 = {
vue.config.js
@@ -52,8 +52,8 @@
    },
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        target: 'http://121.196.36.24:8039', // 本地
        // target: 'http://192.168.2.138:8080', // 大岛2.0
        // target: 'http://121.196.36.24:8039', // 本地
        target: 'http://192.168.2.138:8080', // 大岛2.0
        changeOrigin: true, // 请求跨域时,需 配置此项
        pathRewrite: { // 路径重写,替换target中的请求地址
          ['^' + process.env.VUE_APP_BASE_API]: '/api/'