小小儁爺
2024-11-05 8a28b3c54ae2a95789be46a104390b33630dd4fc
src/views/basicSettings/meterPrice.vue
@@ -484,6 +484,10 @@
    }
  },
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
    this.handleRequest()
  },
@@ -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
            })
          })