natasha 16 годин тому
батько
коміт
6eac7f052f
1 змінених файлів з 24 додано та 5 видалено
  1. 24 5
      src/views/finance_manage/FlowManage.vue

+ 24 - 5
src/views/finance_manage/FlowManage.vue

@@ -327,7 +327,8 @@
             <el-table-column label="自动升学" width="80">
               <template slot-scope="scope">
                 <span>{{
-                  scope.row.is_reservation === "true"
+                  scope.row.is_reservation === "true" &&
+                  scope.row.period_count === -1
                     ? scope.row.is_auto_adjust_study_phase === "true"
                       ? "是"
                       : "否"
@@ -527,7 +528,10 @@
                         @click.native.prevent="
                           handleEditInfo(scope.row, scope.$index)
                         "
-                        v-if="scope.row.is_reservation === 'true'"
+                        v-if="
+                          scope.row.is_reservation === 'true' &&
+                          scope.row.period_count === -1
+                        "
                         >修改</el-dropdown-item
                       >
                     </el-dropdown-menu>
@@ -562,7 +566,10 @@
                     @click.native.prevent="
                       handleEditInfo(scope.row, scope.$index)
                     "
-                    v-if="scope.row.is_reservation === 'true'"
+                    v-if="
+                      scope.row.is_reservation === 'true' &&
+                      scope.row.period_count === -1
+                    "
                   >
                     修改
                   </el-button>
@@ -765,11 +772,11 @@
         v-if="
           orderInfo.sale_model === 0 &&
           orderInfo.is_reservation === 'true' &&
-          orderInfo.is_auto_adjust_study_phase === 'true'
+          orderInfo.period_count === -1
         "
       >
         <h4>
-          年预定【{{
+          年订阅【{{
             orderInfo.is_auto_adjust_study_phase === "true"
               ? "自动升学"
               : "不自动升学"
@@ -794,6 +801,18 @@
           }}
         </p>
       </template>
+      <template v-else>
+        <h4>有效期</h4>
+        <p>
+          {{
+            orderInfo.valid_period_1_study_phase_name +
+            " &nbsp;&nbsp; " +
+            orderInfo.valid_period_1_begin_date +
+            " &nbsp;&nbsp;至&nbsp;&nbsp; " +
+            orderInfo.valid_period_1_end_date
+          }}
+        </p>
+      </template>
       <span slot="footer" class="dialog-footer">
         <el-button size="small" type="primary" @click="shelveVisible = false"
           >确 定</el-button