Parcourir la source

修改查看项目结算时,追加结算显示错误的问题

余思翰 il y a 3 mois
Parent
révision
f3d176b938
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. 6
    3
      oa-ui/src/views/flowable/form/settleForm.vue

+ 6
- 3
oa-ui/src/views/flowable/form/settleForm.vue Voir le fichier

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-04-30 09:03:14
3
  * @Date: 2024-04-30 09:03:14
4
  * @LastEditors: Please set LastEditors
4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-02-27 13:46:03
5
+ * @LastEditTime: 2025-03-03 16:36:09
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container" v-loading="loading">
8
   <div class="app-container" v-loading="loading">
677
     async initForm() {
677
     async initForm() {
678
       this.loading = true
678
       this.loading = true
679
       const res = await listSettle({ settleId: this.taskForm.formId });
679
       const res = await listSettle({ settleId: this.taskForm.formId });
680
+      debugger
680
       if (res.total === 1) {
681
       if (res.total === 1) {
681
         this.form = res.rows[0];
682
         this.form = res.rows[0];
682
-        this.getIsAppend(this.taskForm.formId, res.rows[0].projectId) //判断是否为追加结算
683
+        this.isAppend = await this.getIsAppend(this.taskForm.formId, res.rows[0].projectId) //判断是否为追加结算
683
         this.flag = true;
684
         this.flag = true;
684
         const settleId = this.taskForm.formId;
685
         const settleId = this.taskForm.formId;
685
         const [
686
         const [
779
         const minTimestamp = Math.min(...allTimestamps);
780
         const minTimestamp = Math.min(...allTimestamps);
780
         const targetTimestamp = parseTime(target.reportTime);
781
         const targetTimestamp = parseTime(target.reportTime);
781
         const isAppend = targetTimestamp !== minTimestamp;
782
         const isAppend = targetTimestamp !== minTimestamp;
782
-        this.isAppend = isAppend;
783
+        return isAppend
784
+      } else {
785
+        return false
783
       }
786
       }
784
     },
787
     },
785
     async getBudgetSettle() {
788
     async getBudgetSettle() {

Loading…
Annuler
Enregistrer