Bläddra i källkod

添加赠特标签

chenrui 6 månader sedan
förälder
incheckning
62c2052c61
1 ändrade filer med 6 tillägg och 15 borttagningar
  1. 6 15
      src/views/salesManagement/onlinePayOrder/detail.vue

+ 6 - 15
src/views/salesManagement/onlinePayOrder/detail.vue

@@ -106,21 +106,12 @@
             <!-- 产品编码 -->
             <template slot="productCode" slot-scope="text, record">
               <div v-if="detailData">
-                <div v-if="isOwerEdit">
-                  <a-badge count="急" v-if="record.oosFlag == 1">
-                    <div style="padding-right: 15px;">{{ text }}</div>
-                  </a-badge>
-                  <span v-else>{{ text }}</span>
-                </div>
-                <div v-else>
-                  <a-badge count="急" v-if="isAudit&&record.oosFlag == 1">
-                    <div style="padding-right: 15px;">{{ text }}</div>
-                  </a-badge>
-                  <a-badge count="缺" v-else-if="!isAudit&&(!record.currentStockQty || record.currentStockQty < record.qty)">
-                    <div style="padding-right: 15px;">{{ text }}</div>
-                  </a-badge>
-                  <span v-else>{{ text }}</span>
-                </div>
+                <span>{{ text }}</span>
+                <a-badge count="急" v-if="(isOwerEdit&&record.oosFlag == 1) || (!isOwerEdit&&isAudit&&record.oosFlag == 1)" :number-style="{ zoom:'80%',marginLeft:'5px' }"></a-badge>
+                <a-badge count="缺" v-if="!isOwerEdit&&!isAudit&&(!record.currentStockQty || record.currentStockQty < record.qty)" :number-style="{ zoom:'80%',marginLeft:'5px' }"></a-badge>
+                <a-badge count="赠" :number-style="{ backgroundColor: '#52c41a', zoom:'80%',marginLeft:'5px' }"></a-badge>
+                <a-badge count="券" :number-style="{ backgroundColor: '#FF5500', zoom:'80%',marginLeft:'5px' }"></a-badge>
+                <a-badge count="特" :number-style="{ backgroundColor: '#FED714',zoom:'80%',marginLeft:'5px' }"></a-badge>
               </div>
             </template>
             <!-- 操作 -->