doctor-admin-components 1.0.13-beta.9 → 1.0.13-pro.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -7
- package/package.json +1 -1
- package/packages/src/api/biz/bizContract.js +0 -1
- package/packages/src/api/biz/bizContractCompany.js +1 -1
- package/packages/src/utils/request.js +120 -146
- package/packages/src/views/biz/bizShipment/add.vue +109 -54
- package/packages/src/views/biz/contractTracing/addSubCompany.vue +106 -169
- package/packages/src/views/biz/contractTracing/billInfo.vue +150 -315
- package/packages/src/views/biz/contractTracing/contractSummary.vue +9 -4
- package/packages/src/views/biz/contractTracing/editBill.vue +219 -359
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +0 -8
- package/packages/src/views/biz/contractTracing/subCompanyDialog.vue +196 -176
- package/packages/src/views/biz/contractTracing/association.vue +0 -189
- package/packages/src/views/biz/contractTracing/chargingDialog.vue +0 -84
- package/packages/src/views/biz/contractTracing/contract.vue +0 -1276
- package/packages/src/views/biz/contractTracing/disputeRecord.vue +0 -311
- package/packages/src/views/biz/contractTracing/edit.vue +0 -205
- package/packages/src/views/biz/contractTracing/sendDrafEmail.vue +0 -120
- package/packages/src/views/biz/contractTracing/shipment.vue +0 -601
|
@@ -1,601 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="app-container">
|
|
3
|
-
<el-row :gutter="10" class="mb8">
|
|
4
|
-
<el-col :span="1.5">
|
|
5
|
-
<el-button type="text" size="mini" @click="handleQuickQuery('')"
|
|
6
|
-
>全部</el-button
|
|
7
|
-
>
|
|
8
|
-
</el-col>
|
|
9
|
-
<el-col :span="1.5">
|
|
10
|
-
<el-button
|
|
11
|
-
type="text"
|
|
12
|
-
size="mini"
|
|
13
|
-
@click="handleQuickQuery('overdue_unreceived_balance')"
|
|
14
|
-
>
|
|
15
|
-
超时未收尾款</el-button
|
|
16
|
-
>
|
|
17
|
-
</el-col>
|
|
18
|
-
<el-col :span="1.5">
|
|
19
|
-
<el-button
|
|
20
|
-
type="text"
|
|
21
|
-
size="mini"
|
|
22
|
-
@click="handleQuickQuery('paid_unreceived_balance')"
|
|
23
|
-
>
|
|
24
|
-
已付未收尾款</el-button
|
|
25
|
-
>
|
|
26
|
-
</el-col>
|
|
27
|
-
</el-row>
|
|
28
|
-
<el-row>
|
|
29
|
-
<el-col :span="4"> {{ "总重量:" + this.totalWeight + "MT" }}</el-col>
|
|
30
|
-
<el-col :span="5">
|
|
31
|
-
{{ "已装运重量:" + this.haveWeight + "MT" }}
|
|
32
|
-
</el-col>
|
|
33
|
-
</el-row>
|
|
34
|
-
|
|
35
|
-
<el-row :gutter="10" class="mb8">
|
|
36
|
-
<right-toolbar
|
|
37
|
-
:showSearch.sync="showSearch"
|
|
38
|
-
@queryTable="getList"
|
|
39
|
-
></right-toolbar>
|
|
40
|
-
</el-row>
|
|
41
|
-
|
|
42
|
-
<el-table
|
|
43
|
-
v-loading="loading"
|
|
44
|
-
:data="bizShipmentList"
|
|
45
|
-
@selection-change="handleSelectionChange"
|
|
46
|
-
:row-class-name="tableRowClassName"
|
|
47
|
-
>
|
|
48
|
-
<el-table-column label="ETA" prop="eta" align="center" width="100px" />
|
|
49
|
-
<el-table-column
|
|
50
|
-
label="船公司"
|
|
51
|
-
prop="shippingCompany"
|
|
52
|
-
align="center"
|
|
53
|
-
width="100px"
|
|
54
|
-
>
|
|
55
|
-
<template slot-scope="scope">
|
|
56
|
-
<dict-tag
|
|
57
|
-
:options="dict.type.shipping_company"
|
|
58
|
-
:value="scope.row.shippingCompany"
|
|
59
|
-
/>
|
|
60
|
-
</template>
|
|
61
|
-
</el-table-column>
|
|
62
|
-
<el-table-column
|
|
63
|
-
label="提单号"
|
|
64
|
-
align="center"
|
|
65
|
-
prop="billOfLadingNo"
|
|
66
|
-
width="130"
|
|
67
|
-
/>
|
|
68
|
-
|
|
69
|
-
<el-table-column
|
|
70
|
-
label="柜号"
|
|
71
|
-
align="center"
|
|
72
|
-
prop="containerNo"
|
|
73
|
-
width="130"
|
|
74
|
-
/>
|
|
75
|
-
|
|
76
|
-
<el-table-column
|
|
77
|
-
label="总货物净重"
|
|
78
|
-
align="center"
|
|
79
|
-
prop="totalGoodsNetWeight"
|
|
80
|
-
width="130"
|
|
81
|
-
/>
|
|
82
|
-
|
|
83
|
-
<el-table-column
|
|
84
|
-
label="合同号"
|
|
85
|
-
align="center"
|
|
86
|
-
prop="contractNo"
|
|
87
|
-
width="150"
|
|
88
|
-
/>
|
|
89
|
-
<el-table-column
|
|
90
|
-
label="合同买方公司"
|
|
91
|
-
align="center"
|
|
92
|
-
prop="buyContractCompanyName"
|
|
93
|
-
width="180"
|
|
94
|
-
>
|
|
95
|
-
</el-table-column>
|
|
96
|
-
<el-table-column
|
|
97
|
-
label="尾款发票号"
|
|
98
|
-
align="center"
|
|
99
|
-
prop="invoiceNo"
|
|
100
|
-
width="180"
|
|
101
|
-
>
|
|
102
|
-
</el-table-column>
|
|
103
|
-
|
|
104
|
-
<!-- amount/amout-remain -->
|
|
105
|
-
<el-table-column label="尾款种类" align="center" prop="invoiceSpecies">
|
|
106
|
-
<template slot-scope="scope">
|
|
107
|
-
<dict-tag
|
|
108
|
-
:options="dict.type.invoice_species"
|
|
109
|
-
:value="scope.row.invoiceSpecies"
|
|
110
|
-
/>
|
|
111
|
-
</template>
|
|
112
|
-
</el-table-column>
|
|
113
|
-
<el-table-column label="收付款状态" align="center" width="100">
|
|
114
|
-
<template slot-scope="{ row }">
|
|
115
|
-
<div v-if="row.invoiceType == 'sale'">
|
|
116
|
-
<div v-if="row.financialStatus">
|
|
117
|
-
<dict-tag
|
|
118
|
-
:options="dict.type.financial_status"
|
|
119
|
-
:value="row.financialStatus"
|
|
120
|
-
/>
|
|
121
|
-
</div>
|
|
122
|
-
<div v-else>
|
|
123
|
-
{{
|
|
124
|
-
row.remainingAmount <= 10
|
|
125
|
-
? "全部收款"
|
|
126
|
-
: row.remainingAmount == row.amount
|
|
127
|
-
? "未收"
|
|
128
|
-
: "部分收款"
|
|
129
|
-
}}
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
<div v-else>
|
|
133
|
-
<div v-if="row.financialStatus">
|
|
134
|
-
<dict-tag
|
|
135
|
-
:options="dict.type.financial_status"
|
|
136
|
-
:value="row.financialStatus"
|
|
137
|
-
/>
|
|
138
|
-
</div>
|
|
139
|
-
<div v-else>
|
|
140
|
-
{{
|
|
141
|
-
row.remainingAmount <= 10
|
|
142
|
-
? "全部付款"
|
|
143
|
-
: row.remainingAmount == row.amount
|
|
144
|
-
? "未付"
|
|
145
|
-
: "部分付款"
|
|
146
|
-
}}
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
</template>
|
|
150
|
-
</el-table-column>
|
|
151
|
-
|
|
152
|
-
<el-table-column label="尾款应收应付/实收实付" align="center">
|
|
153
|
-
<template slot-scope="{ row }">
|
|
154
|
-
{{
|
|
155
|
-
row.amount != null && row.remainingAmount != null
|
|
156
|
-
? row.amount + "/" + (row.amount - row.remainingAmount)
|
|
157
|
-
: ""
|
|
158
|
-
}}
|
|
159
|
-
</template>
|
|
160
|
-
</el-table-column>
|
|
161
|
-
<el-table-column label="起运国" align="center" prop="loadingCountry" />
|
|
162
|
-
<el-table-column label="目的港" align="center" prop="destinationPort" />
|
|
163
|
-
<el-table-column label="装货日期" align="center">
|
|
164
|
-
<template slot-scope="{ row }">
|
|
165
|
-
{{ utc2local(row.loadingTime, "YYYY-MM-DD") }}
|
|
166
|
-
</template>
|
|
167
|
-
</el-table-column>
|
|
168
|
-
<el-table-column label="ETD" align="center">
|
|
169
|
-
<template slot-scope="{ row }">
|
|
170
|
-
{{ utc2local(row.etd, "YYYY-MM-DD") }}
|
|
171
|
-
</template>
|
|
172
|
-
</el-table-column>
|
|
173
|
-
|
|
174
|
-
<el-table-column
|
|
175
|
-
label="操作"
|
|
176
|
-
align="center"
|
|
177
|
-
class-name="small-padding fixed-width"
|
|
178
|
-
width="150px"
|
|
179
|
-
>
|
|
180
|
-
<template slot-scope="scope">
|
|
181
|
-
<el-button
|
|
182
|
-
v-if="scope.row.chargingStatus == 'discharged'"
|
|
183
|
-
size="mini"
|
|
184
|
-
type="text"
|
|
185
|
-
icon="el-icon-view"
|
|
186
|
-
@click="confirmCharge(scope.row)"
|
|
187
|
-
>确认电放
|
|
188
|
-
</el-button>
|
|
189
|
-
<el-button
|
|
190
|
-
size="mini"
|
|
191
|
-
type="text"
|
|
192
|
-
icon="el-icon-view"
|
|
193
|
-
@click="handleDetail(scope.row)"
|
|
194
|
-
>详情
|
|
195
|
-
</el-button>
|
|
196
|
-
</template>
|
|
197
|
-
</el-table-column>
|
|
198
|
-
</el-table>
|
|
199
|
-
|
|
200
|
-
<!-- 添加或修改装运对话框 -->
|
|
201
|
-
<el-dialog :title="title" :visible.sync="open" width="550px" append-to-body>
|
|
202
|
-
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
203
|
-
<el-form-item label="船公司" prop="shippingCompany">
|
|
204
|
-
<el-select
|
|
205
|
-
v-model="form.shippingCompany"
|
|
206
|
-
placeholder="请选择船公司"
|
|
207
|
-
clearable
|
|
208
|
-
size="small"
|
|
209
|
-
>
|
|
210
|
-
<el-option
|
|
211
|
-
v-for="dict in dict.type.shipping_company"
|
|
212
|
-
:key="dict.value"
|
|
213
|
-
:label="dict.label"
|
|
214
|
-
:value="dict.value"
|
|
215
|
-
/>
|
|
216
|
-
</el-select>
|
|
217
|
-
</el-form-item>
|
|
218
|
-
<el-form-item label="订舱号" prop="bookingNo">
|
|
219
|
-
<el-input v-model="form.bookingNo" placeholder="请输入订舱号" />
|
|
220
|
-
</el-form-item>
|
|
221
|
-
<el-form-item label="提单号" prop="billOfLadingNo">
|
|
222
|
-
<el-input v-model="form.billOfLadingNo" placeholder="请输入提单号" />
|
|
223
|
-
</el-form-item>
|
|
224
|
-
<el-form-item label="目的港" prop="destinationPort">
|
|
225
|
-
<el-input v-model="form.destinationPort" placeholder="请输入目的港" />
|
|
226
|
-
</el-form-item>
|
|
227
|
-
<el-form-item label="预计离港日" prop="etd">
|
|
228
|
-
<el-date-picker
|
|
229
|
-
clearable
|
|
230
|
-
size="small"
|
|
231
|
-
v-model="form.etd"
|
|
232
|
-
type="date"
|
|
233
|
-
value-format="yyyy-MM-dd HH:mm:ss"
|
|
234
|
-
placeholder="请选择预计离港日期"
|
|
235
|
-
>
|
|
236
|
-
</el-date-picker>
|
|
237
|
-
</el-form-item>
|
|
238
|
-
<el-form-item label="预计到港日" prop="eta">
|
|
239
|
-
<el-date-picker
|
|
240
|
-
clearable
|
|
241
|
-
size="small"
|
|
242
|
-
v-model="form.eta"
|
|
243
|
-
type="date"
|
|
244
|
-
value-format="yyyy-MM-dd HH:mm:ss"
|
|
245
|
-
placeholder="请选择预计到港日期"
|
|
246
|
-
>
|
|
247
|
-
</el-date-picker>
|
|
248
|
-
</el-form-item>
|
|
249
|
-
<el-form-item label="实际到港日" prop="actualArrivalDate">
|
|
250
|
-
<el-date-picker
|
|
251
|
-
clearable
|
|
252
|
-
size="small"
|
|
253
|
-
v-model="form.actualArrivalDate"
|
|
254
|
-
type="date"
|
|
255
|
-
value-format="yyyy-MM-dd HH:mm:ss"
|
|
256
|
-
placeholder="请选择实际到港日"
|
|
257
|
-
>
|
|
258
|
-
</el-date-picker>
|
|
259
|
-
</el-form-item>
|
|
260
|
-
<el-form-item label="备注" prop="remark">
|
|
261
|
-
<el-input v-model="form.remark" placeholder="请输入备注" />
|
|
262
|
-
</el-form-item>
|
|
263
|
-
</el-form>
|
|
264
|
-
<div slot="footer" class="dialog-footer">
|
|
265
|
-
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
266
|
-
<el-button @click="cancel">取 消</el-button>
|
|
267
|
-
</div>
|
|
268
|
-
</el-dialog>
|
|
269
|
-
|
|
270
|
-
<!-- 生成尾款发票对话框 -->
|
|
271
|
-
<el-dialog
|
|
272
|
-
:title="title"
|
|
273
|
-
:visible.sync="generateFinalInvoiceOpen"
|
|
274
|
-
width="500px"
|
|
275
|
-
append-to-body
|
|
276
|
-
>
|
|
277
|
-
{{
|
|
278
|
-
"报价类型为" +
|
|
279
|
-
generateFinalInvoiceForm.quoteType +
|
|
280
|
-
",确认用这这个装运单生成尾款发票"
|
|
281
|
-
}}
|
|
282
|
-
|
|
283
|
-
<div slot="footer" class="dialog-footer">
|
|
284
|
-
<el-form :model="generateFinalInvoiceForm" label-width="100px">
|
|
285
|
-
<el-form-item
|
|
286
|
-
label="临时价格"
|
|
287
|
-
v-if="generateFinalInvoiceForm.quoteType !== 'FIXED'"
|
|
288
|
-
>
|
|
289
|
-
<el-input
|
|
290
|
-
v-model="generateFinalInvoiceForm.pointPrice"
|
|
291
|
-
placeholder="请输入临时价格"
|
|
292
|
-
size="samll"
|
|
293
|
-
/>
|
|
294
|
-
</el-form-item>
|
|
295
|
-
</el-form>
|
|
296
|
-
<el-button type="primary" @click="submitGenerateFinalInvoiceForm"
|
|
297
|
-
>确 定</el-button
|
|
298
|
-
>
|
|
299
|
-
<el-button @click="cancelGenerateFinalInvoiceForm">取 消</el-button>
|
|
300
|
-
</div>
|
|
301
|
-
</el-dialog>
|
|
302
|
-
|
|
303
|
-
<!-- 查看详情对话框 -->
|
|
304
|
-
<shipment-detail ref="shipmentDetail" />
|
|
305
|
-
|
|
306
|
-
<charging-dialog ref="chargingDialog" @refresh="getList"></charging-dialog>
|
|
307
|
-
</div>
|
|
308
|
-
</template>
|
|
309
|
-
|
|
310
|
-
<script>
|
|
311
|
-
import {
|
|
312
|
-
listBizShipment,
|
|
313
|
-
getBizShipment,
|
|
314
|
-
delBizShipment,
|
|
315
|
-
addBizShipment,
|
|
316
|
-
updateBizShipment,
|
|
317
|
-
} from "../../../api/biz/bizShipment";
|
|
318
|
-
|
|
319
|
-
import { listContainerWithInvoice } from "../../../api/biz/bizContainer";
|
|
320
|
-
|
|
321
|
-
import { generateFinalInvoiceByShipmentId } from "../../../api/biz/bizInvoice";
|
|
322
|
-
import ShipmentDetail from "../bizShipment/detail.vue";
|
|
323
|
-
import ChargingDialog from "./chargingDialog.vue";
|
|
324
|
-
|
|
325
|
-
export default {
|
|
326
|
-
name: "Shipment",
|
|
327
|
-
components: { ShipmentDetail, ChargingDialog },
|
|
328
|
-
dicts: ["shipping_company", "invoice_species", "financial_status"],
|
|
329
|
-
props: {
|
|
330
|
-
saleContractIds: {
|
|
331
|
-
type: Array,
|
|
332
|
-
default: [],
|
|
333
|
-
},
|
|
334
|
-
contract: {
|
|
335
|
-
type: Object,
|
|
336
|
-
default: {},
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
watch: {
|
|
340
|
-
saleContractIds: {
|
|
341
|
-
handler(val) {
|
|
342
|
-
if (val) {
|
|
343
|
-
this.queryParams.saleContractIds = this.saleContractIds;
|
|
344
|
-
this.getList();
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
contract: {
|
|
349
|
-
handler(contract) {
|
|
350
|
-
if (contract && contract.contractType == "sale") {
|
|
351
|
-
this.queryParams.saleContractIds = [];
|
|
352
|
-
this.queryParams.purchaseContractId = null;
|
|
353
|
-
this.queryParams.saleContractId = contract?.contractId;
|
|
354
|
-
this.getList();
|
|
355
|
-
} else {
|
|
356
|
-
this.queryParams.saleContractIds = [];
|
|
357
|
-
this.queryParams.saleContractId = null;
|
|
358
|
-
this.queryParams.purchaseContractId = contract?.contractId;
|
|
359
|
-
this.getList();
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
},
|
|
363
|
-
},
|
|
364
|
-
data() {
|
|
365
|
-
return {
|
|
366
|
-
// 遮罩层
|
|
367
|
-
loading: true,
|
|
368
|
-
// 选中数组
|
|
369
|
-
ids: [],
|
|
370
|
-
// 非单个禁用
|
|
371
|
-
single: true,
|
|
372
|
-
// 非多个禁用
|
|
373
|
-
multiple: true,
|
|
374
|
-
// 显示搜索条件
|
|
375
|
-
showSearch: true,
|
|
376
|
-
// 总条数
|
|
377
|
-
total: 0,
|
|
378
|
-
// 装运表格数据
|
|
379
|
-
bizShipmentList: [],
|
|
380
|
-
// 弹出层标题
|
|
381
|
-
title: "",
|
|
382
|
-
//是否显示生成尾款发票弹出层
|
|
383
|
-
generateFinalInvoiceOpen: false,
|
|
384
|
-
// 是否显示弹出层
|
|
385
|
-
open: false,
|
|
386
|
-
// 查询参数
|
|
387
|
-
queryParams: {
|
|
388
|
-
pageNum: 1,
|
|
389
|
-
pageSize: 10,
|
|
390
|
-
shippingCompany: null,
|
|
391
|
-
bookingNo: null,
|
|
392
|
-
billOfLadingNo: null,
|
|
393
|
-
destinationPort: null,
|
|
394
|
-
etd: null,
|
|
395
|
-
eta: null,
|
|
396
|
-
actualArrivalDate: null,
|
|
397
|
-
orderByColumn: "shipmentId",
|
|
398
|
-
isAsc: "desc",
|
|
399
|
-
},
|
|
400
|
-
// 表单参数
|
|
401
|
-
form: {},
|
|
402
|
-
//生成尾款发票参数
|
|
403
|
-
generateFinalInvoiceForm: {},
|
|
404
|
-
// 表单校验
|
|
405
|
-
rules: {
|
|
406
|
-
createTime: [
|
|
407
|
-
{ required: true, message: "创建时间不能为空", trigger: "blur" },
|
|
408
|
-
],
|
|
409
|
-
},
|
|
410
|
-
totalWeight: null,
|
|
411
|
-
haveWeight: null,
|
|
412
|
-
};
|
|
413
|
-
},
|
|
414
|
-
created() {},
|
|
415
|
-
methods: {
|
|
416
|
-
//确认电放
|
|
417
|
-
confirmCharge(row) {
|
|
418
|
-
this.$refs.chargingDialog.handleShow(row.shipmentId);
|
|
419
|
-
},
|
|
420
|
-
handleQuickQuery(type) {
|
|
421
|
-
this.queryParams.quickQueryStatus = type;
|
|
422
|
-
this.getList();
|
|
423
|
-
},
|
|
424
|
-
tableRowClassName({ row, rowIndex }) {
|
|
425
|
-
return "";
|
|
426
|
-
},
|
|
427
|
-
//查看详情
|
|
428
|
-
handleDetail(row) {
|
|
429
|
-
this.$refs.shipmentDetail.handleShow(row);
|
|
430
|
-
},
|
|
431
|
-
/** 提交生成尾款发票 */
|
|
432
|
-
submitGenerateFinalInvoiceForm() {
|
|
433
|
-
this.generateFinalInvoiceOpen = false;
|
|
434
|
-
this.loading = true;
|
|
435
|
-
generateFinalInvoiceByShipmentId(this.generateFinalInvoiceForm)
|
|
436
|
-
.then((res) => {
|
|
437
|
-
this.loading = false;
|
|
438
|
-
this.$message.success("生成尾款发票成功");
|
|
439
|
-
this.$router.push({
|
|
440
|
-
path: "/jxxg/invoice",
|
|
441
|
-
});
|
|
442
|
-
})
|
|
443
|
-
.catch((err) => {
|
|
444
|
-
this.loading = false;
|
|
445
|
-
this.$message.error(err.message);
|
|
446
|
-
});
|
|
447
|
-
},
|
|
448
|
-
/** 生成尾款发票按钮操作 */
|
|
449
|
-
handleGenerateFinalInvoice(row) {
|
|
450
|
-
this.reset();
|
|
451
|
-
const shipmentId = row.shipmentId || this.ids;
|
|
452
|
-
getBizShipment(shipmentId).then((response) => {
|
|
453
|
-
this.generateFinalInvoiceForm.shipmentId = shipmentId[0];
|
|
454
|
-
this.generateFinalInvoiceForm.quoteType = response.data.quoteType;
|
|
455
|
-
this.generateFinalInvoiceOpen = true;
|
|
456
|
-
this.title = "生成临时尾款发票";
|
|
457
|
-
});
|
|
458
|
-
},
|
|
459
|
-
/** 查询装运列表 */
|
|
460
|
-
getList() {
|
|
461
|
-
this.loading = true;
|
|
462
|
-
console.log(this.saleContractIds.length);
|
|
463
|
-
if (this.saleContractIds.length <= 0) {
|
|
464
|
-
this.queryParams.shipmentId = 0;
|
|
465
|
-
} else {
|
|
466
|
-
this.queryParams.shipmentId = null;
|
|
467
|
-
}
|
|
468
|
-
listContainerWithInvoice(this.queryParams).then((response) => {
|
|
469
|
-
this.bizShipmentList = response.rows;
|
|
470
|
-
this.totalWeight = this.bizShipmentList.reduce(
|
|
471
|
-
(accumulator, currentValue) =>
|
|
472
|
-
accumulator + currentValue.contractTotalWeight,
|
|
473
|
-
0
|
|
474
|
-
);
|
|
475
|
-
this.haveWeight = this.bizShipmentList.reduce(
|
|
476
|
-
(accumulator, currentValue) =>
|
|
477
|
-
accumulator + currentValue.totalGoodsNetWeight,
|
|
478
|
-
0
|
|
479
|
-
);
|
|
480
|
-
this.total = response.total;
|
|
481
|
-
this.loading = false;
|
|
482
|
-
});
|
|
483
|
-
},
|
|
484
|
-
// 取消按钮
|
|
485
|
-
cancel() {
|
|
486
|
-
this.open = false;
|
|
487
|
-
this.reset();
|
|
488
|
-
},
|
|
489
|
-
cancelGenerateFinalInvoiceForm() {
|
|
490
|
-
this.generateFinalInvoiceOpen = false;
|
|
491
|
-
this.reset();
|
|
492
|
-
},
|
|
493
|
-
// 表单重置
|
|
494
|
-
reset() {
|
|
495
|
-
this.form = {
|
|
496
|
-
shipmentId: null,
|
|
497
|
-
shippingCompany: null,
|
|
498
|
-
bookingNo: null,
|
|
499
|
-
billOfLadingNo: null,
|
|
500
|
-
destinationPort: null,
|
|
501
|
-
etd: null,
|
|
502
|
-
eta: null,
|
|
503
|
-
actualArrivalDate: null,
|
|
504
|
-
remark: null,
|
|
505
|
-
createTime: null,
|
|
506
|
-
updateTime: null,
|
|
507
|
-
};
|
|
508
|
-
this.generateFinalInvoiceForm = {
|
|
509
|
-
shipmentId: null,
|
|
510
|
-
pointPrice: null,
|
|
511
|
-
quoteType: null,
|
|
512
|
-
};
|
|
513
|
-
this.resetForm("form");
|
|
514
|
-
},
|
|
515
|
-
/** 搜索按钮操作 */
|
|
516
|
-
handleQuery() {
|
|
517
|
-
this.queryParams.pageNum = 1;
|
|
518
|
-
this.getList();
|
|
519
|
-
},
|
|
520
|
-
/** 重置按钮操作 */
|
|
521
|
-
resetQuery() {
|
|
522
|
-
this.handleQuery();
|
|
523
|
-
},
|
|
524
|
-
// 多选框选中数据
|
|
525
|
-
handleSelectionChange(selection) {
|
|
526
|
-
this.ids = selection.map((item) => item.shipmentId);
|
|
527
|
-
this.single = selection.length !== 1;
|
|
528
|
-
this.multiple = !selection.length;
|
|
529
|
-
},
|
|
530
|
-
/** 新增按钮操作 */
|
|
531
|
-
handleAdd() {
|
|
532
|
-
this.reset();
|
|
533
|
-
this.open = true;
|
|
534
|
-
this.title = "添加装运";
|
|
535
|
-
},
|
|
536
|
-
/** 修改按钮操作 */
|
|
537
|
-
handleUpdate(row) {
|
|
538
|
-
this.reset();
|
|
539
|
-
const shipmentId = row.shipmentId || this.ids;
|
|
540
|
-
getBizShipment(shipmentId).then((response) => {
|
|
541
|
-
this.form = response.data;
|
|
542
|
-
this.open = true;
|
|
543
|
-
this.title = "修改装运";
|
|
544
|
-
});
|
|
545
|
-
},
|
|
546
|
-
/** 提交按钮 */
|
|
547
|
-
submitForm() {
|
|
548
|
-
this.$refs["form"].validate((valid) => {
|
|
549
|
-
if (valid) {
|
|
550
|
-
if (this.form.shipmentId != null) {
|
|
551
|
-
updateBizShipment(this.form).then((response) => {
|
|
552
|
-
this.$modal.msgSuccess("修改成功");
|
|
553
|
-
this.open = false;
|
|
554
|
-
this.getList();
|
|
555
|
-
});
|
|
556
|
-
} else {
|
|
557
|
-
addBizShipment(this.form).then((response) => {
|
|
558
|
-
this.$modal.msgSuccess("新增成功");
|
|
559
|
-
this.open = false;
|
|
560
|
-
this.getList();
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
});
|
|
565
|
-
},
|
|
566
|
-
/** 删除按钮操作 */
|
|
567
|
-
handleDelete(row) {
|
|
568
|
-
const shipmentIds = row.shipmentId || this.ids;
|
|
569
|
-
this.$modal
|
|
570
|
-
.confirm('是否确认删除装运编号为"' + shipmentIds + '"的数据项?')
|
|
571
|
-
.then(function () {
|
|
572
|
-
return delBizShipment(shipmentIds);
|
|
573
|
-
})
|
|
574
|
-
.then(() => {
|
|
575
|
-
this.getList();
|
|
576
|
-
this.$modal.msgSuccess("删除成功");
|
|
577
|
-
})
|
|
578
|
-
.catch(() => {});
|
|
579
|
-
},
|
|
580
|
-
/** 导出按钮操作 */
|
|
581
|
-
handleExport() {
|
|
582
|
-
this.download(
|
|
583
|
-
"biz/shipment/export",
|
|
584
|
-
{
|
|
585
|
-
...this.queryParams,
|
|
586
|
-
},
|
|
587
|
-
`bizShipment_${new Date().getTime()}.xlsx`
|
|
588
|
-
);
|
|
589
|
-
},
|
|
590
|
-
},
|
|
591
|
-
};
|
|
592
|
-
</script>
|
|
593
|
-
<style lang="scss">
|
|
594
|
-
.el-table .warning-row {
|
|
595
|
-
background: rgb(255, 241, 215);
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.el-table .success-row {
|
|
599
|
-
background: #f0f9eb;
|
|
600
|
-
}
|
|
601
|
-
</style>
|