skyouc
2025-02-28 a16d3fbdfd6f051ae471d01a874c528075407981
#优化
绑定集货区后,数据刷新
1个文件已修改
17 ■■■■■ 已修改文件
construction-data/src/components/datav/index.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
@@ -246,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)