pjb
2025-06-20 7faf824cd85d9e2fb7a270e807f10c5c638815d5
construction-data/src/components/datav/index.vue
@@ -189,13 +189,12 @@
    }
  },
  created () {
    //获取当前执行任务
    this.getWaves()
    //获取当前播种墙库位信息
    this.getSeedLoc()
    //获取所有发货暂存区
    this.getAllPlatforms()
    let that = this
    setInterval(() => {
        that.fetch()
    }, 10000)
  },
  computed: {
    getLightStatus() {
      return (item)=> {
@@ -208,6 +207,14 @@
    }
  },
  methods: {
    fetch() {
      //获取当前执行任务
      this.getWaves()
      //获取当前播种墙库位信息
      this.getSeedLoc()
      //获取所有发货暂存区
      this.getAllPlatforms()
    },
    printPage() {
      // let element = document.querySelector('#datav');
      // let el = this.$refs.datav
@@ -246,6 +253,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)