Commit 1c8d0a22 by 吕明尚

修改优惠券管理

parent 2bb6d86a
......@@ -47,38 +47,38 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:records:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:records:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:records:remove']"
>删除</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- plain-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="handleAdd"-->
<!-- v-hasPermi="['system:records:add']"-->
<!-- >新增</el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="success"-->
<!-- plain-->
<!-- icon="el-icon-edit"-->
<!-- size="mini"-->
<!-- :disabled="single"-->
<!-- @click="handleUpdate"-->
<!-- v-hasPermi="['system:records:edit']"-->
<!-- >修改</el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="danger"-->
<!-- plain-->
<!-- icon="el-icon-delete"-->
<!-- size="mini"-->
<!-- :disabled="multiple"-->
<!-- @click="handleDelete"-->
<!-- v-hasPermi="['system:records:remove']"-->
<!-- >删除</el-button>-->
<!-- </el-col>-->
<el-col :span="1.5">
<el-button
type="warning"
......@@ -129,24 +129,24 @@
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:records:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:records:remove']"
>删除</el-button>
</template>
</el-table-column>
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-edit"-->
<!-- @click="handleUpdate(scope.row)"-->
<!-- v-hasPermi="['system:records:edit']"-->
<!-- >修改</el-button>-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-delete"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- v-hasPermi="['system:records:remove']"-->
<!-- >删除</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
<pagination
......
......@@ -186,6 +186,16 @@
<el-table-column align="center" class-name="small-padding fixed-width" fixed="right" label="操作">
<template slot-scope="scope">
<el-button
v-if="scope.row.couponType ===6"
v-hasPermi="['system:coupon:edit']"
icon="el-icon-edit"
size="mini"
type="text"
@click="sumUpdate(scope.row)"
>修改
</el-button>
<el-button
v-if="scope.row.couponType ===5 || scope.row.couponType ===4"
size="mini"
type="text"
icon="el-icon-edit"
......@@ -193,6 +203,7 @@
v-hasPermi="['system:coupon:edit']"
>修改
</el-button>
<el-button
size="mini"
type="text"
......@@ -787,6 +798,17 @@ export default {
this.sumOpen = true;
this.sumTitle = "添加金额券";
},
sumUpdate(row) {
this.reset();
const id = row.id || this.ids
getCoupon(id).then(response => {
this.sumForm = response.data;
this.sumForm.platformType = 1;
this.sumForm.couponType = '6';
this.sumOpen = true;
this.sumTitle = "修改金额券";
});
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
......
......@@ -109,7 +109,8 @@
clearable placeholder="请输入促销时长"/>
</el-form-item>
<el-form-item label="促销金额" prop="promotionAmount">
<el-input v-model="form.promotionAmount" :disabled="!form.storeId" placeholder="请输入促销金额"/>
<el-input-number v-model="form.promotionAmount" :disabled="!form.storeId" :max="9999" :min="1"/>
<!-- <el-input v-model="form.promotionAmount" :disabled="!form.storeId" placeholder="请输入促销金额"/>-->
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment