doum
6 天以前 639eb18312a62ac2a76e2b59e16bcc1ff8d70d03
admin/src/views/business/orderSet.vue
@@ -134,7 +134,7 @@
<script>
import { getPlatformConfig, updPlatformConfig } from '@/api/system/dictData'
import {allList} from '@/api/business/coupon'
import { allList } from '@/api/business/coupon'
export default {
  name: '',
  data () {
@@ -146,6 +146,7 @@
      working: false,
      couponList: [],
      form: {
        dictCode: 'ORDER_SET',
        regIntegralRewardStatus: 0,
        shareIntegralRewardStatus: 0,
        regCouponRewardStatus: 0,
@@ -177,26 +178,26 @@
          }
        })
    },
    delCoupon(type,index){
      if(type ===0){
        this.form.regCouponRewardList.splice(index,1)
      }else if(type ===1){
        this.form.shareCouponRewardList.splice(index,1)
    delCoupon (type, index) {
      if (type === 0) {
        this.form.regCouponRewardList.splice(index, 1)
      } else if (type === 1) {
        this.form.shareCouponRewardList.splice(index, 1)
      }
    },
    addCoupon(type){
      if(type ===0){
        this.form.regCouponRewardList.push({couponId:null,num:null})
      }else if(type ===1){
        this.form.shareCouponRewardList.push({couponId:null,num:null})
    addCoupon (type) {
      if (type === 0) {
        this.form.regCouponRewardList.push({ couponId: null, num: null })
      } else if (type === 1) {
        this.form.shareCouponRewardList.push({ couponId: null, num: null })
      }
    },
    getData () {
      getPlatformConfig({})
        .then(res => {
          if (res) {
            this.form = {
              dictCode: 'ORDER_SET',
              regIntegralRewardStatus: res.regIntegralRewardStatus || 0,
              shareIntegralRewardStatus: res.shareIntegralRewardStatus || 0,
              regCouponRewardStatus: res.regCouponRewardStatus || 0,
@@ -248,7 +249,7 @@
  width: 100%;
}
.header{
  margin: 20px 0 20px 0;padding:10px;background-color: rgba(140,147,157,0.61);
  margin: 20px 0 20px 0;padding:10px;background-color: #E0DEDE;
}
/deep/ .el-main{
  width: 100%;
@@ -258,7 +259,7 @@
}
.box {
  width: 100%;
  padding: 30px;
  padding: 0 30px;
  box-sizing: border-box;
  background: #ffffff;
}