Kaynağa Gözat

添加产品页面调整

xialei 1 yıl önce
ebeveyn
işleme
7b27a6df06
1 değiştirilmiş dosya ile 9 ekleme ve 2 silme
  1. 9 2
      src/views/product/addProduct/index.vue

+ 9 - 2
src/views/product/addProduct/index.vue

@@ -879,6 +879,13 @@ export default {
879 879
   methods: {
880 880
     handleInput(value, title) {
881 881
       if(title == '成本价格' || title == '分润比例'){
882
+        if (title == '分润比例') {
883
+          console.log('输入的分润比例', value.extension_one)
884
+          if(value.extension_one < 5){
885
+            value.extension_one = 5;
886
+            this.$message.error('分润比例不得低于百分之5')
887
+          }
888
+        }
882 889
         console.log('输入的内容:', value);
883 890
         var bili = value.extension_one / 100;//比例
884 891
         var gong_mer_profit = value.cost * bili//利润
@@ -1317,9 +1324,9 @@ export default {
1317 1324
             is_good: info.is_good,
1318 1325
             temp_id: info.temp_id,
1319 1326
             attr: info.attr,
1320
-            extension_type: info.extension_type,
1321 1327
             content: info.content,
1322
-            spec_type: info.spec_type,
1328
+            spec_type: info.spec_type.toString(),
1329
+            extension_type: info.extension_type.toString(),
1323 1330
             give_coupon_ids: info.give_coupon_ids,
1324 1331
             is_gift_bag: info.is_gift_bag,
1325 1332
             couponData: info.coupon,