chenrui преди 1 година
родител
ревизия
d2289c64a7
променени са 1 файла, в които са добавени 15 реда и са изтрити 15 реда
  1. 15 15
      src/views/promotionRulesManagement/dealerPromotions/tableType3.vue

+ 15 - 15
src/views/promotionRulesManagement/dealerPromotions/tableType3.vue

@@ -99,7 +99,7 @@
           <span v-else>--</span>
         </div>
         <div v-else style="width:90%;background:#ccc;border-radius: 10px;text-align:center;">
-          <span v-if="rulesType=='1'">{{}}</span>
+          <span v-if="rulesType=='1'">{{ setData[0].provinceValue }}</span>
           <span v-else>{{}}</span>
         </div>
       </template>
@@ -120,8 +120,8 @@
           <span v-else>{{ (record.provinceDiscountRate||record.provinceDiscountRate==0)?record.provinceDiscountRate+'%':'--' }}</span>
         </div>
         <div v-else>
-          <span v-if="rulesType=='1'">{{(setData[0].provinceValue||setData[0].provinceValue==0)?setData[0].provinceValue+'%':'--'}}</span>
-          <span v-else>{{(setData[0].provinceSubtract || setData[0].provinceSubtract==0)?'-'+setData[0].provinceSubtract:'--'}}</span>
+          <span v-if="rulesType=='1'">{{ (setData[0].provinceValue||setData[0].provinceValue==0)?setData[0].provinceValue+'%':'--' }}</span>
+          <span v-else>{{ (setData[0].provinceSubtract || setData[0].provinceSubtract==0)?'-'+setData[0].provinceSubtract:'--' }}</span>
         </div>
       </template>
       <!-- 市价特价 -->
@@ -158,8 +158,8 @@
           <span v-else>{{ (record.cityDiscountRate||record.cityDiscountRate==0)?record.cityDiscountRate+'%':'--' }}</span>
         </div>
         <div v-else>
-          <span v-if="rulesType=='1'">{{(setData[0].cityValue||setData[0].cityValue==0)?setData[0].cityValue+'%':'--'}}</span>
-          <span v-else>{{(setData[0].citySubtract || setData[0].citySubtract==0)?'-'+setData[0].citySubtract:'--'}}</span>
+          <span v-if="rulesType=='1'">{{ (setData[0].cityValue||setData[0].cityValue==0)?setData[0].cityValue+'%':'--' }}</span>
+          <span v-else>{{ (setData[0].citySubtract || setData[0].citySubtract==0)?'-'+setData[0].citySubtract:'--' }}</span>
         </div>
       </template>
       <!-- 特约特价 -->
@@ -196,8 +196,8 @@
           <span v-else>{{ (record.specialDiscountRate||record.specialDiscountRate==0) ? record.specialDiscountRate+'%':'--' }}</span>
         </div>
         <div v-else>
-          <span v-if="rulesType=='1'">{{(setData[0].specialValue||setData[0].specialValue==0)?setData[0].specialValue+'%':'--'}}</span>
-          <span v-else>{{(setData[0].specialSubtract || setData[0].specialSubtract==0)?'-'+setData[0].specialSubtract:'--'}}</span>
+          <span v-if="rulesType=='1'">{{ (setData[0].specialValue||setData[0].specialValue==0)?setData[0].specialValue+'%':'--' }}</span>
+          <span v-else>{{ (setData[0].specialSubtract || setData[0].specialSubtract==0)?'-'+setData[0].specialSubtract:'--' }}</span>
         </div>
       </template>
       <!-- 设置起订量 -->
@@ -268,13 +268,13 @@ export default {
       type: [Number, String],
       default: ''
     },
-    rulesType:{
+    rulesType: {
       type: [Number, String],
       default: ''
     },
-    setData:{
-      type:Array,
-      default:()=>[]
+    setData: {
+      type: Array,
+      default: () => []
     }
   },
   data () {
@@ -319,10 +319,10 @@ export default {
         arr.splice(5, 0, { title: '省级折扣', scopedSlots: { customRender: 'provinceDiscount' }, width: '5%', align: 'center' })
         arr.splice(8, 0, { title: '市级折扣', scopedSlots: { customRender: 'cityDiscount' }, width: '5%', align: 'center' })
         arr.splice(11, 0, { title: '特约折扣', scopedSlots: { customRender: 'specialDiscount' }, width: '5%', align: 'center' })
-      }else{
-        arr.splice(5,0, { title: '省价直降金额', scopedSlots: { customRender: 'provinceDiscount' }, width: '5%', align: 'center' })
-        arr.splice(8,0, { title: '市价直降金额', scopedSlots: { customRender: 'cityDiscount' }, width: '5%', align: 'center' })
-        arr.splice(11,0, { title: '特约直降金额', scopedSlots: { customRender: 'specialDiscount' }, width: '5%', align: 'center' })
+      } else {
+        arr.splice(5, 0, { title: '省价直降金额', scopedSlots: { customRender: 'provinceDiscount' }, width: '5%', align: 'center' })
+        arr.splice(8, 0, { title: '市价直降金额', scopedSlots: { customRender: 'cityDiscount' }, width: '5%', align: 'center' })
+        arr.splice(11, 0, { title: '特约直降金额', scopedSlots: { customRender: 'specialDiscount' }, width: '5%', align: 'center' })
       }
       return arr
     }