| 123456789101112131415161718192021222324252627282930313233343536 |
- <template id="freight">
- <el-row>
- <el-col :span="24">
- <el-form-item label="开启满邮减免">
- <el-col :span="14">
- <el-switch v-model="ruleForm.freight.is_open.value" :active-value="1" :inactive-value="0"></el-switch>
- <div class="tips-text" v-if="ruleForm.freight.is_open.remark">{{ruleForm.freight.is_open.remark}}</div>
- </el-col>
- </el-form-item>
- <el-form-item label="满M元邮费减N元">
- <div v-for="(item,key) in ruleForm.freight.full_reduce.value" style="margin-bottom: 5px;">
- <el-input style="width:250px" onInput="value = toNumber(value, 2)" v-model="item.full">
- <template slot="prepend">满</template>
- <template slot="append">元</template>
- </el-input>
- <el-input style="width:250px" onInput="value = toNumber(value, 2)" v-model="item.reduce">
- <template slot="prepend">减</template>
- <template slot="append">元</template>
- </el-input>
- <el-button type="text" @click="handle('freight_del',key)" style="margin-left: 10px;">删除</el-button>
- </div>
- <el-button type="text" @click="handle('freight_add')">+添加规则</el-button>
- </el-form-item>
- <el-form-item>
- <el-col :span="12">
- <el-button :loading="btnLoading" size="small" type="primary"
- @click="submit">保存
- </el-button>
- </el-col>
- </el-form-item>
- </el-col>
- </el-row>
- </template>
|