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,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-04-30 09:03:14
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-02-27 13:46:03
5
+ * @LastEditTime: 2025-03-03 16:36:09
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container" v-loading="loading">
@@ -677,9 +677,10 @@ export default {
677 677
     async initForm() {
678 678
       this.loading = true
679 679
       const res = await listSettle({ settleId: this.taskForm.formId });
680
+      debugger
680 681
       if (res.total === 1) {
681 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 684
         this.flag = true;
684 685
         const settleId = this.taskForm.formId;
685 686
         const [
@@ -779,7 +780,9 @@ export default {
779 780
         const minTimestamp = Math.min(...allTimestamps);
780 781
         const targetTimestamp = parseTime(target.reportTime);
781 782
         const isAppend = targetTimestamp !== minTimestamp;
782
-        this.isAppend = isAppend;
783
+        return isAppend
784
+      } else {
785
+        return false
783 786
       }
784 787
     },
785 788
     async getBudgetSettle() {

Loading…
Annuler
Enregistrer