From f0c96eb16027787253d01e016f4d44458baed92f Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周五, 06 9月 2024 13:55:13 +0800
Subject: [PATCH] 测量岛数据展示

---
 yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/modules/qualityDetail.vue | 1638 +++++++++++++++++++++++++++++++++++++++++++++
 yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/index.vue                 |  455 ++++++++++++
 yiqi_iwara-scada-web/src/api/modular/main/WorkPieceInfoManage.js                 |    8 
 3 files changed, 2,100 insertions(+), 1 deletions(-)

diff --git a/yiqi_iwara-scada-web/src/api/modular/main/WorkPieceInfoManage.js b/yiqi_iwara-scada-web/src/api/modular/main/WorkPieceInfoManage.js
index bdd58ca..680df8f 100644
--- a/yiqi_iwara-scada-web/src/api/modular/main/WorkPieceInfoManage.js
+++ b/yiqi_iwara-scada-web/src/api/modular/main/WorkPieceInfoManage.js
@@ -91,7 +91,13 @@
     params
   })
 }
-
+export function accessInterfaceLogPage(params) {
+  return axios({
+    url: '/AccessInterfaceLog/page',
+    method: 'get',
+    params
+  })
+}
 /**
  * 瀵煎嚭鍦ㄥ埗鍝佺洃鎺т俊鎭殑Excel鏂囦欢 宸ヤ欢
  *
diff --git a/yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/index.vue b/yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/index.vue
new file mode 100644
index 0000000..20ee634
--- /dev/null
+++ b/yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/index.vue
@@ -0,0 +1,455 @@
+锘�<template>
+  <div>
+    <x-card :bordered="false" v-if="hasPerm('WorkPieceProcess:page')">
+      <div slot="content" class="table-page-search-wrapper">
+        <a-form :label-col="labelCol" :wrapper-col="wrapperCol">
+          <a-row :gutter="gutter">
+            <!-- <a-col :md="colMd" :sm="colSm">
+              <a-form-item label="鏌ヨ缁村害">
+                <a-select
+                  @change="changeModel"
+                  style="width: 100%"
+                  v-model="queryParam.selectModel"
+                  placeholder="璇烽�夋嫨鏌ヨ缁村害"
+                >
+                  <a-select-option v-for="(item, index) in modelEnums" :key="index" :value="item.code">
+                    {{ item.name }}
+                  </a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col> -->
+            <a-col :md="colMd" :sm="colSm">
+              <a-form-item label="宸ヤ欢鍙�">
+                <a-input v-model="queryParam.workPieceID" allow-clear placeholder="璇疯緭鍏ュ伐浠跺彿" />
+              </a-form-item>
+            </a-col>
+            <a-col :md="colMd" :sm="colSm">
+            <a-form-item label="鏉ユ簮" >
+                <a-input v-model="queryParam.createdUserName" allow-clear placeholder="璇疯緭鍏ユ潵婧�" />
+              </a-form-item>
+            </a-col>
+            <a-col :md="colMd" :sm="colSm">
+              <a-form-item label="宸ュ簭">
+                <a-select
+                  allow-clear
+                  style="width: 100%"
+                  v-model="queryParam.WorkingProcedureCurrent"
+                  placeholder="璇烽�夋嫨宸ュ簭"
+                >
+                  <a-select-option v-for="(item, index) in ProcessSelectData" :key="index" :value="item.code">
+                    {{ item.name }}
+                  </a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="colMd" :sm="colSm">
+                <a-form-item label="璐ㄩ噺鐘舵��">
+                  <a-select
+                    allow-clear
+                    style="width: 100%"
+                    v-model="queryParam.qualityState"
+                    placeholder="璇烽�夋嫨璐ㄩ噺鐘舵��"
+                  >
+                    <a-select-option v-for="(item, index) in QualityState" :key="index" :value="item.code">
+                      {{ item.name }}
+                    </a-select-option>
+                  </a-select>
+                </a-form-item>
+              </a-col>
+            <a-col :md="colMd2" :sm="colSm2">
+                <a-form-item :label="queryParam.selectModel == 1?'鍒濆鎺ㄩ�佹椂闂�':'鎺ㄩ�佹椂闂�'">
+                  <a-range-picker  style="width:100%" :show-time="{format:'HH:mm'}" v-model="queryParam.dates" format="YYYY-MM-DD HH:mm" />
+                </a-form-item>
+              </a-col>
+             
+            <!-- <template v-if="advanced">
+              
+
+            </template> -->
+            <a-col :md="colMd" :sm="colSm">
+              <span class="table-page-search-submitButtons">
+                <a-button type="primary" @click="getData(1)">鏌ヨ</a-button>
+                <a-button style="margin-left: 8px" @click="resetQueryData">閲嶇疆</a-button>
+                <!-- <a @click="advanced = !advanced" style="margin-left: 8px">
+                  {{ advanced ? '鏀惰捣' : '灞曞紑' }}
+                  <a-icon :type="advanced ? 'up' : 'down'" />
+                </a> -->
+              </span>
+            </a-col>
+          </a-row>
+        </a-form>
+      </div>
+    </x-card>
+
+    <a-card :bordered="false">
+      <!-- <div style="margin-bottom:10px">
+        <a-button type="info" icon="download" @click="exportExcel">瀵煎嚭Excel</a-button>
+      </div> -->
+
+      <a-spin :spinning="confirmLoading">
+        <a-table
+          :rowClassName="getRowBackGround"
+          :columns="columns"
+          :data-source="data"
+          :pagination="pages"
+          :rowKey="(record) => record.id"
+        >
+          <span slot="workPieceinitOnlineTime" slot-scope="text">
+            <span v-if="text">{{ moment(moment(text)).format('YYYY-MM-DD HH:mm:ss') }}</span>
+            <span v-else>{{ text }}</span>
+          </span>
+          <span slot="workPieceLastOfflineTime" slot-scope="text">
+            <span v-if="text">{{ moment(moment(text)).format('YYYY-MM-DD HH:mm:ss') }}</span>
+            <span v-else>{{ text }}</span>
+          </span>
+          <span slot="qualityDeatil" slot-scope="item, record">
+            <a  @click="$refs.qualityDetail.show(record)">璐ㄩ噺璇︽儏</a>
+          </span>
+        </a-table>
+      </a-spin>
+    </a-card>
+
+    <qualityDetail ref="qualityDetail" />
+  </div>
+</template>
+<script>
+// 宸ヤ欢鍔犲伐杩芥函
+import { STable, XCard } from '@/components'
+import { downloadFile,getThisWeekRange } from '@/utils/util'
+import moment from 'moment'
+import {
+  workPieceInfoMachiningPage,
+  accessInterfaceLogPage,
+  WorkPieceInfoToExcel,
+  workPieceProcessToExcel
+} from '@/api/modular/main/WorkPieceInfoManage'
+// 鑾峰彇璁惧涓嬫媺妗嗘暟鎹�
+import { getEquipmentName } from '@/api/modular/main/EquipmentBaseInfoManage'
+import qualityDetail from './modules/qualityDetail.vue'
+export default {
+  components: {
+    STable,
+    XCard,
+    qualityDetail
+  },
+  data() {
+    return {
+      gutter: 36,
+      colMd: 6,
+      colSm: 18,
+      colMd2: 10,
+      colSm2: 24,
+      labelCol: {
+        xs: { span: 24 },
+        sm: { span: 7 }
+      },
+      wrapperCol: {
+        xs: { span: 24 },
+        sm: { span: 17 }
+      },
+      advanced: false, // 楂樼骇鎼滅储 灞曞紑/鍏抽棴
+      confirmLoading: false,
+      currentSelModel:2,//褰撳墠閫夋嫨鐨勭淮鎶�
+      queryParam: { 
+        selectModel:2,
+        dates:[]
+      },
+      pages: {
+        current: 1,
+        pageSize: 10,
+        total: 0,
+        showSizeChanger: true,
+        showTotal: (total, range) => `${range[0]}-${range[1]}鍏�${total}鏉,
+        pageSizeOptions: ['10', '20', '30', '40','50','100','200','300','400','500'],
+        onChange: this.getData,
+        onShowSizeChange: this.pageSizeChange
+      },
+      columns: [
+        {
+          title: '搴忓彿',
+          dataIndex: 'index',
+          key: 'index',
+          align: 'center',
+          customRender: (text, record, index) => `${index + 1}`
+        },
+        {
+          title: '宸ヤ欢鍙�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'workPieceID'
+        },
+        {
+          title: '宸ュ簭',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'workingProcedureCurrent'
+        },
+        {
+          title: '璐ㄩ噺鐘舵��',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'qualityStateName'
+        },
+        {
+          title: '鎺ㄩ�佹椂闂�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'createdTime'
+        },
+        {
+          title: '鏉ユ簮',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'createdUserName'
+        },
+        {
+          title: '璐ㄩ噺璇︽儏',
+          align: 'center',
+          sorter: true,
+          scopedSlots: { customRender: 'qualityDeatil' }
+        }
+      ],
+      columns1: [
+        {
+          title: '宸ヤ欢鐘舵��',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'workPieceStateName'
+        },
+        {
+          title: '璁惧鍚嶇О',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'equipmentName'
+          // scopedSlots: {customRender: 'equipmentName'}
+        },
+        {
+          title: '鍒濆鎺ㄩ�佹椂闂�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'workPieceinitOnlineTime',
+          scopedSlots: {
+            customRender: 'workPieceinitOnlineTime'
+          }
+        },
+        {
+          title: '鏈�缁堜笅绾挎椂闂�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'workPieceLastOfflineTime',
+          scopedSlots: {
+            customRender: 'workPieceLastOfflineTime'
+          }
+        },
+        {
+          title: '鍔犲伐鏃堕暱',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'workPieceCurr'
+        }
+      ],
+      columns2: [
+      ],
+      data: [],
+      tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
+      // 鍔犺浇鏁版嵁鏂规硶 蹇呴』涓� Promise 瀵硅薄
+      // 璁惧涓嬫媺妗嗘暟鎹�
+      equitypeData: [],
+      // 宸ュ簭涓嬫媺妗嗘暟鎹�
+      WorkPieceSelectData: [],
+      selectedRowKeys: [],
+      selectedRows: [],
+      QualityState: []
+    }
+  },
+  watch: {
+    'queryParam.selectModel': {
+      handler(val, oldVal) {
+        // var old_dates=this.queryParam.dates;
+        // this.queryParam = { selectModel: val,dates:[] }
+        // this.queryParam.dates = old_dates;
+        // this.currentSelModel=val;
+        // if (val == 1) {
+        //   if (oldVal) {
+        //     this.columns.splice(3, this.columns2.length)
+        //   }
+        //   this.columns.splice(3, 0, ...this.columns1)
+        // } else if (val == 2) {
+        //   this.columns.splice(3, this.columns1.length)
+        //   this.columns.splice(3, 0, ...this.columns2)
+        // }
+      },
+      immediate: true
+    }
+  },
+  created() {
+    this.getEquipmentName()
+    this.ProcessSelectData = this.$options.filters['dictData']('process_type')
+    this.IsHaveOP80Code = this.$options.filters['dictData']('yes_or_no')
+    this.WorkPieceSelectData = this.$options.filters['dictData']('workpiece_state')
+
+    this.modelEnums = [
+      { name: '宸ヤ欢', code: 1 },
+      { name: '宸ヤ欢+宸ュ簭', code: 2 }
+    ]
+    this.QualityState = this.$options.filters['dictData']('quality_state')
+    this.initData();
+    this.getData()
+  },
+  methods: {
+    initData(){
+      this.queryParam.dates = [];
+      this.queryParam.dates = getThisWeekRange();
+    },
+    //閲嶇疆
+    resetQueryData(){
+      this.queryParam = { selectModel: this.currentSelModel,dates:[] }
+      this.initData();
+    },
+    setDisabled() {
+      this.data.forEach((item) => {
+        if (item.operationTypeHand == 'SPC') {
+          item.disabled =
+            item.workingProcedureCurrent == 'OP05' ||
+            //鍘绘帀OP70鐨勪笉鏄剧ず璐ㄩ噺鏁版嵁 銆怑ditby shaocx,2024-08-18銆�
+            //item.workingProcedureCurrent == 'OP70' ||
+            item.workingProcedureCurrent == 'OP80'
+        } else {
+          item.disabled = item.workingProcedureCurrent == 'OP05' || item.workingProcedureCurrent == 'OP50'
+          //鍘绘帀OP70鐨勪笉鏄剧ず璐ㄩ噺鏁版嵁 銆怑ditby shaocx,2024-08-18銆�
+          //|| item.workingProcedureCurrent == 'OP70'
+        }
+      })
+    },
+    moment,
+    // 鏌ヨ鍒楄〃鏁版嵁
+    async getData(pageNo) {
+      if (pageNo) this.pages.current = pageNo
+      const { current, pageSize } = this.pages
+      this.queryParam.pageNo = current
+      this.queryParam.pageSize = pageSize
+      this.confirmLoading = true
+      try {
+        if (this.queryParam.selectModel == 1) {
+          const { data } = await workPieceInfoMachiningPage(this.switchingDate())
+          this.data = data.rows
+          this.pages.total = data.totalRows
+        } else {
+          const { data } = await accessInterfaceLogPage(this.switchingDate())
+          this.data = data.rows
+          this.pages.total = data.totalRows
+        }
+      } catch (error) {
+        console.log(error)
+      }
+      this.confirmLoading = false
+
+      this.setDisabled()
+    },
+    getRowBackGround(record) {
+      if (this.queryParam.selectModel == 1) {
+        switch (
+          record.cololType // 杩欓噷鏍规嵁鏉′欢鏀瑰彉琛ㄦ牸鑳屾櫙鑹�
+        ) {
+          case 1:
+            return 'table-color-yellow'
+          case 2:
+            return 'table-color-green'
+          case 3:
+            return 'table-color-red'
+          case 4:
+            return 'table-color-blue'
+          case 5:
+            return 'table-color-gray'
+        }
+      }
+    },
+    // 瀵煎嚭
+    exportExcel() {
+      if (this.queryParam.selectModel == 1) {
+        WorkPieceInfoToExcel(this.queryParam)
+        .then((res) => {
+          downloadFile(res)
+        })
+        .catch((err) => {
+          console.info(err)
+          this.$message.error('涓嬭浇閿欒锛氳幏鍙栨枃浠舵祦閿欒' + err)
+        })
+      } else {
+        workPieceProcessToExcel(this.queryParam)
+        .then((res) => {
+          downloadFile(res)
+        })
+        .catch((err) => {
+          console.info(err)
+          this.$message.error('涓嬭浇閿欒锛氳幏鍙栨枃浠舵祦閿欒' + err)
+        })
+      }
+    },
+    /**
+     * 鏌ヨ鍙傛暟缁勮
+     */
+    switchingDate() {
+      const dates = this.queryParam.dates
+      if (dates != null) {
+        this.queryParam.startTimeBeginTime = moment(dates[0]).format('YYYY-MM-DD HH:mm')
+        this.queryParam.startTimeEndTime = moment(dates[1]).format('YYYY-MM-DD HH:mm')
+        if (dates.length < 1) {
+          delete this.queryParam.startTimeBeginTime
+          delete this.queryParam.startTimeEndTime
+        }
+      }
+      const obj = JSON.parse(JSON.stringify(this.queryParam))
+      return obj
+    },
+    getEquipmentName() {
+      getEquipmentName().then((res) => {
+        this.equitypeData = res.data
+      })
+    },
+    onSelectChange(rows) {
+      console.log(rows)
+    },
+    // 璁惧鏌ヨ妗嗙瓫閫�
+    filterOption(input, option) {
+      return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+    },
+    // pageSize 鍙樺寲鐨勫洖璋�
+    pageSizeChange(current, size) {
+      this.pages.pageSize = size
+      this.getData(1)
+    },
+    changeModel() {
+      this.data = []
+    }
+  }
+}
+</script>
+<style lang="less">
+.table-operator {
+  margin-bottom: 18px;
+}
+button {
+  margin-right: 8px;
+}
+
+.table-color-yellow{
+  background-color: rgb(202, 202, 86);
+}
+
+.table-color-green{
+  background-color: rgb(147, 228, 147);
+}
+
+.table-color-red{
+  background-color: rgb(236, 157, 157);
+}
+
+.table-color-blue{
+  background-color: rgb(156, 156, 231);
+}
+
+.table-color-gray{
+  background-color: rgb(181, 172, 172);
+}
+</style>
diff --git a/yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/modules/qualityDetail.vue b/yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/modules/qualityDetail.vue
new file mode 100644
index 0000000..e01e44a
--- /dev/null
+++ b/yiqi_iwara-scada-web/src/views/main/AccessInterfaceLog/modules/qualityDetail.vue
@@ -0,0 +1,1638 @@
+<template>
+  <a-modal :width="900" :visible="visible" title="璐ㄩ噺璇︽儏" @cancel="close" ref="modal">
+    <div ref="element" :style="{ height: height > 500 ? '500px' : 'auto' }" style="overflow-y: auto">
+      <div class="detail_title">
+        <div style="color: #000; font-size: 16px; font-weight: bold">宸ヤ欢鍙�:{{ record.workPieceID }}</div>
+        <!-- <div style="color: #f18201; font-size: 16px; font-weight: bold">
+          鎿嶄綔浜猴細{{ record.qualityStateUpdateUser }}
+        </div> -->
+      </div>
+
+      <!-- <div class="detail_item">
+        <div>
+          <span class="item_title">璁惧鍚嶇О锛� </span> <span class="detail_data">{{ record.equipmentName }}</span>
+        </div>
+      </div> -->
+
+      <div class="detail_item">
+        <div>
+          <span class="item_title">鎵�灞炲伐搴忥細 </span>
+          <span class="detail_data">{{ record.workingProcedureCurrent }}</span>
+        </div>
+      </div>
+
+      <div class="detail_item">
+        <div>
+          <span class="item_title">璐ㄩ噺鐘舵�侊細 </span> <span class="detail_data">{{ record.qualityStateName }}</span>
+        </div>
+      </div>
+
+<!--      <div class="detail_item">
+        <div>
+          <span class="item_title">鎿嶄綔鏂瑰紡锛� </span>
+          <span class="detail_data">{{ record.qualityStateUpdateMode }}</span>
+        </div>
+      </div> -->
+
+      <div v-if="record.operationTypeHand != 'SPC'">
+        <div class="detail_item" v-for="(item, index) in qualityDataCurrent" :key="index">
+          <div>
+            <span class="item_title">{{ item.title }}锛� </span>
+            <span class="detail_data">{{ data[item.dataIndex] }}</span>
+          </div>
+        </div>
+      </div>
+
+      <div v-else>
+        <div class="detail_item" v-for="(item, index) in qualityDataCurrent" :key="index">
+          <div>
+            <div class="item_title">{{ item.name }}锛�</div>
+
+            <div>
+              <!-- <a-row :gutter="[16,16]">
+                <a-col :span="8" v-for="(obj, ind) in item.data" :key="ind">
+                  <div>{{ obj.title }}锛歿{ data[obj.dataIndex] }}</div>
+                </a-col>
+              </a-row> -->
+
+              <div style="display:flex;flex-wrap: wrap;">
+                <div style="width:33%;margin-bottom:10px" v-for="(obj, ind) in item.data" :key="ind">
+                  <div ><span style="font-weight:600">{{ obj.title }}锛�</span>{{ data[obj.dataIndex] }}</div>
+                </div>
+              </div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+
+    <template slot="footer">
+      <a-button type="primary" @click="close">鍏抽棴</a-button>
+    </template>
+  </a-modal>
+</template>
+
+  <script>
+import { GetQualityInfoForID, GetQualityInfoSPCForID } from '@/api/modular/main/WorkPieceProcessManage'
+const qualityDataAll = {
+  EOP10: [
+    {
+      title: '杩炴潌鍘氬害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP10To1'
+    }
+  ],
+  EOP40: [
+    {
+      title: '杩炴潌鍘氬害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP40To1'
+    }
+  ],
+  EOP20: [
+    {
+      title: '灏忓ご瀛旂洿寰�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP20To1'
+    }
+  ],
+  EOP30: [
+    {
+      title: '娑ㄦ柇鍔涚煩',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP30To1'
+    },
+   {
+     title: '棰勬嫥绱у姏鐭�(CH1)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To2'
+   },
+   {
+     title: '棰勬嫥绱у姏鐭�(CH2)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To8'
+   },
+   {
+     title: '鏈�缁堝姏鐭�(CH3)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To3'
+   },
+   {
+     title: '缁堟嫥绱у姏鐭�(CH3)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To4'
+   },
+   {
+     title: '缁堟嫥绱ц搴�(CH3)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To5'
+   },
+   {
+     title: '鏈�缁堝姏鐭�(CH4)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To9'
+   },
+   {
+     title: '缁堟嫥绱у姏鐭�(CH4)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To10'
+   },
+   {
+     title: '缁堟嫥绱ц搴�(CH4)',
+     align: 'center',
+     sorter: true,
+     dataIndex: 'qualityOP30To11'
+   },
+    {
+      title: '琛鍘嬭鍔涚煩',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP30To6'
+    },
+    {
+      title: '琛鍘嬭浣嶇Щ',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP30To7'
+    }
+  ],
+  EOP35: [
+    {
+      title: '鍘嬭鍔涚煩',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP35To1'
+    },
+    {
+      title: 'Y杞翠綅绉�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP35To2'
+    }
+  ],
+  EOP60: [
+    {
+      title: '澶уご瀛旂洿寰�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP60To1'
+    },
+    {
+      title: '灏忓ご瀛旂洿寰�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP60To2'
+    }
+  ],
+  EOP70: [
+    {
+      title: '娓呮礂娓╁害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP70To1'
+    },
+    {
+      title: '娓呮礂鍘嬪姏',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP70To2'
+    },
+    {
+      title: '鍑哄彛澶勫伐浠舵俯搴�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP70To3'
+    }
+  ],
+  EOP80: [
+    {
+      title: '鍘氬害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80_Houdu'
+    },
+    {
+      title: '涓績璺�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80_ZXJ'
+    },
+    {
+      title: '澶уご瀛斿渾鏌卞害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80_DTKYZD'
+    },
+    {
+      title: '灏忓ご涓婇潰鍦嗗害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80_XTSMYD'
+    },
+    {
+      title: '灏忓ご涓嬮潰鍦嗗害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80_XTXMYD'
+    },
+    {
+      title: '澶уご瀛旂洿寰�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80_D_TKZJ'
+    },
+    {
+      title: '灏忓ご瀛旂洿寰�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80_X_TKZJ'
+    },
+    {
+      title: '澶уご閲嶉噺',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To1'
+    },
+    {
+      title: '灏忓ご閲嶉噺',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To2'
+    },
+    {
+      title: '鎬婚噸',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To3'
+    },
+    {
+      title: '寮洸',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To4'
+    },
+    {
+      title: '鎵害',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To5'
+    },
+    {
+      title: '澶уご鍨傜洿搴�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To6'
+    },
+    {
+      title: '灏忓ご鍨傜洿搴�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To10'
+    },
+    {
+      title: '澶уご瀛斿垎缁勭骇鍒�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To7'
+    },
+    {
+      title: '灏忓ご瀛斿垎缁勭骇鍒�',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To8'
+    },
+    {
+      title: '閲嶉噺缁勫埆',
+      align: 'center',
+      sorter: true,
+      dataIndex: 'qualityOP80To9'
+    }
+  ]
+}
+
+const qualityDataAllspC = {
+  OP10: {
+    SZB: {
+      name: '涓夊潗鏍�',
+      data: [
+        {
+          title: '涓ょ闈㈠帤',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP10_M1_DMH'
+        },
+        {
+          title: '骞抽潰搴23',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP10_M2_PMD'
+        },
+        {
+          title: '骞宠搴�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP10_M3_PXD'
+        },
+        {
+          title: '骞抽潰搴25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP10_M4_PMD'
+        },
+        {
+          title: '瀵圭О搴�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP10_M5_DCD'
+        }
+      ]
+    },
+    RGT: {
+      name: '浜哄伐妫�娴嬪彴',
+      data: [
+        {
+          title: 'OP10绔潰绮楃硻搴z25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP10_M1_DMC'
+        }
+      ]
+    }
+  },
+  OP20: {
+    SZB: {
+      name: '涓夊潗鏍�',
+      data: [
+        {
+          title: '1_鐩村緞_B_24',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M1_ZJB'
+        },
+        {
+          title: '2_鍦嗘煴搴0.008_B',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M2_YZD'
+        },
+        {
+          title: '4_鍨傜洿搴0.05C',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M3_CZD'
+        },
+        {
+          title: '4_鍨傜洿搴0.05C.X',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M4_CZD'
+        },
+        {
+          title: '4_鍨傜洿搴0.05C.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M5_CZD'
+        },
+        {
+          title: '5_浣嶇疆搴0.5D',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M6_WZD'
+        },
+        {
+          title: '5_浣嶇疆搴0.5D.X',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M7_WZD'
+        },
+        {
+          title: '5_浣嶇疆搴0.5D.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M8_WZD'
+        },
+        {
+          title: '7_鐩村緞_A _51.4',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M9_ZJA'
+        },
+        {
+          title: '9_X_144.5_B',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M10_144B'
+        },
+        {
+          title: '10_鐩村緞_K2_D8.3',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M11_ZJK'
+        },
+        {
+          title: '12_X_23.5_1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M12_12X'
+        },
+
+        {
+          title: '10_鐩村緞_K1_D8.3',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M13_ZJK'
+        },
+        {
+          title: '12_X_23.5_2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M14_12X'
+        },
+        {
+          title: '13_鍨傜洿搴0.08K_1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M15_CZD'
+        },
+        {
+          title: '13_鍨傜洿搴0.08K_2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M16_CZD'
+        },
+        {
+          title: '14_璺濈_Y_44.5_Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M17_JLY'
+        },
+        {
+          title: '15_瀵圭О搴0.2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M18_DCD'
+        },
+        {
+          title: '15_瀵圭О搴0.2.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M19_DCD'
+        },
+        {
+          title: '16_浣嶇疆搴0.2_1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M20_WZD'
+        },
+        {
+          title: '16_浣嶇疆搴0.2_1.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M21_WZD'
+        },
+        {
+          title: '16_浣嶇疆搴0.2_1.Z',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M22_WZD'
+        },
+        {
+          title: '16_浣嶇疆搴0.2_2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M23_WZD'
+        },
+        {
+          title: '16_浣嶇疆搴0.2_2.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M24_WZD'
+        },
+        {
+          title: '16_浣嶇疆搴0.2_2.Z',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M25_WZD'
+        },
+        {
+          title: '20鍚岃酱搴0.15_1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M26_TZD'
+        },
+        {
+          title: '20鍚岃酱搴0.15_1.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M27_TZD'
+        },
+        {
+          title: '20鍚岃酱搴0.15_1.Z',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M28_TZD'
+        },
+        {
+          title: '20鍚岃酱搴0.15_2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M29_TZD'
+        },
+        {
+          title: '20鍚岃酱搴0.15_2.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M30_TZD'
+        },
+        {
+          title: '20鍚岃酱搴0.15_2.Z',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M31_TZD'
+        },
+        {
+          title: 'X-鍊糭35',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M32_35X'
+        },
+        {
+          title: '鐩村緞_鍦嗘煴_D8_1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M33_ZJ1'
+        },
+        {
+          title: '鐩村緞_鍦嗘煴_D8_2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP20_M34_ZJ2'
+        }
+      ]
+    },
+    RGT: {
+      name: '浜哄伐妫�娴嬪彴',
+      data: [
+        {
+          title: 'OP20铻烘爴搴ч潰绮楃硻搴z25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M1_LMC'
+        },
+        {
+          title: 'OP20铻烘爴搴ч潰鏍归儴寮ч潰绮楃硻搴︼細Rz25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M2_LHC'
+        },
+        {
+          title: 'OP20杩炴潌澶уご瀛旂矖绯欏害Rz25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M3_LDC'
+        },
+        {
+          title: 'OP20澶уご瀛斾晶瑙掔矖绯欏害Rz25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M4_DJC'
+        },
+        {
+          title: 'OP20灏忓ご瀛斾晶瑙掔矖绯欏害Rz25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M5_XJC'
+        },
+        {
+          title: 'OP20铻烘爴瀛旂矖绯欏害Rz50',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M6_LKC'
+        },
+        {
+          title: 'OP20铻烘爴瀛斿�掕绮楃硻搴z25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M7_LJC'
+        },
+        {
+          title: 'OP20鎵撴爣璁伴潰绮楃硻搴z100',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M8_BMC'
+        },
+        {
+          title: 'OP20宸﹁灪绾筂8X1-6H',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M9_ZLW'
+        },
+        {
+          title: 'OP20鍙宠灪绾筂8X1-6H',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M10_YLW'
+        },
+        //鏆傛椂搴熷純鍙傛暟 [Editby shaocx,2024-08-11]
+        // {
+        //   title: 'OP20铻虹汗宸﹀簳瀛旂洿寰�7.51-7.59(鎵嬫寔閲忚P90)鏈夎灪绾硅烦杩�',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'rgT_OP20_M11_ZWT'
+        // },
+        // {
+        //   title: 'OP20铻虹汗鍙冲簳瀛旂洿寰�7.51-7.59(鎵嬫寔閲忚P90)鏈夎灪绾硅烦杩�',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'rgT_OP20_M12_YWT'
+        // },
+        {
+          title: 'OP20铻烘爴瀛斿乏娣卞害26卤0.2锛堟墜鎸侀噺瑙凱91锛�',
+          align: 'center',
+          sorter: true,
+          //dataIndex: 'rgT_OP20_M13_LZS'
+             //鍙樻洿 銆怑ditby shaocx,2024-08-09銆�
+             dataIndex: 'rgT_OP20_M11_LZS'
+        },
+        {
+          title: 'OP20铻烘爴瀛斿彸娣卞害26卤0.2(鎵嬫寔閲忚P91)',
+          align: 'center',
+          sorter: true,
+          //dataIndex: 'rgT_OP20_M14_LYS'
+          //鍙樻洿 銆怑ditby shaocx,2024-08-09銆�
+          dataIndex: 'rgT_OP20_M12_LZS'
+        },
+        {
+          title: 'OP20铻虹汗宸﹀簳瀛旀繁搴�42Max(鎵嬫寔閲忚P92)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP20_M13_LZD'
+        },
+        {
+          title: 'OP20铻虹汗鍙冲簳瀛旀繁搴�42Max(鎵嬫寔閲忚P92)',
+          align: 'center',
+          sorter: true,
+          //dataIndex: 'rgT_OP20_M16_LYD'
+           //鍙樻洿 銆怑ditby shaocx,2024-08-09銆�
+           dataIndex: 'rgT_OP20_M14_LYD'
+        },
+        {
+          title: 'OP20铻虹汗宸︽繁搴�38.3锛�+1/0锛�(鐢靛瓙铻虹汗娣卞害瑙勶級',
+          align: 'center',
+          sorter: true,
+          //dataIndex: 'rgT_OP20_M17_LZS'
+            //鍙樻洿 銆怑ditby shaocx,2024-08-09銆�
+            dataIndex: 'rgT_OP20_M15_LZS'
+        },
+        {
+          title: 'OP20铻虹汗鍙虫繁搴�38.3锛�+1/0锛�(鐢靛瓙铻虹汗娣卞害瑙勶級',
+          align: 'center',
+          sorter: true,
+          //dataIndex: 'rgT_OP20_M18_LYS'
+          //鍙樻洿 銆怑ditby shaocx,2024-08-09銆�
+          dataIndex: 'rgT_OP20_M16_LYS'
+        },
+        {
+          title: 'OP20澶уご瀛旀瘺鍧鍦嗚疆寤撶浉瀵逛簬澶уご瀛斿悓杞村害蠁1',
+          align: 'center',
+          sorter: true,
+          //dataIndex: 'rgT_OP20_M19_DLK'
+          //鍙樻洿 銆怑ditby shaocx,2024-08-09銆�
+          dataIndex: 'rgT_OP20_M17_DLK'
+        }
+      ]
+    },
+    SPC: {
+      name: 'SPC',
+      data: [
+        {
+          title: 'OP20鏍囪闈㈠皬澶村瓟绮楃硻搴z6-9',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M1_BXC'
+        },
+        {
+          title: 'OP20鏍囪闈㈠ぇ澶村瓟鍊掕娣卞害2.1卤0.15',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M5_BDS'
+        },
+        {
+          title: 'OP20鏍囪闈㈠ぇ澶村瓟鍊掕瑙掑害45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M6_BDJ'
+        },
+        {
+          title: 'OP20鏍囪闈㈠皬澶村瓟鍊掕娣卞害0.5卤0.2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M7_BXS'
+        },
+        {
+          title: 'OP20鏍囪闈㈠皬澶村瓟鍊掕瑙掑害30掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M8_BXJ'
+        },
+        {
+          title: 'OP20鏍囪闈㈠彸铻烘爴瀛斿乏鍊掕娣卞害0.6锛�+0.4/0锛�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M9_BYS'
+        },
+        {
+          title: 'OP20鏍囪闈㈠彸铻烘爴瀛斿乏鍊掕瑙掑害30掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M10_BYJ'
+        },
+        //鏆傛椂搴熷純鍙傛暟 [Editby shaocx,2024-08-11]
+        // {
+        //   title: 'OP20鏍囪闈㈠乏铻烘爴瀛斿乏鍊掕娣卞害0.6锛�+0.4/0锛�',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'spC_OP20_M11_BZS'
+        // },
+        // {
+        //   title: 'OP20鏍囪闈㈠乏铻烘爴瀛斿乏鍊掕瑙掑害30掳',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'spC_OP20_M12_BZJ'
+        // },
+        {
+          title: 'OP20闈炴爣璁伴潰澶уご瀛斿�掕娣卞害2.1卤0.15',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M13_FDS'
+        },
+        {
+          title: 'OP20闈炴爣璁伴潰澶уご瀛斿�掕瑙掑害45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M14_FDJ'
+        },
+        {
+          title: 'OP20闈炴爣璁伴潰灏忓ご瀛斿�掕娣卞害0.5卤0.2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M15_FXS'
+        },
+        {
+          title: 'OP20闈炴爣璁伴潰灏忓ご瀛斿�掕瑙掑害30掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M16_FXJ'
+        },
+        {
+          title: 'OP20闈炴爣璁伴潰宸﹁灪鏍撳瓟宸﹀�掕娣卞害0.6锛�+0.4/0锛�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M17_FZS'
+        },
+        {
+          title: 'OP20闈炴爣璁伴潰宸﹁灪鏍撳瓟宸﹀�掕瑙掑害30掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP20_M18_FZJ'
+        },
+        //鏆傛椂搴熷純鍙傛暟 [Editby shaocx,2024-08-11]
+        // {
+        //   title: 'OP20闈炴爣璁伴潰鍙宠灪鏍撳瓟宸﹀�掕娣卞害0.6锛�+0.4/0锛�',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'spC_OP20_M19_FYS'
+        // },
+        // {
+        //   title: 'OP20闈炴爣璁伴潰鍙宠灪鏍撳瓟宸﹀�掕瑙掑害30掳',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'spC_OP20_M20_FYJ'
+        // }
+      ]
+    }
+  },
+  OP30: {
+    SZB: {
+      name: '涓夊潗鏍�',
+      data: [
+        {
+          title: '43_鏂潰楂樺害宸�0',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP30_M1_DMG'
+        },
+        {
+          title: '44_澶уご鍦嗗害',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP30_M2_DYD'
+        }
+      ]
+    },
+    RGT: {
+      name: '浜哄伐妫�娴嬪彴',
+      data: [
+        {
+          title: 'OP30琛鍘嬭瑙掑害45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M1_YZJ'
+        },
+        {
+          title: 'OP30宸﹁灪鏍撶粓鍔涚煩绠$悊鑼冨洿35-70N.m',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M2_ZLX'
+        },
+        {
+          title: 'OP30鍙宠灪鏍撶粓鍔涚煩绠$悊鑼冨洿35-70N.m',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M3_YLX'
+        },
+        {
+          title: 'OP30鑳�鏂潰鎺夋福涓嶅厑璁歌秴杩�2X2.5mm',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M4_DFW'
+        },
+        {
+          title: 'OP30鑳�鏂潰涓婅繛鏉嗚灪鏍撳瓟鍐呭涓嶅厑璁告湁浠讳綍褰㈠紡鐨勮绾�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M5_LXW'
+        },
+        {
+          title: 'OP30鑳�鏂潰涓婁笉鍏佽鏈夋绾ц绾�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M6_MLW'
+        },
+        {
+          title: 'OP30鑳�鏂潰涓婅疆寤撻珮搴﹀嘲璋锋垨璋风殑楂樺害搴斿皬浜�2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M7_LKG'
+        },
+        {
+          title: 'OP30搴斿姏妲藉乏娣卞害0.3-0.8',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M8_CZS'
+        },
+        {
+          title: 'OP30搴斿姏妲藉彸娣卞害0.3-0.8',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M9_CYS'
+        },
+        {
+          title: 'OP30宸﹁灪鏍撴壄鐭╄揪鍒�20',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M10_ZLX'
+        },
+        {
+          title: 'OP30鍙宠灪鏍撴壄鐭╄揪鍒�20',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M11_YLX'
+        },
+        {
+          title: 'OP30宸﹁灪鏍撳姏鐭╃鐞嗚寖鍥�35-70N.m',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M12_ZXF'
+        },
+        {
+          title: 'OP30宸﹁灪鏍撳姏鐭╃鐞嗚搴�90卤5',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M13_ZXJ'
+        },
+        {
+          title: 'OP30鍙宠灪鏍撳姏鐭╃鐞嗚寖鍥�35-70N.m',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M14_YXF'
+        },
+        {
+          title: 'OP30鍙宠灪鏍撳姏鐭╃鐞嗚搴�90卤5',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M15_YXJ'
+        },
+        {
+          title: 'OP30鑳�鏂嚎澶栦晶鏉愭枡鎶樻柇(鎺夋福缂濋殭)闀垮害涓嶈秴杩�2锛岄珮搴︿笉瓒呰繃2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M16_ZDG'
+        },
+        {
+          title: 'OP30杩炴潌鎸夎瀹氱殑鎵煩鎷х揣鍚庯紝鑳�鏂潰搴旀棤浠讳綍鏄庢樉鍙鐨勮儉鏂嚎鐥曡抗',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP30_M17_ZDF'
+        }
+      ]
+    }
+  },
+  OP35: {
+    RGT: {
+      name: '浜哄伐妫�娴嬪彴',
+      data: [
+        {
+          title: 'OP35杩炴潌灏忓ご琛璐村悎搴︽潯浠朵竴',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP35_M26_LXT1'
+        },
+        {
+          title: 'OP35杩炴潌灏忓ご琛璐村悎搴︽潯浠朵簩',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP35_M27_LXT2'
+        }
+      ]
+    }
+  },
+  OP40: {
+    SZB: {
+      name: '涓夊潗鏍�',
+      data: [
+        {
+          title: '璺濈_22',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M1_JL22'
+        },
+        {
+          title: '骞抽潰搴D_0.03',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M2_PMD'
+        },
+        {
+          title: '骞抽潰搴C_0.03',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M3_PMC'
+        },
+        {
+          title: '骞宠搴0.05',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M4_PXD'
+        },
+        {
+          title: '瀵圭О1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M5_DC1'
+        },
+        {
+          title: '鍨傜洿搴�1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M6_ZCD'
+        },
+        {
+          title: '鍨傜洿搴�1.X',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M7_ZCD'
+        },
+        {
+          title: '鍨傜洿搴�1.Y',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP40_M8_ZCD'
+        }
+      ]
+    },
+    SPC: {
+      name: 'SPC',
+      data: [
+        {
+          title: 'OP40鏍囪闈袱绔潰绮楃硻搴︼細Rz10',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP40_M1_BDC'
+        },
+        {
+          title: 'OP40闈炴爣璁伴潰涓ょ闈㈢矖绯欏害锛歊z10',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP40_M2_FDC'
+        }
+      ]
+    }
+  },
+  OP50: {
+    SZB: {
+      name: '涓夊潗鏍�',
+      data: [
+        {
+          title: '璺濈_17_3d',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M1_JL17'
+        },
+        {
+          title: '瀵圭О_0.3_C',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M2_DCC'
+        },
+        {
+          title: '瀵圭О_0.3_C.Z',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M3_DCC'
+        },
+        {
+          title: '鍊炬枩搴12掳-1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M4_QXD'
+        },
+        {
+          title: '鍊炬枩搴12掳-2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M5_QXD'
+        },
+        {
+          title: '鍏冪礌澶硅1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M6_YSJ1'
+        },
+        {
+          title: '鍏冪礌澶硅2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M7_YSJ2'
+        },
+        {
+          title: '鍨傜嚎闀垮害_鍨傜洿绾�1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M8_CZX1'
+        },
+        {
+          title: '鍨傜嚎闀垮害_鍨傜洿绾�2',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP50_M9_CZX2'
+        }
+      ]
+    },
+    RGT: {
+      name: '浜哄伐妫�娴嬪彴',
+      data: [
+        {
+          title: 'OP50灏忓ご绔枩闈㈢矖绯欏害Rz25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP50_M28_XMC'
+        }
+      ]
+    },
+    SPC: {
+      name: 'SPC',
+      data: [
+        {
+          title: 'OP50鏍囪闈㈠皬澶村瓟鍊掕娣卞害涓�0.8(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP50_M21_BXS1'
+        },
+        {
+          title: 'OP50鏍囪闈㈠皬澶村瓟鍊掕娣卞害浜�0.8(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP50_M22_BXS2'
+        },
+        {
+          title: 'OP50鏍囪闈㈠皬澶村瓟鍊掕浜岃搴�45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP50_M23_BXJ'
+        },
+        {
+          title: 'OP50闈炴爣璁伴潰灏忓ご瀛斿�掕娣卞害涓�0.8(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP50_M24_FXS1'
+        },
+        {
+          title: 'OP50闈炴爣璁伴潰灏忓ご瀛斿�掕娣卞害浜�0.8(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP50_M25_FXS2'
+        },
+        {
+          title: 'OP50闈炴爣璁伴潰灏忓ご瀛斿�掕浜岃搴�45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP50_M26_FXJ'
+        }
+      ]
+    }
+  },
+  OP60: {
+    SZB: {
+      name: '涓夊潗鏍�',
+      data: [
+        //鏂板鍙傛暟 [Editby shaocx,2024-08-11]
+         {
+          title: '閿Ы娣卞害锛�1.5 +0.5/0锛�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP60_M1_CSD'
+        },
+        {
+          title: '閿Ы瀹藉害_3.2_Z锛�+0.1/0锛�',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP60_M2_CKD'
+        },
+        {
+          title: '璺濈鈥斺��2.3卤0.1',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'szB_OP60_M3_CJL'
+        },
+        //鏆傛椂搴熷純鍙傛暟 [Editby shaocx,2024-08-11]
+        // {
+        //   title: '鐩村緞_22_鍦咮',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M1_ZJB'
+        // },
+        // {
+        //   title: '鍦嗗害_0.003_B',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M2_YDB'
+        // },
+        // {
+        //   title: '骞宠搴0.2_A',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M3_PXD'
+        // },
+        // {
+        //   title: '骞宠搴0.2_A.Y',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M4_PXD'
+        // },
+        // {
+        //   title: '骞宠搴0.075_A',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M5_PXD'
+        // },
+        // {
+        //   title: '骞宠搴0.075_A.X',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M6_PXD'
+        // },
+        // {
+        //   title: '鐩村緞_53_鍦咥',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M7_ZJA'
+        // },
+        // {
+        //   title: '鍦嗘煴搴0.005',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M8_YZD'
+        // },
+        // {
+        //   title: 'X_144.5_鍦咮',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M9_144X'
+        // },
+        // {
+        //   title: '缁撴灉鍏冪礌1',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M10_YS1'
+        // },
+        // {
+        //   title: '璺濈_3.2_Z',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M11_JLZ'
+        // },
+        // {
+        //   title: '鍨傜嚎闀垮害_2.3',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M12_CXC'
+        // },
+        // {
+        //   title: '鍨傜洿搴0.04_A-C',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M13_CZD'
+        // },
+        // {
+        //   title: '鍨傜洿搴0.04_A-C.X',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M14_CZD'
+        // },
+        // {
+        //   title: '鍨傜洿搴0.04_A-C.Y',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M15_CZD'
+        // },
+        // {
+        //   title: '鍨傜洿搴0.04_B-C',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M16_CZD'
+        // },
+        // {
+        //   title: '鍨傜洿搴0.04_B-C.X',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M17_CZD'
+        // },
+        // {
+        //   title: '鍨傜洿搴0.04_B-C.Y',
+        //   align: 'center',
+        //   sorter: true,
+        //   dataIndex: 'szB_OP60_M18_CZD'
+        // }
+      ]
+    },
+   RGT: {
+      name: '浜哄伐妫�娴嬪彴',
+      data: [
+        {
+          title: 'OP60绾挎Ы闀垮害12.6(0.2/0)(鐢靛瓙鍗″昂)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP60_M29_XCD'
+        },
+        {
+          title: 'OP60绾挎Ы绯欏害Rz25',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'rgT_OP60_M30_XCD'
+        }
+      ]
+    },
+    SPC: {
+      name: 'SPC',
+      data: [
+        {
+          title: 'OP60鏍囪闈㈠皬澶村瓟绮楃硻搴︼細Rz3',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M3_BXC'
+        },
+        {
+          title: 'OP60鏍囪闈㈠ぇ澶村瓟绮楃硻搴︼細Rz6.3',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M4_BDC'
+        },
+        {
+          title: 'OP60鏍囪闈㈠ぇ澶村瓟鍊掕娣卞害1(+0.2/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M42_BDS'
+        },
+        {
+          title: 'OP60鏍囪闈㈠ぇ澶村瓟鍊掕瑙掑害45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M43_BDJ'
+        },
+        {
+          title: 'OP60鏍囪闈㈠皬澶村瓟鍊掕娣卞害涓�0.6(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M44_BXS1'
+        },
+        {
+          title: 'OP60鏍囪闈㈠皬澶村瓟鍊掕娣卞害浜�0.6(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M45_BXS2'
+        },
+        {
+          title: 'OP60鏍囪闈㈠皬澶村瓟鍊掕瑙掑害浜�45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M46_BXJ'
+        },
+        {
+          title: 'OP60鏍囪闈㈤敭妲戒晶闈㈠�掕娣卞害0.5max',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M47_BCS'
+        },
+        {
+          title: 'OP60鏍囪闈㈤敭妲戒晶闈㈠�掕瑙掑害45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M48_BCJ'
+        },
+        {
+          title: 'OP60闈炴爣璁伴潰澶уご瀛斿�掕娣卞害1(+0.2/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M49_FDS'
+        },
+        {
+          title: 'OP60闈炴爣璁伴潰澶уご瀛斿�掕瑙掑害45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M50_FDJ'
+        },
+        {
+          title: 'OP60闈炴爣璁伴潰灏忓ご瀛斿�掕娣卞害涓�0.6(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M51_FXS1'
+        },
+        {
+          title: 'OP60闈炴爣璁伴潰灏忓ご瀛斿�掕娣卞害浜�0.6(+0.3/-0.2)',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M52_FXS2'
+        },
+        {
+          title: 'OP60闈炴爣璁伴潰灏忓ご瀛斿�掕瑙掑害浜�45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M53_FXJ'
+        },
+        {
+          title: 'OP60闈炴爣璁伴潰閿Ы渚ч潰鍊掕娣卞害0.5max',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M54_FCS'
+        },
+        {
+          title: 'OP60闈炴爣璁伴潰閿Ы渚ч潰鍊掕瑙掑害45掳',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'spC_OP60_M55_FCJ'
+        }
+      ]
+    },
+    M31: {
+      name: 'M31',
+      data: [
+        {
+          title: 'Big_End_Top_X_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M1_BTX'
+        },
+        {
+          title: 'Big_End_Top_Y_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M2_BTY'
+        },
+        {
+          title: 'Big_End_Bot_X_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M3_BBX'
+        },
+        {
+          title: 'Big_End_Bot_Y_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M4_BBY'
+        },
+        {
+          title: 'Big_End_Cylindricity',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M5_BCY'
+        },
+        {
+          title: 'Small_End_Top_X_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M6_STX'
+        },
+        {
+          title: 'Small_End_Top_Y_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M7_STY'
+        },
+        {
+          title: 'Small_End_Bot_X_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M8_SBX'
+        },
+        {
+          title: 'Small_End_Bot_Y_Dia',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M9_SBY'
+        },
+        {
+          title: 'Small_End_Top_Ovalit',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M10_STO'
+        },
+        {
+          title: 'Small_End_Bot_Ovalit',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M11_SBO'
+        },
+        {
+          title: 'Distance',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M12_DSC'
+        },
+        {
+          title: 'Twist to A',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M13_TTA'
+        },
+        {
+          title: 'Bend to A',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M14_BTA'
+        },
+        {
+          title: 'Big_End_C_Squareness',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M15_SQE'
+        },
+        {
+          title: 'Sma_eND_c_Squareness',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M16_SQE'
+        },
+        {
+          title: '澶у瓟鍨傜洿搴鍚�0.04',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M17_SQE'
+        },
+        {
+          title: '澶у瓟鍨傜洿搴鍚�0.04',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M18_SQE'
+        },
+        {
+          title: '鍘氬害21.825卤0.025',
+          align: 'center',
+          sorter: true,
+          dataIndex: 'm31_OP60_M19_SQE'
+        },
+      ]
+    }
+  }
+}
+
+export default {
+  name: 'QualityDetail',
+  data() {
+    return {
+      visible: false,
+      height: 0,
+      record: {},
+      qualityDataAll,
+      qualityDataAllspC,
+      qualityDataCurrent: [],
+      data: {}
+    }
+  },
+  methods: {
+    show(record) {
+      this.visible = true
+      this.record = record
+      console.log(this.record)
+      if (record) {
+        record.operationTypeHand = 'SPC'
+        if (record.operationTypeHand == 'SPC') {
+          this.getQualityInfoForID()
+          this.qualityDataCurrent = this.qualityDataAllspC[record.workingProcedureCurrent]
+        } else {
+          this.getQualityInfoForID()
+          for (var key in this.qualityDataAll) {
+            if (record.equipmentID == 'EOP10' && record.workingProcedureCurrent=='OP40') {
+              debugger
+              this.qualityDataCurrent = this.qualityDataAll.EOP40
+              break
+            } else {
+              if (key == record.equipmentID) {
+                this.qualityDataCurrent = this.qualityDataAll[key]
+                break
+              }
+            }
+          }
+        }
+      }
+      this.$nextTick(() => {
+        this.height = this.$refs.element.offsetHeight // 100
+      })
+    },
+    async getQualityInfoForID() {
+      this.record.operationType = 'SPC'
+      const { id, workPieceID, workingProcedureCurrent, operationType } = this.record
+
+      const params = { qualityDataInfoID:id, workPieceID, operationType, workingProcedure: workingProcedureCurrent }
+      if (!params.operationType) {
+        params.operationType = ''
+      }
+     
+      if (operationType == 'SPC') {
+        console.log(params)
+        try {
+          const { data } = await GetQualityInfoSPCForID(params)
+          this.data = data || {}
+        } catch (error) {
+          console.log(error)
+        }
+      } else {
+        try {
+          const { data } = await GetQualityInfoForID(params)
+          this.data = data || {}
+        } catch (error) {
+          console.log(error)
+        }
+      }
+    },
+    close() {
+      this.visible = false
+      this.height = 0
+      this.qualityDataCurrent = []
+      this.data = {}
+    }
+  }
+}
+</script>
+
+  <style lang="less" scoped>
+.detail_title {
+  width: 100%;
+  display: flex;
+  justify-content: space-between;
+  padding-bottom: 10px;
+  border-bottom: 2px solid #f2f2f2;
+}
+
+.detail_item {
+
+  font-size: 15px;
+  padding: 10px 0 10px 5px;
+  border-bottom: 2px solid #f2f2f2;
+
+  .item_title {
+    color: #000;
+  }
+
+  .detail_data {
+    margin-left: 10px;
+  }
+
+  .detail_image {
+    width: 80px;
+    height: 80px;
+    margin-right: 5px;
+  }
+}
+</style>

--
Gitblit v1.9.3