ts-glitter 19.1.4 → 19.1.5
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/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/cms-plugin/cms-router.js +2 -6
- package/lowcode/cms-plugin/cms-router.ts +7 -6
- package/lowcode/cms-plugin/filter-options.js +3 -19
- package/lowcode/cms-plugin/filter-options.ts +3 -24
- package/lowcode/cms-plugin/module/order-excel.js +3 -1
- package/lowcode/cms-plugin/module/order-excel.ts +3 -1
- package/lowcode/cms-plugin/shopping-order-manager.js +442 -237
- package/lowcode/cms-plugin/shopping-order-manager.ts +458 -234
- package/lowcode/glitter-base/global/shipment-config.js +34 -10
- package/lowcode/glitter-base/global/shipment-config.ts +124 -100
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -132,7 +132,7 @@ export class Entry {
|
|
|
132
132
|
}
|
|
133
133
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
134
134
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
135
|
-
glitter.share.editerVersion = 'V_19.1.
|
|
135
|
+
glitter.share.editerVersion = 'V_19.1.5';
|
|
136
136
|
glitter.share.start = new Date();
|
|
137
137
|
const vm = { appConfig: [] };
|
|
138
138
|
window.saasConfig = {
|
package/lowcode/Entry.ts
CHANGED
|
@@ -132,7 +132,7 @@ export class Entry {
|
|
|
132
132
|
}
|
|
133
133
|
(window as any).renderClock = (window as any).renderClock ?? createClock();
|
|
134
134
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
135
|
-
glitter.share.editerVersion = 'V_19.1.
|
|
135
|
+
glitter.share.editerVersion = 'V_19.1.5';
|
|
136
136
|
glitter.share.start = new Date();
|
|
137
137
|
const vm = { appConfig: [] };
|
|
138
138
|
(window as any).saasConfig = {
|
|
@@ -27,15 +27,11 @@ export class CmsRouter {
|
|
|
27
27
|
break;
|
|
28
28
|
case 'fb_live':
|
|
29
29
|
case 'ig_live':
|
|
30
|
+
case 'line_plus':
|
|
30
31
|
resolve(`<div class="d-flex w-100 align-items-center justify-content-center">
|
|
31
|
-
<div class="insignia insignia-warning">功能優化中,預計於
|
|
32
|
+
<div class="insignia insignia-warning">功能優化中,預計於4月1號重新開放!</div>
|
|
32
33
|
</div>`);
|
|
33
34
|
break;
|
|
34
|
-
case 'line_plus':
|
|
35
|
-
gvc.glitter.getModule(new URL('./cms-plugin/live_capture.js', gvc.glitter.root_path).href, (cl) => {
|
|
36
|
-
resolve(cl.main(gvc, true));
|
|
37
|
-
});
|
|
38
|
-
break;
|
|
39
35
|
case 'shipment_list':
|
|
40
36
|
case 'shipment_list_archive':
|
|
41
37
|
gvc.glitter.getModule(new URL('./cms-plugin/shopping-order-manager.js', gvc.glitter.root_path).href, (cl) => {
|
|
@@ -32,16 +32,17 @@ export class CmsRouter{
|
|
|
32
32
|
break
|
|
33
33
|
case 'fb_live':
|
|
34
34
|
case 'ig_live':
|
|
35
|
+
case 'line_plus':
|
|
35
36
|
resolve(`<div class="d-flex w-100 align-items-center justify-content-center">
|
|
36
|
-
<div class="insignia insignia-warning">功能優化中,預計於
|
|
37
|
+
<div class="insignia insignia-warning">功能優化中,預計於4月1號重新開放!</div>
|
|
37
38
|
</div>`)
|
|
38
39
|
break
|
|
39
|
-
case 'line_plus':
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
|
|
42
|
+
// gvc.glitter.getModule(new URL('./cms-plugin/live_capture.js', gvc.glitter.root_path).href, (cl) => {
|
|
43
|
+
// resolve(cl.main(gvc,true))
|
|
44
|
+
// });
|
|
45
|
+
// break
|
|
45
46
|
case 'shipment_list':
|
|
46
47
|
case 'shipment_list_archive':
|
|
47
48
|
gvc.glitter.getModule(new URL('./cms-plugin/shopping-order-manager.js', gvc.glitter.root_path).href, (cl) => {
|
|
@@ -136,25 +136,7 @@ export class FilterOptions {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
static getOrderFunnel() {
|
|
139
|
-
var _a, _b;
|
|
140
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
-
const saasConfig = window.parent.saasConfig;
|
|
142
|
-
const response = yield saasConfig.api.getPrivateConfig(saasConfig.config.appName, 'logistics_setting');
|
|
143
|
-
let configData = ((_a = response.response.result[0]) === null || _a === void 0 ? void 0 : _a.value) || {};
|
|
144
|
-
if (!configData.language_data) {
|
|
145
|
-
configData.language_data = {
|
|
146
|
-
'en-US': { info: '' },
|
|
147
|
-
'zh-CN': { info: '' },
|
|
148
|
-
'zh-TW': { info: configData.info || '' },
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
const shipmentOptions = ShipmentConfig.list
|
|
152
|
-
.map(dd => {
|
|
153
|
-
return { key: dd.value, name: dd.title };
|
|
154
|
-
})
|
|
155
|
-
.concat(((_b = configData.custom_delivery) !== null && _b !== void 0 ? _b : []).map((dd) => {
|
|
156
|
-
return { key: dd.id, name: dd.name };
|
|
157
|
-
}));
|
|
158
140
|
return [
|
|
159
141
|
{ key: 'orderStatus', type: 'multi_checkbox', name: '訂單狀態', data: this.orderStatusOptions },
|
|
160
142
|
{ key: 'payload', type: 'multi_checkbox', name: '付款狀態', data: this.payloadStatusOptions },
|
|
@@ -167,7 +149,9 @@ export class FilterOptions {
|
|
|
167
149
|
return dd;
|
|
168
150
|
}) },
|
|
169
151
|
{ key: 'progress', type: 'multi_checkbox', name: '出貨狀況', data: this.progressOptions },
|
|
170
|
-
{ key: 'shipment', type: 'multi_checkbox', name: '運送方式', data:
|
|
152
|
+
{ key: 'shipment', type: 'multi_checkbox', name: '運送方式', data: yield ShipmentConfig.shipmentMethod({
|
|
153
|
+
type: 'support'
|
|
154
|
+
}) },
|
|
171
155
|
{
|
|
172
156
|
key: 'created_time',
|
|
173
157
|
type: 'during',
|
|
@@ -227,30 +227,7 @@ export class FilterOptions {
|
|
|
227
227
|
];
|
|
228
228
|
|
|
229
229
|
static async getOrderFunnel() {
|
|
230
|
-
const saasConfig: { config: any; api: any } = (window.parent as any).saasConfig;
|
|
231
|
-
const response: { response: any; result: boolean } = await saasConfig.api.getPrivateConfig(
|
|
232
|
-
saasConfig.config.appName,
|
|
233
|
-
'logistics_setting'
|
|
234
|
-
);
|
|
235
|
-
|
|
236
|
-
let configData: any = response.response.result[0]?.value || {};
|
|
237
|
-
if (!configData.language_data) {
|
|
238
|
-
configData.language_data = {
|
|
239
|
-
'en-US': { info: '' },
|
|
240
|
-
'zh-CN': { info: '' },
|
|
241
|
-
'zh-TW': { info: configData.info || '' },
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
230
|
|
|
245
|
-
const shipmentOptions = ShipmentConfig.list
|
|
246
|
-
.map(dd => {
|
|
247
|
-
return { key: dd.value, name: dd.title };
|
|
248
|
-
})
|
|
249
|
-
.concat(
|
|
250
|
-
(configData.custom_delivery ?? []).map((dd: any) => {
|
|
251
|
-
return { key: dd.id, name: dd.name };
|
|
252
|
-
})
|
|
253
|
-
);
|
|
254
231
|
|
|
255
232
|
|
|
256
233
|
return [
|
|
@@ -265,7 +242,9 @@ dd.name=`<div class="d-flex">${[BgWidget.warningInsignia('POS'),name].join(`<div
|
|
|
265
242
|
return dd
|
|
266
243
|
}) },
|
|
267
244
|
{ key: 'progress', type: 'multi_checkbox', name: '出貨狀況', data: this.progressOptions },
|
|
268
|
-
{ key: 'shipment', type: 'multi_checkbox', name: '運送方式', data:
|
|
245
|
+
{ key: 'shipment', type: 'multi_checkbox', name: '運送方式', data: await ShipmentConfig.shipmentMethod({
|
|
246
|
+
type:'support'
|
|
247
|
+
})},
|
|
269
248
|
{
|
|
270
249
|
key: 'created_time',
|
|
271
250
|
type: 'during',
|
|
@@ -92,7 +92,9 @@ export class OrderExcel {
|
|
|
92
92
|
}
|
|
93
93
|
const XLSX = yield Excel.loadXLSX(gvc);
|
|
94
94
|
const [shipment_methods, payment_methods] = yield Promise.all([
|
|
95
|
-
ShipmentConfig.
|
|
95
|
+
ShipmentConfig.shipmentMethod({
|
|
96
|
+
type: 'all'
|
|
97
|
+
}),
|
|
96
98
|
PaymentConfig.getSupportPayment(true),
|
|
97
99
|
]);
|
|
98
100
|
const showLineItems = this.headerColumn['商品'].some(a => column.includes(a));
|
|
@@ -167,7 +167,9 @@ export class OrderExcel {
|
|
|
167
167
|
|
|
168
168
|
// 取得琣送與付款方式設定檔
|
|
169
169
|
const [shipment_methods, payment_methods] = await Promise.all([
|
|
170
|
-
ShipmentConfig.
|
|
170
|
+
ShipmentConfig.shipmentMethod({
|
|
171
|
+
type:'all'
|
|
172
|
+
}),
|
|
171
173
|
PaymentConfig.getSupportPayment(true),
|
|
172
174
|
]);
|
|
173
175
|
|