Browse Source

新增是否兑换商品

wzy 8 tháng trước cách đây
mục cha
commit
2a6e9b1a75
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      src/views/commodity/commoditySystem/addCommodity.vue

+ 8 - 0
src/views/commodity/commoditySystem/addCommodity.vue

@@ -109,6 +109,12 @@
                 <el-radio :label="0">下架</el-radio>
               </el-radio-group>
             </el-form-item>
+            <el-form-item label="兑换专柜" prop="counterType">
+              <el-radio-group v-model="form.counterType">
+                <el-radio :label="1">是</el-radio>
+                <el-radio :label="2">否</el-radio>
+              </el-radio-group>
+            </el-form-item>
             <el-form-item label="允许超卖" prop="ifOversold">
               <el-radio-group v-model="form.ifOversold">
                 <el-radio :label="1">允许</el-radio>
@@ -224,6 +230,7 @@ export default {
         ifGift: '', // 是否参与赠品 1-是 0-否
         distribution: '', // 配送属性。1线下核销,2快递,3支付即核销
         shelveState: '', // 是否上架 1-上架 0-不上架
+        counterType: 2, // 是否是兑换专区上架 1-是 2-不是'
         ifOversold: '', // 是否允许超卖 1-是 0-否
         ifCredit: '', // 是否支持积分兑换 1-是 0-否
         ifSelection: -1,
@@ -334,6 +341,7 @@ export default {
         ifLogistics: [ { required: true, message: '请选择是否需要物流', trigger: 'change' } ],
         distribution: [ { required: true, message: '请选择配送属性' } ],
         shelveState: [ { required: true, message: '请选择是否上架', trigger: 'change' } ],
+        counterType: [ { required: true, message: '请选择是否是兑换专区商品', trigger: 'change' } ],
         ifOversold: [ { required: true, message: '请选择是否允许超卖', trigger: 'change' } ],
         ifCredit: [ { required: true, message: '请选择是否支持积分兑换', trigger: 'change' } ],
         creditLimit: [ { required: true, message: '请输入单笔最大抵扣', trigger: 'blur' } ]