skyouc
2025-02-28 a16d3fbdfd6f051ae471d01a874c528075407981
construction-data/src/components/datav/index.vue
@@ -189,13 +189,9 @@
    }
  },
  created () {
    //获取当前执行任务
    this.getWaves()
    //获取当前播种墙库位信息
    this.getSeedLoc()
    //获取所有发货暂存区
    this.getAllPlatforms()
    this.fetch()
  },
  computed: {
    getLightStatus() {
      return (item)=> {
@@ -208,6 +204,14 @@
    }
  },
  methods: {
    fetch() {
      //获取当前执行任务
      this.getWaves()
      //获取当前播种墙库位信息
      this.getSeedLoc()
      //获取所有发货暂存区
      this.getAllPlatforms()
    },
    printPage() {
      // let element = document.querySelector('#datav');
      // let el = this.$refs.datav
@@ -228,6 +232,10 @@
    },
    //拍灯容器流动
    lightClick(item) {
      if (item.platformId == null || item.platformId == undefined || item.platformId == '') {
        this.$message.error('请打印订单明细,并选择目标集货区!!')
        return
      }
      this.slapLight(item)
    },
    //订单入库集货区,并打印单据
@@ -242,6 +250,7 @@
      // eslint-disable-next-line no-undef
      $ajax.post('/api/bind/shipping/platform', {orderId: order.id, waveId: order.waveId, platformId: plat.id}).then(response => {
        if (response.code === 200) {
          that.fetch()
          //隐藏发货区,执行打印
        } else {
          this.$message.error(response.msg)