freight.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <template id="freight">
  2. <el-row>
  3. <el-col :span="24">
  4. <el-form-item label="开启满邮减免">
  5. <el-col :span="14">
  6. <el-switch v-model="ruleForm.freight.is_open.value" :active-value="1" :inactive-value="0"></el-switch>
  7. <div class="tips-text" v-if="ruleForm.freight.is_open.remark">{{ruleForm.freight.is_open.remark}}</div>
  8. </el-col>
  9. </el-form-item>
  10. <el-form-item label="满M元邮费减N元">
  11. <div v-for="(item,key) in ruleForm.freight.full_reduce.value" style="margin-bottom: 5px;">
  12. <el-input style="width:250px" onInput="value = toNumber(value, 2)" v-model="item.full">
  13. <template slot="prepend">满</template>
  14. <template slot="append">元</template>
  15. </el-input>
  16. <el-input style="width:250px" onInput="value = toNumber(value, 2)" v-model="item.reduce">
  17. <template slot="prepend">减</template>
  18. <template slot="append">元</template>
  19. </el-input>
  20. <el-button type="text" @click="handle('freight_del',key)" style="margin-left: 10px;">删除</el-button>
  21. </div>
  22. <el-button type="text" @click="handle('freight_add')">+添加规则</el-button>
  23. </el-form-item>
  24. <el-form-item>
  25. <el-col :span="12">
  26. <el-button :loading="btnLoading" size="small" type="primary"
  27. @click="submit">保存
  28. </el-button>
  29. </el-col>
  30. </el-form-item>
  31. </el-col>
  32. </el-row>
  33. </template>