Parcourir la source

bug修复 产品定价-成本价显示

chenrui il y a 4 ans
Parent
commit
59821087f9
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      src/views/productManagement/productPricing/list.vue

+ 5 - 2
src/views/productManagement/productPricing/list.vue

@@ -72,7 +72,7 @@
       :rowKey="(record) => record.id"
       :columns="columns"
       :data="loadData"
-      :scroll="{ x: 2110, y: tableHeight }"
+      :scroll="{ x: 2430, y: tableHeight }"
       bordered>
       <!-- 产品分类 -->
       <template slot="productType" slot-scope="text, record">
@@ -86,7 +86,10 @@
       <!-- 成本价 -->
       <template slot="sterminaldsdPrice" slot-scope="text, record">
         <div v-if="record.supplierProductList">
-          <p v-for="(item, index) in record.supplierProductList" :key="index" style="margin: 0;">{{ item.cost.toFixed(2) + '元 - ' + item.supplierName + ';' }}</p>
+          <p v-for="(item, index) in record.supplierProductList" :key="index" style="margin: 0;">
+            <span>{{ (item.cost || item.cost==0) ? item.cost.toFixed(2):'--' }}</span>元 -
+            <span>{{ item.supplierName }}</span>;
+          </p>
         </div>
         <span v-else>--</span>
       </template>