doctor-admin-components 1.0.13-beta.4 → 1.0.13-beta.40

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.
Files changed (44) hide show
  1. package/README.md +18 -7
  2. package/package.json +1 -1
  3. package/packages/index.js +4 -0
  4. package/packages/src/api/biz/bizContract.js +963 -1
  5. package/packages/src/api/biz/bizContractCompany.js +1 -1
  6. package/packages/src/assets/images/click-show-table.png +0 -0
  7. package/packages/src/assets/images/more.png +0 -0
  8. package/packages/src/assets/images/pdf-new.png +0 -0
  9. package/packages/src/components/FileUpload/contract-drag-new.vue +89 -8
  10. package/packages/src/i18n/en/message.json +259 -0
  11. package/packages/src/i18n/index.js +38 -0
  12. package/packages/src/i18n/zh-CN/message.json +259 -0
  13. package/packages/src/utils/index.js +35 -0
  14. package/packages/src/utils/request.js +120 -146
  15. 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
  16. package/packages/src/views/biz/bizFileInfo/contract copy.vue +1711 -0
  17. package/packages/src/views/biz/bizFileInfo/contract.vue +1591 -967
  18. package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +114 -0
  19. package/packages/src/views/biz/bizFileInfo/contractFile/ContentTitle.vue +102 -0
  20. package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +280 -0
  21. package/packages/src/views/biz/bizFileInfo/contractFile/Progress.vue +84 -0
  22. package/packages/src/views/biz/bizFileInfo/contractFile/ProgressDetail.vue +122 -0
  23. package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +83 -0
  24. package/packages/src/views/biz/bizFileInfo/fileShow copy.vue +321 -0
  25. package/packages/src/views/biz/bizFileInfo/fileShow.vue +178 -130
  26. package/packages/src/views/biz/bizFileInfo/fileShowClaim.vue +1 -1
  27. package/packages/src/views/biz/bizShipment/add.vue +111 -66
  28. package/packages/src/views/biz/contractTracing/addSubCompany.vue +106 -169
  29. package/packages/src/views/biz/contractTracing/billInfo.vue +150 -315
  30. package/packages/src/views/biz/contractTracing/contractPdf.vue +31 -20
  31. package/packages/src/views/biz/contractTracing/contractSummary.vue +286 -629
  32. package/packages/src/views/biz/contractTracing/contractTracingDetail copy.vue +107 -0
  33. package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +202 -8
  34. package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
  35. package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +91 -3
  36. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +8 -2
  37. package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +196 -176
  38. package/packages/src/views/biz/contractTracing/association.vue +0 -189
  39. package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
  40. package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
  41. package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
  42. package/packages/src/views/biz/contractTracing/edit.vue +0 -205
  43. package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
  44. package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
@@ -1,46 +1,27 @@
1
1
  <template>
2
2
  <div class="app-container" v-if="linkId">
3
- <div slot="header">
4
- <el-row>
5
- <el-button
6
- style="float: right"
7
- type="text"
8
- @click="downloadZip"
9
- >{{ $t("contractDetail.downloadZip") }}</el-button>
10
- </el-row>
3
+ <!--合同 装运 收获 进度显示 -->
4
+ <div class="progress-root">
5
+ <Progress :infoPro="contractProgressInfo"></Progress>
6
+ <Progress :infoPro="shipProgressInfo"></Progress>
7
+ <Progress :infoPro="getGoodsProgressInfo"></Progress>
11
8
  </div>
12
- <el-timeline>
13
- <el-timeline-item icon="el-icon-success" type="primary" size="large">
14
- <div style="color: #1890ff">{{ $t("contractDetail.contractInfoConfirm") }}</div>
15
- <div>
16
- <el-row>
17
- <el-col :span="5">
18
- <div class="sub-title">
19
- {{
20
- contract.contractType == "sale"
21
- ? $t("contractDetail.saleContract")
22
- : $t("contractDetail.purchaseContract")
23
- }}
24
- <el-button
25
- v-if="channel !== 'official-website'"
26
- type="text"
27
- size="mini"
28
- @click="handleHistory('contract_formal')"
29
- >历史合同文件</el-button>
30
- </div>
31
- <div class="file-list">
32
- <file-show
33
- :hiddenOperation="channel == 'official-website'"
34
- @refresh="handleRefresh"
35
- @checked="handleChecked"
36
- @uncheck="handleUncheck"
37
- :fileInfo="
38
- getLastFileByList(contractFileInfo.latestContractFileInfo)
39
- "
40
- />
41
- </div>
42
- </el-col>
43
- <el-col :span="4">
9
+ <!-- 合同 -->
10
+ <div style="margin-top:30px">
11
+ <SectionSlot :infoPro="contractProgressInfo">
12
+ <template v-slot:header>
13
+ <div>
14
+ <ProgressDetail :infoPro="contractProgressInfo"></ProgressDetail>
15
+ </div>
16
+ </template>
17
+ <template v-slot:content>
18
+ <div class="content-root">
19
+ <!-- 提单指令 -->
20
+ <ContentTitle :contentTitleProp="{
21
+ bgButton: '提单指令',
22
+ bgTime:contractFileInfo.personalBillFileInfo && timeFormate(contractFileInfo.personalBillFileInfo),
23
+ }"></ContentTitle>
24
+ <el-col :span="12" v-if="getLastFileByList(contractFileInfo.latestBillFileInfo)">
44
25
  <div>
45
26
  <div class="sub-title">{{ $t("contractDetail.blInfo") }}</div>
46
27
  <div class="file-list">
@@ -49,6 +30,7 @@
49
30
  @refresh="handleRefresh"
50
31
  @checked="handleChecked"
51
32
  @uncheck="handleUncheck"
33
+ :selectFileListProp="selectFileList"
52
34
  :fileInfo="
53
35
  getLastFileByList(contractFileInfo.latestBillFileInfo)
54
36
  "
@@ -56,563 +38,799 @@
56
38
  </div>
57
39
  </div>
58
40
  </el-col>
59
- <el-col :span="6">
41
+ <el-col :span="12">
60
42
  <div class="file-list">
61
- <file-show
62
- :hiddenOperation="channel == 'official-website'"
63
- @refresh="handleRefresh"
64
- @checked="handleChecked"
65
- @uncheck="handleUncheck"
66
- :file-info="item"
67
- v-for="(item, i) in contractFileInfo.personalBillFileInfo"
68
- :key="i"
69
- />
70
- <contract-file-drag-upload
71
- v-if="channel !== 'official-website'"
72
- @upload="
73
- handleUpload(
74
- $event,
75
- contract.dealId,
76
- 'dealRecord',
77
- 'personal_deal_bill'
78
- )
79
- "
80
- :isShowTip="false"
81
- />
43
+ <file-show
44
+ :hiddenOperation="channel == 'official-website'"
45
+ @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
46
+ v-for="(item, i) in contractFileInfo.personalBillFileInfo" :key="i" />
47
+ <contract-file-drag-upload
48
+ v-show="(!contractFileInfo.personalBillFileInfo || contractFileInfo.personalBillFileInfo.length == 0) && channel !== 'official-website'"
49
+ @upload="
50
+ handleUpload(
51
+ $event,
52
+ contract.dealId,
53
+ 'dealRecord',
54
+ 'personal_deal_bill'
55
+ )
56
+ ":isShowTip="false"
57
+ uploadNameStr="提单指令" />
82
58
  </div>
83
59
  </el-col>
84
- <el-col :span="9">
85
- <div>
86
- <div v-if="channel !== 'official-website'" class="sub-title">
60
+ <el-col :span="12" v-if="contractFileInfo.bliConfirmFlag" class="center-status">
61
+ <i class="el-icon-success success"></i>
62
+ 提单指令已确认
63
+ </el-col>
64
+ <el-col :span="12" v-else class="center-status">
65
+ <i class="el-icon-time"></i>
66
+ 提单指令待确认
67
+ </el-col>
68
+ <!-- 销售合同-回签合同 -->
69
+ <el-col :span="24">
70
+ <div class="hr-class"></div>
71
+ </el-col>
72
+ <el-col :span="24">
73
+ <el-col :span="12">
74
+ <div class="content-root-row">
75
+ <ContentTitle :contentTitleProp="{
76
+ bgButton: contract.contractType == 'sale'
77
+ ? $t('contractDetail.saleContract')
78
+ : $t('contractDetail.purchaseContract'),
79
+ bgTime:contractFileInfo.latestContractFileInfo && timeFormate(contractFileInfo.latestContractFileInfo)
80
+ }"></ContentTitle>
81
+ <span class="bg-history" @click="handleHistory('contract_formal')">查看历史版本</span>
82
+ </div>
83
+ </el-col>
84
+ <el-col :span="12" v-if="contractFileInfo.signContractFileInfo && contractFileInfo.signContractFileInfo.length">
85
+ <ContentTitle :contentTitleProp="{
86
+ bgButton: '回签合同',
87
+ bgTime:timeFormate(contractFileInfo.signContractFileInfo)
88
+ }"
89
+ :successFlag="true"
90
+ ></ContentTitle>
91
+ </el-col>
92
+ </el-col>
93
+ <el-col :span="24">
94
+ <el-col :span="12">
95
+ <div class="file-list" v-if="getLastFileByList(contractFileInfo.latestContractFileInfo)">
96
+ <file-show :hiddenOperation="channel == 'official-website'" @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :fileInfo="getLastFileByList(contractFileInfo.latestContractFileInfo)" />
97
+ </div>
98
+ <div v-else>
99
+ 暂无合同
100
+ </div>
101
+ </el-col>
102
+ <!-- 回签合同 -->
103
+ <el-col :span="12">
104
+ <!-- <div v-if="channel !== 'official-website'" class="sub-title">
87
105
  {{ $t("contractDetail.signContract") }}
88
106
  <el-button style="margin-left: 10px" @click="counterSign" size="mini">撤回回签</el-button>
89
- </div>
90
- <div v-else class="sub-title">{{ $t("contractDetail.signContract") }}</div>
91
- </div>
92
- <div class="file-list">
93
- <file-show
94
- :hiddenOperation="channel == 'official-website'"
95
- @refresh="handleRefresh"
96
- @checked="handleChecked"
97
- @uncheck="handleUncheck"
98
- :file-info="item"
99
- v-for="(item, i) in contractFileInfo.signContractFileInfo"
100
- :key="i"
101
- />
102
- <contract-file-drag-upload
107
+ </div> -->
108
+ <div class="file-list">
109
+ <file-show :hiddenOperation="channel == 'official-website'" @refresh="handleRefresh"
110
+ @checked="handleChecked" @uncheck="handleUncheck" :file-info="item"
111
+ :selectFileListProp="selectFileList"
112
+ type="signContract"
113
+ @signContract="counterSign"
114
+ v-for="(item, i) in contractFileInfo.signContractFileInfo" :key="i" />
115
+ <contract-file-drag-upload
116
+ v-show="!contractFileInfo.signContractFileInfo || contractFileInfo.signContractFileInfo && contractFileInfo.signContractFileInfo.length == 0"
103
117
  @upload="
118
+ handleUpload(
119
+ $event,
120
+ contract.contractId,
121
+ 'contract',
122
+ 'contract_sign'
123
+ )
124
+ " :isShowTip="false" uploadNameStr="回签合同" />
125
+ </div>
126
+ </el-col>
127
+ </el-col>
128
+ <!-- 定金发票-支付凭证 -->
129
+ <el-col :span="24" v-if="contract.deposit > 0">
130
+ <div class="hr-class"></div>
131
+ </el-col>
132
+ <div v-if="contract.deposit > 0">
133
+ <el-col :span="12">
134
+ <div style="display:flex;align-items:center">
135
+ <ContentTitle :contentTitleProp="{
136
+ bgButton: '定金发票',
137
+ bgTime:contractFileInfo.proformaInvoiceFileInfo && timeFormate(contractFileInfo.proformaInvoiceFileInfo) || contractFileInfo.personalProformaInvoiceFileInfo && timeFormate(contractFileInfo.personalProformaInvoiceFileInfo)
138
+ }">
139
+ </ContentTitle>
140
+ <span class="bg-history" v-if="channel !== 'official-website'" @click="skipInvoiceList">发票列表</span>
141
+ </div>
142
+ </el-col>
143
+
144
+ <el-col :span="12" v-if="contractFileInfo.proformaInvoiceWaterBillFileInfo && contractFileInfo.proformaInvoiceWaterBillFileInfo.length">
145
+ <ContentTitle :contentTitleProp="{
146
+ bgButton: '支付凭证',
147
+ bgTime: contractFileInfo.proformaInvoiceWaterBillFileInfo && timeFormate(contractFileInfo.proformaInvoiceWaterBillFileInfo)
148
+ }"
149
+ :successFlag="true"
150
+ >
151
+ </ContentTitle>
152
+ <!-- <div v-if="!contractFileInfo.depositInvoicePayFlag">
153
+ 有回签合同文件
154
+ </div> -->
155
+ <div>
156
+ </div>
157
+ </el-col>
158
+ </div>
159
+ <!-- 数据 -->
160
+ <el-col :span="24" v-if="contract.deposit > 0">
161
+ <el-col :span="12">
162
+ <div style="margin-bottom:20px" v-if="contract.contractType == 'purchase'">
163
+ <el-button type="primary" size="mini" v-if="channel !== 'official-website'" @click.stop="getDepositInvoice">
164
+ {{ contract.contractType == "sale" ? "生成定金发票" : "上传定金发票" }}
165
+ </el-button>
166
+ </div>
167
+ <!-- 系统生成定金发票 -->
168
+ <div class="file-list">
169
+ <file-show
170
+ :hiddenOperation="channel == 'official-website'"
171
+ @refresh="handleRefresh"
172
+ @checked="handleChecked"
173
+ @uncheck="handleUncheck"
174
+ :selectFileListProp="selectFileList"
175
+ :fileInfo="
176
+ getLastFileByList(contractFileInfo.proformaInvoiceFileInfo)
177
+ "
178
+ />
179
+ </div>
180
+ <!-- 手动上传定金发票 -->
181
+ <div class="file-list">
182
+ <file-show :hiddenOperation="channel == 'official-website'" @refresh="handleRefresh"
183
+ @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item" v-for="(
184
+ item, i
185
+ ) in contractFileInfo.personalProformaInvoiceFileInfo" :key="i" />
186
+ <contract-file-drag-upload v-show="(!contractFileInfo.personalProformaInvoiceFileInfo || contractFileInfo.personalProformaInvoiceFileInfo.length == 0) && contract.contractType == 'sale'" @upload="
104
187
  handleUpload(
105
188
  $event,
106
- contract.contractId,
107
- 'contract',
108
- 'contract_sign'
189
+ contractFileInfo.proformaInvoice.id,
190
+ 'invoice',
191
+ 'personal_proforma_invoice'
109
192
  )
110
- "
111
- :isShowTip="false"
112
- />
113
- </div>
193
+ ":isShowTip="false"
194
+ uploadNameStr="定金发票" />
195
+ <div v-if="channel == 'official-website'" class="center-status">
196
+ <i class="el-icon-time"></i>
197
+ <span>定金发票待上传</span>
198
+ </div>
199
+ </div>
200
+ </el-col>
201
+ <!-- 定金 -->
202
+ <!-- <div>contractFileInfo.depositInvoicePayFlag{{ contractFileInfo.depositInvoicePayFlag }}</div> -->
203
+ <!-- <div class="file-list" v-if="contractFileInfo.depositInvoicePayFlag">
204
+ <file-show @refresh="handleRefresh"
205
+ @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
206
+ v-for="(item, i) in contractFileInfo.proformaInvoiceWaterBillFileInfo" :key="i" />
207
+ <contract-file-drag-upload
208
+ @upload="
209
+ handleUpload(
210
+ $event,
211
+ contract.contractId,
212
+ 'contract',
213
+ 'contract_sign'
214
+ )
215
+ " :isShowTip="false" uploadNameStr="支付凭证" />
216
+ </div> -->
217
+ <el-col :span="12" class="center-status">
218
+ <div>
219
+ <!-- <div>
220
+ <i class="el-icon-time"></i>
221
+ <span style="color:#f00" v-if="!contractFileInfo.depositInvoicePayFlag">定金待付</span>
222
+ </div> -->
223
+ <el-row v-if="contract.contractType == 'sale'">
224
+ <el-col :span="16">
225
+ <div
226
+ v-if="contractFileInfo.depositInvoicePayFlag"
227
+ :class="['el-icon-success','customer-icon-success-color', 'success']"
228
+ style="width:max-content"
229
+ >
230
+ {{
231
+ channel !== "official-website"
232
+ ? "定金已收"
233
+ : $t("contractDetail.Deposit_Paid")
234
+ }}
235
+ </div>
236
+ <div v-else style="width:max-content">
237
+ <i class="el-icon-time"></i>
238
+ <span style="color: red">
239
+ {{
240
+ channel !== "official-website"
241
+ ? "定金待付"
242
+ : $t("contractDetail.Deposit_Unpaid")
243
+ }}
244
+ </span>
245
+ </div>
246
+ </el-col>
247
+ </el-row>
248
+ <el-row v-else>
249
+ <!-- <el-col :span="4">
250
+ <div style="color: #1890ff">{{ $t("contractDetail.deposit") }}</div>
251
+ </el-col> -->
252
+ <el-col :span="12">
253
+ <div
254
+ v-if="contractFileInfo.depositInvoicePayFlag"
255
+ style="width:max-content"
256
+ >
257
+ <i class="el-icon-success success"></i>
258
+ 定金已付</div>
259
+ <div v-else style="width:max-content">
260
+ <i class="el-icon-time"></i>
261
+ <span style="color: red">定金待付</span>
262
+ </div>
263
+ </el-col>
264
+ </el-row>
265
+ <div v-if="!contractFileInfo.proformaInvoiceWaterBillFileInfo || contractFileInfo.proformaInvoiceWaterBillFileInfo.length == 0">
266
+ <!-- <i class="el-icon-time"></i> -->
267
+ 支付凭证待提供
268
+ </div>
269
+ <div v-else style="color:#000">
270
+ <file-show @refresh="handleRefresh"
271
+ @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
272
+ v-for="(item, i) in contractFileInfo.proformaInvoiceWaterBillFileInfo" :key="i" />
273
+ </div>
274
+ </div>
275
+ </el-col>
114
276
  </el-col>
115
- </el-row>
116
- <el-divider></el-divider>
117
- <el-row>
118
- <div class="sub-title">{{ $t("contractDetail.otherFile") }}</div>
119
- <div class="file-list" v-if="contract.contractType == 'sale'">
120
- <file-show
121
- :hiddenOperation="channel == 'official-website'"
122
- @refresh="handleRefresh"
123
- @checked="handleChecked"
124
- @uncheck="handleUncheck"
125
- :file-info="item"
126
- v-for="(item, i) in contractFileInfo.saleContractOtherFile"
127
- :key="i"
128
- />
129
- <contract-file-drag-upload
130
- @upload="
277
+ <!-- 其他文件 -->
278
+ <el-col :span="24">
279
+ <div class="hr-class"></div>
280
+ </el-col>
281
+ <el-col :span="24">
282
+ <ContentTitle :contentTitleProp="{
283
+ bgButton: '其他文件',
284
+ bgTime: contract.contractType == 'sale' ? contractFileInfo.saleContractOtherFile && timeFormate(contractFileInfo.saleContractOtherFile) : contractFileInfo.purchaseContractOtherFile && timeFormate(contractFileInfo.purchaseContractOtherFile)
285
+ }"></ContentTitle>
286
+ </el-col>
287
+ <el-col :span="24">
288
+ <!-- 销售-其他文件 -->
289
+ <div class="file-list" v-if="contract.contractType == 'sale'">
290
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
291
+ v-for="(item, i) in contractFileInfo.saleContractOtherFile" :key="i" />
292
+ <contract-file-drag-upload @upload="
131
293
  handleUpload(
132
294
  $event,
133
295
  contract.contractId,
134
296
  'contract',
135
297
  'sale_contract_other_file'
136
298
  )
137
- "
138
- :isShowTip="false"
139
- />
140
- </div>
141
- <div class="file-list" v-else>
142
- <file-show
143
- :hiddenOperation="channel == 'official-website'"
144
- @refresh="handleRefresh"
145
- @checked="handleChecked"
146
- @uncheck="handleUncheck"
147
- :file-info="item"
148
- v-for="(item, i) in contractFileInfo.purchaseContractOtherFile"
149
- :key="i"
150
- />
151
- <contract-file-drag-upload
152
- @upload="
299
+ " :isShowTip="false" uploadNameStr="其他文件" />
300
+ </div>
301
+ <!-- 销售-采购文件 -->
302
+ <div class="file-list" v-else>
303
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :file-info="item"
304
+ v-for="(item, i) in contractFileInfo.purchaseContractOtherFile" :key="i" />
305
+ <contract-file-drag-upload @upload="
153
306
  handleUpload(
154
307
  $event,
155
308
  contract.contractId,
156
309
  'contract',
157
310
  'purchase_contract_other_file'
158
311
  )
159
- "
160
- :isShowTip="false"
161
- />
162
- </div>
163
- </el-row>
164
- </div>
165
- </el-timeline-item>
166
- <el-timeline-item
167
- :icon="contractFileInfo.proformaInvoice ? 'el-icon-success' : ''"
168
- :type="contractFileInfo.proformaInvoice ? 'primary' : ''"
169
- size="large"
170
- v-if="contract.deposit !== 0"
171
- >
172
- <el-row v-if="contract.contractType == 'sale'">
173
- <el-col :span="2">
174
- <div style="color: #1890ff">{{ $t("contractDetail.deposit") }}</div>
175
- </el-col>
176
- <el-col :span="4">
177
- <div
178
- v-if="
179
- contractFileInfo.proformaInvoice &&
180
- contractFileInfo.proformaInvoice.amount >
181
- contractFileInfo.proformaInvoice.remainingAmount
312
+ "
313
+ :isShowTip="false"
314
+ uploadNameStr="其他文件"
315
+ />
316
+ </div>
317
+ </el-col>
318
+ </div>
319
+ </template>
320
+ </SectionSlot>
321
+ </div>
322
+ <!-- 装运 -->
323
+ <div>
324
+ <BillOfLadingNoTab
325
+ :contractFileInfo="contractFileInfo"
326
+ @changeShipBillNo="changeShipBillNo"
327
+ :progressInfo="shipProgressInfo"
328
+ :shipBillNoProp="shipBillNo"
329
+ ></BillOfLadingNoTab>
330
+ <!-- 生成装运 -->
331
+ <SectionSlot :infoPro="shipProgressInfo" v-if="contractFileInfo && !contractFileInfo.shipmentFileInfoList">
332
+ <template v-slot:header>
333
+ <div style="position:relative">
334
+ <ProgressDetail :infoPro="shipProgressInfo"></ProgressDetail>
335
+ <!-- <div class="addshipment" @click.stop="handleGenerate"
336
+ v-if="
337
+ channel !== 'official-website' && contract.contractType == 'sale'
182
338
  "
183
- class="el-icon-success customer-icon-success-color"
184
- >
185
- {{
186
- channel !== "official-website"
187
- ? "定金已收"
188
- : $t("contractDetail.Deposit_Paid")
189
- }}
190
- </div>
191
- <div v-else style="color: red">
192
- {{
193
- channel !== "official-website"
194
- ? "定金未收"
195
- : $t("contractDetail.Deposit_Unpaid")
196
- }}
197
- </div>
198
- </el-col>
199
- </el-row>
200
- <el-row v-else>
201
- <el-col :span="2">
202
- <div style="color: #1890ff">{{ $t("contractDetail.deposit") }}</div>
203
- </el-col>
204
- <el-col :span="2">
205
- <div
206
- v-if="
207
- contractFileInfo.proformaInvoice &&
208
- contractFileInfo.proformaInvoice.amount >
209
- contractFileInfo.proformaInvoice.remainingAmount
339
+ >生成装运</div> -->
340
+ <div class="addshipment" @click.stop="handleGeneratePurchase"
341
+ v-if="
342
+ channel !== 'official-website' && contract.contractType == 'purchase'
210
343
  "
211
- class="el-icon-success customer-icon-success-color"
212
- >定金已付</div>
213
- <div v-else style="color: red">定金未付</div>
214
- </el-col>
215
- </el-row>
216
- <el-row v-if="channel !== 'official-website'">
217
- <el-col :span="5">
218
- <el-button type="primary" size="mini" @click="getDepositInvoice">
219
- {{
220
- contract.contractType == "sale" ? "生成定金发票" : "上传定金发票"
221
- }}
222
- </el-button>
223
- </el-col>
224
- </el-row>
225
- <el-row>
226
- <el-col :span="6">
227
- <div class="sub-title">
228
- {{ $t("contractDetail.depositInvoice") }}
229
- <el-button
230
- v-if="channel !== 'official-website'"
231
- type="text"
232
- size="small"
233
- @click="skipInvoiceList"
234
- >发票列表</el-button>
344
+ >生成装运</div>
345
+ </div>
346
+ </template>
347
+ <template v-slot:content>
348
+ <div class="ship-empty" style="background-color:#fff">
349
+ <div>
350
+ <b>装箱单</b>将会在卖家装运后更新
235
351
  </div>
236
- <div class="file-list">
237
- <file-show
238
- :hiddenOperation="channel == 'official-website'"
239
- @refresh="handleRefresh"
240
- @checked="handleChecked"
241
- @uncheck="handleUncheck"
242
- :fileInfo="
243
- getLastFileByList(contractFileInfo.proformaInvoiceFileInfo)
244
- "
245
- />
352
+ <div>
353
+ <b>装运照片</b>将会在卖家装运后更新
246
354
  </div>
247
- </el-col>
248
- <el-col :span="13">
249
- <el-row style="margin-top: 20px"></el-row>
250
- <div class="file-list">
251
- <file-show
252
- :hiddenOperation="channel == 'official-website'"
253
- @refresh="handleRefresh"
254
- @checked="handleChecked"
255
- @uncheck="handleUncheck"
256
- :file-info="item"
257
- v-for="(
258
- item, i
259
- ) in contractFileInfo.personalProformaInvoiceFileInfo"
260
- :key="i"
261
- />
262
- <contract-file-drag-upload
263
- v-if="channel !== 'official-website'"
264
- @upload="
265
- handleUpload(
266
- $event,
267
- contractFileInfo.proformaInvoice.id,
268
- 'invoice',
269
- 'personal_proforma_invoice'
270
- )
271
- "
272
- :isShowTip="false"
273
- />
355
+ <div>
356
+ <b>草稿提单</b>将会在卖家装运后更新
274
357
  </div>
275
- </el-col>
276
- </el-row>
277
- <el-row>
278
- <div class="sub-title">{{ $t("contractDetail.depositRemittanceReceipt") }}</div>
279
- <div class="file-list">
280
- <file-show
281
- :hiddenOperation="channel == 'official-website'"
282
- @refresh="handleRefresh"
283
- @checked="handleChecked"
284
- @uncheck="handleUncheck"
285
- :file-info="item"
286
- v-for="(
287
- item, i
288
- ) in contractFileInfo.proformaInvoiceWaterBillFileInfo"
289
- :key="i"
290
- />
291
358
  </div>
292
- </el-row>
293
- </el-timeline-item>
294
- <el-timeline-item
295
- :icon="contractFileInfo.shipmentFileInfoList ? 'el-icon-success' : ''"
296
- :type="contractFileInfo.shipmentFileInfoList ? 'primary' : ''"
297
- size="large"
298
- >
299
- <div style="color: #1890ff">{{ $t("contractDetail.tip5") }}</div>
300
- <el-button
301
- type="primary"
302
- size="mini"
303
- @click="handleGenerate"
304
- v-if="
305
- channel !== 'official-website' && contract.contractType == 'sale'
306
- "
307
- >生成装运</el-button>
308
- <el-button
309
- type="primary"
310
- size="mini"
311
- @click="handleGeneratePurchase"
312
- v-if="
313
- channel !== 'official-website' &&
314
- contract.contractType == 'purchase'
315
- "
316
- >生成装运</el-button>
317
- <el-tabs v-model="activeName">
318
- <el-tab-pane
319
- :label="
320
- '提单号 ' +
321
- (shipmentFileInfo.billOfLadingNo
322
- ? shipmentFileInfo.billOfLadingNo
323
- : '')
324
- "
325
- :name="shipmentIndex.toString()"
326
- v-for="(
327
- shipmentFileInfo, shipmentIndex
328
- ) in contractFileInfo.shipmentFileInfoList"
329
- :key="shipmentIndex"
330
- >
331
- <div
332
- v-if="
333
- channel !== 'official-website' &&
334
- contract.contractType == 'purchase'
335
- "
336
- style="margin-bottom: 20px"
337
- >
338
- <el-button
339
- type="primary"
340
- size="mini"
341
- v-if="shipmentFileInfo && shipmentFileInfo.shipmentId"
342
- @click="
343
- identifyPage(
344
- '',
345
- shipmentFileInfo && shipmentFileInfo.shipmentId,
346
- 'summary'
347
- )
359
+ </template>
360
+ </SectionSlot>
361
+ <div v-else>
362
+ <SectionSlot :infoPro="shipProgressInfo" v-for="(
363
+ shipmentFileInfo, shipmentIndex
364
+ ) in contractFileInfo.shipmentFileInfoList" :key="shipmentIndex" v-if="shipmentIndex == shipBillNo">
365
+ <template v-slot:header>
366
+ <div style="position:relative">
367
+ <ProgressDetail :infoPro="shipProgressInfo"></ProgressDetail>
368
+ <!-- <div class="addshipment" @click.stop="handleGenerate"
369
+ v-if="
370
+ channel !== 'official-website' && contract.contractType == 'sale'
371
+ "
372
+ >增加装运</div> -->
373
+ <div class="addshipment" @click.stop="handleGeneratePurchase"
374
+ v-if="
375
+ channel !== 'official-website' && contract.contractType == 'purchase'
348
376
  "
349
- >识别汇总</el-button>
350
- <el-button type="primary" size="mini" @click="editShipment(shipmentFileInfo)">编辑船运</el-button>
377
+ >增加装运</div>
351
378
  </div>
