@things-factory/sales-base 8.0.0-beta.9 → 8.0.0
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/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/server/constants/attachment-type.ts +9 -0
- package/server/constants/index.ts +7 -0
- package/server/constants/load-type.ts +4 -0
- package/server/constants/order.ts +203 -0
- package/server/constants/product-group-type.ts +4 -0
- package/server/constants/release-good.ts +9 -0
- package/server/constants/transfer-order-type.ts +6 -0
- package/server/constants/validation-error-code.ts +3 -0
- package/server/constants/vas-target-type.ts +25 -0
- package/server/controllers/ecommerce/ecommerce-controller.ts +122 -0
- package/server/controllers/ecommerce/index.ts +2 -0
- package/server/controllers/ecommerce/sellercraft-controller.ts +182 -0
- package/server/controllers/index.ts +2 -0
- package/server/controllers/order-controller.ts +296 -0
- package/server/errors/index.ts +1 -0
- package/server/errors/validation-error.ts +25 -0
- package/server/index.ts +5 -0
- package/server/migrations/index.ts +9 -0
- package/server/service/arrival-notice/arrival-notice-mutation.ts +1152 -0
- package/server/service/arrival-notice/arrival-notice-query.ts +549 -0
- package/server/service/arrival-notice/arrival-notice-types.ts +310 -0
- package/server/service/arrival-notice/arrival-notice.ts +202 -0
- package/server/service/arrival-notice/index.ts +9 -0
- package/server/service/claim/claim-mutation.ts +308 -0
- package/server/service/claim/claim-query.ts +122 -0
- package/server/service/claim/claim-types.ts +130 -0
- package/server/service/claim/claim.ts +140 -0
- package/server/service/claim/index.ts +9 -0
- package/server/service/claim-detail/claim-detail-mutation.ts +102 -0
- package/server/service/claim-detail/claim-detail-query.ts +55 -0
- package/server/service/claim-detail/claim-detail-types.ts +47 -0
- package/server/service/claim-detail/claim-detail.ts +69 -0
- package/server/service/claim-detail/index.ts +9 -0
- package/server/service/claim-order/claim-order-mutation.ts +101 -0
- package/server/service/claim-order/claim-order-query.ts +47 -0
- package/server/service/claim-order/claim-order-types.ts +35 -0
- package/server/service/claim-order/claim-order.ts +81 -0
- package/server/service/claim-order/index.ts +9 -0
- package/server/service/collection-order/collection-order-mutation.ts +245 -0
- package/server/service/collection-order/collection-order-query.ts +97 -0
- package/server/service/collection-order/collection-order-types.ts +165 -0
- package/server/service/collection-order/collection-order.ts +135 -0
- package/server/service/collection-order/index.ts +9 -0
- package/server/service/delivery-order/delivery-order-mutation.ts +967 -0
- package/server/service/delivery-order/delivery-order-query.ts +631 -0
- package/server/service/delivery-order/delivery-order-types.ts +268 -0
- package/server/service/delivery-order/delivery-order.ts +258 -0
- package/server/service/delivery-order/index.ts +9 -0
- package/server/service/draft-release-good/draft-release-good-mutation.ts +765 -0
- package/server/service/draft-release-good/draft-release-good-query.ts +354 -0
- package/server/service/draft-release-good/draft-release-good-type.ts +261 -0
- package/server/service/draft-release-good/draft-release-good.ts +284 -0
- package/server/service/draft-release-good/index.ts +9 -0
- package/server/service/goods-receival-note/goods-receival-note-mutation.ts +129 -0
- package/server/service/goods-receival-note/goods-receival-note-query.ts +280 -0
- package/server/service/goods-receival-note/goods-receival-note-types.ts +105 -0
- package/server/service/goods-receival-note/goods-receival-note.ts +127 -0
- package/server/service/goods-receival-note/index.ts +9 -0
- package/server/service/index.ts +238 -0
- package/server/service/inventory-check/index.ts +9 -0
- package/server/service/inventory-check/inventory-check-mutation.ts +149 -0
- package/server/service/inventory-check/inventory-check-query.ts +48 -0
- package/server/service/inventory-check/inventory-check-types.ts +48 -0
- package/server/service/inventory-check/inventory-check.ts +90 -0
- package/server/service/invoice/index.ts +9 -0
- package/server/service/invoice/invoice-mutation.ts +95 -0
- package/server/service/invoice/invoice-query.ts +53 -0
- package/server/service/invoice/invoice-types.ts +279 -0
- package/server/service/invoice/invoice.ts +230 -0
- package/server/service/invoice-product/index.ts +9 -0
- package/server/service/invoice-product/invoice-product-mutation.ts +54 -0
- package/server/service/invoice-product/invoice-product-query.ts +54 -0
- package/server/service/invoice-product/invoice-product-types.ts +84 -0
- package/server/service/invoice-product/invoice-product.ts +92 -0
- package/server/service/job-sheet/index.ts +9 -0
- package/server/service/job-sheet/job-sheet-mutation.ts +92 -0
- package/server/service/job-sheet/job-sheet-query.ts +112 -0
- package/server/service/job-sheet/job-sheet-types.ts +78 -0
- package/server/service/job-sheet/job-sheet.ts +102 -0
- package/server/service/manifest/index.ts +6 -0
- package/server/service/manifest/manifest-mutation.ts +190 -0
- package/server/service/manifest/manifest-query.ts +149 -0
- package/server/service/manifest/manifest-type.ts +84 -0
- package/server/service/manifest/manifest.ts +114 -0
- package/server/service/order-inventory/index.ts +9 -0
- package/server/service/order-inventory/order-inventory-mutation.ts +54 -0
- package/server/service/order-inventory/order-inventory-query.ts +722 -0
- package/server/service/order-inventory/order-inventory-types.ts +238 -0
- package/server/service/order-inventory/order-inventory.ts +401 -0
- package/server/service/order-product/index.ts +9 -0
- package/server/service/order-product/order-product-mutation.ts +48 -0
- package/server/service/order-product/order-product-query.ts +89 -0
- package/server/service/order-product/order-product-types.ts +335 -0
- package/server/service/order-product/order-product.ts +362 -0
- package/server/service/order-tote/index.ts +9 -0
- package/server/service/order-tote/order-tote-mutation.ts +31 -0
- package/server/service/order-tote/order-tote-query.ts +112 -0
- package/server/service/order-tote/order-tote-types.ts +47 -0
- package/server/service/order-tote/order-tote.ts +73 -0
- package/server/service/order-tote-item/index.ts +9 -0
- package/server/service/order-tote-item/order-tote-item-mutation.ts +31 -0
- package/server/service/order-tote-item/order-tote-item-query.ts +82 -0
- package/server/service/order-tote-item/order-tote-item-types.ts +56 -0
- package/server/service/order-tote-item/order-tote-item.ts +72 -0
- package/server/service/order-tote-seal/index.ts +9 -0
- package/server/service/order-tote-seal/order-tote-seal-mutation.ts +31 -0
- package/server/service/order-tote-seal/order-tote-seal-query.ts +59 -0
- package/server/service/order-tote-seal/order-tote-seal-types.ts +41 -0
- package/server/service/order-tote-seal/order-tote-seal.ts +46 -0
- package/server/service/order-vas/index.ts +9 -0
- package/server/service/order-vas/order-vas-mutation.ts +20 -0
- package/server/service/order-vas/order-vas-query.ts +72 -0
- package/server/service/order-vas/order-vas-types.ts +159 -0
- package/server/service/order-vas/order-vas.ts +207 -0
- package/server/service/others/index.ts +5 -0
- package/server/service/others/other-query.ts +563 -0
- package/server/service/others/other-types.ts +115 -0
- package/server/service/purchase-order/index.ts +9 -0
- package/server/service/purchase-order/purchase-order-mutation.ts +458 -0
- package/server/service/purchase-order/purchase-order-query.ts +90 -0
- package/server/service/purchase-order/purchase-order-types.ts +154 -0
- package/server/service/purchase-order/purchase-order.ts +172 -0
- package/server/service/purchase-order-other-charge/index.ts +9 -0
- package/server/service/purchase-order-other-charge/purchase-order-other-charge-mutation.ts +31 -0
- package/server/service/purchase-order-other-charge/purchase-order-other-charge-query.ts +52 -0
- package/server/service/purchase-order-other-charge/purchase-order-other-charge-types.ts +44 -0
- package/server/service/purchase-order-other-charge/purchase-order-other-charge.ts +68 -0
- package/server/service/release-good/index.ts +9 -0
- package/server/service/release-good/release-good-mutation.ts +1686 -0
- package/server/service/release-good/release-good-query.ts +980 -0
- package/server/service/release-good/release-good-types.ts +662 -0
- package/server/service/release-good/release-good.ts +490 -0
- package/server/service/retail-replenishment-order/index.ts +9 -0
- package/server/service/retail-replenishment-order/retail-replenishment-order-mutation.ts +382 -0
- package/server/service/retail-replenishment-order/retail-replenishment-order-query.ts +54 -0
- package/server/service/retail-replenishment-order/retail-replenishment-order-types.ts +101 -0
- package/server/service/retail-replenishment-order/retail-replenishment-order.ts +115 -0
- package/server/service/return-order/index.ts +9 -0
- package/server/service/return-order/return-order-mutation.ts +516 -0
- package/server/service/return-order/return-order-query.ts +226 -0
- package/server/service/return-order/return-order-types.ts +196 -0
- package/server/service/return-order/return-order.ts +127 -0
- package/server/service/reverse-kitting-order/index.ts +9 -0
- package/server/service/reverse-kitting-order/reverse-kitting-order-mutation.ts +500 -0
- package/server/service/reverse-kitting-order/reverse-kitting-order-query.ts +197 -0
- package/server/service/reverse-kitting-order/reverse-kitting-order-type.ts +173 -0
- package/server/service/reverse-kitting-order/reverse-kitting-order.ts +121 -0
- package/server/service/reverse-kitting-order-inventory/index.ts +9 -0
- package/server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.ts +129 -0
- package/server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-query.ts +52 -0
- package/server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-type.ts +95 -0
- package/server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory.ts +143 -0
- package/server/service/shipping-order/index.ts +9 -0
- package/server/service/shipping-order/shipping-order-mutation.ts +61 -0
- package/server/service/shipping-order/shipping-order-query.ts +61 -0
- package/server/service/shipping-order/shipping-order-types.ts +89 -0
- package/server/service/shipping-order/shipping-order.ts +129 -0
- package/server/service/transfer-order/index.ts +9 -0
- package/server/service/transfer-order/transfer-order-mutation.ts +309 -0
- package/server/service/transfer-order/transfer-order-query.ts +66 -0
- package/server/service/transfer-order/transfer-order-types.ts +97 -0
- package/server/service/transfer-order/transfer-order.ts +117 -0
- package/server/service/vas/index.ts +9 -0
- package/server/service/vas/vas-mutation.ts +106 -0
- package/server/service/vas/vas-query.ts +60 -0
- package/server/service/vas/vas-types.ts +71 -0
- package/server/service/vas/vas.ts +77 -0
- package/server/service/vas-order/index.ts +9 -0
- package/server/service/vas-order/vas-order-mutation.ts +259 -0
- package/server/service/vas-order/vas-order-query.ts +119 -0
- package/server/service/vas-order/vas-order-types.ts +49 -0
- package/server/service/vas-order/vas-order.ts +81 -0
- package/server/utils/datetime-util.ts +54 -0
- package/server/utils/index.ts +3 -0
- package/server/utils/inventory-util.ts +1155 -0
- package/server/utils/order-no-generator.ts +146 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Field,
|
|
3
|
+
Float,
|
|
4
|
+
InputType,
|
|
5
|
+
Int,
|
|
6
|
+
ObjectType
|
|
7
|
+
} from 'type-graphql'
|
|
8
|
+
|
|
9
|
+
import { ObjectRef } from '@things-factory/shell'
|
|
10
|
+
|
|
11
|
+
import { NewOrderProduct } from '../order-product/order-product-types'
|
|
12
|
+
import { NewOrderVas } from '../order-vas/order-vas-types'
|
|
13
|
+
import { ArrivalNotice } from './arrival-notice'
|
|
14
|
+
|
|
15
|
+
@ObjectType()
|
|
16
|
+
export class ArrivalNoticeList {
|
|
17
|
+
@Field(type => [ArrivalNotice])
|
|
18
|
+
items: ArrivalNotice[]
|
|
19
|
+
|
|
20
|
+
@Field(type => Int)
|
|
21
|
+
total: number
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@InputType()
|
|
25
|
+
export class NewArrivalNotice {
|
|
26
|
+
@Field({ nullable: true })
|
|
27
|
+
name: string
|
|
28
|
+
|
|
29
|
+
@Field({ nullable: true })
|
|
30
|
+
description: string
|
|
31
|
+
|
|
32
|
+
@Field({ nullable: true })
|
|
33
|
+
containerNo: string
|
|
34
|
+
|
|
35
|
+
@Field({ nullable: true })
|
|
36
|
+
container: boolean
|
|
37
|
+
|
|
38
|
+
@Field()
|
|
39
|
+
ownTransport: boolean
|
|
40
|
+
|
|
41
|
+
@Field({ nullable: true })
|
|
42
|
+
crossDocking: boolean
|
|
43
|
+
|
|
44
|
+
@Field({ nullable: true })
|
|
45
|
+
importCargo: boolean
|
|
46
|
+
|
|
47
|
+
@Field({ nullable: true })
|
|
48
|
+
looseItem: boolean
|
|
49
|
+
|
|
50
|
+
@Field({ nullable: true })
|
|
51
|
+
ata: string
|
|
52
|
+
|
|
53
|
+
@Field({ nullable: true })
|
|
54
|
+
eta: string
|
|
55
|
+
|
|
56
|
+
@Field({ nullable: true })
|
|
57
|
+
etaDate: string
|
|
58
|
+
|
|
59
|
+
@Field({ nullable: true })
|
|
60
|
+
truckNo: string
|
|
61
|
+
|
|
62
|
+
@Field({ nullable: true })
|
|
63
|
+
refNo: string
|
|
64
|
+
|
|
65
|
+
@Field({ nullable: true })
|
|
66
|
+
refNo2: string
|
|
67
|
+
|
|
68
|
+
@Field({ nullable: true })
|
|
69
|
+
refNo3: string
|
|
70
|
+
|
|
71
|
+
@Field({ nullable: true })
|
|
72
|
+
status: string
|
|
73
|
+
|
|
74
|
+
@Field({ nullable: true })
|
|
75
|
+
remark: string
|
|
76
|
+
|
|
77
|
+
@Field(type => [NewOrderProduct], { nullable: true })
|
|
78
|
+
orderProducts: NewOrderProduct[]
|
|
79
|
+
|
|
80
|
+
@Field(type => [NewOrderVas], { nullable: true })
|
|
81
|
+
orderVass: NewOrderVas[]
|
|
82
|
+
|
|
83
|
+
@Field({ nullable: true })
|
|
84
|
+
deliveryOrderNo: string
|
|
85
|
+
|
|
86
|
+
@Field({ nullable: true })
|
|
87
|
+
containerSize: string
|
|
88
|
+
|
|
89
|
+
@Field({ nullable: true })
|
|
90
|
+
warehouseId: string // outletID
|
|
91
|
+
|
|
92
|
+
@Field({ nullable: true })
|
|
93
|
+
supplier: string
|
|
94
|
+
|
|
95
|
+
@Field({ nullable: true })
|
|
96
|
+
customerBizplaceId: string // customerID
|
|
97
|
+
|
|
98
|
+
@Field({ nullable: true })
|
|
99
|
+
partnerBizplaceId: string
|
|
100
|
+
|
|
101
|
+
@Field({ nullable: true })
|
|
102
|
+
sku: string
|
|
103
|
+
|
|
104
|
+
@Field({ nullable: true })
|
|
105
|
+
batchId?: string
|
|
106
|
+
|
|
107
|
+
@Field({ nullable: true })
|
|
108
|
+
batchIdRef?: string
|
|
109
|
+
|
|
110
|
+
@Field({ nullable: true })
|
|
111
|
+
packingType?: string
|
|
112
|
+
|
|
113
|
+
@Field(type => Float, { nullable: true })
|
|
114
|
+
packingSize?: number
|
|
115
|
+
|
|
116
|
+
@Field(type => Float, { nullable: true })
|
|
117
|
+
packQty?: number
|
|
118
|
+
|
|
119
|
+
@Field(type => Float, { nullable: true })
|
|
120
|
+
uomValue?: number
|
|
121
|
+
|
|
122
|
+
@Field({ nullable: true })
|
|
123
|
+
uom?: string
|
|
124
|
+
|
|
125
|
+
@Field(type => Int, { nullable: true })
|
|
126
|
+
palletQty?: number
|
|
127
|
+
|
|
128
|
+
@Field(type => Float, { nullable: true })
|
|
129
|
+
unitPrice?: number
|
|
130
|
+
|
|
131
|
+
@Field({ nullable: true })
|
|
132
|
+
manufactureDate?: string
|
|
133
|
+
|
|
134
|
+
@Field({ nullable: true })
|
|
135
|
+
source?: string
|
|
136
|
+
|
|
137
|
+
@Field({ nullable: true })
|
|
138
|
+
errorMsg: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@InputType()
|
|
142
|
+
export class ArrivalNoticePatch {
|
|
143
|
+
@Field({ nullable: true })
|
|
144
|
+
name: string
|
|
145
|
+
|
|
146
|
+
@Field(type => ObjectRef, { nullable: true })
|
|
147
|
+
bizplace: ObjectRef
|
|
148
|
+
|
|
149
|
+
@Field({ nullable: true })
|
|
150
|
+
description: string
|
|
151
|
+
|
|
152
|
+
@Field({ nullable: true })
|
|
153
|
+
containerNo: string
|
|
154
|
+
|
|
155
|
+
@Field({ nullable: true })
|
|
156
|
+
container: boolean
|
|
157
|
+
|
|
158
|
+
@Field({ nullable: true })
|
|
159
|
+
ownTransport: boolean
|
|
160
|
+
|
|
161
|
+
@Field({ nullable: true })
|
|
162
|
+
crossDocking: boolean
|
|
163
|
+
|
|
164
|
+
@Field({ nullable: true })
|
|
165
|
+
importCargo: boolean
|
|
166
|
+
|
|
167
|
+
@Field({ nullable: true })
|
|
168
|
+
eta: string
|
|
169
|
+
|
|
170
|
+
@Field({ nullable: true })
|
|
171
|
+
ata: string
|
|
172
|
+
|
|
173
|
+
@Field({ nullable: true })
|
|
174
|
+
containerSize: string
|
|
175
|
+
|
|
176
|
+
@Field({ nullable: true })
|
|
177
|
+
looseItem: boolean
|
|
178
|
+
|
|
179
|
+
@Field({ nullable: true })
|
|
180
|
+
fromDate: string
|
|
181
|
+
|
|
182
|
+
@Field({ nullable: true })
|
|
183
|
+
toDate: string
|
|
184
|
+
|
|
185
|
+
@Field({ nullable: true })
|
|
186
|
+
mtDate: string
|
|
187
|
+
|
|
188
|
+
@Field({ nullable: true })
|
|
189
|
+
etaDate: string
|
|
190
|
+
|
|
191
|
+
@Field({ nullable: true })
|
|
192
|
+
truckNo: string
|
|
193
|
+
|
|
194
|
+
@Field({ nullable: true })
|
|
195
|
+
refNo: string
|
|
196
|
+
|
|
197
|
+
@Field({ nullable: true })
|
|
198
|
+
refNo2: string
|
|
199
|
+
|
|
200
|
+
@Field({ nullable: true })
|
|
201
|
+
refNo3: string
|
|
202
|
+
|
|
203
|
+
@Field({ nullable: true })
|
|
204
|
+
remark: string
|
|
205
|
+
|
|
206
|
+
@Field({ nullable: true })
|
|
207
|
+
status: string
|
|
208
|
+
|
|
209
|
+
@Field(type => [ObjectRef], { nullable: true })
|
|
210
|
+
orderProducts: ObjectRef[]
|
|
211
|
+
|
|
212
|
+
@Field(type => [ObjectRef], { nullable: true })
|
|
213
|
+
orderVass: ObjectRef[]
|
|
214
|
+
|
|
215
|
+
@Field(type => [ObjectRef], { nullable: true })
|
|
216
|
+
collectionOrders: ObjectRef[]
|
|
217
|
+
|
|
218
|
+
@Field({ nullable: true })
|
|
219
|
+
deliveryOrderNo: string
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@ObjectType()
|
|
223
|
+
export class RawArrivalNotice {
|
|
224
|
+
@Field({ nullable: true })
|
|
225
|
+
id?: string
|
|
226
|
+
|
|
227
|
+
@Field({ nullable: true })
|
|
228
|
+
name?: string
|
|
229
|
+
|
|
230
|
+
@Field({ nullable: true })
|
|
231
|
+
refNo?: string
|
|
232
|
+
|
|
233
|
+
@Field({ nullable: true })
|
|
234
|
+
refNo2?: string
|
|
235
|
+
|
|
236
|
+
@Field({ nullable: true })
|
|
237
|
+
refNo3?: string
|
|
238
|
+
|
|
239
|
+
@Field({ nullable: true })
|
|
240
|
+
etaDate?: string
|
|
241
|
+
|
|
242
|
+
@Field({ nullable: true })
|
|
243
|
+
truckNo?: string
|
|
244
|
+
|
|
245
|
+
@Field()
|
|
246
|
+
ownTransport: boolean
|
|
247
|
+
|
|
248
|
+
@Field({ nullable: true })
|
|
249
|
+
productId?: string
|
|
250
|
+
|
|
251
|
+
@Field({ nullable: true })
|
|
252
|
+
container?: boolean
|
|
253
|
+
|
|
254
|
+
@Field({ nullable: true })
|
|
255
|
+
containerNo?: string
|
|
256
|
+
|
|
257
|
+
@Field({ nullable: true })
|
|
258
|
+
containerSize?: string
|
|
259
|
+
|
|
260
|
+
@Field({ nullable: true })
|
|
261
|
+
looseItem?: boolean
|
|
262
|
+
|
|
263
|
+
@Field({ nullable: true })
|
|
264
|
+
importCargo?: boolean
|
|
265
|
+
|
|
266
|
+
@Field({ nullable: true })
|
|
267
|
+
productDetailId?: string
|
|
268
|
+
|
|
269
|
+
@Field({ nullable: true })
|
|
270
|
+
sku?: string
|
|
271
|
+
|
|
272
|
+
@Field({ nullable: true })
|
|
273
|
+
productInfo?: string
|
|
274
|
+
|
|
275
|
+
@Field({ nullable: true })
|
|
276
|
+
batchId?: string
|
|
277
|
+
|
|
278
|
+
@Field({ nullable: true })
|
|
279
|
+
batchIdRef?: string
|
|
280
|
+
|
|
281
|
+
@Field({ nullable: true })
|
|
282
|
+
packingType?: string
|
|
283
|
+
|
|
284
|
+
@Field(type => Float, { nullable: true })
|
|
285
|
+
packingSize?: number
|
|
286
|
+
|
|
287
|
+
@Field(type => Float, { nullable: true })
|
|
288
|
+
packQty?: number
|
|
289
|
+
|
|
290
|
+
@Field(type => Float, { nullable: true })
|
|
291
|
+
uomValue?: number
|
|
292
|
+
|
|
293
|
+
@Field({ nullable: true })
|
|
294
|
+
totalUomValue?: string
|
|
295
|
+
|
|
296
|
+
@Field({ nullable: true })
|
|
297
|
+
uom?: string
|
|
298
|
+
|
|
299
|
+
@Field(type => Int, { nullable: true })
|
|
300
|
+
palletQty?: number
|
|
301
|
+
|
|
302
|
+
@Field(type => Float, { nullable: true })
|
|
303
|
+
unitPrice?: number
|
|
304
|
+
|
|
305
|
+
@Field({ nullable: true })
|
|
306
|
+
manufactureDate?: string
|
|
307
|
+
|
|
308
|
+
@Field({ nullable: true })
|
|
309
|
+
errorMsg?: string
|
|
310
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { Field, ID, ObjectType } from 'type-graphql'
|
|
2
|
+
import {
|
|
3
|
+
Column,
|
|
4
|
+
CreateDateColumn,
|
|
5
|
+
Entity,
|
|
6
|
+
Index,
|
|
7
|
+
JoinColumn,
|
|
8
|
+
ManyToOne,
|
|
9
|
+
OneToMany,
|
|
10
|
+
OneToOne,
|
|
11
|
+
PrimaryGeneratedColumn,
|
|
12
|
+
RelationId,
|
|
13
|
+
UpdateDateColumn
|
|
14
|
+
} from 'typeorm'
|
|
15
|
+
|
|
16
|
+
import { Attachment } from '@things-factory/attachment-base'
|
|
17
|
+
import { User } from '@things-factory/auth-base'
|
|
18
|
+
import { Bizplace, ContactPoint } from '@things-factory/biz-base'
|
|
19
|
+
import { Domain } from '@things-factory/shell'
|
|
20
|
+
|
|
21
|
+
import { CollectionOrder } from '../collection-order/collection-order'
|
|
22
|
+
import { OrderInventory } from '../order-inventory/order-inventory'
|
|
23
|
+
import { OrderProduct } from '../order-product/order-product'
|
|
24
|
+
import { OrderVas } from '../order-vas/order-vas'
|
|
25
|
+
import { PurchaseOrder } from '../purchase-order/purchase-order'
|
|
26
|
+
import { ReleaseGood } from '../release-good/release-good'
|
|
27
|
+
|
|
28
|
+
@Entity()
|
|
29
|
+
@Index('ix_arrival-notice_0', (arrivalNotice: ArrivalNotice) => [arrivalNotice.domain, arrivalNotice.name], {
|
|
30
|
+
unique: true
|
|
31
|
+
})
|
|
32
|
+
@ObjectType()
|
|
33
|
+
export class ArrivalNotice {
|
|
34
|
+
@PrimaryGeneratedColumn('uuid')
|
|
35
|
+
@Field(type => ID)
|
|
36
|
+
readonly id: string
|
|
37
|
+
|
|
38
|
+
@ManyToOne(type => Domain, { nullable: false })
|
|
39
|
+
@Field(type => Domain)
|
|
40
|
+
domain: Domain
|
|
41
|
+
|
|
42
|
+
@RelationId((arrivalNotice: ArrivalNotice) => arrivalNotice.domain)
|
|
43
|
+
domainId: string
|
|
44
|
+
|
|
45
|
+
@ManyToOne(type => Bizplace, { nullable: false })
|
|
46
|
+
@Field(type => Bizplace)
|
|
47
|
+
bizplace: Bizplace
|
|
48
|
+
|
|
49
|
+
@RelationId((arrivalNotice: ArrivalNotice) => arrivalNotice.bizplace)
|
|
50
|
+
bizplaceId: string
|
|
51
|
+
|
|
52
|
+
@Column()
|
|
53
|
+
@Field()
|
|
54
|
+
name: string
|
|
55
|
+
|
|
56
|
+
@Column({ nullable: true })
|
|
57
|
+
@Field({ nullable: true })
|
|
58
|
+
containerNo: string
|
|
59
|
+
|
|
60
|
+
@Column({ nullable: true })
|
|
61
|
+
@Field({ nullable: true })
|
|
62
|
+
containerSize: string
|
|
63
|
+
|
|
64
|
+
@Column({ nullable: true })
|
|
65
|
+
@Field({ nullable: true })
|
|
66
|
+
container: boolean
|
|
67
|
+
|
|
68
|
+
@Column()
|
|
69
|
+
@Field()
|
|
70
|
+
ownTransport: boolean
|
|
71
|
+
|
|
72
|
+
@Column({ nullable: true })
|
|
73
|
+
@Field({ nullable: true })
|
|
74
|
+
crossDocking: boolean
|
|
75
|
+
|
|
76
|
+
@ManyToOne(type => ReleaseGood, { nullable: true })
|
|
77
|
+
@Field(type => ReleaseGood, { nullable: true })
|
|
78
|
+
releaseGood: ReleaseGood
|
|
79
|
+
|
|
80
|
+
@RelationId((arrivalNotice: ArrivalNotice) => arrivalNotice.releaseGood)
|
|
81
|
+
releaseGoodId: string
|
|
82
|
+
|
|
83
|
+
@Column()
|
|
84
|
+
@Field()
|
|
85
|
+
importCargo: boolean
|
|
86
|
+
|
|
87
|
+
@OneToMany(type => OrderProduct, orderProduct => orderProduct.arrivalNotice)
|
|
88
|
+
@Field(type => [OrderProduct], { nullable: true })
|
|
89
|
+
orderProducts: OrderProduct[]
|
|
90
|
+
|
|
91
|
+
@OneToMany(type => OrderInventory, orderInventory => orderInventory.arrivalNotice)
|
|
92
|
+
@Field(type => [OrderInventory], { nullable: true })
|
|
93
|
+
orderInventories: OrderInventory[]
|
|
94
|
+
|
|
95
|
+
@OneToMany(type => OrderVas, orderVas => orderVas.arrivalNotice)
|
|
96
|
+
@Field(type => [OrderVas], { nullable: true })
|
|
97
|
+
orderVass: OrderVas[]
|
|
98
|
+
|
|
99
|
+
@OneToMany(type => CollectionOrder, collectionOrder => collectionOrder.arrivalNotice)
|
|
100
|
+
@Field(type => [CollectionOrder], { nullable: true })
|
|
101
|
+
collectionOrders: CollectionOrder[]
|
|
102
|
+
|
|
103
|
+
@Column({ nullable: true })
|
|
104
|
+
@Field({ nullable: true })
|
|
105
|
+
looseItem: boolean
|
|
106
|
+
|
|
107
|
+
@Column({ nullable: true })
|
|
108
|
+
@Field({ nullable: true })
|
|
109
|
+
eta: Date
|
|
110
|
+
|
|
111
|
+
@Column({ nullable: true })
|
|
112
|
+
@Field({ nullable: true })
|
|
113
|
+
ata: Date
|
|
114
|
+
|
|
115
|
+
@Column({ nullable: true })
|
|
116
|
+
@Field({ nullable: true })
|
|
117
|
+
refNo: string
|
|
118
|
+
|
|
119
|
+
@Column({ nullable: true })
|
|
120
|
+
@Field({ nullable: true })
|
|
121
|
+
refNo2: string
|
|
122
|
+
|
|
123
|
+
@Column({ nullable: true })
|
|
124
|
+
@Field({ nullable: true })
|
|
125
|
+
refNo3: string
|
|
126
|
+
|
|
127
|
+
@Column({ nullable: true })
|
|
128
|
+
@Field({ nullable: true })
|
|
129
|
+
etaDate: string
|
|
130
|
+
|
|
131
|
+
@Column({ nullable: true })
|
|
132
|
+
@Field({ nullable: true })
|
|
133
|
+
truckNo: string
|
|
134
|
+
|
|
135
|
+
@Column()
|
|
136
|
+
@Field()
|
|
137
|
+
status: string
|
|
138
|
+
|
|
139
|
+
@Column({ nullable: true })
|
|
140
|
+
@Field({ nullable: true })
|
|
141
|
+
remark: string
|
|
142
|
+
|
|
143
|
+
@Column({ nullable: true })
|
|
144
|
+
@Field({ nullable: true })
|
|
145
|
+
deliveryOrderNo: string
|
|
146
|
+
|
|
147
|
+
@Column({ nullable: true })
|
|
148
|
+
@Field({ nullable: true })
|
|
149
|
+
description: string
|
|
150
|
+
|
|
151
|
+
@Column({ nullable: true })
|
|
152
|
+
@Field({ nullable: true })
|
|
153
|
+
source: string
|
|
154
|
+
|
|
155
|
+
@OneToOne(type => PurchaseOrder, { nullable: true })
|
|
156
|
+
@JoinColumn()
|
|
157
|
+
@Field(type => PurchaseOrder, { nullable: true })
|
|
158
|
+
purchaseOrder: PurchaseOrder
|
|
159
|
+
|
|
160
|
+
@CreateDateColumn()
|
|
161
|
+
@Field()
|
|
162
|
+
createdAt: Date
|
|
163
|
+
|
|
164
|
+
@UpdateDateColumn()
|
|
165
|
+
@Field()
|
|
166
|
+
updatedAt: Date
|
|
167
|
+
|
|
168
|
+
@ManyToOne(type => User, { nullable: true })
|
|
169
|
+
@Field(type => User, { nullable: true })
|
|
170
|
+
acceptedBy: User
|
|
171
|
+
|
|
172
|
+
@RelationId((arrivalNotice: ArrivalNotice) => arrivalNotice.acceptedBy)
|
|
173
|
+
acceptedById: string
|
|
174
|
+
|
|
175
|
+
@Column({ nullable: true })
|
|
176
|
+
@Field({ nullable: true })
|
|
177
|
+
acceptedAt: Date
|
|
178
|
+
|
|
179
|
+
@ManyToOne(type => ContactPoint, { nullable: true })
|
|
180
|
+
@Field(type => ContactPoint, { nullable: true })
|
|
181
|
+
supplier: ContactPoint
|
|
182
|
+
|
|
183
|
+
@RelationId((arrivalNotice: ArrivalNotice) => arrivalNotice.supplier)
|
|
184
|
+
supplierId: string
|
|
185
|
+
|
|
186
|
+
@Field(type => [Attachment], { nullable: true })
|
|
187
|
+
attachment?: Attachment[]
|
|
188
|
+
|
|
189
|
+
@ManyToOne(type => User)
|
|
190
|
+
@Field(type => User, { nullable: true })
|
|
191
|
+
creator: User
|
|
192
|
+
|
|
193
|
+
@RelationId((arrivalNotice: ArrivalNotice) => arrivalNotice.creator)
|
|
194
|
+
creatorId: string
|
|
195
|
+
|
|
196
|
+
@ManyToOne(type => User)
|
|
197
|
+
@Field(type => User, { nullable: true })
|
|
198
|
+
updater: User
|
|
199
|
+
|
|
200
|
+
@RelationId((arrivalNotice: ArrivalNotice) => arrivalNotice.updater)
|
|
201
|
+
updaterId: string
|
|
202
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ArrivalNotice } from './arrival-notice'
|
|
2
|
+
import { ArrivalNoticeMutation } from './arrival-notice-mutation'
|
|
3
|
+
import { ArrivalNoticeQuery } from './arrival-notice-query'
|
|
4
|
+
|
|
5
|
+
export const entities = [ArrivalNotice]
|
|
6
|
+
export const resolvers = [ArrivalNoticeQuery, ArrivalNoticeMutation]
|
|
7
|
+
|
|
8
|
+
export * from './arrival-notice-mutation'
|
|
9
|
+
export * from './arrival-notice-query'
|