|
|
|
@ -1,130 +1,128 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<Spin v-if="saving"
|
|
|
|
|
fix>加载中...</Spin>
|
|
|
|
|
<Form ref="formValidate"
|
|
|
|
|
:model="formValidate"
|
|
|
|
|
:label-width="80">
|
|
|
|
|
<Spin v-if="saving" fix>加载中...</Spin>
|
|
|
|
|
<Form ref="formValidate" :model="formValidate" :label-width="80">
|
|
|
|
|
<Row :gutter="10">
|
|
|
|
|
<i-col span="6">
|
|
|
|
|
<FormItem label="选择日期"
|
|
|
|
|
prop="">
|
|
|
|
|
<Date-picker style="width: 100%"
|
|
|
|
|
v-model="formValidate.date"
|
|
|
|
|
type="daterange"
|
|
|
|
|
placement="bottom-end"
|
|
|
|
|
placeholder="选择日期区间"></Date-picker>
|
|
|
|
|
<FormItem label="选择日期" prop>
|
|
|
|
|
<Date-picker
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
v-model="formValidate.date"
|
|
|
|
|
type="daterange"
|
|
|
|
|
placement="bottom-end"
|
|
|
|
|
placeholder="选择日期区间"
|
|
|
|
|
></Date-picker>
|
|
|
|
|
</FormItem>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="6">
|
|
|
|
|
<FormItem label="零售公司"
|
|
|
|
|
prop>
|
|
|
|
|
<Select v-model="formValidate.organizationId"
|
|
|
|
|
filterable
|
|
|
|
|
@on-change="selectCompany"
|
|
|
|
|
placeholder="全部"
|
|
|
|
|
clearable>
|
|
|
|
|
<Option v-for="(item, index) in companyList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:value="item.value">{{ item.label }}</Option>
|
|
|
|
|
<FormItem label="零售公司" prop>
|
|
|
|
|
<Select
|
|
|
|
|
v-model="formValidate.organizationId"
|
|
|
|
|
filterable
|
|
|
|
|
@on-change="selectCompany"
|
|
|
|
|
placeholder="全部"
|
|
|
|
|
clearable
|
|
|
|
|
>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="(item, index) in companyList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
>{{ item.label }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</FormItem>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="6">
|
|
|
|
|
<FormItem label="店铺"
|
|
|
|
|
prop>
|
|
|
|
|
<Select v-model="formValidate.storeId"
|
|
|
|
|
filterable
|
|
|
|
|
placeholder="全部"
|
|
|
|
|
clearable>
|
|
|
|
|
<Option v-for="(item, index) in shopList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:value="item.value">{{ item.label }}</Option>
|
|
|
|
|
<FormItem label="店铺" prop>
|
|
|
|
|
<Select v-model="formValidate.storeId" filterable placeholder="全部" clearable>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="(item, index) in shopList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
>{{ item.label }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</FormItem>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="3">
|
|
|
|
|
<FormItem label="活动状态"
|
|
|
|
|
prop>
|
|
|
|
|
<FormItem label="活动状态" prop>
|
|
|
|
|
<Select v-model="formValidate.status">
|
|
|
|
|
<Option v-for="(item, index) in activityStatusList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:value="item.value">{{ item.label }}</Option>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="(item, index) in activityStatusList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
>{{ item.label }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</FormItem>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="3">
|
|
|
|
|
<Button type="primary"
|
|
|
|
|
@click="() => {pageNum = 1;searchTable()}">查询</Button>
|
|
|
|
|
<Button type="primary" @click="() => {pageNum = 1;searchTable()}">查询</Button>
|
|
|
|
|
</i-col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row style="margin-top:50px">
|
|
|
|
|
<Table :loading="loading"
|
|
|
|
|
border
|
|
|
|
|
@on-row-dblclick="showDetail"
|
|
|
|
|
:columns="columns1"
|
|
|
|
|
:data="data">
|
|
|
|
|
<template slot-scope="{row}"
|
|
|
|
|
slot="qrCodeAction">
|
|
|
|
|
<img :src="require('../../../static/img/qrCode-init.png')"
|
|
|
|
|
@click="navigateCode(row)"
|
|
|
|
|
class="table-img-qr-code" />
|
|
|
|
|
<Table
|
|
|
|
|
:loading="loading"
|
|
|
|
|
border
|
|
|
|
|
@on-row-dblclick="showDetail"
|
|
|
|
|
:columns="columns1"
|
|
|
|
|
:data="data"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="{row}" slot="qrCodeAction">
|
|
|
|
|
<img
|
|
|
|
|
:src="require('../../../static/img/qrCode-init.png')"
|
|
|
|
|
@click="navigateCode(row)"
|
|
|
|
|
class="table-img-qr-code"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot="action"
|
|
|
|
|
slot-scope="{row}">
|
|
|
|
|
<template slot="action" slot-scope="{row}">
|
|
|
|
|
<i-col span="12">
|
|
|
|
|
<Button ghost
|
|
|
|
|
:disabled="row.status==3?true:false"
|
|
|
|
|
:class="row.status==3?'router-btn-gray':'router-btn'"
|
|
|
|
|
@click="() => {stop(row)}">终止</Button>
|
|
|
|
|
<Button
|
|
|
|
|
ghost
|
|
|
|
|
:class="row.status > 2 ? 'router-btn disable' : 'router-btn'"
|
|
|
|
|
@click="() => {stop(row)}"
|
|
|
|
|
>终止</Button>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="12">
|
|
|
|
|
<Button ghost
|
|
|
|
|
class="router-btn"
|
|
|
|
|
@click="() => {modify(row)}">修改</Button>
|
|
|
|
|
<Button ghost class="router-btn" @click="() => {modify(row)}">修改</Button>
|
|
|
|
|
</i-col>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</Table>
|
|
|
|
|
<Page :total="totalSize"
|
|
|
|
|
:current="pageNum"
|
|
|
|
|
:page-size="pageSize"
|
|
|
|
|
show-elevator
|
|
|
|
|
show-total
|
|
|
|
|
placement="top"
|
|
|
|
|
@on-change="handlePage"
|
|
|
|
|
class-name="ks-page"></Page>
|
|
|
|
|
<Page
|
|
|
|
|
:total="totalSize"
|
|
|
|
|
:current="pageNum"
|
|
|
|
|
:page-size="pageSize"
|
|
|
|
|
show-elevator
|
|
|
|
|
show-total
|
|
|
|
|
placement="top"
|
|
|
|
|
@on-change="handlePage"
|
|
|
|
|
class-name="ks-page"
|
|
|
|
|
></Page>
|
|
|
|
|
</Row>
|
|
|
|
|
</Form>
|
|
|
|
|
<useTable ref="useTable"
|
|
|
|
|
@doShow="doShow"
|
|
|
|
|
:show="showUse"
|
|
|
|
|
:isModify="true"
|
|
|
|
|
:schedule="activityInstance.scheduleVO"></useTable>
|
|
|
|
|
<Modal v-model="isShowDetail"
|
|
|
|
|
title="活动计划详情"
|
|
|
|
|
width="70%"
|
|
|
|
|
:footer-hide="true">
|
|
|
|
|
<planDetail v-if="isShowDetail"
|
|
|
|
|
:detail="detail"></planDetail>
|
|
|
|
|
<useTable
|
|
|
|
|
ref="useTable"
|
|
|
|
|
@doShow="doShow"
|
|
|
|
|
:show="showUse"
|
|
|
|
|
:isModify="true"
|
|
|
|
|
:schedule="activityInstance.scheduleVO"
|
|
|
|
|
></useTable>
|
|
|
|
|
<Modal v-model="isShowDetail" title="活动计划详情" width="70%" :footer-hide="true">
|
|
|
|
|
<planDetail v-if="isShowDetail" :detail="detail"></planDetail>
|
|
|
|
|
</Modal>
|
|
|
|
|
<!-- 预览二维码 -->
|
|
|
|
|
<Modal v-model="isShow"
|
|
|
|
|
:title="showStoreName"
|
|
|
|
|
:footer-hide="true"
|
|
|
|
|
width="230"
|
|
|
|
|
class-name="vertical-center-modal"
|
|
|
|
|
@on-ok="ok">
|
|
|
|
|
<Modal
|
|
|
|
|
v-model="isShow"
|
|
|
|
|
:title="showStoreName"
|
|
|
|
|
:footer-hide="true"
|
|
|
|
|
width="230"
|
|
|
|
|
class-name="vertical-center-modal"
|
|
|
|
|
@on-ok="ok"
|
|
|
|
|
>
|
|
|
|
|
<div slot="header">
|
|
|
|
|
<p></p>
|
|
|
|
|
</div>
|
|
|
|
|
<p>{{this.showStoreName}}</p>
|
|
|
|
|
<img :src="qrCodeImage"
|
|
|
|
|
style="width:200px;height:200px;" />
|
|
|
|
|
<img :src="qrCodeImage" style="width:200px;height:200px;" />
|
|
|
|
|
<div style="text-align: center;">
|
|
|
|
|
<Button ghost
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="download(rowData)">下载</Button>
|
|
|
|
|
<Button ghost type="primary" @click="download(rowData)">下载</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
</div>
|
|
|
|
@ -144,7 +142,7 @@ export default {
|
|
|
|
|
useTable,
|
|
|
|
|
planDetail
|
|
|
|
|
},
|
|
|
|
|
data () {
|
|
|
|
|
data() {
|
|
|
|
|
const _this = this;
|
|
|
|
|
return {
|
|
|
|
|
showStoreName: "",
|
|
|
|
@ -163,14 +161,14 @@ export default {
|
|
|
|
|
shopList: [],
|
|
|
|
|
showUse: false,
|
|
|
|
|
activityInstance: {},
|
|
|
|
|
qrCodeImage: '',
|
|
|
|
|
qrCodeImage: "",
|
|
|
|
|
formValidate: {
|
|
|
|
|
date: null,
|
|
|
|
|
organizationId: null,
|
|
|
|
|
storeId: null,
|
|
|
|
|
status: 2,
|
|
|
|
|
startDate: null,
|
|
|
|
|
endDate: null,
|
|
|
|
|
endDate: null
|
|
|
|
|
},
|
|
|
|
|
startDateOptions: {},
|
|
|
|
|
endDateOptions: {},
|
|
|
|
@ -205,7 +203,7 @@ export default {
|
|
|
|
|
width: 60,
|
|
|
|
|
align: "center",
|
|
|
|
|
title: "序号",
|
|
|
|
|
render (h, params) {
|
|
|
|
|
render(h, params) {
|
|
|
|
|
let num = parseInt(params.index) + 1;
|
|
|
|
|
console.log(_this.pageSize);
|
|
|
|
|
if (_this.pageSize > 1) {
|
|
|
|
@ -221,7 +219,7 @@ export default {
|
|
|
|
|
{
|
|
|
|
|
title: "活动类型",
|
|
|
|
|
key: "scheduleVO.name",
|
|
|
|
|
render (h, params) {
|
|
|
|
|
render(h, params) {
|
|
|
|
|
return h("span", params.row["params"][0]["name"]);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -229,54 +227,54 @@ export default {
|
|
|
|
|
title: "活动时间",
|
|
|
|
|
key: "beginTime",
|
|
|
|
|
width: 230,
|
|
|
|
|
render (h, params) {
|
|
|
|
|
render(h, params) {
|
|
|
|
|
return h("span", params.row.beginTime + " - " + params.row.endTime);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "零售公司",
|
|
|
|
|
key: "shop",
|
|
|
|
|
render (h, params) {
|
|
|
|
|
render(h, params) {
|
|
|
|
|
return h(
|
|
|
|
|
"span",
|
|
|
|
|
params.row.companyName +
|
|
|
|
|
"等" +
|
|
|
|
|
(params.row.companyCount || 0) +
|
|
|
|
|
"家公司"
|
|
|
|
|
"等" +
|
|
|
|
|
(params.row.companyCount || 0) +
|
|
|
|
|
"家公司"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "店铺",
|
|
|
|
|
key: "shop",
|
|
|
|
|
render (h, params) {
|
|
|
|
|
render(h, params) {
|
|
|
|
|
return h(
|
|
|
|
|
"span",
|
|
|
|
|
params.row.storeName +
|
|
|
|
|
"等" +
|
|
|
|
|
(params.row.storeCount || 0) +
|
|
|
|
|
"家店铺"
|
|
|
|
|
"等" +
|
|
|
|
|
(params.row.storeCount || 0) +
|
|
|
|
|
"家店铺"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "添加好友数",
|
|
|
|
|
key: "addFriendNum",
|
|
|
|
|
render (h, params) {
|
|
|
|
|
render(h, params) {
|
|
|
|
|
return h("span", (params.row.friends || 0) + "人");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "参与活动客户数",
|
|
|
|
|
key: "joinActivityClientNum",
|
|
|
|
|
render (h, params) {
|
|
|
|
|
render(h, params) {
|
|
|
|
|
return h("span", (params.row.friends || 0) + "人");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "活动码",
|
|
|
|
|
slot: 'qrCodeAction',
|
|
|
|
|
className: 'table-width-80',
|
|
|
|
|
slot: "qrCodeAction",
|
|
|
|
|
className: "table-width-80"
|
|
|
|
|
// render (h, p) {
|
|
|
|
|
// return h(
|
|
|
|
|
// "Button",
|
|
|
|
@ -291,7 +289,7 @@ export default {
|
|
|
|
|
{
|
|
|
|
|
title: "活动状态",
|
|
|
|
|
key: "status",
|
|
|
|
|
render (h, p) {
|
|
|
|
|
render(h, p) {
|
|
|
|
|
const status = p.row.status;
|
|
|
|
|
if (status === 1) return h("span", "未开始");
|
|
|
|
|
if (status === 2) return h("span", "进行中");
|
|
|
|
@ -301,8 +299,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
slot: 'action',
|
|
|
|
|
width: 200,
|
|
|
|
|
slot: "action",
|
|
|
|
|
width: 200
|
|
|
|
|
// render (h, p) {
|
|
|
|
|
// let r = [
|
|
|
|
|
// h(
|
|
|
|
@ -334,30 +332,30 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted () {
|
|
|
|
|
mounted() {
|
|
|
|
|
this.setMenuName("活动管理", "活动计划");
|
|
|
|
|
this.getCompanyInfo();
|
|
|
|
|
this.getShopInfo();
|
|
|
|
|
this.searchTable();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
doShow (show) {
|
|
|
|
|
doShow(show) {
|
|
|
|
|
this.showUse = show;
|
|
|
|
|
this.searchTable();
|
|
|
|
|
},
|
|
|
|
|
showDetail (detail) {
|
|
|
|
|
showDetail(detail) {
|
|
|
|
|
let _this = this;
|
|
|
|
|
this.getDetail(detail.id).then(res => {
|
|
|
|
|
_this.detail = res;
|
|
|
|
|
_this.isShowDetail = true;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getCompanyInfo () {
|
|
|
|
|
getCompanyInfo() {
|
|
|
|
|
let that = this;
|
|
|
|
|
let data = {
|
|
|
|
|
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId
|
|
|
|
|
};
|
|
|
|
|
ActivityManager.getCompany(data, function (data) {
|
|
|
|
|
ActivityManager.getCompany(data, function(data) {
|
|
|
|
|
that.companyList = [];
|
|
|
|
|
data.data.results.forEach(element => {
|
|
|
|
|
that.companyList.push({
|
|
|
|
@ -367,18 +365,18 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
selectCompany (value) {
|
|
|
|
|
selectCompany(value) {
|
|
|
|
|
this.customerId = value;
|
|
|
|
|
this.getShopInfo();
|
|
|
|
|
},
|
|
|
|
|
getShopInfo () {
|
|
|
|
|
getShopInfo() {
|
|
|
|
|
let that = this;
|
|
|
|
|
let data = {
|
|
|
|
|
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
|
|
|
|
|
customerIds: this.customerId,
|
|
|
|
|
scheduleId: null
|
|
|
|
|
};
|
|
|
|
|
ActivityManager.getShop(data, function (data) {
|
|
|
|
|
ActivityManager.getShop(data, function(data) {
|
|
|
|
|
that.shopList = [];
|
|
|
|
|
data.data.results.forEach(element => {
|
|
|
|
|
that.shopList.push({
|
|
|
|
@ -388,11 +386,14 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handlePage: function (value) {
|
|
|
|
|
handlePage: function(value) {
|
|
|
|
|
this.pageNum = value;
|
|
|
|
|
this.searchTable();
|
|
|
|
|
},
|
|
|
|
|
stop (instance) {
|
|
|
|
|
stop(instance) {
|
|
|
|
|
if (instance.status > 2) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let _this = this;
|
|
|
|
|
this.$Modal.confirm({
|
|
|
|
|
title: "您确认要终止?",
|
|
|
|
@ -411,10 +412,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
onCancel: () => { }
|
|
|
|
|
onCancel: () => {}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getDetail (instanceId) {
|
|
|
|
|
getDetail(instanceId) {
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
ActivityManager.instanceDetail(
|
|
|
|
|
{
|
|
|
|
@ -426,7 +427,7 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
modify (instance) {
|
|
|
|
|
modify(instance) {
|
|
|
|
|
let _this = this;
|
|
|
|
|
this.getDetail(instance.id).then(res => {
|
|
|
|
|
store.commit("SET_useData", res);
|
|
|
|
@ -434,13 +435,14 @@ export default {
|
|
|
|
|
_this.showUse = true;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
navigateCode (instance) {
|
|
|
|
|
navigateCode(instance) {
|
|
|
|
|
return;
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: "/activity/plan/code",
|
|
|
|
|
query: { instanceId: instance.id }
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
searchTable (params = {}) {
|
|
|
|
|
searchTable(params = {}) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
if (
|
|
|
|
|
this.formValidate.date !== null &&
|
|
|
|
@ -464,7 +466,7 @@ export default {
|
|
|
|
|
if (params.status == 0) {
|
|
|
|
|
params.status = undefined;
|
|
|
|
|
}
|
|
|
|
|
params.categoryCode = "promotion"
|
|
|
|
|
params.categoryCode = "promotion";
|
|
|
|
|
params.date = undefined;
|
|
|
|
|
http.get("/activity/instance/list", params).then(res => {
|
|
|
|
|
const data = res.data.results.this || {};
|
|
|
|
@ -473,46 +475,53 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
startDateChange: function (e) {
|
|
|
|
|
startDateChange: function(e) {
|
|
|
|
|
//设置开始时间
|
|
|
|
|
this.endDateOptions = {
|
|
|
|
|
disabledDate: date => {
|
|
|
|
|
let startTime = this.formValidate.startDate ? new Date(this.formValidate.startDate).valueOf() : '';
|
|
|
|
|
return date && (date.valueOf() < startTime)
|
|
|
|
|
let startTime = this.formValidate.startDate
|
|
|
|
|
? new Date(this.formValidate.startDate).valueOf()
|
|
|
|
|
: "";
|
|
|
|
|
return date && date.valueOf() < startTime;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
endDateChange: function (e) {
|
|
|
|
|
endDateChange: function(e) {
|
|
|
|
|
//设置结束时间
|
|
|
|
|
let endTime = this.formValidate.endDate ? new Date(this.formValidate.endDate).valueOf() - 1 * 24 * 60 * 60 * 1000 : '';
|
|
|
|
|
let endTime = this.formValidate.endDate
|
|
|
|
|
? new Date(this.formValidate.endDate).valueOf() -
|
|
|
|
|
1 * 24 * 60 * 60 * 1000
|
|
|
|
|
: "";
|
|
|
|
|
this.startDateOptions = {
|
|
|
|
|
disabledDate: date => {
|
|
|
|
|
return date && (date.valueOf() > endTime);
|
|
|
|
|
return date && date.valueOf() > endTime;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
show: function (index) {
|
|
|
|
|
show: function(index) {
|
|
|
|
|
this.isShow = true;
|
|
|
|
|
this.showStoreName = index.name;
|
|
|
|
|
this.qrCodeImage = index.qrCodeAction;
|
|
|
|
|
this.rowData = index;
|
|
|
|
|
},
|
|
|
|
|
hide: function () {
|
|
|
|
|
hide: function() {
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
},
|
|
|
|
|
// 下载二维码
|
|
|
|
|
download: function (index) {
|
|
|
|
|
debugger
|
|
|
|
|
download: function(index) {
|
|
|
|
|
debugger;
|
|
|
|
|
let fileName = index.name + "-门店码";
|
|
|
|
|
http.downloadImg({
|
|
|
|
|
url: index.qrCodeAction
|
|
|
|
|
}, fileName, function (/*data*/) {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
http.downloadImg(
|
|
|
|
|
{
|
|
|
|
|
url: index.qrCodeAction
|
|
|
|
|
},
|
|
|
|
|
fileName,
|
|
|
|
|
function(/*data*/) {}
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
ok: function () {
|
|
|
|
|
ok: function() {
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
@ -529,10 +538,8 @@ export default {
|
|
|
|
|
color: #3496eb !important;
|
|
|
|
|
margin-left: -15px;
|
|
|
|
|
}
|
|
|
|
|
.router-btn-gray {
|
|
|
|
|
border: none;
|
|
|
|
|
color: #666 !important;
|
|
|
|
|
margin-left: -15px;
|
|
|
|
|
.router-btn.disable {
|
|
|
|
|
color: #999 !important;
|
|
|
|
|
}
|
|
|
|
|
.table-img-qr-code {
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|