廖井涛
8 天以前 a660db06773007b1be690e0674829c00a57aeb7b
north-glass-erp/northglass-erp/src/components/sd/order/OrderDetail.vue
@@ -66,6 +66,9 @@
  ],
  toolbarConfig: {
    slots:{
      buttons: "title"
    },
    zoom: true,
    custom: true
  },
@@ -87,7 +90,8 @@
})
let props = defineProps({
  orderId:null
  orderId:null,
  row: {}
})
const gridEvents = {
@@ -150,7 +154,10 @@
  }
}
let showTitle = ref(false)
const changeZoom = ()=> {
  showTitle.value = !showTitle.value
}
</script>
@@ -162,6 +169,7 @@
        class="mytable-scrollbar"
        ref="xGrid"
        v-bind="gridOptions"
        @zoom="changeZoom"
        @keydown="handleKeyDown"
        v-on="gridEvents"
    >
@@ -180,6 +188,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>