doctor-admin-components 1.0.13-beta.8 → 1.0.13-beta.81
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/README.md +18 -7
- package/package.json +1 -1
- package/packages/index.js +7 -0
- package/packages/src/api/biz/bizContract.js +996 -1
- package/packages/src/api/biz/bizContractCompany.js +1 -1
- package/packages/src/api/biz/bizFileInfo.js +16 -0
- package/packages/src/api/biz/bizInvoice.js +1 -1
- package/packages/src/api/biz/bizShipment.js +18 -0
- package/packages/src/assets/images/click-show-table.png +0 -0
- package/packages/src/assets/images/more.png +0 -0
- package/packages/src/assets/images/pdf-new.png +0 -0
- package/packages/src/components/DictTag/index.vue +12 -2
- package/packages/src/components/FileUpload/contract-drag-new.vue +99 -10
- package/packages/src/i18n/en/message.json +298 -0
- package/packages/src/i18n/index.js +38 -0
- package/packages/src/i18n/zh-CN/message.json +298 -0
- package/packages/src/index.js +6 -0
- package/packages/src/utils/index.js +35 -0
- package/packages/src/utils/request.js +120 -146
- package/packages/src/views/biz/bizFileInfo/PAYMENT_VOUCHER(/"payment_voucher/", /"/344/273/230/346/254/276/345/207/255/350/257/201.ini" +222 -0
- package/packages/src/views/biz/bizFileInfo/contract copy.vue +1711 -0
- package/packages/src/views/biz/bizFileInfo/contract.vue +1677 -999
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +114 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ContentTitle.vue +102 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +308 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/Progress.vue +85 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +122 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +83 -0
- package/packages/src/views/biz/bizFileInfo/contractFile/ShowAndHide.vue +178 -0
- package/packages/src/views/biz/bizFileInfo/fileShow copy.vue +321 -0
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +131 -46
- package/packages/src/views/biz/bizFileInfo/fileShowClaim.vue +1 -1
- package/packages/src/views/biz/bizShipment/add.vue +218 -75
- package/packages/src/views/biz/bizShipment/referenceAlert.vue +168 -0
- package/packages/src/views/biz/contractTracing/addSubCompany.vue +106 -169
- package/packages/src/views/biz/contractTracing/billInfo.vue +181 -329
- package/packages/src/views/biz/contractTracing/companyBanks.vue +228 -0
- package/packages/src/views/biz/contractTracing/contractInfo.vue +1 -1
- package/packages/src/views/biz/contractTracing/contractPdf.vue +5 -3
- package/packages/src/views/biz/contractTracing/contractSummary.vue +17 -9
- package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +229 -9
- package/packages/src/views/biz/contractTracing/editBill.vue +231 -361
- package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +153 -7
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +8 -2
- package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +202 -176
- package/packages/src/views/test.vue +3 -3
- package/packages/src/views/biz/contractTracing/association.vue +0 -189
- package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
- package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
- package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
- package/packages/src/views/biz/contractTracing/edit.vue +0 -205
- package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
- package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div v-if="
|
|
3
|
+
<div v-if="billData && billData.submitFlag">
|
|
4
4
|
<div class="info" id="printPdf" v-if="!printModel">
|
|
5
5
|
<el-form :model="form" ref="form" size="mini" :rules="rules">
|
|
6
6
|
<div v-if="form.shipperFlag">
|
|
@@ -8,39 +8,29 @@
|
|
|
8
8
|
<el-row>
|
|
9
9
|
<el-col :span="8">
|
|
10
10
|
<el-form-item :label="$t('contract.company') + ':'">
|
|
11
|
-
{{
|
|
12
|
-
form.shipperCompanyName
|
|
13
|
-
}}
|
|
11
|
+
{{ form.shipperCompanyName }}
|
|
14
12
|
</el-form-item>
|
|
15
13
|
</el-col>
|
|
16
14
|
<el-col :span="8">
|
|
17
15
|
<el-form-item :label="$t('contract.taxId') + ':'">
|
|
18
|
-
{{
|
|
19
|
-
form.shipperTaxNumber
|
|
20
|
-
}}
|
|
16
|
+
{{ form.shipperTaxNumber }}
|
|
21
17
|
</el-form-item>
|
|
22
18
|
</el-col>
|
|
23
19
|
<el-col :span="8">
|
|
24
20
|
<el-form-item :label="$t('contract.address') + ':'">
|
|
25
|
-
{{
|
|
26
|
-
form.shipperAddress
|
|
27
|
-
}}
|
|
21
|
+
{{ form.shipperAddress }}
|
|
28
22
|
</el-form-item>
|
|
29
23
|
</el-col>
|
|
30
24
|
</el-row>
|
|
31
25
|
<el-row>
|
|
32
26
|
<el-col :span="8">
|
|
33
27
|
<el-form-item :label="$t('contract.contact') + ':'">
|
|
34
|
-
{{
|
|
35
|
-
form.shipperContact
|
|
36
|
-
}}
|
|
28
|
+
{{ form.shipperContact }}
|
|
37
29
|
</el-form-item>
|
|
38
30
|
</el-col>
|
|
39
31
|
<el-col :span="8">
|
|
40
32
|
<el-form-item :label="$t('contract.phoneNumber') + ':'">
|
|
41
|
-
{{
|
|
42
|
-
form.shipperPhoneNumber
|
|
43
|
-
}}
|
|
33
|
+
{{ form.shipperPhoneNumber }}
|
|
44
34
|
</el-form-item>
|
|
45
35
|
</el-col>
|
|
46
36
|
</el-row>
|
|
@@ -49,9 +39,7 @@
|
|
|
49
39
|
<el-row>
|
|
50
40
|
<el-col :span="20">
|
|
51
41
|
<div style="white-space: pre-line !important">
|
|
52
|
-
{{
|
|
53
|
-
form.shipperEmail
|
|
54
|
-
}}
|
|
42
|
+
{{ form.shipperEmail }}
|
|
55
43
|
</div>
|
|
56
44
|
</el-col>
|
|
57
45
|
</el-row>
|
|
@@ -61,63 +49,44 @@
|
|
|
61
49
|
</div>
|
|
62
50
|
<el-row>
|
|
63
51
|
<el-col :span="22">
|
|
64
|
-
<
|
|
52
|
+
<span class="sub-title mb20">{{ $t('contract.consigneeInfo') }}</span>
|
|
53
|
+
<span v-if="billData.blConfirmFlag == '2'" style="font-size: 16px;color: red; font-weight: bold;padding-left: 10px;"> 已作废 </span>
|
|
65
54
|
</el-col>
|
|
66
|
-
<el-col :span="2">
|
|
55
|
+
<el-col v-if="billData.blConfirmFlag != '2'" :span="2">
|
|
67
56
|
<el-button type="text" @click="editBill">
|
|
68
|
-
{{
|
|
69
|
-
$t("contractDetail.edit")
|
|
70
|
-
}}
|
|
57
|
+
{{ $t('contractDetail.edit') }}
|
|
71
58
|
</el-button>
|
|
72
59
|
</el-col>
|
|
73
60
|
</el-row>
|
|
74
61
|
<el-row>
|
|
75
62
|
<el-col :span="8">
|
|
76
|
-
<el-form-item :label="$t('contract.company') +':'">
|
|
77
|
-
{{
|
|
78
|
-
this.form.deliveryCompany
|
|
79
|
-
? this.form.deliveryCompany.companyEnglishName
|
|
80
|
-
: ""
|
|
81
|
-
}}
|
|
63
|
+
<el-form-item :label="$t('contract.company') + ':'">
|
|
64
|
+
{{ this.form.deliveryCompany ? this.form.deliveryCompany.companyEnglishName : '' }}
|
|
82
65
|
</el-form-item>
|
|
83
66
|
</el-col>
|
|
84
67
|
<el-col :span="8">
|
|
85
|
-
<el-form-item :label="$t('contract.taxId') +':'">
|
|
86
|
-
{{
|
|
87
|
-
this.form.deliveryCompany
|
|
88
|
-
? this.form.deliveryCompany.taxNumber
|
|
89
|
-
: ""
|
|
90
|
-
}}
|
|
68
|
+
<el-form-item :label="$t('contract.taxId') + ':'">
|
|
69
|
+
{{ this.form.deliveryCompany ? this.form.deliveryCompany.taxNumber : '' }}
|
|
91
70
|
</el-form-item>
|
|
92
71
|
</el-col>
|
|
93
72
|
<el-col :span="8">
|
|
94
|
-
<el-form-item :label="$t('contract.address') +':'">
|
|
95
|
-
{{
|
|
96
|
-
this.form.deliveryCompany
|
|
97
|
-
? this.form.deliveryCompany.address
|
|
98
|
-
: ""
|
|
99
|
-
}}
|
|
73
|
+
<el-form-item :label="$t('contract.address') + ':'">
|
|
74
|
+
{{ this.form.deliveryCompany ? this.form.deliveryCompany.address : '' }}
|
|
100
75
|
</el-form-item>
|
|
101
76
|
</el-col>
|
|
102
77
|
</el-row>
|
|
103
78
|
<el-row>
|
|
104
79
|
<el-col :span="8">
|
|
105
|
-
<el-form-item :label="$t('contract.contact') +':'">
|
|
106
|
-
{{
|
|
107
|
-
this.form.deliveryCompany
|
|
108
|
-
? this.form.deliveryCompany.contact
|
|
109
|
-
: ""
|
|
110
|
-
}}
|
|
80
|
+
<el-form-item :label="$t('contract.contact') + ':'">
|
|
81
|
+
{{ this.form.deliveryCompany ? this.form.deliveryCompany.contact : '' }}
|
|
111
82
|
</el-form-item>
|
|
112
83
|
</el-col>
|
|
113
84
|
<el-col :span="8">
|
|
114
|
-
<el-form-item :label="$t('contract.phoneNumber') +':'">
|
|
85
|
+
<el-form-item :label="$t('contract.phoneNumber') + ':'">
|
|
115
86
|
{{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
? this.form.deliveryCompany.phoneNumber.join("/")
|
|
120
|
-
: ""
|
|
87
|
+
this.form.deliveryCompany && this.form.deliveryCompany.phoneNumber && this.form.deliveryCompany.phoneNumber.length > 0
|
|
88
|
+
? this.form.deliveryCompany.phoneNumber.join('/')
|
|
89
|
+
: ''
|
|
121
90
|
}}
|
|
122
91
|
</el-form-item>
|
|
123
92
|
</el-col>
|
|
@@ -125,43 +94,29 @@
|
|
|
125
94
|
<el-row>
|
|
126
95
|
<el-col :span="isMobile ? 24 : 8">
|
|
127
96
|
<el-form-item label="GST NUMBER:">
|
|
128
|
-
{{
|
|
129
|
-
this.form.deliveryCompany ?
|
|
130
|
-
this.form.deliveryCompany.gstNumber
|
|
131
|
-
: ''
|
|
132
|
-
}}
|
|
97
|
+
{{ this.form.deliveryCompany ? this.form.deliveryCompany.gstNumber : '' }}
|
|
133
98
|
</el-form-item>
|
|
134
99
|
</el-col>
|
|
135
100
|
<el-col :span="isMobile ? 24 : 8">
|
|
136
101
|
<el-form-item label="PAN NO.:">
|
|
137
|
-
{{
|
|
138
|
-
this.form.deliveryCompany ?
|
|
139
|
-
this.form.deliveryCompany.panNo
|
|
140
|
-
: ''
|
|
141
|
-
}}
|
|
102
|
+
{{ this.form.deliveryCompany ? this.form.deliveryCompany.panNo : '' }}
|
|
142
103
|
</el-form-item>
|
|
143
104
|
</el-col>
|
|
144
105
|
<el-col :span="isMobile ? 24 : 8">
|
|
145
106
|
<el-form-item label="IEC CODE:">
|
|
146
|
-
{{
|
|
147
|
-
this.form.deliveryCompany ?
|
|
148
|
-
this.form.deliveryCompany.iecCode
|
|
149
|
-
: ''
|
|
150
|
-
}}
|
|
107
|
+
{{ this.form.deliveryCompany ? this.form.deliveryCompany.iecCode : '' }}
|
|
151
108
|
</el-form-item>
|
|
152
|
-
</el-col>
|
|
153
|
-
|
|
109
|
+
</el-col> </el-row
|
|
110
|
+
>email
|
|
154
111
|
<el-row>
|
|
155
|
-
<el-form-item :label="$t('contract.email') +':'">
|
|
112
|
+
<el-form-item :label="$t('contract.email') + ':'">
|
|
156
113
|
<el-row>
|
|
157
114
|
<el-col :span="20">
|
|
158
115
|
<div style="white-space: pre-line !important">
|
|
159
116
|
{{
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
? this.form.deliveryCompany.email.join("\n")
|
|
164
|
-
: ""
|
|
117
|
+
this.form.deliveryCompany && this.form.deliveryCompany.email && this.form.deliveryCompany.email.length > 0
|
|
118
|
+
? this.form.deliveryCompany.email.join('\n')
|
|
119
|
+
: ''
|
|
165
120
|
}}
|
|
166
121
|
</div>
|
|
167
122
|
</el-col>
|
|
@@ -173,52 +128,34 @@
|
|
|
173
128
|
<div class="sub-title mb20">{{ $t('contract.firstNotifier') }}</div>
|
|
174
129
|
<el-row>
|
|
175
130
|
<el-col :span="8">
|
|
176
|
-
<el-form-item :label="$t('contract.company') +':'">
|
|
177
|
-
{{
|
|
178
|
-
this.form.notifierCompany
|
|
179
|
-
? this.form.notifierCompany.companyEnglishName
|
|
180
|
-
: ""
|
|
181
|
-
}}
|
|
131
|
+
<el-form-item :label="$t('contract.company') + ':'">
|
|
132
|
+
{{ this.form.notifierCompany ? this.form.notifierCompany.companyEnglishName : '' }}
|
|
182
133
|
</el-form-item>
|
|
183
134
|
</el-col>
|
|
184
135
|
<el-col :span="8">
|
|
185
|
-
<el-form-item :label="$t('contract.taxId') +':'">
|
|
186
|
-
{{
|
|
187
|
-
this.form.notifierCompany
|
|
188
|
-
? this.form.notifierCompany.taxNumber
|
|
189
|
-
: ""
|
|
190
|
-
}}
|
|
136
|
+
<el-form-item :label="$t('contract.taxId') + ':'">
|
|
137
|
+
{{ this.form.notifierCompany ? this.form.notifierCompany.taxNumber : '' }}
|
|
191
138
|
</el-form-item>
|
|
192
139
|
</el-col>
|
|
193
140
|
<el-col :span="8">
|
|
194
|
-
<el-form-item :label="$t('contract.address') +':'">
|
|
195
|
-
{{
|
|
196
|
-
this.form.notifierCompany
|
|
197
|
-
? this.form.notifierCompany.address
|
|
198
|
-
: ""
|
|
199
|
-
}}
|
|
141
|
+
<el-form-item :label="$t('contract.address') + ':'">
|
|
142
|
+
{{ this.form.notifierCompany ? this.form.notifierCompany.address : '' }}
|
|
200
143
|
</el-form-item>
|
|
201
144
|
</el-col>
|
|
202
145
|
</el-row>
|
|
203
146
|
|
|
204
147
|
<el-row>
|
|
205
148
|
<el-col :span="8">
|
|
206
|
-
<el-form-item :label="$t('contract.contact') +':'">
|
|
207
|
-
{{
|
|
208
|
-
this.form.notifierCompany
|
|
209
|
-
? this.form.notifierCompany.contact
|
|
210
|
-
: ""
|
|
211
|
-
}}
|
|
149
|
+
<el-form-item :label="$t('contract.contact') + ':'">
|
|
150
|
+
{{ this.form.notifierCompany ? this.form.notifierCompany.contact : '' }}
|
|
212
151
|
</el-form-item>
|
|
213
152
|
</el-col>
|
|
214
153
|
<el-col :span="8">
|
|
215
|
-
<el-form-item :label="$t('contract.phoneNumber') +':'">
|
|
154
|
+
<el-form-item :label="$t('contract.phoneNumber') + ':'">
|
|
216
155
|
{{
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
? this.form.notifierCompany.phoneNumber.join("/")
|
|
221
|
-
: ""
|
|
156
|
+
this.form.notifierCompany && this.form.notifierCompany.phoneNumber && this.form.notifierCompany.phoneNumber.length > 0
|
|
157
|
+
? this.form.notifierCompany.phoneNumber.join('/')
|
|
158
|
+
: ''
|
|
222
159
|
}}
|
|
223
160
|
</el-form-item>
|
|
224
161
|
</el-col>
|
|
@@ -227,43 +164,29 @@
|
|
|
227
164
|
<el-row>
|
|
228
165
|
<el-col :span="isMobile ? 24 : 8">
|
|
229
166
|
<el-form-item label="GST NUMBER:">
|
|
230
|
-
{{
|
|
231
|
-
this.form.notifierCompany ?
|
|
232
|
-
this.form.notifierCompany.gstNumber
|
|
233
|
-
: ''
|
|
234
|
-
}}
|
|
167
|
+
{{ this.form.notifierCompany ? this.form.notifierCompany.gstNumber : '' }}
|
|
235
168
|
</el-form-item>
|
|
236
169
|
</el-col>
|
|
237
170
|
<el-col :span="isMobile ? 24 : 8">
|
|
238
171
|
<el-form-item label="PAN NO.:">
|
|
239
|
-
{{
|
|
240
|
-
this.form.notifierCompany ?
|
|
241
|
-
this.form.notifierCompany.panNo
|
|
242
|
-
: ''
|
|
243
|
-
}}
|
|
172
|
+
{{ this.form.notifierCompany ? this.form.notifierCompany.panNo : '' }}
|
|
244
173
|
</el-form-item>
|
|
245
174
|
</el-col>
|
|
246
175
|
<el-col :span="isMobile ? 24 : 8">
|
|
247
176
|
<el-form-item label="IEC CODE:">
|
|
248
|
-
{{
|
|
249
|
-
this.form.notifierCompany ?
|
|
250
|
-
this.form.notifierCompany.iecCode
|
|
251
|
-
: ''
|
|
252
|
-
}}
|
|
177
|
+
{{ this.form.notifierCompany ? this.form.notifierCompany.iecCode : '' }}
|
|
253
178
|
</el-form-item>
|
|
254
179
|
</el-col>
|
|
255
180
|
</el-row>
|
|
256
181
|
<el-row>
|
|
257
|
-
<el-form-item :label="$t('contract.email') +':'">
|
|
182
|
+
<el-form-item :label="$t('contract.email') + ':'">
|
|
258
183
|
<el-row>
|
|
259
184
|
<el-col :span="20">
|
|
260
185
|
<div style="white-space: pre-line !important">
|
|
261
186
|
{{
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
? this.form.notifierCompany.email.join("\n")
|
|
266
|
-
: ""
|
|
187
|
+
this.form.notifierCompany && this.form.notifierCompany.email && this.form.notifierCompany.email.length > 0
|
|
188
|
+
? this.form.notifierCompany.email.join('\n')
|
|
189
|
+
: ''
|
|
267
190
|
}}
|
|
268
191
|
</div>
|
|
269
192
|
</el-col>
|
|
@@ -275,23 +198,17 @@
|
|
|
275
198
|
<el-row>
|
|
276
199
|
<el-col :span="8">
|
|
277
200
|
<el-form-item :label="$t('contract.company') + ':'">
|
|
278
|
-
{{
|
|
279
|
-
"TTYY INTERNATIONAL LIMITED"
|
|
280
|
-
}}
|
|
201
|
+
{{ 'TTYY INTERNATIONAL LIMITED' }}
|
|
281
202
|
</el-form-item>
|
|
282
203
|
</el-col>
|
|
283
204
|
<el-col :span="8">
|
|
284
205
|
<el-form-item :label="$t('contract.taxId') + ':'">
|
|
285
|
-
{{
|
|
286
|
-
"73855725-000-23-0"
|
|
287
|
-
}}
|
|
206
|
+
{{ '73855725-000-23-0' }}
|
|
288
207
|
</el-form-item>
|
|
289
208
|
</el-col>
|
|
290
209
|
<el-col :span="8">
|
|
291
210
|
<el-form-item :label="$t('contract.address') + ':'">
|
|
292
|
-
{{
|
|
293
|
-
"FLAT/RM 07, 12/F, CHEVALIER COMMERCIAL CENTRE, 8 WANG HOI ROAD, KOWLOON BAY"
|
|
294
|
-
}}
|
|
211
|
+
{{ 'FLAT/RM 07, 12/F, CHEVALIER COMMERCIAL CENTRE, 8 WANG HOI ROAD, KOWLOON BAY' }}
|
|
295
212
|
</el-form-item>
|
|
296
213
|
</el-col>
|
|
297
214
|
</el-row>
|
|
@@ -299,43 +216,27 @@
|
|
|
299
216
|
<el-row>
|
|
300
217
|
<el-col :span="8">
|
|
301
218
|
<el-form-item :label="$t('contract.contact') + ':'">
|
|
302
|
-
{{
|
|
303
|
-
"Ms. Zhou"
|
|
304
|
-
}}
|
|
219
|
+
{{ 'Ms. Zhou' }}
|
|
305
220
|
</el-form-item>
|
|
306
221
|
</el-col>
|
|
307
222
|
<el-col :span="8">
|
|
308
223
|
<el-form-item :label="$t('contract.phoneNumber') + ':'">
|
|
309
|
-
{{
|
|
310
|
-
"0085221267435"
|
|
311
|
-
}}
|
|
224
|
+
{{ '00-852 53816912' }}
|
|
312
225
|
</el-form-item>
|
|
313
226
|
</el-col>
|
|
314
227
|
<el-col :span="8"></el-col>
|
|
315
228
|
</el-row>
|
|
316
229
|
|
|
317
230
|
<el-row>
|
|
318
|
-
<el-form-item :label="$t('contract.email') + ':'">{{
|
|
231
|
+
<el-form-item :label="$t('contract.email') + ':'">{{ 'info@tyzltech.com' }}</el-form-item>
|
|
319
232
|
</el-row>
|
|
320
233
|
<el-divider></el-divider>
|
|
321
234
|
<div class="sub-title mb20">{{ $t('contract.otherInfo') }}</div>
|
|
322
235
|
|
|
323
236
|
<el-row>
|
|
324
|
-
<el-row
|
|
325
|
-
v-for="(buyCompanyBillGood, index) in form.buyerCompanyBillGoods"
|
|
326
|
-
:key="index"
|
|
327
|
-
class="mt5"
|
|
328
|
-
>
|
|
237
|
+
<el-row v-for="(buyCompanyBillGood, index) in form.buyerCompanyBillGoods" :key="index" class="mt5">
|
|
329
238
|
<el-col :span="3">
|
|
330
|
-
<div
|
|
331
|
-
style="
|
|
332
|
-
height: 26px;
|
|
333
|
-
margin-top: -1px;
|
|
334
|
-
text-align: center;
|
|
335
|
-
line-height: 28px;
|
|
336
|
-
font-size: 14px;
|
|
337
|
-
"
|
|
338
|
-
>{{ $t('contract.option') + " " + (index + 1) }}</div>
|
|
239
|
+
<div style="height: 26px; margin-top: -1px; text-align: center; line-height: 28px; font-size: 14px">{{ $t('contract.option') + ' ' + (index + 1) }}</div>
|
|
339
240
|
</el-col>
|
|
340
241
|
<el-col :span="15">
|
|
341
242
|
<el-form-item :label="$t('contract.product') + ':'">{{ buyCompanyBillGood.goodsName }}</el-form-item>
|
|
@@ -349,22 +250,15 @@
|
|
|
349
250
|
<el-form-item :label="$t('contractDetail.destination') + ':'">{{ contract.destination }}</el-form-item>
|
|
350
251
|
|
|
351
252
|
<el-form-item :label="$t('contract.terminal') + ':'">{{ form.terminal }}</el-form-item>
|
|
352
|
-
|
|
253
|
+
|
|
353
254
|
<el-form-item :label="$t('contract.shippingMarks') + ':'">{{ form.shippingMark }}</el-form-item>
|
|
354
255
|
|
|
355
256
|
<el-form-item :label="$t('contract.remark') + ':'" prop="blRemark">
|
|
356
|
-
<div
|
|
357
|
-
style="white-space: pre-line !important"
|
|
358
|
-
>{{ "\n" + (form && form.blRemark ? form.blRemark : '') }}</div>
|
|
257
|
+
<div style="white-space: pre-line !important">{{ '\n' + (form && form.blRemark ? form.blRemark : '') }}</div>
|
|
359
258
|
</el-form-item>
|
|
360
259
|
<el-form-item :label="$t('contract.attachments') + ':'" prop="billPictures">
|
|
361
260
|
<div v-for="(item, i) in form.billPictures" :key="i" class="file-download-link mr10">
|
|
362
|
-
<el-link
|
|
363
|
-
:href="item.generateUrl"
|
|
364
|
-
type="primary"
|
|
365
|
-
target="_blank"
|
|
366
|
-
underline
|
|
367
|
-
>{{ item.fileName || '下载文件' }}</el-link>
|
|
261
|
+
<el-link :href="item.generateUrl" type="primary" target="_blank" underline>{{ item.fileName || '下载文件' }}</el-link>
|
|
368
262
|
</div>
|
|
369
263
|
</el-form-item>
|
|
370
264
|
</el-form>
|
|
@@ -387,26 +281,9 @@
|
|
|
387
281
|
<div style="text-align: center; margin-top: 50px">
|
|
388
282
|
<svg-icon icon-class="un-submit" style="height: 100px; width: 100px" />
|
|
389
283
|
</div>
|
|
390
|
-
<div
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
margin-top: 20px;
|
|
394
|
-
font-weight: bold;
|
|
395
|
-
font-size: 25px;
|
|
396
|
-
"
|
|
397
|
-
>The buyer has not provided the required Bill of Lading information.</div>
|
|
398
|
-
<div
|
|
399
|
-
style="
|
|
400
|
-
margin-left: 50px;
|
|
401
|
-
margin-right: 50px;
|
|
402
|
-
color: grey;
|
|
403
|
-
font-size: 25px;
|
|
404
|
-
font-weight: bold;
|
|
405
|
-
text-align: center;
|
|
406
|
-
"
|
|
407
|
-
>
|
|
408
|
-
Once the buyer submits the Bill of Lading information, you will be able
|
|
409
|
-
to view it at this location.
|
|
284
|
+
<div style="text-align: center; margin-top: 20px; font-weight: bold; font-size: 25px">The buyer has not provided the required Bill of Lading information.</div>
|
|
285
|
+
<div style="margin-left: 50px; margin-right: 50px; color: grey; font-size: 25px; font-weight: bold; text-align: center">
|
|
286
|
+
Once the buyer submits the Bill of Lading information, you will be able to view it at this location.
|
|
410
287
|
</div>
|
|
411
288
|
</div>
|
|
412
289
|
|
|
@@ -415,34 +292,44 @@
|
|
|
415
292
|
</template>
|
|
416
293
|
|
|
417
294
|
<script>
|
|
418
|
-
import {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
import {
|
|
423
|
-
import
|
|
424
|
-
import
|
|
425
|
-
import { listCompanyBillGoods } from '../../../api/biz/bizCompanyBillGoods';
|
|
426
|
-
import EditBill from './editBill.vue';
|
|
427
|
-
import { getSaleContractInfo } from '../../../api/biz/bizContract';
|
|
295
|
+
// import { getBizDealRecordByAskId, updateBizDealRecord } from '../../../api/biz/bizDealRecord'
|
|
296
|
+
import { exportPdf } from '../../../utils/pdf'
|
|
297
|
+
import { listBizContractCompany } from '../../../api/biz/bizContractCompany'
|
|
298
|
+
import BillPdf from './billPdf.vue'
|
|
299
|
+
import { listCompanyBillGoods } from '../../../api/biz/bizCompanyBillGoods'
|
|
300
|
+
import EditBill from './editBill.vue'
|
|
301
|
+
// import { getSaleContractInfo } from '../../../api/biz/bizContract'
|
|
428
302
|
|
|
429
303
|
export default {
|
|
430
304
|
name: 'BillInfo',
|
|
431
305
|
props: {
|
|
432
306
|
contract: {
|
|
433
307
|
type: Object,
|
|
434
|
-
default: null
|
|
308
|
+
default: null
|
|
435
309
|
},
|
|
436
310
|
channel: {
|
|
437
311
|
type: String,
|
|
438
|
-
default: ''
|
|
312
|
+
default: ''
|
|
439
313
|
},
|
|
314
|
+
// 提单指令数据
|
|
315
|
+
billData: {
|
|
316
|
+
type: Object,
|
|
317
|
+
default: null
|
|
318
|
+
}
|
|
440
319
|
},
|
|
441
320
|
components: { BillPdf, EditBill },
|
|
321
|
+
watch: {
|
|
322
|
+
billData: {
|
|
323
|
+
handler(val) {
|
|
324
|
+
this.getDealRecord(this.contract.askId)
|
|
325
|
+
},
|
|
326
|
+
immediate: true,
|
|
327
|
+
}
|
|
328
|
+
},
|
|
442
329
|
data() {
|
|
443
330
|
return {
|
|
444
331
|
//
|
|
445
|
-
saleContract: null,
|
|
332
|
+
// saleContract: null,
|
|
446
333
|
// 遮罩层
|
|
447
334
|
loading: true,
|
|
448
335
|
// 弹出层标题
|
|
@@ -455,9 +342,9 @@ export default {
|
|
|
455
342
|
buyerCompanyBillGoods: [
|
|
456
343
|
{
|
|
457
344
|
goodsName: '',
|
|
458
|
-
hsCode: ''
|
|
459
|
-
}
|
|
460
|
-
]
|
|
345
|
+
hsCode: ''
|
|
346
|
+
}
|
|
347
|
+
]
|
|
461
348
|
},
|
|
462
349
|
printModel: false,
|
|
463
350
|
//
|
|
@@ -474,135 +361,113 @@ export default {
|
|
|
474
361
|
shippingMark: [{ required: true, trigger: 'blur' }],
|
|
475
362
|
deliveryCompanyId: [{ required: true, trigger: 'blur' }],
|
|
476
363
|
notifierCompanyId: [{ required: true, trigger: 'blur' }],
|
|
477
|
-
goodsName: [{ required: true, trigger: 'blur' }]
|
|
364
|
+
goodsName: [{ required: true, trigger: 'blur' }]
|
|
478
365
|
},
|
|
479
|
-
isMobile: document.body.clientWidth <= 768
|
|
480
|
-
}
|
|
366
|
+
isMobile: document.body.clientWidth <= 768
|
|
367
|
+
}
|
|
481
368
|
},
|
|
482
369
|
created() {
|
|
483
|
-
const { contractId, printModel } = this.$route.query
|
|
484
|
-
this.contractId = contractId
|
|
485
|
-
this.getDealRecord(this.contract.askId)
|
|
370
|
+
const { contractId, printModel } = this.$route.query
|
|
371
|
+
this.contractId = contractId
|
|
372
|
+
this.getDealRecord(this.contract.askId)
|
|
486
373
|
if (printModel == 1) {
|
|
487
|
-
this.printModel = true
|
|
374
|
+
this.printModel = true
|
|
488
375
|
}
|
|
489
|
-
this.getSaleContractInfo(this.contract.dealId)
|
|
376
|
+
// this.getSaleContractInfo(this.contract.dealId)
|
|
490
377
|
},
|
|
491
378
|
methods: {
|
|
492
|
-
getSaleContractInfo(dealId) {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
},
|
|
379
|
+
// getSaleContractInfo(dealId) {
|
|
380
|
+
// getSaleContractInfo(dealId).then((res) => {
|
|
381
|
+
// this.saleContract = res.data
|
|
382
|
+
// })
|
|
383
|
+
// },
|
|
497
384
|
edit() {
|
|
498
|
-
this.getDealRecord(this.contract.askId)
|
|
385
|
+
// this.getDealRecord(this.contract.askId)
|
|
386
|
+
// 通知外层刷新数据
|
|
387
|
+
this.$emit('refresh')
|
|
499
388
|
},
|
|
500
389
|
editBill() {
|
|
501
|
-
this.$refs.editBill.handleEdit(
|
|
502
|
-
this.contract.contractId,
|
|
503
|
-
this.form.dealId
|
|
504
|
-
);
|
|
390
|
+
this.$refs.editBill.handleEdit(this.billData.contractId, this.form.dealId)
|
|
505
391
|
},
|
|
506
392
|
//子公司更新
|
|
507
393
|
changeSubCompanyList() {
|
|
508
|
-
this.getContractCompanyList(this.form.buyerCompanyId)
|
|
394
|
+
this.getContractCompanyList(this.form.buyerCompanyId)
|
|
509
395
|
},
|
|
510
396
|
//子组件更新
|
|
511
397
|
changeBillGoods() {
|
|
512
|
-
this.getCompanyBillGoods(this.form.buyerCompanyId)
|
|
398
|
+
this.getCompanyBillGoods(this.form.buyerCompanyId)
|
|
513
399
|
},
|
|
514
400
|
//
|
|
515
401
|
handleBillGoods(companyId) {
|
|
516
|
-
this.$refs.billGoods.handleShow(companyId)
|
|
402
|
+
this.$refs.billGoods.handleShow(companyId)
|
|
517
403
|
},
|
|
518
404
|
//选中提单货物时
|
|
519
405
|
changeBillGood(val, index) {
|
|
520
|
-
const billGood = this.billGoodsList.find((i) => i.goodsName == val)
|
|
521
|
-
this.form.buyerCompanyBillGoods[index].hsCode = billGood.hsCode
|
|
406
|
+
const billGood = this.billGoodsList.find((i) => i.goodsName == val)
|
|
407
|
+
this.form.buyerCompanyBillGoods[index].hsCode = billGood.hsCode
|
|
522
408
|
},
|
|
523
409
|
//添加提单货物
|
|
524
410
|
addBillGoods() {
|
|
525
411
|
this.form.buyerCompanyBillGoods.push({
|
|
526
412
|
goodsName: '',
|
|
527
|
-
hsCode: ''
|
|
528
|
-
})
|
|
413
|
+
hsCode: ''
|
|
414
|
+
})
|
|
529
415
|
},
|
|
530
416
|
//删除提单货物
|
|
531
417
|
deleteBillGoods(index) {
|
|
532
|
-
this.form.buyerCompanyBillGoods.splice(index, 1)
|
|
418
|
+
this.form.buyerCompanyBillGoods.splice(index, 1)
|
|
533
419
|
},
|
|
534
420
|
//获取公司提单货物
|
|
535
421
|
getCompanyBillGoods(companyId) {
|
|
536
422
|
listCompanyBillGoods({ companyId: companyId }).then((res) => {
|
|
537
|
-
const billGoodsList = res.rows
|
|
538
|
-
this.billGoodsList = billGoodsList
|
|
423
|
+
const billGoodsList = res.rows
|
|
424
|
+
this.billGoodsList = billGoodsList
|
|
539
425
|
if (!this.form.buyerCompanyBillGoods) {
|
|
540
|
-
const defaultBillGoods =
|
|
541
|
-
billGoodsList.filter((item) => item.defaultFlag).length > 0
|
|
542
|
-
? billGoodsList.filter((item) => item.defaultFlag)[0]
|
|
543
|
-
: null;
|
|
426
|
+
const defaultBillGoods = billGoodsList.filter((item) => item.defaultFlag).length > 0 ? billGoodsList.filter((item) => item.defaultFlag)[0] : null
|
|
544
427
|
this.form.buyerCompanyBillGoods.push({
|
|
545
428
|
goodsName: defaultBillGoods.goodsName,
|
|
546
|
-
hsCode: defaultBillGoods.hsCode
|
|
547
|
-
})
|
|
429
|
+
hsCode: defaultBillGoods.hsCode
|
|
430
|
+
})
|
|
548
431
|
}
|
|
549
|
-
})
|
|
432
|
+
})
|
|
550
433
|
},
|
|
551
434
|
//更改收货人或者通知人公司时 相应显示变更
|
|
552
435
|
changeSubCompany(val, type) {
|
|
553
436
|
if (type == 'delivery') {
|
|
554
|
-
this.form.deliveryCompany = this.deliveryCompanyList.filter(
|
|
555
|
-
(item) => item.contractCompanyId == val
|
|
556
|
-
)[0];
|
|
437
|
+
this.form.deliveryCompany = this.deliveryCompanyList.filter((item) => item.contractCompanyId == val)[0]
|
|
557
438
|
}
|
|
558
439
|
if (type == 'notifier') {
|
|
559
|
-
this.form.notifierCompany = this.notifierCompanyList.filter(
|
|
560
|
-
(item) => item.contractCompanyId == val
|
|
561
|
-
)[0];
|
|
440
|
+
this.form.notifierCompany = this.notifierCompanyList.filter((item) => item.contractCompanyId == val)[0]
|
|
562
441
|
}
|
|
563
442
|
},
|
|
564
443
|
//获取收货人公司与通知人公司
|
|
565
444
|
getContractCompanyList(companyId) {
|
|
566
445
|
listBizContractCompany({ companyId: companyId }).then((res) => {
|
|
567
|
-
const contractCompanyList = res.rows
|
|
568
|
-
this.deliveryCompanyList = contractCompanyList.filter(
|
|
569
|
-
|
|
570
|
-
);
|
|
571
|
-
this.notifierCompanyList = contractCompanyList.filter(
|
|
572
|
-
(item) => item.companyType == 'notifier'
|
|
573
|
-
);
|
|
446
|
+
const contractCompanyList = res.rows
|
|
447
|
+
this.deliveryCompanyList = contractCompanyList.filter((item) => item.companyType == 'delivery')
|
|
448
|
+
this.notifierCompanyList = contractCompanyList.filter((item) => item.companyType == 'notifier')
|
|
574
449
|
|
|
575
|
-
const defaultDeliveryCompany = this.deliveryCompanyList.find(
|
|
576
|
-
(item) => item.defaultFlag
|
|
577
|
-
);
|
|
450
|
+
const defaultDeliveryCompany = this.deliveryCompanyList.find((item) => item.defaultFlag)
|
|
578
451
|
|
|
579
|
-
const notifierDeliveryCompany = this.notifierCompanyList.find(
|
|
580
|
-
(item) => item.defaultFlag
|
|
581
|
-
);
|
|
452
|
+
const notifierDeliveryCompany = this.notifierCompanyList.find((item) => item.defaultFlag)
|
|
582
453
|
//成交没收货人公司取默认 否则取收货人公司信息
|
|
583
454
|
if (!this.form.deliveryCompanyId && defaultDeliveryCompany) {
|
|
584
|
-
this.form.deliveryCompanyId =
|
|
585
|
-
|
|
586
|
-
this.form.deliveryCompany = defaultDeliveryCompany;
|
|
455
|
+
this.form.deliveryCompanyId = defaultDeliveryCompany.contractCompanyId
|
|
456
|
+
this.$set(this.form, 'deliveryCompany', defaultDeliveryCompany)
|
|
587
457
|
} else {
|
|
588
|
-
const deliveryCompany = contractCompanyList.find(
|
|
589
|
-
|
|
590
|
-
);
|
|
591
|
-
this.$set(this.form, 'deliveryCompany', deliveryCompany);
|
|
458
|
+
const deliveryCompany = contractCompanyList.find((item) => item.contractCompanyId == this.form.deliveryCompanyId)
|
|
459
|
+
this.$set(this.form, 'deliveryCompany', deliveryCompany)
|
|
592
460
|
}
|
|
593
461
|
|
|
594
462
|
//成交没通知人公司取默认 否则取通知人公司信息
|
|
595
463
|
if (!this.form.notifierCompanyId && notifierDeliveryCompany) {
|
|
596
|
-
this.form.notifierCompanyId =
|
|
597
|
-
|
|
598
|
-
this.form.notifierCompany = notifierDeliveryCompany;
|
|
464
|
+
this.form.notifierCompanyId = notifierDeliveryCompany.contractCompanyId
|
|
465
|
+
this.$set(this.form, 'notifierCompany', notifierDeliveryCompany)
|
|
599
466
|
} else {
|
|
600
|
-
const notifierCompany = contractCompanyList.find(
|
|
601
|
-
|
|
602
|
-
);
|
|
603
|
-
this.$set(this.form, 'notifierCompany', notifierCompany);
|
|
467
|
+
const notifierCompany = contractCompanyList.find((item) => item.contractCompanyId == this.form.notifierCompanyId)
|
|
468
|
+
this.$set(this.form, 'notifierCompany', notifierCompany)
|
|
604
469
|
}
|
|
605
|
-
})
|
|
470
|
+
})
|
|
606
471
|
},
|
|
607
472
|
// 表单重置
|
|
608
473
|
reset() {
|
|
@@ -677,64 +542,61 @@ export default {
|
|
|
677
542
|
notifierCompanyId: null,
|
|
678
543
|
shippingMark: null,
|
|
679
544
|
blRemark: null,
|
|
680
|
-
buyerCompanyBillGoods: null
|
|
681
|
-
}
|
|
682
|
-
this.resetForm('form')
|
|
545
|
+
buyerCompanyBillGoods: null
|
|
546
|
+
}
|
|
547
|
+
this.resetForm('form')
|
|
683
548
|
},
|
|
684
549
|
getDealRecord(askId) {
|
|
685
|
-
|
|
686
|
-
this.
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
)
|
|
550
|
+
// 使用新接口,传递进来的数据!
|
|
551
|
+
this.form = this.billData
|
|
552
|
+
// this.loading = false
|
|
553
|
+
// this.reset()
|
|
554
|
+
// getBizDealRecordByAskId(askId).then((response) => {
|
|
555
|
+
// this.form = response.data
|
|
556
|
+
if (this.form.buyerCompanyBillGoods && (typeof this.form.buyerCompanyBillGoods === String)) {
|
|
557
|
+
this.form.buyerCompanyBillGoods = JSON.parse(this.form.buyerCompanyBillGoods)
|
|
693
558
|
} else {
|
|
694
|
-
this.form.buyerCompanyBillGoods = []
|
|
695
|
-
this.addBillGoods()
|
|
559
|
+
this.form.buyerCompanyBillGoods = []
|
|
560
|
+
this.addBillGoods()
|
|
696
561
|
}
|
|
697
|
-
|
|
698
|
-
this.
|
|
699
|
-
this.
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
});
|
|
562
|
+
this.getContractCompanyList(this.form.buyerCompanyId)
|
|
563
|
+
this.getCompanyBillGoods(this.form.buyerCompanyId)
|
|
564
|
+
// this.form.dealRecordDetailList.map((item) => {
|
|
565
|
+
// if (item.imageList) {
|
|
566
|
+
// item.askCover = item.imageList.toString()
|
|
567
|
+
// }
|
|
568
|
+
// })
|
|
569
|
+
// this.loading = true
|
|
570
|
+
// })
|
|
707
571
|
},
|
|
708
572
|
/** 提交按钮 */
|
|
709
573
|
submitForm() {
|
|
710
574
|
this.$refs['form'].validate((valid) => {
|
|
711
575
|
if (valid) {
|
|
712
576
|
if (this.form.dealId != null) {
|
|
713
|
-
var deal = JSON.parse(JSON.stringify(this.form))
|
|
714
|
-
deal.buyerCompanyBillGoods = JSON.stringify(
|
|
715
|
-
deal.buyerCompanyBillGoods
|
|
716
|
-
);
|
|
577
|
+
var deal = JSON.parse(JSON.stringify(this.form))
|
|
578
|
+
deal.buyerCompanyBillGoods = JSON.stringify(deal.buyerCompanyBillGoods)
|
|
717
579
|
updateDealRecord(deal).then((response) => {
|
|
718
|
-
this.$modal.msgSuccess('保存成功')
|
|
719
|
-
})
|
|
580
|
+
this.$modal.msgSuccess('保存成功')
|
|
581
|
+
})
|
|
720
582
|
}
|
|
721
583
|
}
|
|
722
|
-
})
|
|
584
|
+
})
|
|
723
585
|
},
|
|
724
586
|
//设置打印model为true
|
|
725
587
|
setPrintModel(val) {
|
|
726
|
-
this.printModel = val
|
|
727
|
-
return Promise.resolve()
|
|
588
|
+
this.printModel = val
|
|
589
|
+
return Promise.resolve()
|
|
728
590
|
},
|
|
729
591
|
/** 下载 */
|
|
730
592
|
handleExportPdf() {
|
|
731
593
|
this.setPrintModel(true)
|
|
732
594
|
.then(() => {
|
|
733
|
-
exportPdf('.billPdf', 'bill')
|
|
595
|
+
exportPdf('.billPdf', 'bill')
|
|
734
596
|
})
|
|
735
597
|
.then(() => {
|
|
736
|
-
this.printModel = false
|
|
737
|
-
})
|
|
598
|
+
this.printModel = false
|
|
599
|
+
})
|
|
738
600
|
},
|
|
739
601
|
|
|
740
602
|
//导出按钮
|
|
@@ -743,35 +605,25 @@ export default {
|
|
|
743
605
|
this.download(
|
|
744
606
|
'biz/contract/downBill',
|
|
745
607
|
{
|
|
746
|
-
contractId: this.
|
|
747
|
-
templateType: command
|
|
608
|
+
contractId: this.billData.contractId,
|
|
609
|
+
templateType: command
|
|
748
610
|
},
|
|
749
|
-
`${
|
|
750
|
-
|
|
751
|
-
this.contract.contractNo +
|
|
752
|
-
'_' +
|
|
753
|
-
this.parseTime(new Date(), '{y}{m}{d}')
|
|
754
|
-
}.xlsx`
|
|
755
|
-
);
|
|
611
|
+
`${'BLI-' + this.billData.contractNo + '_' + this.parseTime(new Date(), '{y}{m}{d}')}.xlsx`
|
|
612
|
+
)
|
|
756
613
|
}
|
|
757
614
|
if (command == 'PDF') {
|
|
758
615
|
this.download(
|
|
759
616
|
'biz/contract/downBill',
|
|
760
617
|
{
|
|
761
|
-
contractId: this.
|
|
762
|
-
templateType: command
|
|
618
|
+
contractId: this.billData.contractId,
|
|
619
|
+
templateType: command
|
|
763
620
|
},
|
|
764
|
-
`${
|
|
765
|
-
|
|
766
|
-
this.contract.contractNo +
|
|
767
|
-
'_' +
|
|
768
|
-
this.parseTime(new Date(), '{y}{m}{d}')
|
|
769
|
-
}.pdf`
|
|
770
|
-
);
|
|
621
|
+
`${'BLI-' + this.billData.contractNo + '_' + this.parseTime(new Date(), '{y}{m}{d}')}.pdf`
|
|
622
|
+
)
|
|
771
623
|
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
775
627
|
</script>
|
|
776
628
|
<style lang="scss" scoped>
|
|
777
629
|
.info {
|