Browse Source

批次界面更新

flower_bs 1 month ago
parent
commit
99b748da36

File diff suppressed because it is too large
+ 0 - 1
templates/dist/spa/css/3.4891132a.css


File diff suppressed because it is too large
+ 1 - 0
templates/dist/spa/css/3.bc221a0c.css


File diff suppressed because it is too large
+ 1 - 1
templates/dist/spa/index.html


File diff suppressed because it is too large
+ 1 - 0
templates/dist/spa/js/3.69fdbf6f.js


BIN
templates/dist/spa/js/3.69fdbf6f.js.gz


File diff suppressed because it is too large
+ 0 - 1
templates/dist/spa/js/3.6a620a69.js


BIN
templates/dist/spa/js/3.6a620a69.js.gz


File diff suppressed because it is too large
+ 1 - 1
templates/dist/spa/js/app.5b95df0a.js


BIN
templates/dist/spa/js/app.11fbd63d.js.gz


BIN
templates/dist/spa/js/app.5b95df0a.js.gz


+ 7 - 1
templates/src/pages/stock/management.vue

@@ -232,7 +232,7 @@
         <div class="stats-section">
           <div class="stats-panel" role="region" aria-label="统计面板">
             <div v-if="statsLoaded" class="stats-cards">
-              <q-card class="stat-card">
+              <q-card class="stat-card" @click="reFreshStatistics">
                 <q-card-section>
                   <div class="card-title">总体统计</div>
                   <div class="big-num">{{ stats.total_locations }}</div>
@@ -1253,6 +1253,12 @@ export default {
           this.statsLoaded = true;
         });
     },
+    reFreshStatistics() {
+      const layer = this.shelf.layer_now || 1;
+      const url = `location_statistics/refresh-statistics/?layer=${layer}`;
+      postauth(url)
+      
+    },
 
     _applyStats(item) {
       this.stats = item || {};