geer-builder 1.2.727 → 1.2.729

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/GProductCode.vue CHANGED
@@ -93,7 +93,7 @@ import GlobalMixins from './mixins/global_mixins';
93
93
  import ProductCodeDialog from './dialogs/ProductCodeDialog';
94
94
  import UseProductCodeDialog from './dialogs/UseProductCodeDialog';
95
95
  import UseBatchProductCodeDialog from './dialogs/UseBatchProductCodeDialog';
96
- const moment = require("moment");
96
+ const moment = require('moment-timezone');
97
97
 
98
98
 
99
99
 
@@ -164,6 +164,8 @@ export default
164
164
  },
165
165
  async openBatch()
166
166
  {
167
+ await this.loadCodes();
168
+ console.log(this.unused_code);
167
169
  this.is_batch_use_open = true;
168
170
  },
169
171
 
@@ -174,6 +176,12 @@ export default
174
176
  },
175
177
  async loadCodes()
176
178
  {
179
+ this.unused_code = [];
180
+ this.code_list = [];
181
+ this.code = null;
182
+ this.used_count = 0;
183
+ this.unused_count = 0;
184
+
177
185
  await this.$bind('code_list', this.db_product_code.collection().where('slot_code', '==', this.user_info.active_slot));
178
186
 
179
187
  this.code_list.forEach(async(code) =>
@@ -305,7 +305,7 @@ export default
305
305
  .code-holder{
306
306
  overflow-x: hidden;
307
307
  overflow-y: scroll;
308
- height: 430px;
308
+ height: 400px;
309
309
  width: 100%;
310
310
  .code{
311
311
  &-list{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.727",
3
+ "version": "1.2.729",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {