Commit f48ed34f authored by wanglianghe's avatar wanglianghe

弹窗广告修改,网点新增其他服务

parent cdef7a95
...@@ -76,8 +76,8 @@ ...@@ -76,8 +76,8 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:banner-pop:update']">修改</el-button> --> v-hasPermi="['ecw:banner-pop:update']">修改</el-button>
<el-button size="mini" type="text" @click="handleStatus(scope.row)" <el-button size="mini" type="text" @click="handleStatus(scope.row)"
v-hasPermi="['ecw:banner-pop:update']">{{scope.row.status == CommonStatusEnum.ENABLE ? '禁用' : '启用'}}</el-button> v-hasPermi="['ecw:banner-pop:update']">{{scope.row.status == CommonStatusEnum.ENABLE ? '禁用' : '启用'}}</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
......
...@@ -174,6 +174,13 @@ ...@@ -174,6 +174,13 @@
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item label="其他服务" prop="otherServiceList">
<el-checkbox-group v-model="form.otherServiceList">
<el-checkbox label="1">送货上门</el-checkbox>
<el-checkbox label="2">非控货订单代收货款</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="网点详情" prop="contentZh"> <el-form-item label="网点详情" prop="contentZh">
<editor v-model="form.contentZh" :min-height="150"/> <editor v-model="form.contentZh" :min-height="150"/>
...@@ -267,6 +274,7 @@ export default { ...@@ -267,6 +274,7 @@ export default {
// 表单参数 // 表单参数
form: { form: {
checkList:[], checkList:[],
otherServiceList:[],
}, },
// 表单校验 // 表单校验
rules: { rules: {
...@@ -463,7 +471,8 @@ export default { ...@@ -463,7 +471,8 @@ export default {
worktime: undefined, worktime: undefined,
adminId: undefined, adminId: undefined,
aorder: undefined, aorder: undefined,
checkList: [] checkList: [],
otherServiceList: []
}; };
this.resetForm("form"); this.resetForm("form");
...@@ -499,6 +508,9 @@ export default { ...@@ -499,6 +508,9 @@ export default {
let ckList = response.data.freight.split(','); let ckList = response.data.freight.split(',');
this.$set(this.form, 'checkList', ckList); this.$set(this.form, 'checkList', ckList);
let otherService = response.data.otherService.split(",");
this.$set(this.form, 'otherServiceList', otherService);
this.open = true; this.open = true;
this.title = "修改服务网点"; this.title = "修改服务网点";
}); });
...@@ -518,6 +530,11 @@ export default { ...@@ -518,6 +530,11 @@ export default {
freight = freight.substring(0, freight.length - 1); freight = freight.substring(0, freight.length - 1);
this.form.freight = freight; this.form.freight = freight;
var otherService = this.form.otherServiceList.join(',');
this.form.otherService= otherService;
// console.log(otherService);
// return;
// 修改的提交 // 修改的提交
if (this.form.id != null) { if (this.form.id != null) {
updateNode(this.form).then(response => { updateNode(this.form).then(response => {
......
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