changjiaming пре 7 месеци
родитељ
комит
5c3e40aafc
1 измењених фајлова са 18 додато и 18 уклоњено
  1. 18 18
      src/views/myTrade/settlementDocumentManagement/components/add.vue

+ 18 - 18
src/views/myTrade/settlementDocumentManagement/components/add.vue

@@ -91,25 +91,25 @@
       <el-form-item label="结束日期" prop="settlementEndDate" required>
         <el-date-picker v-model="ruleForm.settlementEndDate" value-format="yyyy-MM-dd" type="date" placeholder="选择结束日期" style="width: 100%;" disabled />
       </el-form-item>
-      <cy-info-title style="margin-top: 15px;">回款计划
-        <!-- <span style="font-size: 12px; color: #A3A8AC;">单位:元</span>
-        <b v-show="repayTotalNum" style="margin: 0 20px; color: #FF0000;">合计:{{ repayTotalNum }}</b> -->
-      </cy-info-title>
-      <div style="width: 100%; margin-bottom: 20px;">
-        <el-table :data="ruleForm.repayList" style="width: 100%;">
-          <el-table-column type="index" label="编号" width="300" show-overflow-tooltip/>
-          <el-table-column prop="repaymentDate" label="回款日期" show-overflow-tooltip>
-            <template slot-scope="scope">
-              <span>{{ scope.row.repaymentDate ? scope.row.repaymentDate.split(' ')[0] : '' }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="repaymentAmount" label="回款金额(元)" show-overflow-tooltip>
-          </el-table-column>
-        </el-table>
-        <div style="margin-top: 10px;">
-          <b v-show="repayTotalNum" style="margin: 0 20px; color: #FF0000;">合计:{{ repayTotalNum }}</b>
+      <template v-if="ruleForm.repayList && ruleForm.repayList.length > 0">
+        <cy-info-title style="margin-top: 15px;">回款计划
+        </cy-info-title>
+        <div style="width: 100%; margin-bottom: 20px;">
+          <el-table :data="ruleForm.repayList" style="width: 100%;">
+            <el-table-column type="index" label="编号" width="300" show-overflow-tooltip/>
+            <el-table-column prop="repaymentDate" label="回款日期" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <span>{{ scope.row.repaymentDate ? scope.row.repaymentDate.split(' ')[0] : '' }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column prop="repaymentAmount" label="回款金额(元)" show-overflow-tooltip>
+            </el-table-column>
+          </el-table>
+          <div style="margin-top: 10px;">
+            <b v-show="repayTotalNum" style="margin: 0 20px; color: #FF0000;">合计:{{ repayTotalNum }}</b>
+          </div>
         </div>
-      </div>
+      </template>
       <cy-info-title>结算文件(下游)</cy-info-title>
       <el-form-item label="下游结算清单附件" prop="newfileIds" required>
         <cy-upload