352
- <el-timeline>
353
- <el-timeline-item
354
- :icon="shipmentFileInfo ? 'el-icon-success' : ''"
355
- :type="shipmentFileInfo ? 'primary' : ''"
356
- size="large"
357
- >
358
- <div v-if="channel !== 'official-website'" style="color: #1890ff">首批货运</div>
379
+ </template>
380
+ <template v-slot:content>
381
+ <!-- <div class="content-root" v-if="shipProgressInfo.rate > 0"> -->
382
+ <div class="content-root" v-if="true">
383
+ <div
384
+ v-if="
385
+ channel !== 'official-website' &&
386
+ contractFileInfo.shipmentFileInfoList && contractFileInfo.shipmentFileInfoList.length > 0 &&
387
+ contract.contractType == 'purchase'
388
+ "
389
+ style="margin-bottom: 20px"
390
+ class="preview-download-root"
391
+ >
392
+ <div
393
+ v-if="shipmentItemData && shipmentItemData.shipmentId"
394
+ @click="
395
+ identifyPage(
396
+ '',
397
+ shipmentItemData && shipmentItemData.shipmentId,
398
+ 'summary'
399
+ )
400
+ "
401
+ class="preview-download"
402
+ >识别汇总</div>
403
+ <div class="preview-download" @click="editShipment(shipmentItemData)">编辑船运</div>
404
+ </div>
405
+ <!-- 订舱资料 -->
406
+ <ContentTitle :contentTitleProp="{
407
+ bgButton: '订舱资料',
408
+ bgTime: shipmentFileInfo.bookingConfirmation && timeFormate(shipmentFileInfo.bookingConfirmation),
409
+ bgcolor: shipProgressInfo.bgcolor
410
+
411
+ }">
412
+ </ContentTitle>
359
413
  <div>
360
- <div class="sub-title">{{ $t("contractDetail.bookingConfirmation") }}</div>
414
+ </div>
415
+ <el-col :span="24">
416
+ <div class="file-list">
417
+ <el-col v-if=" contract.contractType == 'sale' && (!shipmentFileInfo.bookingConfirmation || shipmentFileInfo.bookingConfirmation && shipmentFileInfo.bookingConfirmation.length == 0)" :span="12" class="center-status">
418
+ <i class="el-icon-time"></i>
419
+ 订舱资料待更新
420
+ </el-col>
421
+ <file-show @refresh="handleRefresh" @checked="handleChecked" :hiddenOperation="channel == 'official-website'" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
422
+ v-for="(item, i) in shipmentFileInfo.bookingConfirmation" :key="i" />
423
+ <!-- 6. 销售去掉订舱资料上传功能 https://udswem7m8c.feishu.cn/wiki/Tm4SwKcqviRkTUkKNCxc2bnBnVb -->
424
+ <contract-file-drag-upload
425
+ v-if="channel !== 'official-website' && contract.contractType == 'purchase'"
426
+ @upload="
427
+ handleUpload(
428
+ $event,
429
+ shipmentFileInfo.shipmentId,
430
+ 'shipment',
431
+ 'shipment_booking_confirmation'
432
+ )
433
+ " :isShowTip="false" uploadNameStr="订舱资料" />
434
+ </div>
435
+ </el-col>
436
+ <el-col :span="24">
437
+ <div class="hr-class"></div>
438
+ </el-col>
439
+ <!-- 装箱单 -->
440
+ <ContentTitle :contentTitleProp="{
441
+ bgButton: '装箱单',
442
+ bgTime: contract.contractType == 'purchase' ? shipmentFileInfo.purchasePersonalPackingList && timeFormate(shipmentFileInfo.purchasePersonalPackingList) : shipmentFileInfo.salePersonalPackingList && timeFormate(shipmentFileInfo.salePersonalPackingList),
443
+ bgcolor: shipProgressInfo.bgcolor
444
+ }"></ContentTitle>
445
+ <el-row v-if="contract.contractType == 'sale'">
446
+ <div>
447
+ <div class="sub-title">
448
+ <span style="color: #1890ff; cursor: pointer" v-if="shipmentFileInfo &&
449
+ shipmentFileInfo.purchasePersonalPackingList &&
450
+ shipmentFileInfo.purchasePersonalPackingList[0] &&
451
+ shipmentFileInfo.purchasePersonalPackingList[0]
452
+ .url
453
+ " @click="
454
+ identifyPage(
455
+ shipmentFileInfo &&
456
+ shipmentFileInfo.purchasePersonalPackingList &&
457
+ shipmentFileInfo
458
+ .purchasePersonalPackingList[0] &&
459
+ shipmentFileInfo
460
+ .purchasePersonalPackingList[0].url,
461
+ shipmentFileInfo && shipmentFileInfo.shipmentId,
462
+ 'packing'
463
+ )
464
+ ">{{ identify }}
465
+ </span>
466
+ </div>
467
+ <el-col :span="24">
468
+ <div class="file-list">
469
+ <!-- <el-col :span="12" v-if="!shipmentFileInfo.purchasePersonalPackingList || shipmentFileInfo.purchasePersonalPackingList.length == 0" class="center-status">
470
+ <i class="el-icon-time"></i>
471
+ 装箱单待更新
472
+ </el-col> -->
473
+ <file-show :hiddenOperation="channel == 'official-website'" @refresh="handleRefresh"
474
+ @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item" v-for="(
475
+ item, i
476
+ ) in shipmentFileInfo.purchasePersonalPackingList" :key="i" />
477
+
478
+ <contract-file-drag-upload
479
+ @upload="handleUpload(
480
+ $event,
481
+ shipmentFileInfo.shipmentId,
482
+ 'shipment',
483
+ 'purchase_personal_shipment_packing_list'
484
+ )"
485
+ :isShowTip="false"
486
+ uploadNameStr="装箱单"
487
+ />
488
+ </div>
489
+ </el-col>
490
+ </div>
491
+ </el-row>
492
+ <el-row v-if="contract.contractType == 'purchase'">
493
+ <div>
494
+ <el-col :span="24">
361
495
  <div class="file-list">
362
- <file-show
363
- :hiddenOperation="channel == 'official-website'"
364
- @refresh="handleRefresh"
365
- @checked="handleChecked"
366
- @uncheck="handleUncheck"
367
- :file-info="item"
368
- v-for="(item, i) in shipmentFileInfo.bookingConfirmation"
369
- :key="i"
370
- />
371
- <contract-file-drag-upload
372
- v-if="channel !== 'official-website'"
373
- @upload="
496
+ <el-col :span="12" v-if="!shipmentFileInfo.salePersonalPackingList || shipmentFileInfo.salePersonalPackingList.length == 0" class="center-status">
497
+ <i class="el-icon-time"></i>
498
+ 装箱单待更新
499
+ </el-col>
500
+ <file-show :hiddenOperation="channel == 'official-website'" @refresh="handleRefresh"
501
+ @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item" v-for="(
502
+ item, i
503
+ ) in shipmentFileInfo.salePersonalPackingList" :key="i" />
504
+ <!-- sale 只做展示 -->
505
+ <!-- <contract-file-drag-upload v-if="channel !== 'official-website'" @upload="
374
506
  handleUpload(
375
507
  $event,
376
508
  shipmentFileInfo.shipmentId,
377
509
  'shipment',
378
- 'shipment_booking_confirmation'
510
+ 'sale_personal_shipment_packing_list'
379
511
  )
380
- "
512
+ "
381
513
  :isShowTip="false"
382
- />
383
- </div>
514
+ uploadNameStr="装箱单"
515
+ /> -->
516
+ </div>
517
+ </el-col>
384
518
  </div>
385
- <el-divider></el-divider>
386
- <el-row v-if="channel !== 'official-website'">
387
- <el-col :span="6" v-if="contract.contractType == 'sale'">
388
- <div>
389
- <div class="sub-title">{{ $t("contractDetail.packingList") }}</div>
390
- <div class="file-list">
391
- <file-show
392
- :hiddenOperation="channel == 'official-website'"
393
- @refresh="handleRefresh"
394
- @checked="handleChecked"
395
- @uncheck="handleUncheck"
396
- :file-info="
397
- getLastFileByList(shipmentFileInfo.packingList)
398
- "
399
- />
519
+ </el-row>
520
+
521
+ <!-- 装箱照片 -->
522
+ <el-col :span="24">
523
+ <div class="hr-class"></div>
524
+ </el-col>
525
+ <div v-for="(
526
+ containerFile, i
527
+ ) in shipmentFileInfo.containerFileInfoRespList" :key="i">
528
+ <el-col :span="24">
529
+ <div class="content-root-row">
530
+ <ContentTitle :contentTitleProp="{
531
+ bgButton: '装箱照片' + containerFile.containerNo,
532
+ bgTime: containerFile.packingPhoto && timeFormate(containerFile.packingPhoto),
533
+ bgcolor: shipProgressInfo.bgcolor
534
+ }"></ContentTitle>
535
+ <div v-if="containerFile && containerFile.packingPhoto.length" style="display:flex">
536
+ <!-- <div style="display:flex"> -->
537
+ <div class="border-button" @click.stop="allSelectContainerPackingPhoto(containerFile.containerId)">
538
+ 全选照片 </div>
539
+ <div class="border-button" @click.stop="cancelContainerPackingPhoto(containerFile.containerId)">取消全选
400
540
  </div>
541
+ <div class="border-button border-button-share"
542
+ @click.stop="shareContainerUrl(containerFile.containerId)">分享</div>
401
543
  </div>
402
- </el-col>
403
- <el-col :span="18">
404
- <el-row v-if="contract.contractType == 'purchase'">
405
- <div>
406
- <div class="sub-title">
407
- 装箱单(P)
408
- <span
409
- style="color: #1890ff; cursor: pointer"
410
- v-if="
411
- shipmentFileInfo &&
412
- shipmentFileInfo.purchasePersonalPackingList &&
413
- shipmentFileInfo.purchasePersonalPackingList[0] &&
414
- shipmentFileInfo.purchasePersonalPackingList[0]
415
- .url
416
- "
417
- @click="
418
- identifyPage(
419
- shipmentFileInfo &&
420
- shipmentFileInfo.purchasePersonalPackingList &&
421
- shipmentFileInfo
422
- .purchasePersonalPackingList[0] &&
423
- shipmentFileInfo
424
- .purchasePersonalPackingList[0].url,
425
- shipmentFileInfo && shipmentFileInfo.shipmentId,
426
- 'packing'
427
- )
428
- "
429
- >{{ identify }}</span>
430
- </div>
431
- <div class="file-list">
432
- <file-show
433
- :hiddenOperation="channel == 'official-website'"
434
- @refresh="handleRefresh"
435
- @checked="handleChecked"
436
- @uncheck="handleUncheck"
437
- :file-info="item"
438
- v-for="(
439
- item, i
440
- ) in shipmentFileInfo.purchasePersonalPackingList"
441
- :key="i"
442
- />
443
- <contract-file-drag-upload
444
- v-if="channel !== 'official-website'"
445
- @upload="
446
- handleUpload(
447
- $event,
448
- shipmentFileInfo.shipmentId,
449
- 'shipment',
450
- 'purchase_personal_shipment_packing_list'
451
- )
452
- "
453
- :isShowTip="false"
544
+ </div>
545
+ </el-col>
546
+ <el-col :span="24">
547
+ <div style="display:flex">
548
+ <!-- 文件预览 -->
549
+ <IMGPreviewCheckBox :ref="`container_packing_photo_${containerFile.containerId}`"
550
+ :imgArr="containerFile.packingPhoto"
551
+ :info="containerFile"
552
+ >
553
+ <template>
554
+ <contract-file-drag-upload v-show="channel !== 'official-website'" @upload="
555
+ handleUpload(
556
+ $event,
557
+ containerFile.containerId,
558
+ 'container',
559
+ 'container_packing_photo'
560
+ )
561
+ " :isShowTip="false" photos
562
+ style="margin-top:0px"
454
563
  />
