添加零售公司编码。

master
kevin jiang 6 years ago
parent 5e56d94f30
commit 0da245b7df

@ -17,14 +17,14 @@
<Option v-for="item in shopList" :value="item.id" :key="item.id">{{ item.name }}</Option> <Option v-for="item in shopList" :value="item.id" :key="item.id">{{ item.name }}</Option>
</Select> </Select>
<Button type="primary" @click="searchCustomerDataBtnClick" class="search-btn">查询</Button> <Button type="primary" @click="searchCustomerDataBtnClick" class="search-btn">查询</Button>
<Button type="primary" @click="downloadStoreCode" style="margin-right: 10px;">批量下载门店码</Button> <Button type="primary" @click="downloadStoreCode" style="margin-left: 30px;">批量下载门店码</Button>
<Button type="primary" @click="downloadStoreSellerCode" style="margin-right: 10px;">批量下载导购码</Button> <Button type="primary" @click="downloadStoreSellerCode" style="margin-left: 30px;">批量下载导购码</Button>
<!--<Button type="primary" @click="open()" style="margin-right: 10px;">开通门店号</Button>--> <!--<Button type="primary" @click="open()" style="margin-right: 10px;">开通门店号</Button>-->
</Row> </Row>
</i-col> </i-col>
</Row> </Row>
<Table :columns="columns1" :data="data1" class="table-store" size="small"> <Table :loading="loading" :columns="columns1" :data="data1" class="table-store" size="small">
<template slot-scope="{row}" slot="qrCodeAction"> <template slot-scope="{row}" slot="qrCodeAction">
<img :src="require('../../../static/img/qrCode-init.png')" @click="show(row)" <img :src="require('../../../static/img/qrCode-init.png')" @click="show(row)"
class="table-img-qr-code"/> class="table-img-qr-code"/>
@ -171,6 +171,7 @@
inject: ['setMenuName'], inject: ['setMenuName'],
data() { data() {
return { return {
loading: false,
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId, userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
searchShop: null, searchShop: null,
total: 0, total: 0,
@ -233,6 +234,11 @@
key: 'companyName', key: 'companyName',
className: 'table-width-200' className: 'table-width-200'
}, },
{
title: '零售公司编码',
key: 'companyCode',
className: 'table-width-100'
},
{ {
title: '员工数', title: '员工数',
key: 'staffNum', key: 'staffNum',
@ -337,6 +343,8 @@
}, },
listOfStore() { listOfStore() {
let that = this; let that = this;
this.loading = true;
let request = { let request = {
userId: that.userId, userId: that.userId,
regionId: that.changeData(that.regionId), regionId: that.changeData(that.regionId),
@ -348,6 +356,7 @@
}; };
http.storeList(request, function (data) { http.storeList(request, function (data) {
data = data.data; data = data.data;
that.loading = false;
if (data.code == "0000") { if (data.code == "0000") {
that.data1 = []; that.data1 = [];
let datas = data.results; let datas = data.results;
@ -362,7 +371,9 @@
} }
that.data1 = datas.list; that.data1 = datas.list;
} }
}) }, function (error) {
that.loading = false;
});
}, },
addStoreWX: function (request) { addStoreWX: function (request) {
let that = this; let that = this;

@ -15,8 +15,8 @@ import axios from "axios";
export function uploadUser(params, call) { export function uploadUser(params, call) {
return http.post('/store/emp/import', params).then(call); return http.post('/store/emp/import', params).then(call);
} }
export function storeList(params, call) { export function storeList(params, call, errorCallBack) {
return http.post('/store/emp/list', params).then(call); return http.post('/store/emp/list', params).then(call).catch(errorCallBack);
} }
export function addStoreWX(params, call) { export function addStoreWX(params, call) {
return http.post('/user/add', params).then(call); return http.post('/user/add', params).then(call);

Loading…
Cancel
Save