lilei 6 месяцев назад
Родитель
Сommit
6bb763d002
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      src/views/salesManagement/salesQueryNew/comps/productList.vue

+ 6 - 5
src/views/salesManagement/salesQueryNew/comps/productList.vue

@@ -125,11 +125,12 @@
       bordered>
       <!-- 产品编码 -->
       <template slot="productCode" slot-scope="text, record">
-        <span style="padding-right: 15px;">{{ text }}</span>
-        <a-badge count="促" v-if="record.promotionFlag=='GIFT'" :number-style="{ backgroundColor: '#52c41a', zoom:'80%' }"></a-badge>
-        <!-- <a-badge count="特" v-if="record.promotionFlag=='DISCOUNT'" :number-style="{ backgroundColor: '#faad14', zoom:'80%' }"></a-badge> -->
-        <a-badge count="槛" v-if="record.promotionFlag=='GATE'" :number-style="{ backgroundColor: '#108ee9', zoom:'80%' }"></a-badge>
-        <a-badge count="缺" v-if="Number(record.stockQty||0) < Number(record.unpushedQty||0)" :number-style="{ zoom:'80%' }"></a-badge>
+        <span style="padding-right: 10px;">{{ text }}</span>
+        <a-badge count="促" v-if="record.promotionFlag.indexOf('GIFT')>=0" :number-style="{ backgroundColor: '#52c41a', zoom:'0.7' }"></a-badge>
+        <a-badge count="特" v-if="record.promotionFlag.indexOf('DISCOUNT')>=0" :number-style="{ backgroundColor: '#faad14', zoom:'0.7' }"></a-badge>
+        <a-badge count="槛" v-if="record.promotionFlag.indexOf('GATE')>=0" :number-style="{ backgroundColor: '#108ee9', zoom:'0.7' }"></a-badge>
+        <a-badge count="正" v-if="record.promotionFlag.indexOf('REGULAR')>=0" :number-style="{ backgroundColor: '#ff5500', zoom:'0.7' }"></a-badge>
+        <a-badge count="缺" v-if="Number(record.stockQty||0) < Number(record.unpushedQty||0)" :number-style="{ zoom:'0.7' }"></a-badge>
       </template>
       <!-- 产品名称 -->
       <template slot="productName" slot-scope="text, record">