廖井涛
7 小时以前 f7a2fcdda7f1120498c5c5f75c5a99955fc54b43
north-glass-erp/northglass-erp/src/components/sd/order/OrderCraftDetail.vue
@@ -56,6 +56,9 @@
    {field: 'orderDetail.edgingType',width:120,  title: t('order.edgingType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}
  ],
  toolbarConfig: {
    slots:{
      buttons: "title"
    },
    zoom: true,
    custom: true
  }
@@ -64,7 +67,8 @@
})
let props = defineProps({
  orderId:null
  orderId:null,
  row: {}
})
onMounted(()=>{
  request.post(`/order/getOrderCraftDetailById/${props.orderId}`).then(res=>{
@@ -99,6 +103,11 @@
    copyTableCellValue(row,column)
  }
}
let showTitle = ref(false)
const changeZoom = ()=> {
  showTitle.value = !showTitle.value
}
</script>
<template>
@@ -108,6 +117,7 @@
        size="mini"
        class="mytable-scrollbar"
        ref="xGrid"
        @zoom="changeZoom"
        v-bind="gridOptions"
        @keydown="handleKeyDown"
        v-on="gridEvents"
@@ -127,6 +137,16 @@
        <span>{{ row.shape==='1'?$t('order.universalShape'):row.shape==='2'?$t('order.alien'):null }}</span>
      </template>
      <template #title>
        <span style="font-weight: bold" v-show="showTitle">
          {{ row.orderId }}
          {{ row.project?'--':'' }}
          {{row.project}}
          {{ row.batch?'--':'' }}
          {{row.batch}}
        </span>
      </template>
    </vxe-grid>
  </div>
</template>