diff --git a/src/utils/inject.js b/src/utils/inject.js index a39ce2e..5354979 100644 --- a/src/utils/inject.js +++ b/src/utils/inject.js @@ -184,7 +184,7 @@ Vue.component("tableColumn", { return config.custom ? h('div', { style: {color: row.preSaleNum > row.stockNum ? 'red' : '#fff'}, class: 'pointer' }, '周边库存情况') : - h('span', row[config.prop] || '') + h('span', row[config.prop] ?? '') } } }) diff --git a/src/views/AppStoresTable.vue b/src/views/AppStoresTable.vue index e6d9864..e145264 100644 --- a/src/views/AppStoresTable.vue +++ b/src/views/AppStoresTable.vue @@ -137,9 +137,8 @@ export default { column.format ? column.format(e) : e[column.prop])) || [], } }, - openNearbyStores({rowIndex}, store) { - const {thirdGoodsCode} = this.storeKeyGoods[rowIndex], - {storeCode, longitude, latitude} = store + openNearbyStores({thirdGoodsCode}, store) { + const {storeCode, longitude, latitude} = store return $http.post("/data-boot/la/screen/multipleStoreBoard/aroundStock", { type: "1", ...this.search, storeCode, longitude, latitude, thirdGoodsCode, }).then(res => { @@ -151,14 +150,14 @@ export default { }, }, mounted() { - this.height = `${this.$el.clientHeight}px` + this.height = `${this.$el.clientHeight - 30}px` } }