455
- </div>
456
- </div>
457
- </el-row>
458
- <el-row v-if="contract.contractType == 'sale'">
459
- <div>
460
- <div class="sub-title">装箱单(S)</div>
461
-
462
- <div class="file-list">
564
+ </template>
565
+ </IMGPreviewCheckBox>
566
+ </div>
567
+ <!-- <el-col :span="12" v-if="containerFile.packingPhoto && containerFile.packingPhoto.length == 0" class="center-status">
568
+ <i class="el-icon-time"></i>
569
+ 装箱照片待更新
570
+ </el-col> -->
571
+ </el-col>
572
+ </div>
573
+
574
+ <el-col :span="24">
575
+ <div class="hr-class"></div>
576
+ </el-col>
577
+ <el-col :span="24" style="display:flex;align-items:center">
578
+ <ContentTitle :contentTitleProp="{
579
+ bgButton: '草稿提单',
580
+ bgTime: shipmentFileInfo.draftBillOfLading && timeFormate(shipmentFileInfo.draftBillOfLading),
581
+ bgcolor: shipProgressInfo.bgcolor
582
+ }"></ContentTitle>
583
+ <span
584
+ style="color: #1890ff; cursor: pointer;font-size:14px"
585
+ v-if="
586
+ shipmentFileInfo &&
587
+ shipmentFileInfo.draftBillOfLading &&
588
+ shipmentFileInfo.draftBillOfLading[0] &&
589
+ shipmentFileInfo.draftBillOfLading[0].url
590
+ "
591
+ @click="
592
+ identifyPage(
593
+ shipmentFileInfo &&
594
+ shipmentFileInfo.draftBillOfLading &&
595
+ shipmentFileInfo.draftBillOfLading[0] &&
596
+ shipmentFileInfo.draftBillOfLading[0].url,
597
+ shipmentFileInfo && shipmentFileInfo.shipmentId,
598
+ 'draft_bill'
599
+ )
600
+ "
601
+ >{{ identify }}</span>
602
+ </el-col>
603
+ <el-col :span="24">
604
+ <el-col :span="12">
605
+ <div class="file-list">
606
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
607
+ :hiddenOperation="channel == 'official-website'"
608
+ v-for="(
609
+ item, i
610
+ ) in shipmentFileInfo.draftBillOfLading" :key="i" />
611
+
612
+ <contract-file-drag-upload v-show="channel !== 'official-website' && (!shipmentFileInfo.draftBillOfLading || shipmentFileInfo.draftBillOfLading.length == 0)" @upload="
613
+ handleUpload(
614
+ $event,
615
+ shipmentFileInfo.shipmentId,
616
+ 'shipment',
617
+ 'draft_bill_of_lading'
618
+ )
619
+ " :isShowTip="false"
620
+ uploadNameStr="草稿提单"
621
+ />
622
+ </div>
623
+ </el-col>
624
+ <el-col :span="12" class="center-status" v-if="channel != 'official-website'">
625
+ <div v-if="shipmentItemData.confirmDraftBlFlag">
626
+ <i class="el-icon-success success"></i> 提单信息已确认
627
+ </div>
628
+ <div v-else-if="contract.contractType == 'sale' && shipmentFileInfo.draftBillOfLading.length" class="confirm-draft-bl" @click.stop="shipmentConfirmDraftBlFun">确认提单草稿</div>
629
+ <el-col :span="12" v-else class="center-status">
630
+ <i class="el-icon-time"></i>
631
+ 草稿提单信息待确认
632
+ </el-col>
633
+
634
+ </el-col>
635
+ <el-col :span="24">
636
+ <el-col :span="12" v-if="(shipmentFileInfo.draftBillOfLading == null || shipmentFileInfo.draftBillOfLading && shipmentFileInfo.draftBillOfLading.length == 0) && channel == 'official-website'" class="center-status">
637
+ <i class="el-icon-time"></i>
638
+ 提单草稿待更新
639
+ </el-col>
640
+ <el-col :span="12" v-if="!shipmentItemData.confirmDraftBlFlag && channel == 'official-website'" class="center-status">
641
+ <i class="el-icon-time"></i>
642
+ 草稿提单信息待确认
643
+ </el-col>
644
+ </el-col>
645
+ </el-col>
646
+
647
+ <el-col :span="24">
648
+ <div class="hr-class"></div>
649
+ </el-col>
650
+ <el-col :span="24">
651
+ <ContentTitle :contentTitleProp="{
652
+ bgButton: '正式提单Copy',
653
+ bgTime: shipmentFileInfo.originalBillOfLadingCopy && timeFormate(shipmentFileInfo.originalBillOfLadingCopy),
654
+ bgcolor: shipProgressInfo.bgcolor
655
+ }"></ContentTitle>
656
+ </el-col>
657
+ <el-col :span="24">
658
+ <div class="file-list">
659
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
660
+ :hiddenOperation="channel == 'official-website'"
661
+ v-for="(
662
+ item, i
663
+ ) in shipmentFileInfo.originalBillOfLadingCopy" :key="i" />
664
+ <contract-file-drag-upload v-show="(!shipmentFileInfo.originalBillOfLadingCopy || shipmentFileInfo.originalBillOfLadingCopy.length == 0) && channel !== 'official-website'" @upload="
665
+ handleUpload(
666
+ $event,
667
+ shipmentFileInfo.shipmentId,
668
+ 'shipment',
669
+ 'original_bill_of_lading_copy'
670
+ )
671
+ " :isShowTip="false"
672
+ uploadNameStr="正式提单Copy"
673
+ />
674
+ </div>
675
+ <el-col :span="12" v-if="(shipmentFileInfo.originalBillOfLadingCopy == null || shipmentFileInfo.originalBillOfLadingCopy && shipmentFileInfo.originalBillOfLadingCopy.length == 0) && channel == 'official-website'" class="center-status">
676
+ <i class="el-icon-time"></i>
677
+ 正式提单Copy待更新
678
+ </el-col>
679
+ </el-col>
680
+ <!-- 临时尾款发票 -->
681
+ <el-col :span="24" v-if="contract.quoteType != 'FIXED'">
682
+ <div class="hr-class"></div>
683
+ </el-col>
684
+ <el-col :span="24" v-if="contract.quoteType != 'FIXED'">
685
+ <ContentTitle :contentTitleProp="{
686
+ bgButton: '临时尾款发票',
687
+ bgTime: shipmentFileInfo.salePersonalTemporaryFinallyInvoice && timeFormate(shipmentFileInfo.salePersonalTemporaryFinallyInvoice),
688
+ bgcolor: shipProgressInfo.bgcolor
689
+ }"></ContentTitle>
690
+ <div class="sub-title">
691
+ <span
692
+ v-if="
693
+ channel !== 'official-website' &&
694
+ contract.contractType == 'purchase'
695
+ "
696
+ style="color: #1890ff; cursor: pointer; margin-left: 10px"
697
+ @click.stop="identifyPageBoth(shipmentFileInfo, 1)"
698
+ >{{ identify }}</span>
699
+ </div>
700
+ <el-col :span="12" v-if="channel == 'official-website' && shipmentFileInfo.salePersonalTemporaryFinallyInvoice && shipmentFileInfo.salePersonalTemporaryFinallyInvoice.length == 0" class="center-status">
701
+ <i class="el-icon-time"></i>
702
+ 临时尾款发票待更新
703
+ </el-col>
704
+ <div>
705
+ <div class="file-list" v-if="contract.contractType == 'sale'">
706
+ <div class="file-list">
463
707
  <file-show
464
708
  :hiddenOperation="channel == 'official-website'"
465
709
  @refresh="handleRefresh"
466
710
  @checked="handleChecked"
467
711
  @uncheck="handleUncheck"
468
- :file-info="item"
469
- v-for="(
470
- item, i
471
- ) in shipmentFileInfo.salePersonalPackingList"
472
- :key="i"
473
- />
474
- <contract-file-drag-upload
475
- v-if="channel !== 'official-website'"
476
- @upload="
477
- handleUpload(
478
- $event,
479
- shipmentFileInfo.shipmentId,
480
- 'shipment',
481
- 'sale_personal_shipment_packing_list'
712
+ :file-info="
713
+ getLastFileByList(
714
+ shipmentFileInfo.saleTemporaryFinallyInvoice
482
715
  )
483
716
  "
484
- :isShowTip="false"
485
717
  />
486
- </div>
487
- </div>
488
- </el-row>
489
- </el-col>
490
- </el-row>
491
- <el-divider></el-divider>
492
- <div>
493
- <div class="sub-title">{{ $t("contractDetail.packingPhoto") }}</div>
494
- <el-row
495
- style="margin-left: 60px"
496
- v-for="(
497
- containerFile, i
498
- ) in shipmentFileInfo.containerFileInfoRespList"
499
- :key="i"
500
- >
501
- <div style="display: flex; align-items: center">
502
- <div>{{ "集装箱" + (i + 1) + containerFile.containerNo }}</div>
503
- <div>
504
- <el-button
505
- type="text"
506
- @click="shareContainerUrl(containerFile.containerId)"
507
- >分享</el-button>
508
- </div>
509
- <!-- 展开/折叠按钮 -->
510
- <div v-if="containerFile.packingPhoto.length > 1" style="margin-left: 10px;">
511
- <el-button
512
- type="text"
513
- style="color: rgb(255, 0, 191);"
514
- @click="toggleExpand(shipmentIndex, i)"
515
- >
516
- {{
517
- containerFile.expandedFlag
518
- ? "收起图片"
519
- : "展开全部图片"
520
- }}
521
- </el-button>
522
- </div>
523
- </div>
524
- <div class="file-list">
525
- <div
526
- v-if="
527
- !containerFile.expandedFlag &&
528
- containerFile.packingPhoto.length > 1
529
- "
530
- >
531
- <file-show
532
- :hiddenOperation="channel == 'official-website'"
533
- @refresh="handleRefresh"
534
- @checked="handleChecked"
535
- @uncheck="handleUncheck"
536
- :file-info="containerFile.packingPhoto[0]"
537
- />
538
- </div>
539
- <div v-else class="file-list">
540
- <file-show
541
- :hiddenOperation="channel == 'official-website'"
542
- @refresh="handleRefresh"
543
- @checked="handleChecked"
544
- @uncheck="handleUncheck"
545
- :file-info="item"
546
- v-for="(item, i) in containerFile.packingPhoto"
547
- :key="i"
548
- />
549
- </div>
550
-
551
- <contract-file-drag-upload
552
- v-if="channel !== 'official-website'"
553
- @upload="
554
- handleUpload(
555
- $event,
556
- containerFile.containerId,
557
- 'container',
558
- 'container_packing_photo'
559
- )
560
- "
561
- :isShowTip="false"
562
- />
563
- </div>
564
- </el-row>
718
+ </div>
719
+ <file-show :hiddenOperation="channel == 'official-website'" @refresh="handleRefresh"
720
+ @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item" v-for="(
721
+ item, i
722
+ ) in shipmentFileInfo.salePersonalTemporaryFinallyInvoice" :key="i" />
723
+
724
+ <contract-file-drag-upload v-show="(!shipmentFileInfo.salePersonalTemporaryFinallyInvoice || shipmentFileInfo.salePersonalTemporaryFinallyInvoice.length == 0) && channel !== 'official-website'" @upload="
725
+ handleUpload(
726
+ $event,
727
+ shipmentFileInfo.shipmentId,
728
+ 'shipment',
729
+ 'sale_personal_temporary_finally_invoice'
730
+ )
731
+ ":isShowTip="false" uploadNameStr="临时尾款发票" />
565
732
  </div>
566
- <el-divider></el-divider>
567
- <div class="sub-title">
568
- {{ $t("contractDetail.finallyInvoice") }}
569
- <el-button
570
- v-if="channel !== 'official-website'"
571
- type="text"
572
- size="small"
573
- @click="skipInvoiceList"
574
- >发票列表</el-button>
575
- <span
576
- v-if="channel !== 'official-website' &&
577
- contract.contractType == 'purchase' "
578
- style="color: #1890ff; margin-left: 10px"
579
- >
580
- {{
581
- shipmentPurchaseAmountMessage}}
582
- </span>
583
- <el-button
584
- style="color: #1890ff; cursor: pointer; margin-left: 10px"
585
- v-if="channel !== 'official-website' &&
586
- contract.contractType == 'purchase'"
587
- type="text"
588
- size="small"
589
- @click="getShipmentPurchase(shipmentFileInfo)"
590
- >点击可查看明细</el-button>
591
- <div>{{ getShipmentPurchaseAmount(shipmentFileInfo,shipmentIndex) }}</div>
733
+ <div class="file-list" v-else>
734
+ <file-show :hiddenOperation="channel == 'official-website'" @refresh="handleRefresh"
735
+ @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item" v-for="(
736
+ item, i
737
+ ) in shipmentFileInfo.purchaseTemporaryFinallyInvoice" :key="i" />
738
+
739
+ <contract-file-drag-upload v-show="(!shipmentFileInfo.purchaseTemporaryFinallyInvoice || shipmentFileInfo.purchaseTemporaryFinallyInvoice.length == 0) && channel !== 'official-website'" @upload="
740
+ handleUpload(
741
+ $event,
742
+ shipmentFileInfo.shipmentId,
743
+ 'shipment',
744
+ 'purchase_temporary_finally_invoice'
745
+ )
746
+ ":isShowTip="false" uploadNameStr="临时尾款发票" />
592
747
  </div>
593
- <el-row v-if="contract.quoteType != 'FIXED'">
748
+ </div>
749
+ </el-col>
750
+
751
+ <el-col :span="24">
752
+ <div class="hr-class"></div>
753
+ </el-col>
754
+ <el-col :span="24">
755
+ <el-col :span="24">
756
+ <div>
757
+ {{ getShipmentPurchaseAmount(shipmentFileInfo,shipmentIndex) }}
758
+ <span
759
+ v-if="channel !== 'official-website' &&
760
+ contract.contractType == 'purchase' "
761
+ style="color: #1890ff; margin-left: 100px;cursor:pointer"
762
+ @click.stop="getShipmentPurchase(shipmentFileInfo)"
763
+ >
764
+ {{
765
+ shipmentPurchaseAmountMessage}}
766
+ </span>
767
+ <el-popover
768
+ v-if="channel !== 'official-website' &&
769
+ contract.contractType == 'purchase' "
770
+ placement="top-start"
771
+ title=""
772
+ width="380"
773
+ trigger="hover"
774
+ content="系统根据【重量x单价-扣除定金】自动计算出参考尾款,可以据此核对发票。点击蓝色字体可以查看系统的数据来源明细,修改系统自动计算的扣减定金。">
775
+ <i class="el-icon-question" slot="reference" style="color:#c2c4c5;"/>
776
+ </el-popover>
777
+ </div>
778
+ <el-col :span="12">
779
+ <div style="display:flex;align-items:center">
780
+ <ContentTitle :contentTitleProp="{
781
+ bgButton: '尾款发票',
782
+ bgTime: contract.contractType == 'sale' ? shipmentFileInfo.saleFinallyInvoice && timeFormate(shipmentFileInfo.saleFinallyInvoice) : shipmentFileInfo.purchaseFinallyInvoice && timeFormate(shipmentFileInfo.purchaseFinallyInvoice),
783
+ bgcolor: shipProgressInfo.bgcolor
784
+ }"></ContentTitle>
785
+ <span
786
+ v-if="
787
+ channel !== 'official-website' && contract.contractType == 'purchase' && shipmentFileInfo.purchaseFinallyInvoice && shipmentFileInfo.purchaseFinallyInvoice.length > 0"
788
+ style="color: #1890ff; cursor: pointer; margin-left: 10px;font-size:14px;"
789
+ @click.stop="identifyPageBoth(shipmentFileInfo, 2)"
790
+ >{{ identify }}
791
+ </span>
792
+ </div>
793
+ <!-- <div class="sub-title"> -->
794
+ <!-- {{ $t("contractDetail.finallyInvoice") }}
795
+ <el-button
796
+ v-if="channel !== 'official-website'"
797
+ type="text"
798
+ size="small"
799
+ @click="skipInvoiceList"
800
+ >发票列表</el-button> -->
801
+ <!-- <el-button
802
+ style="color: #1890ff; cursor: pointer; margin-left: 10px"
803
+ v-if="channel !== 'official-website' &&
804
+ contract.contractType == 'purchase'"
805
+ type="text"
806
+ size="small"
807
+ @click="getShipmentPurchase(shipmentFileInfo)"
808
+ >
809
+ 点击可查看明细
810
+ </el-button> -->
811
+ <!-- </div> -->
812
+ <!-- 管理台 -->
813
+ <div v-if="channel != 'official-website'">
594
814
  <div v-if="contract.contractType == 'sale'">
595
- <el-col :span="6">
815
+ <!-- <el-col :span="12">
596
816
  <div style="margin-left: 60px">
597
- <div
598
- class="sub-title"
599
- >{{ $t("contractDetail.saleTemporaryFinallyInvoice") }}</div>
600
817
  <div class="file-list">
601
818
  <file-show
602
819
  :hiddenOperation="channel == 'official-website'"
603
820
  @refresh="handleRefresh"
604
821
  @checked="handleChecked"
605
822
  @uncheck="handleUncheck"
823
+ :selectFileListProp="selectFileList"
606
824
  :file-info="
607
825
  getLastFileByList(
608
- shipmentFileInfo.saleTemporaryFinallyInvoice
826
+ shipmentFileInfo.saleFinallyInvoice
609
827
  )
610
828
  "
611
829
  />
612
830
  </div>
613
831
  </div>
614
- </el-col>
615
- <el-col :span="18">
832
+ </el-col> -->
833
+ <el-col :span="12">
616
834
  <div>
617
835
  <div class="file-list">
618
836
  <file-show
@@ -620,312 +838,107 @@
620
838
  @refresh="handleRefresh"
621
839
  @checked="handleChecked"
622
840
  @uncheck="handleUncheck"
841
+ :selectFileListProp="selectFileList"
623
842
  :file-info="item"
624
843
  v-for="(
625
844
  item, i
626
- ) in shipmentFileInfo.salePersonalTemporaryFinallyInvoice"
845
+ ) in shipmentFileInfo.saleFinallyInvoice"
627
846
  :key="i"
628
847
  />
629
848
  <contract-file-drag-upload
630
- v-if="channel !== 'official-website'"
849
+ v-show="(!shipmentFileInfo.saleFinallyInvoice || shipmentFileInfo.saleFinallyInvoice.length == 0) && channel !== 'official-website'"
631
850
  @upload="
