Quellcode durchsuchen

交接单报错问题解决

cz vor 2 Jahren
Ursprung
Commit
ac03a3abdf

+ 2 - 9
src/components/MakeDocumentsDetails/CloudServices.vue

@@ -1,14 +1,7 @@
 <template>
   <div style="padding: 20px 2vw 0 2vw">
     <el-form ref="ruleForm" :model="form" label-width="0">
-      <el-table
-        :data="form.products"
-        size="small"
-        :cell-style="{ padding: '0' }"
-        header-row-class-name="tableHeader"
-        show-summary
-        :summary-method="getSummaries"
-      >
+      <el-table :data="form.products" size="small" :cell-style="{ padding: '0' }" header-row-class-name="tableHeader" show-summary>
         <el-table-column label="盈亏计算器" align="center" width="100">
           <template slot-scope="scope">
             <div v-if="scope.row.calculators && scope.row.calculators.length > 0">
@@ -95,7 +88,7 @@
         <el-table-column label="交接单" align="center" width="150">
           <template slot-scope="scope">
             <el-button type="text" @click="clickRemark(scope.row)">查看</el-button>
-            <el-button type="text" v-if="scope.row.attachments.length > 0" @click="clickFilePriview(scope.row)">查看附件</el-button>
+            <el-button type="text" v-if="scope.row.attachments && scope.row.attachments.length > 0" @click="clickFilePriview(scope.row)">查看附件</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 1 - 0
src/components/process/offers/OffersDetails.vue

@@ -210,6 +210,7 @@ export default {
                 }
               })
               this.form.products = res.data.data.list
+              console.log(this.form.products,'adada');
             },
             (err) => {
               console.log('offersDetailsGetProducts: ' + err)