Offer.vue
6.78 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
<template>
<div class="offer-container" ref="print">
<div class="tem_list">
<div class="tem_main">
<h1>公司信息</h1>
<h2>报 价 单</h2>
<h4>TO:</h4>
<p class="title">感谢惠顾,现将贵公司所需配件报价如下:</p>
<p class="lip">一、产品价格</p>
<div style="padding: 0 1px 0 0">
<el-table :data="tableData" border>
<el-table-column prop="order" label="序号" width="50"></el-table-column>
<el-table-column prop="name" label="品名" width="150"></el-table-column>
<el-table-column prop="standards" label="规格" width="100"></el-table-column>
<el-table-column prop="num" label="数量" width="60"></el-table-column>
<el-table-column prop="unit" label="单位" width="60"></el-table-column>
<el-table-column prop="unitprice" label="单价"></el-table-column>
<el-table-column prop="total" label="金额"></el-table-column>
<el-table-column prop="remarks" label="备注"></el-table-column>
</el-table>
</div>
<p class="lip">二、通讯联络</p>
<div class="content1">
<div class="item">
<span>需方联系人员:</span>
<span>丰梦琪</span>
</div>
<div class="item">
<span>供方联系人员:</span>
<span>应白梦</span>
</div>
<div class="item">
<span>需方联系电话:</span>
<span>13802141322</span>
</div>
<div class="item">
<span>供方联系电话:</span>
<span>13802141322</span>
</div>
<div class="item">
<span>需方传真号码:</span>
<span>010-88888888</span>
</div>
<div class="item">
<span>供方传真号码:</span>
<span>021-88888888</span>
</div>
<div class="item">
<span>供方地址:</span>
<span>北京市海淀区西直门北大街42号</span>
</div>
<div class="item">
<span>供方地址:</span>
<span>上海市青浦区</span>
</div>
<div class="item">
<span>供方邮编:</span>
<span>100000</span>
</div>
<div class="item">
<span>供方邮编:</span>
<span>201799</span>
</div>
</div>
<div class="temdate">日 期:2017-11-29</div>
<div class="seal">盖章:</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
connect: {
user: "丰梦琪",
supply: "应白梦",
userPhone: "13802141322",
supplyPhone: "13004363886",
useremail: "010-88888888",
supplyemail: "021-88888888",
useraddress: "北京市海淀区西直门北大街42号",
supplyaddress: "上海市青浦区",
userPostcode: "100000",
suPostcode: "201799",
},
tableData: [
{
order: "1",
name: "服务器硬件",
standards: "联想",
num: "5",
unit: "台",
unitprice: "20000.00",
total: "100000.00",
remarks: "",
},
{
order: "2",
name: "数据库正版",
standards: "SQLServer",
num: "5",
unit: "套",
unitprice: "9998.00",
total: "49990.00",
remarks: "",
},
{
order: "3",
name: "OA内部管理系统",
standards: "定制",
num: "5",
unit: "套",
unitprice: "390000.00",
total: " 390000.00",
remarks: "",
},
{
order: "4",
name: "进销存管理系统",
standards: "定制",
num: "5",
unit: "套",
unitprice: "260000.00",
total: "260000.00",
remarks: "",
},
{
order: "5",
name: " 服务费",
standards: "",
num: "5",
unit: "年",
unitprice: "80000.00",
total: "80000.00",
remarks: "",
},
{
order: "6",
name: "差旅费用",
standards: "",
num: "5",
unit: "年",
unitprice: "60000.00",
total: "80000.00",
remarks: "",
},
],
};
}
};
</script>
<style lang="scss" scoped>
.tem_main {
width: 800px;
margin: 0 auto;
}
.content1 {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
.item {
width: 345px;
padding: 8px 0;
border-bottom: 1px solid #ebeef5;
span {
font-size: 12px;
padding: 10px 0;
color: #606266;
}
}
}
.el-table,
.content1 {
width: 720px !important;
margin: 0 auto !important;
}
h1,
h2,
h3 {
text-align: center !important;
}
p,
h4 {
width: 720px !important;
margin: 0 auto !important;
}
p.title {
border-bottom: 2px dashed #606266;
line-height: 30px;
font-size: 12px;
color: #606266;
}
p.lip {
padding: 20px 0;
color: #606266;
}
.temdate {
font-size: 12px;
width: 602px;
margin: 0 auto;
text-align: right;
margin: 20px 60px;
color: #606266;
}
.seal {
font-size: 12px;
width: 480px;
margin: 0 auto;
text-align: right;
margin: 10px 120px;
padding-bottom: 40px;
color: #606266;
}
.offer-container {
height: 100%;
overflow: auto;
.tem_list {
width: 800px;
height: 100%;
margin: 0 auto;
background: #fff;
.tem_main {
width: 90%;
margin: 0 auto;
font-size: 12px;
padding-top: 10px;
color: #606266;
h1,
h2 {
text-align: center;
color: #606266;
}
.title {
border-bottom: 2px dashed #606266;
line-height: 30px;
font-size: 12px;
color: #606266;
}
>>> .el-table thead tr th {
background-color: #fff;
color: #606266;
}
.lip {
padding: 20px 0;
color: #606266;
}
.demo-form-inline {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
border-bottom: 1px solid #ebeef5;
width: 48%;
margin: 0;
>>> .el-input__inner {
border: 0 !important;
padding: 0;
width: 220px;
font-size: 12px;
}
>>> .el-form-item__label {
font-size: 12px;
}
}
.temdate {
text-align: right;
margin: 20px 60px;
}
.seal {
text-align: right;
margin: 10px 120px;
padding-bottom: 40px;
}
}
}
}
</style>