Lius
2024-01-06 2145108a5bf0c721fea728e0a4936cb7007a92a2
mdc更新
已修改2个文件
已删除1个文件
75 ■■■■ 文件已修改
.env.test 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/DeviceProcessReport/DeviceProcessReportList.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.test
ÎļþÒÑɾ³ý
src/views/mdc/base/modules/DeviceProcessReport/DeviceProcessReportList.vue
@@ -83,7 +83,7 @@
        typeEquipment: 1,
        allowClear: true,
        allowClearSu: true,
        dates: [moment(), moment()],
        dates: [moment().subtract('days', 1), moment().subtract('days', 1)],
        identifying: [],
        queryParam: {
          pageSize: 20,
src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue
@@ -7,6 +7,16 @@
          <a-form layout="inline" @keyup.enter.native="searchQuery">
            <a-row :gutter="24">
              <a-col :md="5" :sm="5" :xs="5">
                <a-form-item label="驱动类型">
                  <a-auto-complete
                    v-model="queryParam.driveType"
                    :data-source="driveTypeList"
                    placeholder="请选择驱动类型"
                    :filter-option="filterOption"
                  />
                </a-form-item>
              </a-col>
              <a-col :md="5" :sm="5" :xs="5">
                <a-form-item label="时间">
                  <a-range-picker
                    :placeholder="['开始时间', '结束时间']"
@@ -17,27 +27,6 @@
                  />
                </a-form-item>
              </a-col>
              <!--<a-col :md="5" :sm="5" :xs="5">-->
              <!--<a-form-item label="班制">-->
              <!--<a-select v-model="queryParam.shiftId" placeholder="请选择班制"-->
              <!--@change="initShiftSubList" :allowClear="allowClear">-->
              <!--<a-select-option v-for="(em,index) in shiftList" :key="index" :value="em.value">-->
              <!--{{ em.label }}-->
              <!--</a-select-option>-->
              <!--</a-select>-->
              <!--</a-form-item>-->
              <!--</a-col>-->
              <!--<a-col :md="5" :sm="5" :xs="5">-->
              <!--<a-form-item label="班次">-->
              <!--<a-select v-model="queryParam.shiftSubId" placeholder="请选择班次" @change="initShiftSubListChange"-->
              <!--:allowClear="allowClearSu">-->
              <!--<a-select-option v-for="(em,index) in shiftSubList" :key="index" :value="em.value">-->
              <!--{{ em.label }}-->
              <!--</a-select-option>-->
              <!--</a-select>-->
              <!--</a-form-item>-->
              <!--</a-col>-->
              <a-col :md="8" :sm="8" :xs="8">
                <a-space>
                  <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
@@ -81,6 +70,7 @@
  import $ from 'jquery'
  import '@/components/table2excel/table2excel'
  import { ajaxGetDictItems, getDictItemsFromCache, duplicateCheck } from '@/api/api'
  import api from '@api/mdc'
  export default {
    name: 'OEEAnalysisList',
@@ -148,7 +138,7 @@
          {
            title: '班次',
            align: 'center',
            width: 300,
            width: 100,
            dataIndex: 'shift',
            ellipsis: true,
          },
@@ -250,7 +240,7 @@
            dataIndex: 'timeActuationRate',
            align: 'center',
            width: 110,
            customRender: text => text != 0 ? text * 100 + '%' : 0
            customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0
          },
          {
            title: '加工零件数(件)',
@@ -269,7 +259,7 @@
            dataIndex: 'performanceRate',
            align: 'center',
            width: 110,
            customRender: text => text != 0 ? text * 100 + '%' : 0
            customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0
          },
          {
            title: '废品数',
@@ -282,26 +272,28 @@
            dataIndex: 'passRate',
            align: 'center',
            width: 100,
            customRender: text => text != 0 ? text * 100 + '%' : 0
            customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0
          },
          {
            title: '设备综合效率',
            dataIndex: 'overallEquipmentEfficiency',
            align: 'center',
            width: 120,
            customRender: text => text != 0 ? text * 100 + '%' : 0
            customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0
          }
        ],
        dataSource: []
        dataSource: [],
        driveTypeList: []
      }
    },
    props: { nodeTree: '', Type: '', nodePeople: '' },
    created() {
      this.initShiftList()
      // this.initShiftList()
      this.queryParam.startTime = moment(this.dates[0]).format('YYYY-MM')
      this.queryParam.endTime = moment(this.dates[1]).format('YYYY-MM')
      this.queryParam.typeTree = '1'
      this.loadData()
      this.getDriveTypeByApi()
    },
    watch: {
      Type(valmath) {
@@ -418,6 +410,15 @@
        this.loadData()
      },
      /**
       * è°ƒç”¨æŽ¥å£èŽ·å–æŽ§åˆ¶ç³»ç»Ÿç±»åž‹
       */
      getDriveTypeByApi() {
        api.getDriveTypeApi().then((res) => {
          this.driveTypeList = res.result.map(item => item.value)
        })
      },
      loadData() {
        getAction(this.url.list, this.queryParam).then(res => {
          if (res.success) {
@@ -444,6 +445,17 @@
      handlePageSizeChange(current, size) {
        this.queryParam.pageSize = size
        this.loadData()
      },
      /**
       * è”想输入框筛选功能
       * @param input è¾“入的内容
       * @param option é…ç½®
       * @returns {boolean} åˆ¤æ–­æ˜¯å¦ç­›é€‰
       */
      filterOption(input, option) {
        return (
          option.componentOptions.children[0].text.toUpperCase().indexOf(input.toUpperCase()) >= 0
        )
      }
    }
  }