单店处理了

This commit is contained in:
2024-07-07 22:47:46 +08:00
parent 319043b5b6
commit f86d5515c0
2 changed files with 6 additions and 7 deletions

View File

@@ -85,17 +85,16 @@ export default {
}, },
getCameras() { getCameras() {
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeCamera", { return $http.post("/data-boot/la/screen/multipleStoreBoard/storeCamera", {
// ...this.search, type: "1", ...this.search,
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.cameras = res.data?.records?.filter(e => e.storeCameraVOList?.length > 0) || [] this.cameras = res.data?.records?.filter(e => e.storeCameraVOList?.length > 0) || []
console.log(this.cameras.map(e=>e.storeName))
} }
}) })
}, },
getStoreKeyGoods() { getStoreKeyGoods() {
return $http.post("/data-boot/la/screen/singleStoreBoard/singStoreKeyGoodsSale", { return $http.post("/data-boot/la/screen/singleStoreBoard/singStoreKeyGoodsSale", {
...this.search, type: "1", ...this.search,
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.storeKeyGoods = res.data this.storeKeyGoods = res.data
@@ -105,7 +104,7 @@ export default {
}, },
getCategorySales() { getCategorySales() {
return $http.post("/data-boot/la/screen/singleStoreBoard/singStoreCategorySale", { return $http.post("/data-boot/la/screen/singleStoreBoard/singStoreCategorySale", {
...this.search, type: "1", ...this.search,
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.categorySales = res.data this.categorySales = res.data

View File

@@ -112,7 +112,7 @@ export default {
}, },
getCameras() { getCameras() {
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeCamera", { return $http.post("/data-boot/la/screen/multipleStoreBoard/storeCamera", {
...this.search, limit: 999 type: "1", ...this.search, limit: 999
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.cameras = res.data?.records || [] this.cameras = res.data?.records || []
@@ -121,7 +121,7 @@ export default {
}, },
getStoreKeyGoods() { getStoreKeyGoods() {
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeKeyGoods", { return $http.post("/data-boot/la/screen/multipleStoreBoard/storeKeyGoods", {
...this.search, type: "1", ...this.search,
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.storeKeyGoods = res.data this.storeKeyGoods = res.data
@@ -130,7 +130,7 @@ export default {
}, },
getCategorySales() { getCategorySales() {
return $http.post("/data-boot/la/screen/multipleStoreBoard/categorySale", { return $http.post("/data-boot/la/screen/multipleStoreBoard/categorySale", {
...this.search, type: "1", ...this.search,
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.categorySales = res.data this.categorySales = res.data