loulijun2021
2022-08-04 1e9fa82cb2fe2c15f46bd1dd73f5c878c74b83b8
src/views/zzmx/jpgj.vue
@@ -114,41 +114,48 @@
            prop="RowNum"
            width="50"
            label="序号"
            fixed
          />
          <el-table-column
            prop="partcode"
            min-width="160"
            label="产品编码"
            sortable="custom"
          />
          <el-table-column
            prop="partname"
            label="产品名称"
            min-width="160"
            sortable="custom"
          />
          <el-table-column
            prop="partspec"
            label="产品规格"
            width="110"
            min-width="110"
            sortable="custom"
          />
          <el-table-column
            prop="wksp_name"
            label="生产车间"
            min-width="110"
            sortable="custom"
          />
          <el-table-column
            prop="route_name"
            label="工艺路线"
            sortable="custom"
            min-width="110"
          />
          <el-table-column
            prop="stepname"
            label="加工工序"
            sortable="custom"
            min-width="110"
          />
          <el-table-column
            prop="eqp_name"
            label="加工设备"
            min-width="110"
            sortable="custom"
          />
          <el-table-column
@@ -178,6 +185,7 @@
          <el-table-column
            label="操作"
            fixed="right"
          >
            <template slot-scope="{row}">
              <div class="operationClass">
@@ -308,16 +316,19 @@
            prop="eqpcode"
            label="设备编码"
            sortable="custom"
            min-width="110"
          />
          <el-table-column
            prop="eqpname"
            label="设备名称"
            min-width="110"
            sortable="custom"
          />
          <el-table-column
            prop="wksp_name"
            sortable="custom"
            label="生产车间"
            min-width="110"
          />
          <el-table-column
            sortable="custom"
@@ -423,8 +434,6 @@
<script>
import Pagination from '@/components/Pagination'
import { AddUpdateOrganization, DeleteOrganization } from '@/api/jcsz'
import { getCookie } from '@/utils/auth'
import {
  BeatRateSearch, DeleteBeatRate,
  PartSelect,
@@ -528,18 +537,27 @@
    }
  },
  created() {
    this.getBeatRateSearch()
    this.getPartSelect()
    this.handleRequest()
  },
  mounted() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  methods: {
    handleRequest() {
      this.getBeatRateSearch().then(res => {
        if (res.code === '200') {
          this.getPartSelect()
        }
      })
    },
    async getBeatRateSearch() {
      const res = await BeatRateSearch(this.form)
      this.tableData = res.data
      this.total = res.count
      return { code: res.code }
    },
    // 排序改变时
    sortChange({ column, prop, order }) {