From 556dfbbc92e754b6339399ca3ae714d00fc09202 Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期三, 17 七月 2024 17:03:31 +0800
Subject: [PATCH] 日工时审核页面字段修改

---
 src/components/do/b3-work-time-management/work-time-management.vue |   40 ++++++++++++++++++++++++++--------------
 1 files changed, 26 insertions(+), 14 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 77e90cd..d061a24 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
@@ -170,6 +170,9 @@
                 </el-option>
               </el-select>
             </el-form-item>
+            <el-form-item label="澶嶆牳璇存槑:">
+              <el-input v-model="formData0.reviewerRemark" type="textarea" :rows="3" size="small" :disabled="title=='鎵瑰噯'"></el-input>
+            </el-form-item>
           </el-form>
 				</el-col>
         <el-col :span="12">
@@ -178,6 +181,9 @@
               <el-input v-model="formData0.number" size="small" :disabled="title=='鎵瑰噯'"></el-input>
             </el-form-item>
             <el-form-item label="鏁伴噺:" required>
+              <el-input v-model="formData0.amount" size="small" :disabled="title=='鎵瑰噯'"></el-input>
+            </el-form-item>
+            <el-form-item label="澶嶆牳鏁伴噺:" required>
               <el-input v-model="formData0.reviewerNumber" size="small" :disabled="title=='鎵瑰噯'"></el-input>
             </el-form-item>
             <el-form-item label="鏍稿噯宸ユ椂:">
@@ -192,12 +198,6 @@
           </el-form>
 				</el-col>
 			</el-row>
-      <el-form :model="formData0" label-width="90px">
-        <el-form-item label="澶嶆牳璇存槑:">
-          <el-input v-model="formData0.reviewerRemark" type="textarea"
-  :rows="3" size="small" :disabled="title=='鎵瑰噯'"></el-input>
-        </el-form-item>
-      </el-form>
 			<span slot="footer" class="dialog-footer">
 				<el-row>
 					<el-button @click="submitCheck(0)" :loading="checkLoadN">{{title=='瀹℃牳'?'涓嶉�氳繃':'涓嶆壒鍑�'}}</el-button>
@@ -210,10 +210,10 @@
       :visible.sync="batchCheckDialog"
       width="30%"
       :before-close="closeBatchCheckDialog">
-      <span>杩欐槸涓�娈典俊鎭�</span>
+      <span>{{batchCheckDialogMessage}}</span>
       <span slot="footer" class="dialog-footer">
-    <el-button @click="batchCheckDialog = false">鍙� 娑�</el-button>
-    <el-button type="primary" @click="batchCheck">纭� 瀹�</el-button>
+    <el-button @click="batchCheckDialog = false">{{batchCheckTitle=='鎵归噺瀹℃牳'?'涓嶉�氳繃':'涓嶆壒鍑�'}}</el-button>
+    <el-button type="primary" @click="batchCheck">{{batchCheckTitle=='鎵归噺瀹℃牳'?'閫� 杩�':'鎵� 鍑�'}}</el-button>
   </span>
     </el-dialog>
   </div>
@@ -341,7 +341,7 @@
 					entity: {
 						week: null,
 						weekDay: null,
-						dateTime: null,
+						dateTime: [],
             name:null,
 						orderBy: {
 							field: 'id',
@@ -400,6 +400,7 @@
         reviewerNonproductiveTime:'',
         auxiliaryProject:'',
         reviewerRemark:'',
+        nameUser: ''
       },
       checkVisible:false,
       checkLoadN:false,
@@ -425,7 +426,8 @@
       outLoading:false,
       batchCheckTitle: '鎵归噺瀹℃牳',
       batchCheckDialog: false,
-      ValueTable0Selected: []
+      ValueTable0Selected: [],
+      batchCheckDialogMessage: ''
     }
   },
   watch:{
@@ -504,6 +506,8 @@
       let formattedDate2 = `${year}-${month}-${day} 23:59:59`;
       this.entity.dateTime.push(formattedDate1);
       this.entity.dateTime.push(formattedDate2);
+      this.componentData1.entity.dateTime.push(formattedDate1);
+      this.componentData1.entity.dateTime.push(formattedDate2);
       this.refreshTable()
     },
     getPower(){
@@ -575,6 +579,7 @@
         this.componentData1.entity = {...this.componentData1.entity,...entity}
         this.$refs['ValueTable1'].selectList()
       }
+      this.collectWorkingHours()
     },
     refresh(){
       this.entity = {}
@@ -686,6 +691,7 @@
         const isApprove = this.ValueTable0Selected.every(item => item.state !== '宸叉壒鍑�')
         console.log('this.isApprove---', isApprove)
         this.batchCheckTitle = e === 0 ? '鎵归噺瀹℃牳' : '鎵归噺鎵瑰噯'
+        this.batchCheckDialogMessage = e === 0 ? '鏄惁鍏ㄩ儴閫氳繃瀹℃牳?' : '鏄惁鍏ㄩ儴閫氳繃鎵瑰噯?'
         if (this.batchCheckTitle === '鎵归噺瀹℃牳') {
           if (isChecked) {
             this.batchCheckDialog = true
@@ -817,9 +823,15 @@
       return String(d)
     },
     collectWorkingHours(){
-      this.$axios.post(this.$api.auxiliaryOutputWorkingHours.collectWorkingHours).then(res => {
-        this.totalInfo = res.data
-      })
+      this.$axios.post(this.$api.auxiliaryOutputWorkingHours.collectWorkingHours,{
+    entity:this.componentData.entity
+   }, {
+  headers: {
+ 'Content-Type': 'application/json'
+ }
+ }).then(res => {
+ this.totalInfo = res.data
+ })
     },
     selectshiftByUser(){
       this.$axios.post(this.$api.auxiliaryWorkingHoursDay.selectshiftByUser).then(res => {

--
Gitblit v1.9.3