From 36ca85c695cc3d6a6a645aca796d36b718249aee Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 26 二月 2025 15:03:35 +0800
Subject: [PATCH] 修改高低温、功率试验单位

---
 src/components/do/b3-work-time-management/work-time-management.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/components/do/b3-work-time-management/work-time-management.vue b/src/components/do/b3-work-time-management/work-time-management.vue
index 0bb665c..d99450d 100644
--- a/src/components/do/b3-work-time-management/work-time-management.vue
+++ b/src/components/do/b3-work-time-management/work-time-management.vue
@@ -63,7 +63,7 @@
       </el-radio-group>
       <div style="display: flex;align-items: center;">
         <p style="font-size: 14px;margin-right: 30px;">
-          鎬诲伐鏃舵眹鎬伙細<span style="font-size: 16px;color: #3A7BFA;" v-if="totalInfo">{{ (totalInfo['浜ч噺宸ユ椂姹囨��']+totalInfo['杈呭姪宸ユ椂姹囨��'])? (totalInfo['浜ч噺宸ユ椂姹囨��']+totalInfo['杈呭姪宸ユ椂姹囨��']):0 }}</span>&nbsp;&nbsp;&nbsp;&nbsp;浜ч噺宸ユ椂姹囨�伙細<span style="font-size: 16px;color: #3A7BFA;" v-if="totalInfo">{{totalInfo['浜ч噺宸ユ椂姹囨��']?totalInfo['浜ч噺宸ユ椂姹囨��']:0}}</span>&nbsp;&nbsp;&nbsp;&nbsp;杈呭姪宸ユ椂姹囨�伙細<span style="font-size: 16px;color: #3A7BFA;" v-if="totalInfo">{{totalInfo['杈呭姪宸ユ椂姹囨��']?totalInfo['杈呭姪宸ユ椂姹囨��']:0}}</span>
+          鎬诲伐鏃舵眹鎬伙細<span style="font-size: 16px;color: #3A7BFA;" v-if="totalInfo">{{ (totalInfo['浜ч噺宸ユ椂姹囨��']+totalInfo['杈呭姪宸ユ椂姹囨��'])? Number((totalInfo['浜ч噺宸ユ椂姹囨��']+totalInfo['杈呭姪宸ユ椂姹囨��'])).tofixed(4):0 }}</span>&nbsp;&nbsp;&nbsp;&nbsp;浜ч噺宸ユ椂姹囨�伙細<span style="font-size: 16px;color: #3A7BFA;" v-if="totalInfo">{{totalInfo['浜ч噺宸ユ椂姹囨��']?Number(totalInfo['浜ч噺宸ユ椂姹囨��']).tofixed(4):0}}</span>&nbsp;&nbsp;&nbsp;&nbsp;杈呭姪宸ユ椂姹囨�伙細<span style="font-size: 16px;color: #3A7BFA;" v-if="totalInfo">{{totalInfo['杈呭姪宸ユ椂姹囨��']?Number(totalInfo['杈呭姪宸ユ椂姹囨��']).tofixed(4):0}}</span>
         </p>
         <el-button size="small" type="primary" @click="openAdd" v-show="currentTable == 'ValueTable0'&&add">褰曞叆鏁版嵁</el-button>
         <el-button size="small" type="primary"
@@ -332,7 +332,8 @@
           }
         },
         requiredAdd: [],
-        requiredUp: []
+        requiredUp: [],
+        needSort: ['createTime', 'name']
 			},
       entityCopy: {},
 			upIndex: 0,
@@ -529,7 +530,6 @@
           if (power[i].menuMethod == 'insertAuxiliaryWorkingHoursDay') {
 						add = true
 					}
-          console.log(add)
           if (power[i].menuMethod == 'updateAuxiliaryWorkingHoursDay') {
 						up = true
 					}
@@ -679,11 +679,13 @@
       this.title = '瀹℃牳'
       this.formData0 = row;
       this.checkVisible = true
+      this.formData0.reviewerNumber = this.formData0.amount
     },
     handleRatify(row){
       this.title = '鎵瑰噯'
       this.formData0 = row;
       this.checkVisible = true
+      this.formData0.reviewerNumber = this.formData0.amount
     },
     handleChangeTask (row) {
       this.ValueTable0Selected = JSON.parse(JSON.stringify(row))
@@ -744,7 +746,7 @@
         }
         this.formData0.state = e==0?this.formData0.state:'宸插鏍�'
         this.$axios.post(this.$api.auxiliaryWorkingHoursDay.check, {
-            ...this.formData0
+          auxiliaryWorkingHoursDays:[this.formData0]
         }, {
           headers: {
             'Content-Type': 'application/json'
@@ -770,8 +772,10 @@
           this.checkLoadY = true
         }
         this.$axios.post(this.$api.auxiliaryWorkingHoursDay.approve, {
-            id:this.formData0.id,
-            state:e==0?'宸叉彁浜�':'宸叉壒鍑�'
+            auxiliaryWorkingHoursDays:[{
+              id:this.formData0.id,
+              state:e==0?'宸叉彁浜�':'宸叉壒鍑�'
+            }]
         }, {
           headers: {
             'Content-Type': 'application/json'

--
Gitblit v1.9.3