index.tsx
12.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
// App.js
import '@/pages/OrderPrint/index.less';
// function Header() {
// return (
// <div className="flex items-start justify-between mb-6">
// <div className="text-sm">
// <p className="font-medium">网址: www.canrd.com</p>
// </div>
// <h1 className="text-3xl font-bold text-center">发票</h1>
// <div className="text-sm text-right">
// <p className="font-medium">QQ: 2902385824</p>
// </div>
// </div>
// );
// }
// function InvoiceDetails() {
// return (
// <div className="grid grid-cols-2 gap-4 mb-6 text-sm">
// <div>
// <p>单位名称: 某某科技有限公司</p>
// <p>联系人: 张三</p>
// <p>联系电话: 18583817221</p>
// <p>送货地址: 广东省东莞市</p>
// </div>
// <div className="text-right">
// <p>编号: Canrd-DZ-2023-1101-004</p>
// <p>开票日期: 2023年11月1日</p>
// </div>
// </div>
// );
// }
// function ProductsTable() {
// return (
// <div className="mb-6">
// <table className="w-full text-sm border border-gray-300 table-fixed">
// <thead>
// <tr className="">
// <th className="w-1/4 p-2 border border-gray-300 border-solid">
// 序号
// </th>
// <th className="w-1/6 p-2 border border-gray-300 border-solid">
// 订单号
// </th>
// <th className="w-1/6 p-2 border border-gray-300 border-solid">
// 货品名称
// </th>
// <th className="w-1/12 p-2 border border-gray-300 border-solid">
// 规格
// </th>
// <th className="w-1/6 p-2 border border-gray-300 border-solid">
// 单位
// </th>
// <th className="w-1/6 p-2 border border-gray-300 border-solid">
// 数量
// </th>
// <th className="w-1/4 p-2 border border-gray-300 border-solid">
// 备注
// </th>
// </tr>
// </thead>
// <tbody>
// <tr>
// <td className="p-2 whitespace-normal border border-gray-300 border-solid">
// 产品名称可能非常长,所以这里会自动换行
// </td>
// <td className="p-2 border border-gray-300 border-solid">
// 规格型号
// </td>
// <td className="p-2 border border-gray-300 border-solid">单位</td>
// <td className="p-2 border border-gray-300 border-solid">1</td>
// <td className="p-2 border border-gray-300 border-solid">400</td>
// <td className="p-2 border border-gray-300 border-solid">400</td>
// <td className="p-2 whitespace-normal border border-gray-300 border-solid">
// 备注信息可能也会很长,需要自动换行来适应内容
// </td>
// </tr>
// {/* 其他行 */}
// </tbody>
// </table>
// </div>
// );
// }
// function Footer() {
// return (
// <div className="text-sm">
// <p>备注: 一些备注文本...</p>
// <div className="flex items-center justify-between mt-4">
// <div>
// <p>销售人员: 签字</p>
// </div>
// <div>
// <p>业务员: 签字</p>
// </div>
// <div>
// <p>开票人: 签字</p>
// <p className="font-medium">总计: ¥400</p>
// </div>
// </div>
// </div>
// );
// }
function App() {
return (
<div className="flex items-center justify-center min-h-screen bg-gray-100">
<div className="w-full max-w-4xl p-10 bg-white border border-gray-300">
<table
width="846"
border={0}
cellPadding={0}
cellSpacing={0}
style={{
width: '423.00pt',
borderCollapse: 'collapse',
tableLayout: 'fixed',
}}
>
<col
width="25.50"
style={{ msoWidthSource: 'userset', msoWidthAlt: 544 }}
/>
<col
width="52.50"
style={{ msoWidthSource: 'userset', msoWidthAlt: 1120 }}
/>
<col
width="115.50"
style={{ msoWidthSource: 'userset', msoWidthAlt: 2464 }}
/>
<col
width="169.50"
style={{ msoWidthSource: 'userset', msoWidthAlt: 3616 }}
/>
<col
width="165"
style={{ msoWidthSource: 'userset', msoWidthAlt: 3520 }}
/>
<col
width="96"
style={{ msoWidthSource: 'userset', msoWidthAlt: 2048 }}
/>
<col
width="114"
style={{ msoWidthSource: 'userset', msoWidthAlt: 2432 }}
/>
<col width="108" style={{ width: '54.00pt' }} />
<tr height="42" style={{ height: '21.00pt' }}>
<td height="42" style={{ height: '21.00pt' }}></td>
<td
className="xl65"
colSpan="7"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
科 路 得
</td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td
className="xl66"
colSpan="7"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
网址:www.canrd.com
</td>
</tr>
<tr height="35" style={{ height: '17.50pt' }}>
<td height="35" style={{ height: '17.50pt' }}></td>
<td
className="xl67"
colSpan="7"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
销售出货单
</td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td
className="xl69"
colSpan="4"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
单位名称:武汉大学
</td>
<td
className="xl69"
colSpan="3"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
单号:Canrd-DZ-2023-1101-004
</td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td
className="xl69"
colSpan="4"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
联系人:陈程
</td>
<td
className="xl69"
colSpan="3"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
开单日期:2023年11月1日
</td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td
className="xl69"
colSpan="4"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
联系电话:15623543176-6556
</td>
<td
className="xl70"
colSpan={2}
style={{ msoIgnore: 'colspan' }}
></td>
<td className="xl70"></td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td
className="xl69"
colSpan="7"
style={{ borderRight: 'none', borderBottom: 'none' }}
>
送货地址:广东省 深圳市龙岗区吉华街道联创科产业园3期33幢刘荣华[
</td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl71">序号</td>
<td className="xl71">订单号</td>
<td className="xl71">货品名称</td>
<td className="xl71">规格</td>
<td className="xl71">单位</td>
<td className="xl71">数量</td>
<td className="xl71">备注</td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl72">1</td>
<td className="xl72">231101005</td>
<td className="xl71">纽扣电池检测夹具</td>
<td className="xl71">20系列</td>
<td className="xl71">个</td>
<td className="xl72">1</td>
<td className="xl72"></td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl72">2</td>
<td className="xl72">231101005</td>
<td className="xl72">笔记本</td>
<td className="xl72"></td>
<td className="xl72">本</td>
<td className="xl72"></td>
<td className="xl72"></td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl71"></td>
<td className="xl71"></td>
<td className="xl72"></td>
<td className="xl72"></td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
</tr>
<tr height="30" style={{ height: '15.00pt' }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
<td className="xl72"></td>
</tr>
<tr style={{ height: '19.00pt' }}>
<td style={{ height: '19.00pt' }}></td>
<td className="xl73">销货单位</td>
<td
className="xl74"
colSpan="3"
style={{
borderRight: '0.5pt solid windowtext',
borderBottom: '0.5pt solid windowtext',
}}
>
发货地址:广东省东莞市厚街镇锦丰路9号科路得产业园
</td>
<td className="xl73">开户银行及账号</td>
<td
className="xl74"
colSpan={2}
style={{
borderRight: '0.5pt solid windowtext',
borderBottom: '0.5pt solid windowtext',
}}
>
招商银行股份有限公司东莞东骏路支行
<br />
账号:769906437110802
</td>
</tr>
<tr style={{ height: 30 }}>
<td height="30" style={{ height: '15.00pt' }}></td>
<td className="xl76" colSpan={2} style={{ msoIgnore: 'colspan' }}>
客户签名:
</td>
<td className="xl76">核准:冯强</td>
<td
className="xl78"
colSpan={2}
style={{ borderRight: 'none', borderBottom: 'none' }}
>
业务员:Peter
</td>
<td
className="xl78"
colSpan={2}
style={{ borderRight: 'none', borderBottom: 'none' }}
>
开单人:许铭轩
</td>
</tr>
<tr style={{ display: 'none', width: 0 }}>
<td width="26" style={{ width: 13 }}></td>
<td width="53" style={{ width: 26 }}></td>
<td width="116" style={{ width: 58 }}></td>
<td width="170" style={{ width: 85 }}></td>
<td width="165" style={{ width: 83 }}></td>
<td width="96" style={{ width: 48 }}></td>
<td width="114" style={{ width: 57 }}></td>
</tr>
</table>
</div>
</div>
);
}
export default App;