From c0e9df213221d16f6ab6c9106ae01ad571cd45fc Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 15 十一月 2024 09:08:02 +0800
Subject: [PATCH] 1.考勤打卡递交
---
src/views/basicSettings/meterPrice.vue | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/src/views/basicSettings/meterPrice.vue b/src/views/basicSettings/meterPrice.vue
index 50c69ae..78b3bd2 100644
--- a/src/views/basicSettings/meterPrice.vue
+++ b/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
})
})
--
Gitblit v1.9.3