lilei 1 year ago
parent
commit
32b12782c2
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/views/salesManagement/salesQueryNew/comps/productList.vue

+ 2 - 4
src/views/salesManagement/salesQueryNew/comps/productList.vue

@@ -181,10 +181,8 @@
       </template>
       <!-- 折扣 -->
       <template slot="discountPrice" slot-scope="text, record">
-        <div v-if="record.promotionFlag=='DISCOUNT'&&detailData">
-          <span v-if="detailData.buyerLevel=='PROVINCE'">{{ ((record.provinceDiscount)*100).toFixed(2) }}%</span>
-          <span v-if="detailData.buyerLevel=='CITY'">{{ ((record.cityDiscount)*100).toFixed(2) }}%</span>
-          <span v-if="detailData.buyerLevel=='SPECIAL'">{{ ((record.specialDiscount)*100).toFixed(2) }}%</span>
+        <div v-if="record.promotionFlag=='DISCOUNT'">
+          <span>{{ ((record.price/record.origPrice)*100).toFixed(2) }}%</span>
         </div>
         <div v-else>--</div>
       </template>