Selaa lähdekoodia

fix(采购计划管理): 仅在存在采购来源清单时显示表格(来源销售订单)

liujt 6 kuukautta sitten
vanhempi
commit
55fd10bc33

+ 20 - 18
src/views/bpm/handleTask/components/purchasePlanManage/detailDialog.vue

@@ -1,24 +1,26 @@
 <template>
   <div>
     <el-form ref="form" :model="form" label-width="120px">
-      <div class="title" style="margin-bottom: 10px;"> 采购来源清单</div>  
-      <ele-pro-table
-        ref="preTable"
-        :needPage="false"
-        :columns="preColumns"
-        :toolkit="[]"
-        :datasource="form.outputDetailList"
-        row-key="id"
-        maxHeight="500px"
-        style="margin-bottom: 20px"
-      >
-        <template v-slot:technicalDrawings="{ row }">
-          <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
-        </template>
-        <template v-slot:files="{ row }">
-          <fileMain v-model="row.files" type="view"></fileMain>
-        </template>
-      </ele-pro-table>
+      <div v-if="form.outputDetailList.length > 0">
+        <div class="title" style="margin-bottom: 10px;"> 采购来源清单</div>  
+          <ele-pro-table
+            ref="preTable"
+            :needPage="false"
+            :columns="preColumns"
+            :toolkit="[]"
+            :datasource="form.outputDetailList"
+            row-key="id"
+            maxHeight="500px"
+            style="margin-bottom: 20px"
+          >
+            <template v-slot:technicalDrawings="{ row }">
+              <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
+            </template>
+            <template v-slot:files="{ row }">
+              <fileMain v-model="row.files" type="view"></fileMain>
+            </template>
+          </ele-pro-table>
+      </div>
       <div class="title"> 采购计划信息</div>
       <el-row>
         <el-col :span="8">