小小儁爺
2024-11-05 8a28b3c54ae2a95789be46a104390b33630dd4fc
1.优化
已修改3个文件
34 ■■■■ 文件已修改
src/views/basicSettings/meterPrice.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/cj.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produce/stepReport.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/meterPrice.vue
@@ -484,7 +484,11 @@
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
    this.handleRequest()
  },
  mounted() {
@@ -572,14 +576,25 @@
      const { data: res } = await PartSelectRpute({ partcode: val })
      if (this.mesSetting.route) {
        this.routeDialogArr = res
        res.forEach(i => {
          i.unprice = parseFloat(i.unprice) === 0 ? '' : i.unprice
        })
        this.stepDialogArr = res
        this.stepDialogArr = []
        this.dialogForm.routecode = ''
      } else {
        this.stepDialogArr = res
        res.forEach(i => {
          i.unprice = parseFloat(i.unprice) === 0 ? '' : i.unprice
        })
        this.stepDialogArr = res
      }
    },
    async routeDialogChange(val) {
      const { data: res } = await RouteSelectStep({ partcode: this.dialogForm.partcode, routecode: val })
      res.forEach(i => {
        i.unprice = parseFloat(i.unprice) === 0 ? '' : i.unprice
      })
      this.stepDialogArr = res
    },
@@ -661,7 +676,7 @@
              'seq': i.step_seq,
              'isbott': i.isbott,
              'isend': i.isend,
              'unprice': i.unprice
              'unprice': i.unprice.toString().trim() === '' ? 0 : i.unprice
            })
          })
src/views/kanbanManager/cj.vue
@@ -217,7 +217,8 @@
          divData.scrollTop += 1
          if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) {
            divData.scrollTop = 0
            WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => {
            // WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => {
            WorkShopProduceTopData({ wkshopcode: '101,102' }).then(res => {
              this.tableDataCenterTop = res.data
              if (this.tableDataCenterTop.length > 22) {
src/views/produce/stepReport.vue
@@ -950,7 +950,7 @@
        'nextstepprice': '',
        'stepdesc': '',
        'planqty': 0,
        'startqty': 0, //
        'startqty': '', //
        'noreportqty': 0, // 未报数量
        'reportqty': 0, // 已报数量
        'noputqty': 0, // 不良数量
@@ -1053,7 +1053,11 @@
      xx: ''
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
  },
  mounted() {
@@ -1256,7 +1260,7 @@
        this.dialogForm.nextstepprice = res.nextstepprice
        this.dialogForm.stepdesc = res.stepdesc
        this.dialogForm.planqty = res.planqty
        this.dialogForm.startqty = res.startqty
        this.dialogForm.startqty = res.startqty === 0 ? '' : res.startqty
        this.dialogForm.noreportqty = res.noreportqty// 未报数量
        this.dialogForm.reportqty = res.reportqty // 已报数量
        this.dialogForm.noputqty = res.noputqty
@@ -1296,7 +1300,7 @@
        'nextstepprice': '',
        'stepdesc': '',
        'planqty': 0,
        'startqty': 0, //
        'startqty': '', //
        'noreportqty': 0, // 未报数量
        'reportqty': 0, // 已报数量
        'noputqty': 0, // 不良数量