diff --git a/src/assets/main.css b/src/assets/main.css
index cb4e3b1..121133a 100644
--- a/src/assets/main.css
+++ b/src/assets/main.css
@@ -112,13 +112,13 @@ a, .green {
}
.dialogTable {
- position: fixed;
+ position: fixed !important;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
- width: 600px;
+ width: 600px!important;
height: 300px;
z-index: 9999;
background-color: #07193D;
- box-shadow: #fff 0 0 20px;
+ box-shadow: #66FFFF 0 0 20px;
}
diff --git a/src/utils/inject.js b/src/utils/inject.js
index 91da530..68ae475 100644
--- a/src/utils/inject.js
+++ b/src/utils/inject.js
@@ -64,6 +64,9 @@ Vue.prototype.$multipleStoreBoard = Vue.observable({
search: {"groupCodeList": [], "hourNum": "", type: "1"}
})
Vue.prototype.$storeBoard = Vue.observable({
+ currentDate: "20240705",
+ dialog: false,
+ aroundStock: [],
query: {},
search: {}
})
diff --git a/src/views/AppCarouselList.vue b/src/views/AppCarouselList.vue
index 95fbc2f..f28fde2 100644
--- a/src/views/AppCarouselList.vue
+++ b/src/views/AppCarouselList.vue
@@ -1,4 +1,5 @@
@@ -156,9 +187,10 @@ export default {
-
+ openNearbyStores(v,store)" @click.native.stop/>
+
diff --git a/src/views/AppStoreKeyGoods.vue b/src/views/AppStoreKeyGoods.vue
index 297e6ef..e058f82 100644
--- a/src/views/AppStoreKeyGoods.vue
+++ b/src/views/AppStoreKeyGoods.vue
@@ -5,36 +5,50 @@ export default {
data() {
return {
columns: [
- {label: "重点单品", prop: "name"},
- {label: "当日目标", prop: "targetNum", width: "70px"},
- {label: "销售数量", prop: "saleNum", width: "70px"},
- {label: "库存数量", prop: "stockNum", width: "70px"},
- {label: "预计销售数量", prop: "preSaleNum", width: "70px"},
+ {label: "重点单品", prop: "goodsName"},
+ {label: "当日目标", prop: "targetNum", width: 70},
+ {label: "销售数量", prop: "saleNum", width: 70},
+ {label: "库存数量", prop: "stockNum", width: 70},
+ {label: "预计销售数量", prop: "preSaleNum", width: 70},
{label: "提醒", custom: 1, width: 70, align: 'center', prop: "remind"},
]
}
},
computed: {
- refs: v => v.$parent.getItemRefs(),
tableData: v => v.$storeBoard.storeKeyGoods || [],
tableConfig: v => {
return {
- headerBGC: 'rgba(13, 48, 99, 0.6)',
+ headerBGC: 'rgba(13, 48, 99, 0.6)', rowNum: 9,
oddRowBGC: window.evenRowBGC(), evenRowBGC: "transparent",
header: v.columns.map(e => e.label),
columnWidth: v.columns.map(e => e.width || "0;flex:1;min-width:0;"),
align: v.columns.map(e => e.align || "left"),
- data: v.tableData.map(e => v.columns.map(column => e[column.prop])),
+ data: v.tableData.map(e => v.columns.map(column => column.custom == 1 ? `周边库存
` :
+ column.format ? column.format(e) : e[column.prop])) || [],
}
},
},
+ methods: {
+ openNearbyStores({rowIndex}) {
+ const {thirdGoodsCode} = this.tableData[rowIndex],
+ {storeCode, longitude, latitude} = this.$storeBoard.store
+ return $http.post("/data-boot/la/screen/multipleStoreBoard/aroundStock", {
+ type: "1", ...this.search, storeCode, longitude, latitude, thirdGoodsCode,
+ }).then(res => {
+ if (res?.data) {
+ this.$storeBoard.aroundStock = res.data
+ this.$nextTick(() => this.$storeBoard.dialog = true)
+ }
+ })
+ }
+ }
}