Merge branch 'prod' of https://newgitea.sxczgkj.cn/czg_team/cashier-web into test
This commit is contained in:
@@ -709,11 +709,12 @@ export default {
|
||||
*/
|
||||
async geiShopList() {
|
||||
try {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
if (this.shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
} else {
|
||||
this.shopId = this.shopInfo.id
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('获取分店列表===', error);
|
||||
|
||||
@@ -255,15 +255,12 @@ export default {
|
||||
* 获取分店列表
|
||||
*/
|
||||
async geiShopList() {
|
||||
try {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('获取分店列表===', error);
|
||||
if (this.shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
} else {
|
||||
this.shopId = this.shopInfo.id
|
||||
}
|
||||
},
|
||||
totalfilter(item, d) {
|
||||
|
||||
@@ -158,15 +158,12 @@ export default {
|
||||
* 获取分店列表
|
||||
*/
|
||||
async geiShopList() {
|
||||
try {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('获取分店列表===', error);
|
||||
if (this.shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
} else {
|
||||
this.shopId = this.shopInfo.id
|
||||
}
|
||||
},
|
||||
//携带table id跳转到订单列表页面
|
||||
|
||||
@@ -347,14 +347,14 @@ async function areainit() {
|
||||
}
|
||||
async function diancanShow(item, key) {
|
||||
if (!key) {
|
||||
router.push({ path: "/tool/index", query: { tableCode: item.tableCode } });
|
||||
router.push({ path: "/Instead", query: { tableCode: item.tableCode } });
|
||||
return;
|
||||
}
|
||||
if (key == "isAddGoods") {
|
||||
router.push({ path: "/tool/index", query: { id: item.orderId, key } });
|
||||
router.push({ path: "/Instead", query: { id: item.orderId, key } });
|
||||
}
|
||||
if (key == "isPayOrder") {
|
||||
router.push({ path: "/tool/index", query: { id: item.orderId, key } });
|
||||
router.push({ path: "/Instead", query: { id: item.orderId, key } });
|
||||
}
|
||||
}
|
||||
const tabClick = (tab) => {
|
||||
|
||||
Reference in New Issue
Block a user