chenrui vor 9 Monaten
Ursprung
Commit
0f4ee3dddb

+ 1 - 1
src/views/easyPassManagement/promotionalActivities/edit.vue

@@ -525,7 +525,7 @@ export default {
       if (type === 'all') {
         formData.productNum = _this.$refs.chooseProductList.getChooseProductNum()
         if (formData.productNum && formData.productNum == 0) {
-          _this.$message.warning('请选择返券产品!')
+          _this.$message.warning('请选择产品!')
           return
         }
         if (formData.promoType === 'BUY_PROD_GIVE_VALID') {

+ 3 - 3
src/views/easyPassManagement/promotionalActivities/productTable.vue

@@ -30,7 +30,7 @@
         <!-- 赠 -->
         <template slot="resultValue" slot-scope="text,record">
           <a-input-number
-            :min="0"
+            :min="1"
             :step="1"
             :precision="0"
             :max="99999999"
@@ -60,9 +60,9 @@
         <!-- 特价价格-->
         <template slot="specialOffer" slot-scope="text,record">
           <!-- 直降 -->
-          <span v-if="discountType==='STRAIGHT_DOWN'">{{ (record.shopProductPrice-record.resultValue).toFixed(2) }}</span>
+          <span v-if="discountType==='STRAIGHT_DOWN'">{{ record.resultValue?(record.shopProductPrice-record.resultValue).toFixed(2):'--' }}</span>
           <!-- 折扣 -->
-          <span v-else>{{ (record.shopProductPrice*record.resultValue/100).toFixed(2) }}</span>
+          <span v-else>{{ record.resultValue?(record.shopProductPrice*record.resultValue/100).toFixed(2):'--' }}</span>
         </template>
         <!-- 操作 -->
         <template slot="action" slot-scope="text,record">