632
851
  handleUpload(
633
852
  $event,
634
853
  shipmentFileInfo.shipmentId,
635
854
  'shipment',
636
- 'sale_personal_temporary_finally_invoice'
855
+ 'sale_finally_invoice'
637
856
  )
638
857
  "
639
858
  :isShowTip="false"
859
+ uploadNameStr="尾款发票"
640
860
  />
641
861
  </div>
642
862
  </div>
643
863
  </el-col>
644
864
  </div>
645
- <div v-else style="margin-left: 60px">
646
- <div class="sub-title">
647
- 临时尾款发票
648
- <span
649
- v-if="
650
- channel !== 'official-website' &&
651
- contract.contractType == 'purchase'
652
- "
653
- style="color: #1890ff; cursor: pointer; margin-left: 10px"
654
- @click.stop="identifyPageBoth(shipmentFileInfo, 1)"
655
- >{{ identify }}</span>
656
- </div>
657
- <div class="file-list">
658
- <file-show
659
- :hiddenOperation="channel == 'official-website'"
660
- @refresh="handleRefresh"
661
- @checked="handleChecked"
662
- @uncheck="handleUncheck"
663
- :file-info="item"
664
- v-for="(
665
- item, i
666
- ) in shipmentFileInfo.purchaseTemporaryFinallyInvoice"
667
- :key="i"
668
- />
669
- <contract-file-drag-upload
670
- v-if="channel !== 'official-website'"
671
- @upload="
672
- handleUpload(
673
- $event,
674
- shipmentFileInfo.shipmentId,
675
- 'shipment',
676
- 'purchase_temporary_finally_invoice'
677
- )
678
- "
679
- :isShowTip="false"
680
- />
681
- </div>
682
- </div>
683
- </el-row>
684
-
685
- <el-divider v-if="contract.quoteType != 'FIXED'"></el-divider>
686
-
687
- <el-row v-if="contract.contractType == 'sale'">
688
- <el-col :span="6">
689
- <div style="margin-left: 60px">
690
- <div class="sub-title">{{ $t("contractDetail.saleFinallyInvoice") }}</div>
691
- <div class="file-list">
692
- <file-show
693
- :hiddenOperation="channel == 'official-website'"
694
- @refresh="handleRefresh"
695
- @checked="handleChecked"
696
- @uncheck="handleUncheck"
697
- :file-info="
698
- getLastFileByList(
699
- shipmentFileInfo.saleFinallyInvoice
700
- )
701
- "
702
- />
703
- </div>
704
- </div>
705
- </el-col>
706
- <el-col :span="18">
707
- <div>
708
- <div class="file-list">
709
- <file-show
710
- :hiddenOperation="channel == 'official-website'"
711
- @refresh="handleRefresh"
712
- @checked="handleChecked"
713
- @uncheck="handleUncheck"
714
- :file-info="item"
715
- v-for="(
716
- item, i
717
- ) in shipmentFileInfo.salePersonalFinallyInvoice"
718
- :key="i"
719
- />
720
- <contract-file-drag-upload
721
- v-if="channel !== 'official-website'"
722
- @upload="
723
- handleUpload(
724
- $event,
725
- shipmentFileInfo.shipmentId,
726
- 'shipment',
727
- 'sale_personal_finally_invoice'
728
- )
729
- "
730
- :isShowTip="false"
731
- />
732
- </div>
733
- </div>
734
- </el-col>
735
- </el-row>
736
- <el-row v-else>
737
- <div style="margin-left: 60px">
738
- <div class="sub-title">
739
- 卖家采购尾款发票
740
- <span
741
- v-if="
742
- channel !== 'official-website' &&
743
- contract.contractType == 'purchase'
744
- "
745
- style="color: #1890ff; cursor: pointer; margin-left: 10px"
746
- @click.stop="identifyPageBoth(shipmentFileInfo, 2)"
747
- >{{ identify }}</span>
748
- </div>
749
- <div class="file-list">
750
- <file-show
751
- :hiddenOperation="channel == 'official-website'"
752
- @refresh="handleRefresh"
753
- @checked="handleChecked"
754
- @uncheck="handleUncheck"
755
- :file-info="item"
756
- v-for="(
757
- item, i
758
- ) in shipmentFileInfo.purchaseFinallyInvoice"
759
- :key="i"
760
- />
761
- <div>
762
- <el-button
763
- type="primary"
764
- size="mini"
765
- @click="
766
- uploadFinalInvoice(
767
- 'finally',
768
- shipmentFileInfo.shipmentId
769
- )
770
- "
771
- >上传采购尾款发票</el-button>
772
- </div>
773
- </div>
774
- </div>
775
- </el-row>
776
- <el-divider></el-divider>
777
- <!-- 提单草稿 -->
778
- <el-row>
779
- <div>
780
- <div class="sub-title">
781
- {{ $t("contractDetail.draftBillOfLading") }}
782
- <span
783
- style="color: #1890ff; cursor: pointer"
784
- v-if="
785
- shipmentFileInfo &&
786
- shipmentFileInfo.draftBillOfLading &&
787
- shipmentFileInfo.draftBillOfLading[0] &&
788
- shipmentFileInfo.draftBillOfLading[0].url
789
- "
790
- @click="
791
- identifyPage(
792
- shipmentFileInfo &&
793
- shipmentFileInfo.draftBillOfLading &&
794
- shipmentFileInfo.draftBillOfLading[0] &&
795
- shipmentFileInfo.draftBillOfLading[0].url,
796
- shipmentFileInfo && shipmentFileInfo.shipmentId,
797
- 'draft_bill'
798
- )
799
- "
800
- >{{ identify }}</span>
801
- </div>
802
- <div class="file-list">
803
- <file-show
804
- :hiddenOperation="channel == 'official-website'"
805
- @refresh="handleRefresh"
806
- @checked="handleChecked"
807
- @uncheck="handleUncheck"
808
- :file-info="item"
809
- v-for="(item, i) in shipmentFileInfo.draftBillOfLading"
810
- :key="i"
811
- />
812
- <contract-file-drag-upload
813
- v-if="channel !== 'official-website'"
814
- @upload="
815
- handleUpload(
816
- $event,
817
- shipmentFileInfo.shipmentId,
818
- 'shipment',
819
- 'draft_bill_of_lading'
820
- )
821
- "
822
- :isShowTip="false"
823
- />
824
- </div>
825
- </div>
826
- </el-row>
827
- <el-divider></el-divider>
828
- <!-- 提单正本Copy -->
829
- <el-row>
830
- <div>
831
- <div class="sub-title">{{ $t("contractDetail.BLCopy") }}</div>
832
- <div class="file-list">
833
- <file-show
834
- :hiddenOperation="channel == 'official-website'"
835
- @refresh="handleRefresh"
836
- @checked="handleChecked"
837
- @uncheck="handleUncheck"
838
- :file-info="item"
839
- v-for="(
840
- item, i
841
- ) in shipmentFileInfo.originalBillOfLadingCopy"
842
- :key="i"
843
- />
844
- <contract-file-drag-upload
845
- v-if="channel !== 'official-website'"
846
- @upload="
847
- handleUpload(
848
- $event,
849
- shipmentFileInfo.shipmentId,
850
- 'shipment',
851
- 'original_bill_of_lading_copy'
852
- )
853
- "
854
- :isShowTip="false"
855
- />
856
- </div>
857
- </div>
858
- </el-row>
859
- <el-divider></el-divider>
860
- <div>
861
- <div class="sub-title">{{ $t("contractDetail.otherShipmentFile") }}</div>
862
- <div class="file-list" v-if="contract.contractType == 'sale'">
863
- <file-show
864
- :hiddenOperation="channel == 'official-website'"
865
- @refresh="handleRefresh"
866
- @checked="handleChecked"
867
- @uncheck="handleUncheck"
868
- :file-info="item"
869
- v-for="(item, i) in shipmentFileInfo.saleShipmentOther"
870
- :key="i"
871
- />
872
- <contract-file-drag-upload
873
- v-if="channel !== 'official-website'"
874
- @upload="
875
- handleUpload(
876
- $event,
877
- shipmentFileInfo.shipmentId,
878
- 'shipment',
879
- 'sale_shipment_other'
880
- )
881
- "
882
- :isShowTip="false"
883
- />
884
- </div>
885
- <div v-else class="file-list">
886
- <file-show
887
- :hiddenOperation="channel == 'official-website'"
888
- @refresh="handleRefresh"
889
- @checked="handleChecked"
890
- @uncheck="handleUncheck"
891
- :file-info="item"
892
- v-for="(
893
- item, i
894
- ) in shipmentFileInfo.purchaseShipmentOther"
895
- :key="i"
896
- />
897
- <contract-file-drag-upload
898
- v-if="channel !== 'official-website'"
899
- @upload="
900
- handleUpload(
901
- $event,
902
- shipmentFileInfo.shipmentId,
903
- 'shipment',
904
- 'purchase_shipment_other'
905
- )
906
- "
907
- :isShowTip="false"
908
- />
865
+ <!-- purchase -->
866
+ <div v-else>
867
+ <el-col :span="12">
868
+ <div style="margin-left: 60px">
869
+ <div class="file-list">
870
+ <file-show
871
+ :hiddenOperation="channel == 'official-website'"
872
+ @refresh="handleRefresh"
873
+ @checked="handleChecked"
874
+ @uncheck="handleUncheck"
875
+ :selectFileListProp="selectFileList"
876
+ :file-info="item"
877
+ v-for="(
878
+ item, i
879
+ ) in shipmentFileInfo.purchaseFinallyInvoice"
880
+ :key="i"
881
+ />
882
+ <div>
883
+ <el-button
884
+ style="margin-top: 10px"
885
+ type="primary"
886
+ size="mini"
887
+ @click="
888
+ uploadFinalInvoice(
889
+ 'finally',
890
+ shipmentFileInfo.shipmentId
891
+ )
892
+ "
893
+ >上传采购尾款发票</el-button>
894
+ </div>
895
+ </div>
896
+ </div>
897
+ </el-col>
909
898
  </div>
910
899
  </div>
911
- </el-timeline-item>
912
- <el-timeline-item
913
- :icon="shipmentFileInfo.waterBill ? 'el-icon-success' : ''"
914
- :type="shipmentFileInfo.waterBill ? 'primary' : ''"
915
- size="large"
916
- >
917
- <div v-if="channel !== 'official-website'" style="color: #1890ff">
918
- {{
919
- contract.contractType == "sale"
920
- ? "尾款收款"
921
- : $t("contractDetail.Final_payment")
922
- }}
900
+ <div v-else>
901
+ <!-- 买家端 -->
902
+ <el-col>
903
+ <div class="file-list">
904
+ <file-show
905
+ :hiddenOperation="channel == 'official-website'"
906
+ @refresh="handleRefresh"
907
+ @checked="handleChecked"
908
+ @uncheck="handleUncheck"
909
+ :selectFileListProp="selectFileList"
910
+ :file-info="item"
911
+ v-for="(
912
+ item, i
913
+ ) in shipmentFileInfo.saleFinallyInvoice"
914
+ :key="i"
915
+ />
916
+ </div>
917
+ </el-col>
918
+ <!-- <el-col :span="12" class="center-status">
919
+ <div>
920
+ <div v-if="!shipmentItemData.balanceInvoiceFullyPaidFlag">
921
+ <i class="el-icon-time"></i>
922
+ <span style="color:#f00">尾款待付</span>
923
+ </div>
924
+ <div v-if="!shipmentFileInfo.waterBill || shipmentFileInfo.waterBill && shipmentFileInfo.waterBill.length == 0">支付凭证待提供</div>
925
+ </div>
926
+ </el-col> -->
923
927
  </div>
924
- <div v-else class="sub-title">{{ $t("contractDetail.Final_payment") }}</div>
925
- <el-row>
926
- <el-col :span="8">
927
- <div>
928
- <div class="sub-title">{{ $t("contractDetail.finalPaymentMemo") }}</div>
928
+ </el-col>
929
+ <el-col :span="12">
930
+ <!-- 支付凭证 -->
931
+ <ContentTitle :contentTitleProp="{
932
+ bgButton: '尾款支付凭证',
933
+ bgTime: shipmentFileInfo.waterBill && timeFormate(shipmentFileInfo.waterBill),
934
+ bgcolor: getGoodsProgressInfo.bgcolor,
935
+ successFlag: true
936
+ }"></ContentTitle>
937
+
938
+ <div v-if="!contractFileInfo.balanceInvoiceFullyPaidFlag">
939
+ <i class="el-icon-time"></i>
940
+ <span style="color:#f00">尾款待付</span>
941
+ </div>
929
942
 
930
943
  <div class="file-list">
931
944
  <file-show
@@ -938,67 +951,133 @@
938
951
  :key="i"
939
952
  />
940
953
  </div>
941
- </div>
954
+ <div v-if="!shipmentFileInfo.waterBill || shipmentFileInfo.waterBill.length == 0" class="center-status-block" style="align-items: flex-start">
955
+ <div>
956
+ <i class="el-icon-time"></i>
957
+ 支付凭证待提供
958
+ </div>
959
+ </div>
942
960
  </el-col>
943
- <!-- <el-col :span="16">
944
- <div v-if="contract.contractType == 'sale'">
945
- <div class="file-list">
946
- <file-show
947
- :hiddenOperation="channel == 'official-website'"
948
- @refresh="handleRefresh"
949
- @checked="handleChecked"
950
- @uncheck="handleUncheck"
951
- :file-info="item"
952
- v-for="(
961
+ </el-col>
962
+ <div>
963
+ </div>
964
+ </el-col>
965
+ <el-col :span="24">
966
+ <div class="hr-class"></div>
967
+ </el-col>
968
+
969
+ <el-col :span="24">
970
+ <ContentTitle :contentTitleProp="{
971
+ bgButton: '其他文件',
972
+ bgTime: contract.contractType == 'sale' ? shipmentFileInfo.saleShipmentOther && timeFormate(shipmentFileInfo.saleShipmentOther) : shipmentFileInfo.purchaseShipmentOther && timeFormate(shipmentFileInfo.purchaseShipmentOther),
973
+ bgcolor: shipProgressInfo.bgcolor
974
+ }"></ContentTitle>
975
+ </el-col>
976
+ <el-col :span="24" v-if="contract.contractType == 'sale'">
977
+ <div class="file-list">
978
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
979
+ :hiddenOperation="channel == 'official-website'"
980
+ v-for="(item, i) in shipmentFileInfo.saleShipmentOther" :key="i" />
981
+ <contract-file-drag-upload @upload="
982
+ handleUpload(
983
+ $event,
984
+ shipmentFileInfo.shipmentId,
985
+ 'shipment',
986
+ 'sale_shipment_other'
987
+ )
988
+ " :isShowTip="false" uploadNameStr="其他文件" />
989
+ </div>
990
+ </el-col>
991
+ <el-col :span="24" v-else>
992
+ <div class="file-list">
993
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck" :selectFileListProp="selectFileList" :file-info="item"
994
+ :hiddenOperation="channel == 'official-website'"
995
+ v-for="(
953
996
  item, i
954
- ) in shipmentFileInfo.salePersonalWaterBill"
955
- :key="i"
956
- />
957
- <contract-file-drag-upload
958
- @upload="
959
- handleUpload(
960
- $event,
961
- shipmentFileInfo.shipmentId,
962
- 'shipment',
963
- 'sale_personal_waterBill'
964
- )
965
- "
966
- :isShowTip="false"
967
- />
968
- </div>
969
- </div>
970
- <div v-else>
971
- <div class="file-list">
997
+ ) in shipmentFileInfo.purchaseShipmentOther" :key="i" />
998
+ <contract-file-drag-upload @upload="
999
+ handleUpload(
1000
+ $event,
1001
+ shipmentFileInfo.shipmentId,
1002
+ 'shipment',
1003
+ 'purchase_shipment_other'
1004
+ )"
1005
+ :isShowTip="false"
1006
+ uploadNameStr="其他文件" />
1007
+ </div>
1008
+ </el-col>
1009
+ </div>
1010
+ </template>
1011
+ </SectionSlot>
1012
+ </div>
1013
+ </div>
1014
+
1015
+ <!-- 收货 -->
1016
+ <div>
1017
+ <BillOfLadingNoTab
1018
+ :contractFileInfo="contractFileInfo"
1019
+ @changeShipBillNo="changeShipBillNo"
1020
+ :progressInfo="getGoodsProgressInfo"
1021
+ :shipBillNoProp="shipBillNo"
1022
+ ></BillOfLadingNoTab>
1023
+ <SectionSlot
1024
+ :infoPro="getGoodsProgressInfo" v-for="(
1025
+ shipmentFileInfo, shipmentIndex
1026
+ ) in contractFileInfo.shipmentFileInfoList" :key="shipmentIndex" v-if="shipmentIndex == shipBillNo"
1027
+ >
1028
+ <template v-slot:header>
1029
+ <div>
1030
+ <ProgressDetail :infoPro="getGoodsProgressInfo"></ProgressDetail>
1031
+ </div>
1032
+ </template>
1033
+ <template v-slot:content>
1034
+ <div class="content-root">
1035
+ <div>
1036
+ <!-- <div v-if="channel !== 'official-website'" style="color: #1890ff">
1037
+ {{
1038
+ contract.contractType == "sale"
1039
+ ? "尾款收款"
1040
+ : $t("contractDetail.Final_payment")
1041
+ }}
1042
+ </div>
1043
+ <div v-else class="sub-title">{{ $t("contractDetail.Final_payment") }}</div> -->
1044
+ <!-- 尾款水单 -->
1045
+ <!-- <el-row>
1046
+ <el-col :span="24">
1047
+ <div>
1048
+ <ContentTitle :contentTitleProp="{
1049
+ bgButton: $t('contractDetail.finalPaymentMemo'),
1050
+ bgTime: shipmentFileInfo.waterBill && timeFormate(shipmentFileInfo.waterBill),
1051
+ bgcolor: getGoodsProgressInfo.bgcolor
1052
+ }"></ContentTitle>
1053
+
1054
+ <div class="file-list" v-if="shipmentFileInfo.waterBill && shipmentFileInfo.waterBill.length">
972
1055
  <file-show
973
1056
  :hiddenOperation="channel == 'official-website'"
974
1057
  @refresh="handleRefresh"
975
1058
  @checked="handleChecked"
976
1059
  @uncheck="handleUncheck"
977
1060
  :file-info="item"
978
- v-for="(
979
- item, i
980
- ) in shipmentFileInfo.purchasePersonalWaterBill"
1061
+ v-for="(item, i) in shipmentFileInfo.waterBill"
981
1062
  :key="i"
982
1063
  />
983
- <contract-file-drag-upload
984
- @upload="
985
- handleUpload(
986
- $event,
987
- shipmentFileInfo.shipmentId,
988
- 'shipment',
989
- 'purchase_personal_waterBill'
990
- )
991
- "
992
- :isShowTip="false"
993
- />
1064
+ </div>
1065
+ <div v-else class="center-status">
1066
+ <i class="el-icon-time"></i>
1067
+ 暂无文件
994
1068
  </div>
995
1069
  </div>
996
- </el-col>-->
997
- </el-row>
998
- <el-row>
1070
+ </el-col>
1071
+ </el-row> -->
1072
+ <!-- 汇款凭证 -->
1073
+ <!-- <el-row>
999
1074
  <div>
1000
- <div class="sub-title">{{ $t("contractDetail.swift") }}</div>
1001
- <div class="file-list">
1075
+ <ContentTitle :contentTitleProp="{
1076
+ bgButton: $t('contractDetail.swift'),
1077
+ bgTime: shipmentFileInfo.voucher && timeFormate(shipmentFileInfo.voucher),
1078
+ bgcolor: getGoodsProgressInfo.bgcolor
1079
+ }"></ContentTitle>
1080
+ <div class="file-list" v-if="shipmentFileInfo.voucher && shipmentFileInfo.voucher.length">
1002
1081
  <file-show
1003
1082
  :hiddenOperation="channel == 'official-website'"
1004
1083
  @refresh="handleRefresh"
@@ -1009,39 +1088,84 @@
1009
1088
  :key="i"
1010
1089
  />
1011
1090
  </div>
1091
+ <div v-else class="center-status">
1092
+ <i class="el-icon-time"></i>
1093
+ 暂无文件
1094
+ </div>
1012
1095
  </div>
1013
- </el-row>
1014
- </el-timeline-item>
1015
- <el-timeline-item
1016
- :icon="
1017
- shipmentFileInfo.deliveryReceipt &&
1018
- shipmentFileInfo.deliveryReceipt.length > 0
1019
- ? 'el-icon-success'
1020
- : ''
1021
- "
1022
- :type="
1023
- shipmentFileInfo.deliveryReceipt &&
1024
- shipmentFileInfo.deliveryReceipt.length > 0
1025
- ? 'primary'
1026
- : ''
1027
- "
1028
- size="large"
1029
- >
1030
- <div style="color: #1890ff">{{ $t("contractDetail.tip6") }}</div>
1031
- <div class="sub-title">{{ $t("contractDetail.tip7") }}</div>
1032
-
1096
+ </el-row> -->
1097
+ <!-- 提货凭证 -->
1098
+ <ContentTitle :contentTitleProp="{
1099
+ bgButton: '提货凭证',
1100
+ bgTime: shipmentFileInfo.deliveryReceipt && timeFormate(shipmentFileInfo.deliveryReceipt),
1101
+ bgcolor: getGoodsProgressInfo.bgcolor
1102
+ }"></ContentTitle>
1103
+ <el-col :span="24">
1033
1104
  <div class="file-list">
1034
- <file-show
1035
- :hiddenOperation="channel == 'official-website'"
1036
- @refresh="handleRefresh"
1037
- @checked="handleChecked"
1038
- @uncheck="handleUncheck"
1039
- :file-info="item"
1040
- v-for="(item, i) in shipmentFileInfo.deliveryReceipt"
1041
- :key="i"
1042
- />
1105
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck"
1106
+ :selectFileListProp="selectFileList"
1107
+ :file-info="item" v-for="(item, i) in shipmentFileInfo.deliveryReceipt" :key="i" />
1108
+ <!-- v-if="shipmentItemData.shipmentPercentage > 0" -->
1109
+ <!-- todo: 上传提货凭证 -->
1110
+ <contract-file-drag-upload
1111
+ v-show="(!shipmentFileInfo.deliveryReceipt || shipmentFileInfo.deliveryReceipt.length == 0) && channel !== 'official-website'"
1112
+ @upload="
1113
+ handleUpload(
1114
+ $event,
1115
+ shipmentFileInfo.shipmentId,
1116
+ 'shipment',
1117
+ 'shipment_delivery_receipt'
1118
+ )
1119
+ " :isShowTip="false"
1120
+ uploadNameStr="提货凭证"
1121
+ />
1122
+ </div>
1123
+ <div v-if="!shipmentFileInfo.deliveryReceipt || shipmentFileInfo.deliveryReceipt.length == 0 && channel == 'official-website'" class="center-status">
1124
+ <i class="el-icon-time"></i>
1125
+ 暂无文件
1126
+ </div>
1127
+ </el-col>
1128
+ </div>
1129
+ </div>
1130
+ </template>
1131
+ </SectionSlot>
1132
+ </div>
1133
+ <!-- 索赔 -->
1134
+ <div v-if="contractFileInfo.claimCreateFlag">
1135
+ <BillOfLadingNoTab
1136
+ :contractFileInfo="contractFileInfo"
1137
+ @changeShipBillNo="changeShipBillNo"
1138
+ :progressInfo="shipProgressInfo"
1139
+ :shipBillNoProp="shipBillNo"
1140
+ ></BillOfLadingNoTab>
1141
+ <SectionSlot
1142
+ :infoPro="claimProgressInfo"
1143
+ v-for="(
1144
+ shipmentFileInfo, shipmentIndex
1145
+ ) in contractFileInfo.shipmentFileInfoList" :key="shipmentIndex"
1146
+ v-if="shipmentIndex == shipBillNo"
1147
+ >
1148
+ <template v-slot:header>
1149
+ <div>
1150
+ <ProgressDetail :infoPro="claimProgressInfo"></ProgressDetail>
1151
+ </div>
1152
+ </template>
1153
+ <template v-slot:content>
1154
+ <div class="content-root">
1155
+ <div>
1156
+ <ContentTitle :contentTitleProp="{
1157
+ bgButton: !buyerFlag
1158
+ ? $t('contractDetail.Credit_Note')
1159
+ : $t('contractDetail.Debit_Note'),
1160
+ bgTime: claimFileInfoCom && timeFormate(claimFileInfoCom),
1161
+ bgcolor: claimProgressInfo.bgcolor
1162
+ }"></ContentTitle>
1163
+ <el-col :span="24">
1164
+ <div class="file-list" v-if="claimFileInfoCom">
1165
+ <file-show @refresh="handleRefresh" @checked="handleChecked" @uncheck="handleUncheck"
1166
+ :selectFileListProp="selectFileList"
1167
+ :file-info="item" v-for="(item, i) in claimFileInfoCom" :key="i" />
1043
1168
  <!-- <contract-file-drag-upload
1044
- v-if="channel !== 'official-website'"
1045
1169
  @upload="
1046
1170
  handleUpload(
1047
1171
  $event,
@@ -1051,67 +1175,36 @@
1051
1175
  )
1052
1176
  "
1053
1177
  :isShowTip="false"
1054
- />-->
1178
+ /> -->
1055
1179
  </div>
1056
- </el-timeline-item>
1057
- </el-timeline>
1058
- </el-tab-pane>
1059
- </el-tabs>
1060
- </el-timeline-item>
1061
-
1062
- <el-timeline-item icon="el-icon-success" type="primary" size="large">
1063
- <div style="color: #1890ff">{{ $t("contractDetail.tip8") }}</div>
1064
- </el-timeline-item>
1065
- </el-timeline>
1066
- <el-timeline v-if="channel !== 'official-website' && claimFileInfoCom">
1067
- <el-timeline-item icon="el-icon-success" type="primary" size="large">
1068
- <span style="color: #1890ff">{{ $t("contractDetail.Claim_documents") }}</span>
1069
- <div style="font-size: 16px; font-weight: 600; margin-top: 10px">
1070
- {{
1071
- buyerFlag
1072
- ? $t("contractDetail.Credit_Note")
1073
- : $t("contractDetail.Debit_Note")
1074
- }}
1075
- </div>
1076
- <div class="file-list">
1077
- <file-show
1078
- :hiddenOperation="channel == 'official-website'"
1079
- @refresh="handleRefresh"
1080
- @checked="handleChecked"
1081
- @uncheck="handleUncheck"
1082
- :file-info="item"
1083
- v-for="(item, i) in claimFileInfoCom"
1084
- :key="i"
1085
- />
1086
- </div>
1087
- </el-timeline-item>
1180
+ <div v-else class="center-status">
1181
+ <i class="el-icon-time"></i>
1182
+ 暂无文件
1183
+ </div>
1184
+ </el-col>
1185
+ </div>
1186
+ </div>
1187
+ </template>
1188
+ </SectionSlot>
1189
+ </div>
1088
1190
 
1089
- <el-timeline-item
1090
- icon="el-icon-success"
1091
- :type="claimFileInfoCom ? 'primary' : ''"
1092
- size="large"
1093
- >
1094
- <span style="color: #1890ff">{{ $t("contractDetail.Claim_completion") }}</span>
1095
- </el-timeline-item>
1096
- </el-timeline>
1097
1191
  <deposit-invoice ref="depositInvoice"></deposit-invoice>
1098
1192
 
1099
1193
  <gen-shipment ref="genShipment" @refresh="handleRefresh" />
1100
1194
 
1101
- <purchase-invoice-upload ref="purchaseInvoice" @refresh="handleRefresh"></purchase-invoice-upload>
1195
+ <purchase-invoice-upload ref="purchaseInvoice" @refresh="handleRefresh"
1196
+ :purchaseBalanceMoneyProp="purchaseBalanceMoney"
1197
+ :getShipmentPurchaseFun="getShipmentPurchase"
1198
+ ></purchase-invoice-upload>
1102
1199
  <!-- 多个买家弹窗 -->
1103
1200
  <el-dialog title="请先选择收货买家" :visible.sync="dialogVisible" width="30%">
1104
1201
  <div>请在下方选择一个您需要发货的买家</div>
1105
1202
  <div>
1106
1203
  <el-radio-group v-model="selectRadio">
1107
- <el-radio
1108
- :label="key"
1109
- v-for="(purchaseBuyerListItem, key) in purchaseBuyerList"
1110
- :key="key"
1111
- >
1204
+ <el-radio :label="key" v-for="(purchaseBuyerListItem, key) in purchaseBuyerList" :key="key">
1112
1205
  {{ purchaseBuyerListItem.buyerUserInfo.companyName }} ({{
1113
- purchaseBuyerListItem.contractNo
1114
- }}) {{ purchaseBuyerListItem.buyerUserInfo.firstName }}
1206
+ purchaseBuyerListItem.contractNo
1207
+ }}) {{ purchaseBuyerListItem.buyerUserInfo.firstName }}
1115
1208
  {{ purchaseBuyerListItem.buyerUserInfo.lastName }}
1116
1209
  </el-radio>
1117
1210
  </el-radio-group>
@@ -1124,7 +1217,10 @@
1124
1217
  </el-dialog>
1125
1218
  <shipment-add ref="shipmentGen" @refresh="handleRefresh" />
1126
1219
 
1127
- <shipment-purchase-amount ref="shipmentPurchaseAmount"></shipment-purchase-amount>
1220
+ <shipment-purchase-amount
1221
+ ref="shipmentPurchaseAmount"
1222
+ :getContractFileInfoCallback="getContractFileInfoCallback"
1223
+ ></shipment-purchase-amount>
1128
1224
  </div>
1129
1225
  </template>
1130
1226
 
@@ -1143,8 +1239,11 @@ import { batchAsZip } from '../../../utils/zip';
1143
1239
  import {
1144
1240
  getBizContract,
1145
1241
  updateBizContract,
1242
+ withdrawSignContract,
1146
1243
  signContract,
1244
+ shipmentConfirmDraftBl
1147
1245
  } from '../../../api/biz/bizContract';
1246
+
1148
1247
  import DepositInvoice from '../bizContract/depositInvoice.vue';
1149
1248
  import { getDepositInvoice, listBizInvoice } from '../../../api/biz/bizInvoice';
1150
1249
  import GenShipment from '../bizShipment/add.vue';
@@ -1159,6 +1258,14 @@ import ShipmentAdd from '../bizShipment/add.vue';
1159
1258
  import ShipmentPurchaseAmount from '../contractTracing/shipmentPurchaseAmount.vue';
1160
1259
  import { encryptId } from '../../../utils/index.js';
1161
1260
  import { Loading } from 'element-ui';
1261
+ import Progress from "./contractFile/Progress.vue";
1262
+ import ProgressDetail from "./contractFile/ProgressDetail.vue";
1263
+ import SectionSlot from "./contractFile/SectionSlot.vue";
1264
+ import ContentTitle from './contractFile/ContentTitle.vue';
1265
+ import IMGPreviewCheckBox from './contractFile/IMGPreviewCheckBox.vue'
1266
+ import BillOfLadingNoTab from './contractFile/BillOfLadingNoTab.vue'
1267
+ let handleGenerateflag = false;
1268
+ let handleGenerateflag1 = false;
1162
1269
 
1163
1270
  export default {
1164
1271
  name: 'ContractFile',
@@ -1172,6 +1279,12 @@ export default {
1172
1279
  FileShowClaim,
1173
1280
  ShipmentAdd,
1174
1281
  ShipmentPurchaseAmount,
1282
+ Progress,
1283
+ SectionSlot,
1284
+ ProgressDetail,
1285
+ ContentTitle,
1286
+ IMGPreviewCheckBox,
1287
+ BillOfLadingNoTab
1175
1288
  },
1176
1289
  props: {
1177
1290
  // 文件信息
@@ -1183,15 +1296,53 @@ export default {
1183
1296
  },
1184
1297
  channel: {
1185
1298
  type: String,
1186
- default: '',
1299
+ default: 'official-website11',
1187
1300
  },
1188
1301
  buyerFlag: {
1189
1302
  type: Boolean,
1190
1303
  default: true,
1191
1304
  },
1305
+ selectFileListProp: {
1306
+ type: Array,
1307
+ default: () => {
1308
+ return [];
1309
+ },
1310
+ },
1192
1311
  },
1193
1312
  data() {
1194
1313
  return {
1314
+ shipmentItemData: {},
1315
+ shipBillNo: 0,
1316
+ goodsBillNo: 0,
1317
+ claimBillNo: 0,
1318
+ contractProgressInfo: {
1319
+ text: '合同',
1320
+ rate: 0,
1321
+ img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/805524d45f964ad0b3f51437d3b5750e.png',
1322
+ bgcolor: '#FBB040',
1323
+ textArr:[]
1324
+ },
1325
+ shipProgressInfo: {
1326
+ text: '装运',
1327
+ rate: 0,
1328
+ img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/8517dbf0444542d5bf100279231c9597.png',
1329
+ bgcolor: '#54B8FF',
1330
+ textArr:['等待卖家装运']
1331
+ },
1332
+ getGoodsProgressInfo: {
1333
+ text: '收货',
1334
+ rate: 0,
1335
+ img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/a43ef25e953747efa9b88d3d9bbe674f.png',
1336
+ bgcolor: '#7CCF48',
1337
+ textArr:[]
1338
+ },
1339
+ claimProgressInfo: {
1340
+ text: '索赔',
1341
+ rate: 0,
1342
+ img: 'https://s3.cdn.doctorscrap.com/dev/user/image_9/b427331405604eeb8ec368130f00c5e6.png',
1343
+ bgcolor: '#adadad',
1344
+ textArr:[]
1345
+ },
1195
1346
  identify: '识别',
1196
1347
  selectRadio: 0,
1197
1348
  purchaseBuyerList: [],
@@ -1260,7 +1411,6 @@ export default {
1260
1411
  // 表单校验
1261
1412
  rules: {},
1262
1413
  lintId: null,
1263
- selectFileList: [],
1264
1414
  contractId: null,
1265
1415
  //合同文件
1266
1416
  contractFileInfo: {
@@ -1268,9 +1418,17 @@ export default {
1268
1418
  },
1269
1419
  //参考采购价
1270
1420
  shipmentPurchaseAmountMessage: '',
1421
+ loadingInstance: null,
1422
+ purchaseBalanceMoney: null
1271
1423
  };
1272
1424
  },
1273
1425
  created() {
1426
+ this.loadingInstance = Loading.service({
1427
+ text: '请稍候',
1428
+ spinner: 'el-icon-loading',
1429
+ background: 'rgba(0, 0, 0, 0.7)',
1430
+ });
1431
+
1274
1432
  const contractId = this.$route.params && this.$route.params.contractId;
1275
1433
  if (contractId) {
1276
1434
  this.linkId = contractId;
@@ -1279,16 +1437,47 @@ export default {
1279
1437
  this.queryParams.linkId = contractId;
1280
1438
  }
1281
1439
  },
1282
- mounted() {},
1440
+ mounted() { },
1283
1441
  methods: {
1442
+ /**
1443
+ * @description:
1444
+ * @param {*} info
1445
+ * @return {*}
1446
+ */
1447
+ timeFormate(info) {
1448
+ if(info.length > 0 && info[0].createTime) {
1449
+ return this.$moment.utc(info[0].createTime).local().format('YYYY-MM-DD HH:mm');
1450
+ } else {
1451
+ return '';
1452
+ }
1453
+ },
1454
+
1455
+ allSelectContainerPackingPhoto(containerId) {
1456
+ this.$refs['container_packing_photo_' + containerId][0].checkAll1()
1457
+ },
1458
+ cancelContainerPackingPhoto(containerId) {
1459
+ this.$refs['container_packing_photo_' + containerId][0].cancelAll1()
1460
+ },
1461
+
1462
+ changeShipBillNo(index) {
1463
+ this.shipBillNo = index
1464
+ this.setRate(index)
1465
+ },
1466
+ changeGoodsBillNo(index) {
1467
+ this.goodsBillNo = index
1468
+ },
1469
+ changeClaimBillNo(index) {
1470
+ this.claimBillNo = index
1471
+ },
1284
1472
  getShipmentPurchaseAmount(shipmentFileInfo, shipmentIndex) {
1285
1473
  if (shipmentIndex == this.activeName) {
1286
1474
  getPurchaseAmount(shipmentFileInfo.shipmentId).then((res) => {
1475
+ this.purchaseBalanceMoney = (res.data.totalPurchaseAmount - res.data.purchaseDepositAmount).toFixed(2)
1287
1476
  this.shipmentPurchaseAmountMessage =
1288
- '参考采购尾款$' +
1289
- (
1290
- res.data.totalPurchaseAmount - res.data.purchaseDepositAmount
1291
- ).toFixed(2);
1477
+ '参考采购尾款$' + this.purchaseBalanceMoney
1478
+ ;
1479
+ console.log('==/biz/shipment/getPurchaseAmount/===', this.shipmentPurchaseAmountMessage);
1480
+ return this.shipmentPurchaseAmountMessage;
1292
1481
  });
1293
1482
  }
1294
1483
  },
@@ -1304,6 +1493,8 @@ export default {
1304
1493
  shipmentFileInfo && shipmentFileInfo.shipmentId,
1305
1494
  'final_invoice'
1306
1495
  );
1496
+ } else {
1497
+ return this.$message.warning('暂无文件');
1307
1498
  }
1308
1499
  } else {
1309
1500
  // 临时 purchaseTemporaryFinallyInvoice
@@ -1386,19 +1577,19 @@ export default {
1386
1577
  },
1387
1578
 
1388
1579
  /**
1389
- * @description: 添加货运
1580
+ * @description: 添加货运todo
1390
1581
  * @return {*}
1391
1582
  */
1392
1583
  addShipment() {
1393
1584
  const purchaseBuyerInfo = this.purchaseBuyerList[this.selectRadio];
1394
1585
  let timer = Date.now();
1395
1586
  addBizShipmentPurchase({
1396
- bookingNo: 'bookingNo-'+ timer,
1587
+ bookingNo: 'bookingNo-' + timer,
1397
1588
  billOfLadingNo: 'billOfLadingNo-' + timer,
1398
1589
  saleContractId: purchaseBuyerInfo.contractId,
1399
1590
  purchaseContractId: this.contract.contractId,
1400
- containerList:[{
1401
- containerNo:'containerNo-1'
1591
+ containerList: [{
1592
+ containerNo: 'containerNo-1'
1402
1593
  }]
1403
1594
  }).then((res) => {
1404
1595
  if (res.code === 200) {
@@ -1458,16 +1649,36 @@ export default {
1458
1649
  //撤回回签
1459
1650
  counterSign() {
1460
1651
  //如果是回签合同 保留原合同状态
1461
- updateBizContract({
1652
+ withdrawSignContract({
1462
1653
  contractId: this.contractId,
1463
- contractStatus:
1464
- this.contract.beforeContractStatus || this.contract.contractStatus,
1654
+ // contractStatus:
1655
+ // this.contract.beforeContractStatus || this.contract.contractStatus,
1465
1656
  }).then((res) => {
1466
- this.$modal.msgSuccess('撤回回签成功');
1657
+ if(res.code == 200) {
1658
+ this.$modal.msgSuccess('撤回回签成功');
1659
+ this.handleRefresh();
1660
+ }
1661
+ });
1662
+ },
1663
+
1664
+ //确认提单草稿成功
1665
+ shipmentConfirmDraftBlFun() {
1666
+ shipmentConfirmDraftBl({
1667
+ shipmentId: this.shipmentItemData.shipmentId,
1668
+ }).then((res) => {
1669
+ if(res.code == 200) {
1670
+ this.$modal.msgSuccess('确认提单草稿成功');
1671
+ this.handleRefresh();
1672
+ }
1467
1673
  });
1468
1674
  },
1469
1675
  //生船运按钮操作
1470
1676
  handleGenerate() {
1677
+ if(handleGenerateflag) {
1678
+ return;
1679
+ }
1680
+ handleGenerateflag = true;
1681
+
1471
1682
  listBizInvoice({
1472
1683
  contractId: this.contractId,
1473
1684
  invoiceType: 'sale',
@@ -1498,7 +1709,11 @@ export default {
1498
1709
  );
1499
1710
  });
1500
1711
  })
1501
- .catch(() => {});
1712
+ .catch(() => { }).finally(() => {
1713
+ this.timer = setTimeout(() => {
1714
+ handleGenerateflag = false;
1715
+ },3000);
1716
+ });
1502
1717
  } else {
1503
1718
  listWithContractInfo({
1504
1719
  contractIds: [this.contractId],
@@ -1509,11 +1724,20 @@ export default {
1509
1724
  this.contract.destination,
1510
1725
  this.contract
1511
1726
  );
1727
+ }).finally(() => {
1728
+ this.timer = setTimeout(() => {
1729
+ handleGenerateflag = false;
1730
+ },3000);
1512
1731
  });
1513
1732
  }
1514
1733
  });
1515
1734
  },
1516
1735
  handleGeneratePurchase() {
1736
+ if(handleGenerateflag1) {
1737
+ return;
1738
+ }
1739
+ handleGenerateflag1 = true;
1740
+
1517
1741
  listSaleContracts({ purchaseContractNo: this.contract.contractNo }).then(
1518
1742
  (res) => {
1519
1743
  this.purchaseBuyerList = res.rows;
@@ -1523,7 +1747,11 @@ export default {
1523
1747
  this.addShipment();
1524
1748
  }
1525
1749
  }
1526
- );
1750
+ ).finally(() => {
1751
+ this.timer = setTimeout(() => {
1752
+ handleGenerateflag1 = false;
1753
+ },3000);
1754
+ });
1527
1755
  },
1528
1756
  handleRefresh() {
1529
1757
  this.getContractFileInfo(this.contractId);
@@ -1543,9 +1771,239 @@ export default {
1543
1771
  uploadFinalInvoice(type, shipmentId) {
1544
1772
  this.$refs.purchaseInvoice.handleUpload(this.contract, type, shipmentId);
1545
1773
  },
1774
+ //设置进度
1775
+ setRate(index) {
1776
+ this.contractProgressInfo.rate = this.contractFileInfo.contractPercentage || 0
1777
+ let textArr = []
1778
+ console.log('===this.contract.contractType==', this.contract.contractType);
1779
+ // 销售
1780
+ if(this.contract.contractType == 'sale') {
1781
+ // 无定金
1782
+ //发送草稿合同标记
1783
+ if(!this.contractFileInfo.sendDraftContractFlag) {
1784
+ // 草稿合同待发出(英文:Draft contract to be sent out)
1785
+ textArr.push('草稿合同待发出')
1786
+ }
1787
+
1788
+ // 点击合同确认标记
1789
+ if(this.contractFileInfo.confirmContractFlag) {
1790
+ // 正式合同已发出(英文:Formal Contract have been sent out)
1791
+ // textArr.push('正式合同已发出')
1792
+ } else {
1793
+ // 正式合同待发出(英文:Formal contract to be sent out)
1794
+ textArr.push('正式合同待发出')
1795
+ }
1796
+
1797
+ // BLI确认标记
1798
+ if(this.contractFileInfo.bliConfirmFlag) {
1799
+ // 提单指令已确认(英文:BL Instruction confirmed)
1800
+ // textArr.push('提单指令已确认')
1801
+ } else {
1802
+ // 提单指令待买家确认(英文: BL Instruction to be confirmed
1803
+ textArr.push('提单指令待买家确认')
1804
+ }
1805
+
1806
+ // 合同回签标记
1807
+ if(this.contractFileInfo.contractSignFlag) {
1808
+ // 回签合同已上传(英文:Signed Contract has been signed back)
1809
+ // textArr.push('回签合同已上传')
1810
+ } else {
1811
+ // 回签合同待上传(英文:Formal contract to be signed back
1812
+ textArr.push('回签合同待上传')
1813
+ }
1814
+
1815
+ if(this.contract.deposit != null && this.contract.deposit > 0) {
1816
+ // 定金支付标记
1817
+ if(this.contractFileInfo.depositInvoicePayFlag) {
1818
+ // 定金已支付(英文:Deposit paid)
1819
+ // textArr.push('定金已支付')
1820
+ } else {
1821
+ // 定金待支付(英文:Deposit to be paid)
1822
+ textArr.push('定金待支付')
1823
+ }
1824
+ }
1825
+ }
1826
+
1827
+ if(this.contract.contractType == 'purchase') {
1828
+ // 无定金
1829
+ //发送草稿合同标记
1830
+ if(!this.contractFileInfo.sendDraftContractFlag) {
1831
+ // 草稿合同待发出(英文:Draft contract to be sent out)
1832
+ textArr.push('草稿合同待发出')
1833
+ }
1834
+
1835
+ // 点击合同确认标记
1836
+ if(this.contractFileInfo.confirmContractFlag) {
1837
+ // 正式合同已发出(英文:Formal Contract have been sent out)
1838
+ // textArr.push('正式合同已发出')
1839
+ } else {
1840
+ // 正式合同待发出(英文:Formal contract to be sent out)
1841
+ textArr.push('正式合同待发出')
1842
+ }
1843
+
1844
+ // BLI确认标记
1845
+ if(this.contractFileInfo.bliConfirmFlag) {
1846
+ // 提单指令已确认(英文:BL Instruction confirmed)
1847
+ // textArr.push('提单指令已确认')
1848
+ } else {
1849
+ // 提单指令待买家确认(英文: BL Instruction to be confirmed
1850
+ textArr.push('提单指令待买家确认')
1851
+ }
1852
+
1853
+ // 合同回签标记
1854
+ if(this.contractFileInfo.contractSignFlag) {
1855
+ // 回签合同已上传(英文:Signed Contract has been signed back)
1856
+ // textArr.push('回签合同已上传')
1857
+ } else {
1858
+ // 回签合同待上传(英文:Formal contract to be signed back
1859
+ textArr.push('回签合同待上传')
1860
+ }
1861
+
1862
+ if(this.contract.deposit != null && this.contract.deposit > 0) {
1863
+ if(!this.contractFileInfo.existDepositInvoiceFlag) {
1864
+ // 定金发票待提供(英文:Deposit Invoice to be uploaded)
1865
+ textArr.push('定金发票待提供')
1866
+ }
1867
+
1868
+ // 定金支付标记
1869
+ if(!this.contractFileInfo.depositInvoicePayFlag) {
1870
+ // 定金待支付(英文:Deposit to be paid)
1871
+ textArr.push('定金待支付')
1872
+ }
1873
+ }
1874
+ }
1875
+
1876
+ this.contractProgressInfo.textArr = textArr
1877
+
1878
+
1879
+ let shipmentFileInfoList = this.contractFileInfo.shipmentFileInfoList;
1880
+
1881
+ let shipTextArr = []
1882
+
1883
+ if(shipmentFileInfoList && shipmentFileInfoList.length > 0) {
1884
+ let shipmentItem = shipmentFileInfoList[index]
1885
+ this.shipmentItemData = shipmentItem
1886
+ this.shipProgressInfo.rate = shipmentItem?.shipmentPercentage || 0
1887
+ this.getGoodsProgressInfo.rate = shipmentItem?.telexReleasePercentage || 0
1888
+ this.claimProgressInfo.rate = this.contractFileInfo?.claimPercentage || 0
1889
+
1890
+ // 装运进度
1891
+ // 装箱单
1892
+ if(shipmentItem.generatePackingFlag) {
1893
+ // 装箱单已上传(英文:Packing List updated)
1894
+ // shipTextArr.push('装箱单已上传')
1895
+ } else {
1896
+ // 装箱单待上传(英文:Shipping docs-Packing list to be updated)
1897
+ shipTextArr.push('装箱单待上传')
1898
+ }
1899
+
1900
+ // 是否已支付尾款
1901
+ if(!shipmentItem.balanceInvoiceFullyPaidFlag && this.contract.contractType == 'sale') {
1902
+ // 尾款发票待上传(英文:Balance Invoice to be updated)
1903
+ shipTextArr.push('尾款发票待上传')
1904
+ }
1905
+
1906
+ // 上传装箱照片
1907
+ if(shipmentItem.uploadContainerPhotoFlag) {
1908
+ // 装箱照片已上传(Packing photos updated)
1909
+ // shipTextArr.push('装箱照片已上传')
1910
+ } else {
1911
+ // 装箱照片待上传(英文:Shipping docs-Shipping photos to be updated)
1912
+ shipTextArr.push('装箱照片待上传')
1913
+ }
1914
+
1915
+
1916
+ // 是否上传草稿提单
1917
+ if(shipmentItem.uploadDraftBlFlag) {
1918
+ // 草稿提单已上传(Draft BL updated)
1919
+ // shipTextArr.push('草稿提单已上传')
1920
+ } else {
1921
+ // 草稿提单待上传(英文:Shipping docs-Draft BL to be updated)
1922
+ shipTextArr.push('草稿提单待上传')
1923
+ }
1924
+
1925
+ // 是否确认草稿提单
1926
+ if(!shipmentItem.confirmDraftBlFlag) {
1927
+ // 草稿提单待买家确认(英文:Draft BL to be confirmed )
1928
+ shipTextArr.push('草稿提单待买家确认')
1929
+ } else {
1930
+ // 草稿提单已确认(英文:Draft BL confirmed)
1931
+ // shipTextArr.push('草稿提单已确认')
1932
+ }
1933
+
1934
+ // 尾款部分支付标记
1935
+
1936
+ // 尾款部分支付标记
1937
+ if(shipmentItem.balanceInvoiceFullyPaidFlag) {
1938
+ // 尾款已支付(英文:Final Payment paid)
1939
+ // shipTextArr.push('尾款已支付')
1940
+ } else {
1941
+ if(shipmentItem.balanceInvoicePartiallyPaidFlag) {
1942
+ // 尾款已部分支付(英文:Final Payment partially paid)
1943
+ shipTextArr.push('尾款已部分支付')
1944
+ } else {
1945
+ // 尾款待买家支付(英文:Balance Invoice to be paid)
1946
+ shipTextArr.push('尾款待买家支付')
1947
+ }
1948
+ }
1949
+
1950
+ this.shipProgressInfo.textArr = shipTextArr
1951
+
1952
+
1953
+ // 收货进度
1954
+ let goodsTextArr = []
1955
+ // 装运百分比
1956
+ if(shipmentItem.telexReleasePercentage > 0) {
1957
+ // 提货凭证已提供(英文:Released/ Telxed the BL)
1958
+ // goodsTextArr.push('提货凭证已提供')
1959
+ } else {
1960
+ // 提货凭证待提供(英文:Release /Telxed BL to be done)
1961
+ goodsTextArr.push('提货凭证待提供')
1962
+ }
1963
+
1964
+ this.getGoodsProgressInfo.textArr = goodsTextArr
1965
+
1966
+ // 索赔进度
1967
+ let claimTextArr = []
1968
+ if(this.contractFileInfo.claimCreateFlag && !this.contractFileInfo.claimProcessFlag && !this.contractFileInfo.claimCloseFlag) {
1969
+ // 索赔中(英文:Claiming)
1970
+ claimTextArr.push('索赔中')
1971
+ }
1972
+
1973
+ if(this.contractFileInfo.claimCreateFlag && this.contractFileInfo.claimProcessFlag && !this.contractFileInfo.claimCloseFlag) {
1974
+ // 文件已更新(英文:Claiming-CN/DN issued
1975
+ claimTextArr.push('文件已更新')
1976
+ }
1977
+
1978
+ if(this.contractFileInfo.claimCreateFlag && this.contractFileInfo.claimProcessFlag && this.contractFileInfo.claimCloseFlag) {
1979
+ // 索赔已关闭(英文:Claim closed)
1980
+ claimTextArr.push('索赔已关闭')
1981
+ }
1982
+
1983
+ this.claimProgressInfo.textArr = claimTextArr
1984
+ } else {
1985
+ shipTextArr.push('等待卖家装运')
1986
+ this.claimProgressInfo.textArr = shipTextArr
1987
+ }
1988
+
1989
+ this.loadingInstance.close();
1990
+ },
1991
+ //获取合同文件信息
1546
1992
  getContractFileInfo(contractId) {
1547
1993
  getBizContractFileInfo(contractId).then((res) => {
1548
1994
  this.contractFileInfo = res.data;
1995
+ this.setRate(this.shipBillNo || 0)
1996
+ });
1997
+ },
1998
+
1999
+ /**
2000
+ * @description: 修改正式尾款发票金额重新获取合同文件信息
2001
+ * @return {*}
2002
+ */
2003
+ getContractFileInfoCallback() {
2004
+ getBizContractFileInfo(this.contractId).then((res) => {
2005
+ this.contractFileInfo = res.data;
2006
+ this.setRate(this.shipBillNo)
1549
2007
  });
1550
2008
  },
1551
2009
  handleHistory(fileType) {
@@ -1568,10 +2026,23 @@ export default {
1568
2026
  console.log(this.selectFileList);
1569
2027
  },
1570
2028
  handleUncheck(val) {
1571
- let index = this.selectFileList.findIndex((item) => item.fileId === val);
1572
- if (index > -1) this.selectFileList.splice(index, 1);
2029
+ let index = this.selectFileList.findIndex((item) => {
2030
+ console.log('====handleUncheck==', item.fileId, val);
2031
+ return item.fileId === val
2032
+ });
2033
+ console.log('====handleUncheck==', index);
2034
+ if (index > -1) {
2035
+ this.selectFileList.splice(index, 1);
2036
+ }
1573
2037
  console.log(this.selectFileList);
1574
2038
  },
2039
+ cancelAllSelectFileList () {
2040
+ this.selectFileList.forEach((item) => {
2041
+ setTimeout(() => {
2042
+ this.handleUncheck(item.fileId)
2043
+ }, 10);
2044
+ });
2045
+ },
1575
2046
  handleUpload(e, linkId, linkType, fileType) {
1576
2047
  let loadingInstance = Loading.service({
1577
2048
  text: '请稍候',
@@ -1674,38 +2145,191 @@ export default {
1674
2145
  this.contractFileInfo.claimDebitNoteFileList &&
1675
2146
  this.contractFileInfo.claimDebitNoteFileList[0])
1676
2147
  ) {
1677
- return this.buyerFlag
2148
+ return !this.buyerFlag
1678
2149
  ? this.contractFileInfo &&
1679
- this.contractFileInfo.claimCreditNoteFileList &&
1680
- this.contractFileInfo.claimCreditNoteFileList
2150
+ this.contractFileInfo.claimCreditNoteFileList &&
2151
+ this.contractFileInfo.claimCreditNoteFileList
1681
2152
  : this.contractFileInfo &&
1682
- this.contractFileInfo.claimDebitNoteFileList &&
1683
- this.contractFileInfo.claimDebitNoteFileList;
2153
+ this.contractFileInfo.claimDebitNoteFileList &&
2154
+ this.contractFileInfo.claimDebitNoteFileList;
1684
2155
  } else {
1685
2156
  false;
1686
2157
  }
1687
2158
  },
1688
2159
  },
2160
+ watch: {
2161
+ selectFileListProp: {
2162
+ handler(val) {
2163
+ this.selectFileList = val
2164
+ },
2165
+ immediate: true,
2166
+ deep: true
2167
+ },
2168
+ },
2169
+ destroyed() {
2170
+ clearTimeout(this.timer);
2171
+ },
1689
2172
  };
1690
2173
  </script>
1691
2174
  <style lang="scss" scoped>
2175
+
2176
+ .bg-history {
2177
+ color: #1C75BC;
2178
+ line-height: 12px;
2179
+ font-size: 14px;
2180
+ cursor: pointer;
2181
+ }
2182
+
2183
+ .progress-root {
2184
+ display: flex;
2185
+ }
2186
+
2187
+ .selection-root {
2188
+ display: flex;
2189
+ margin-top: 26px;
2190
+ justify-content: flex-start;
2191
+ align-items: center;
2192
+ margin-bottom: 20px;
2193
+ }
2194
+
2195
+ .border-button {
2196
+ margin-left: 8px;
2197
+ min-width: 45px;
2198
+ padding: 0 10px;
2199
+ width: max-content;
2200
+ height: 21px;
2201
+ text-align: center;
2202
+ line-height: 17px;
2203
+ background: #FFFFFF;
2204
+ border-radius: 11px;
2205
+ font-size: 12px;
2206
+ border: 2px solid #D1D3D4;
2207
+ cursor: pointer;
2208
+ }
2209
+
2210
+ .border-button-share {
2211
+ background: #84db4c;
2212
+ border: 2px solid transparent;
2213
+ }
2214
+
2215
+ .slot-content {
2216
+ margin-top: 8px;
2217
+ }
2218
+
1692
2219
  .box-card {
1693
2220
  width: 100%;
1694
2221
  }
2222
+
1695
2223
  .sub-title {
1696
2224
  font-size: 14px;
1697
2225
  font-weight: bold;
1698
2226
  margin-bottom: 10px;
1699
2227
  }
2228
+
1700
2229
  .file-list {
1701
2230
  display: flex;
1702
2231
  flex-wrap: wrap;
1703
-
2232
+ max-width:1000px;
1704
2233
  .file-info {
1705
2234
  margin-right: 10px;
1706
2235
  }
1707
2236
  }
2237
+
2238
+
2239
+ .content-root {
2240
+ overflow: hidden;
2241
+ background-color: #fff;
2242
+ padding: 10px 20px;
2243
+
2244
+ .content-root-row {
2245
+ display: flex;
2246
+ align-items: center;
2247
+ }
2248
+ }
2249
+
1708
2250
  ::v-deep .el-tabs--top .el-tabs__item.is-top:last-child {
1709
2251
  font-weight: 900;
1710
2252
  }
2253
+
2254
+ .success {
2255
+ color: #67C23A;
2256
+ }
2257
+
2258
+ .confirm-draft-bl {
2259
+ width:200px;
2260
+ height: 30px;
2261
+ border-radius: 15px;
2262
+ line-height:30px;
2263
+ text-align: center;
2264
+ background-color: #189048;
2265
+ color:#fff;
2266
+ cursor:pointer;
2267
+ }
2268
+
2269
+ .center-status {
2270
+ height: 85px;
2271
+ display: flex;
2272
+ align-items: center;
2273
+ justify-content: flex-start;
2274
+ color: #bbb
2275
+ }
2276
+ .center-status-block {
2277
+ height: 85px;
2278
+ display: flex;
2279
+ align-items: center;
2280
+ flex-direction: column;
2281
+ justify-content: center;
2282
+ color: #bbb
2283
+ }
2284
+ .ship-empty {
2285
+ line-height:60px;
2286
+ color: #bbb;
2287
+ text-align: center;
2288
+ padding:20px 0;
2289
+ }
2290
+
2291
+ .preview-download-root {
2292
+ display:flex;
2293
+ margin-top:5px;
2294
+
2295
+ .preview-download {
2296
+ cursor: pointer;
2297
+ margin-left:8px;
2298
+ min-width: 45px;
2299
+ width:max-content;
2300
+ padding: 0 10px;
2301
+ height: 21px;
2302
+ text-align: center;
2303
+ line-height: 17px;
2304
+ background: #FFFFFF;
2305
+ border-radius: 11px;
2306
+ font-size:12px;
2307
+ border: 2px solid #D1D3D4;
2308
+ }
2309
+ }
2310
+ .addshipment {
2311
+ position: absolute;
2312
+ left:100px;
2313
+ top:88px;
2314
+ background-color:#fff;
2315
+ height:30px;
2316
+ line-height:30px;
2317
+ text-align: center;
2318
+ color:#1C75BC;
2319
+ padding: 0 20px;
2320
+ width:max-content;
2321
+ border-radius:15px;
2322
+ cursor:pointer;
2323
+ }
2324
+ .hr-class {
2325
+ width: 100%;
2326
+ height: 1px;
2327
+ background-color: #ddd;
2328
+ margin: 20px 0 ;
2329
+ }
1711
2330
  </style>
2331
+ <style lang="scss">
2332
+ .el-tooltip__popper {
2333
+ max-width: 300px !important; /* 设置你希望的最大宽度 */
2334
+ }
2335
+ </style>