fix: 去除银行卡支付和刷卡支付方式,通知中心增加订阅消息编辑,修复店铺信息页面运行时为数字类型接受字符串数字警告
This commit is contained in:
parent
d847911a2e
commit
57ea2842c1
|
|
@ -42,6 +42,14 @@ const Api = {
|
||||||
params
|
params
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//配置订阅消息类型
|
||||||
|
config(data: any) {
|
||||||
|
return request<any>({
|
||||||
|
url: `${baseURL}/config`,
|
||||||
|
method: "post",
|
||||||
|
data
|
||||||
|
});
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Api;
|
export default Api;
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:total="tableData.total"
|
:total="tableData.total"
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
:current-page="tableData.page + 1"
|
:current-page="tableData.page"
|
||||||
:page-size="tableData.size"
|
:page-size="tableData.size"
|
||||||
@current-change="paginationChange"
|
@current-change="paginationChange"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<el-button v-if="url" type="primary" @click="dialogVisible = true" style="margin-bottom: 28px">
|
<el-button v-if="url" type="primary" @click="dialogVisible = true" style="margin-bottom: 28px">
|
||||||
订阅消息
|
订阅消息
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dialog title="提示" v-model="dialogVisible" width="30%" :before-close="handleClose">
|
<el-dialog title="提示" v-model="dialogVisible" width="30%">
|
||||||
<div style="width: 100%; text-align: center">
|
<div style="width: 100%; text-align: center">
|
||||||
<el-image style="width: 200px; height: 200px" :src="url"></el-image>
|
<el-image style="width: 200px; height: 200px" :src="url"></el-image>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -35,41 +35,23 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="昵称" prop="nickname"></el-table-column>
|
<el-table-column label="昵称" prop="nickname"></el-table-column>
|
||||||
<el-table-column label="商品库存预警" prop="createdAt">
|
<el-table-column label="订阅类型">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-switch
|
<el-checkbox-group
|
||||||
v-model="scope.row.proState"
|
v-model="scope.row.typeInfo"
|
||||||
:active-value="1"
|
@change="typeInfoChange($event, scope.row)"
|
||||||
:inactive-value="0"
|
>
|
||||||
@change="changeHot(scope.row.proState, 0, scope.row.openId)"
|
<el-checkbox label="耗材推送" value="con"></el-checkbox>
|
||||||
></el-switch>
|
<el-checkbox label="商品推送" value="pro"></el-checkbox>
|
||||||
</template>
|
<el-checkbox label="操作预警" value="ope"></el-checkbox>
|
||||||
</el-table-column>
|
</el-checkbox-group>
|
||||||
<el-table-column label="耗材库存预警" prop="createdAt">
|
|
||||||
<template v-slot="scope">
|
|
||||||
<el-switch
|
|
||||||
v-model="scope.row.conState"
|
|
||||||
:active-value="1"
|
|
||||||
:inactive-value="0"
|
|
||||||
@change="changeHot(scope.row.conState, 1, scope.row.openId)"
|
|
||||||
></el-switch>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作商品" prop="createdAt">
|
|
||||||
<template v-slot="scope">
|
|
||||||
<el-switch
|
|
||||||
v-model="scope.row.opeState"
|
|
||||||
:active-value="1"
|
|
||||||
:inactive-value="0"
|
|
||||||
@change="changeHot(scope.row.opeState, 2, scope.row.openId)"
|
|
||||||
></el-switch>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="200">
|
<el-table-column label="操作" width="200">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-popconfirm title="确定解绑吗?" @confirm="delTableHandle(scope.row.openId)">
|
<el-popconfirm title="确定解绑吗?" @confirm="delTableHandle(scope.row.openId)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button type="text">解绑</el-button>
|
<el-button link type="primary">解绑</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -79,6 +61,7 @@
|
||||||
<div class="head-container">
|
<div class="head-container">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:total="tableData.total"
|
:total="tableData.total"
|
||||||
|
@size-change="handleSizeChange"
|
||||||
:current-page="tableData.page"
|
:current-page="tableData.page"
|
||||||
:page-size="tableData.size"
|
:page-size="tableData.size"
|
||||||
@current-change="paginationChange"
|
@current-change="paginationChange"
|
||||||
|
|
@ -90,6 +73,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import shopMsgPushApi from "@/api/account/shopMsgPush";
|
import shopMsgPushApi from "@/api/account/shopMsgPush";
|
||||||
|
import { ElMessage } from "element-plus";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -97,23 +81,16 @@ export default {
|
||||||
tableData: {
|
tableData: {
|
||||||
data: [],
|
data: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 30,
|
size: 10,
|
||||||
loading: false,
|
loading: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
},
|
},
|
||||||
alldata: {
|
|
||||||
allState: 0,
|
|
||||||
conState: 0,
|
|
||||||
opeState: 0,
|
|
||||||
stockState: 0,
|
|
||||||
},
|
|
||||||
url: "",
|
url: "",
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
this.getlist();
|
|
||||||
this.getsubQrCode();
|
this.getsubQrCode();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -136,12 +113,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.url = res;
|
this.url = res;
|
||||||
},
|
},
|
||||||
async getlist() {
|
|
||||||
let res = await state({
|
|
||||||
shopId: localStorage.getItem("shopId"),
|
|
||||||
});
|
|
||||||
this.alldata = res;
|
|
||||||
},
|
|
||||||
async changeEvent(state, type) {
|
async changeEvent(state, type) {
|
||||||
let res = await shopState({
|
let res = await shopState({
|
||||||
shopId: localStorage.getItem("shopId"),
|
shopId: localStorage.getItem("shopId"),
|
||||||
|
|
@ -150,18 +122,20 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置消息推送
|
// 设置消息推送
|
||||||
async changeHot(row, index, openId) {
|
async typeInfoChange(typeInfo, row) {
|
||||||
// index 0商品库存 1耗材 2操作商品
|
// index 0商品库存 1耗材 2操作商品
|
||||||
let obj = {
|
let obj = {
|
||||||
shopId: localStorage.getItem("shopId"),
|
typeInfo,
|
||||||
type: index,
|
id: row.id,
|
||||||
state: row,
|
|
||||||
openId,
|
|
||||||
};
|
};
|
||||||
let res = await msginfo(obj);
|
let res = await shopMsgPushApi.config(obj);
|
||||||
this.$message.success("修改成功!");
|
ElMessage.success("修改成功!");
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
},
|
},
|
||||||
|
handleSizeChange(val) {
|
||||||
|
this.tableData.size = val;
|
||||||
|
this.tbProductStockDetailStock();
|
||||||
|
},
|
||||||
// 分页回调
|
// 分页回调
|
||||||
paginationChange(e) {
|
paginationChange(e) {
|
||||||
this.tableData.page = e;
|
this.tableData.page = e;
|
||||||
|
|
@ -176,7 +150,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.tableData.loading = false;
|
this.tableData.loading = false;
|
||||||
this.tableData.data = res.records;
|
this.tableData.data = res.records;
|
||||||
this.tableData.total = res.total;
|
this.tableData.total = res.totalRow * 1;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
:min="0"></el-input-number>
|
:min="0"></el-input-number>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item label="店铺经度" prop="provinces">
|
<el-form-item label="店铺经度" prop="provinces">
|
||||||
<el-row gutter="6">
|
<el-row :gutter="6">
|
||||||
<el-col :span="9" v-if="form.provinces">
|
<el-col :span="9" v-if="form.provinces">
|
||||||
<el-input :value="`${form.provinces}-${form.cities}-${form.districts}`" disabled />
|
<el-input :value="`${form.provinces}-${form.cities}-${form.districts}`" disabled />
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,11 @@ const options: optionObject = {
|
||||||
payType: [
|
payType: [
|
||||||
{ label: "现金", value: "cash" },
|
{ label: "现金", value: "cash" },
|
||||||
{ label: "微信", value: "weixin" },
|
{ label: "微信", value: "weixin" },
|
||||||
{ label: "银行卡", value: "bank" },
|
// { label: "银行卡", value: "bank" },
|
||||||
{ label: "会员支付", value: "member-account" },
|
{ label: "会员支付", value: "member-account" },
|
||||||
{ label: "支付宝", value: "alipay" },
|
{ label: "支付宝", value: "alipay" },
|
||||||
{ label: "刷卡", value: "deposit" },
|
// { label: "刷卡", value: "deposit" },
|
||||||
{ label: "挂单", value: "arrears" },
|
{ label: "挂单", value: "arrears" },
|
||||||
{ label: "刷卡", value: "deposit" },
|
|
||||||
{ label: "自定义", value: "virtual" },
|
{ label: "自定义", value: "virtual" },
|
||||||
],
|
],
|
||||||
isIdeal: [
|
isIdeal: [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue