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
|
|
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) =>
|