huminmin
15 小时以前 9d787c0f551bbf0dd096ebcbb79b8b69caaaddd7
src/views/productionManagement/productStructure/index.vue
@@ -18,7 +18,7 @@
        <el-button
            type="primary"
            text
            @click="showDetail(row.id)">{{ row.productName }}
            @click="showDetail(row)">{{ row.bomNo }}
        </el-button>
      </template>
    </PIMTable>
@@ -85,13 +85,14 @@
  {
    label: "BOM编号",
    prop: "bomNo",
    dataType: 'slot',
    slot: "detail",
    minWidth: 140
  },
  {
    label: "产品名称",
    prop: "productName",
    dataType: 'slot',
    slot: "detail",
    minWidth: 160
  },
  {
@@ -321,11 +322,14 @@
};
// 查看详情
const showDetail = (id) => {
const showDetail = (row) => {
  router.push({
    path: '/productionManagement/productStructureDetail',
    query: {
      id: id
      id: row.id,
      bomNo: row.bomNo || '',
      productName: row.productName || '',
      productModelName: row.productModelName || ''
    }
  });
};