doctor-admin-components 1.0.14-beta.3 → 1.0.14-beta.30
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 +4 -1
- package/package.json +1 -1
- package/packages/index.js +0 -1
- package/packages/src/api/biz/bizContract.js +10 -0
- package/packages/src/api/biz/bizShipment.js +30 -1
- package/packages/src/utils/zip.js +29 -11
- package/packages/src/views/biz/bizFileInfo/contract.vue +489 -361
- package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +9 -7
- package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +24 -6
- package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +11 -3
- package/packages/src/views/biz/bizFileInfo/fileShow.vue +11 -3
- package/packages/src/views/biz/bizShipment/add.vue +51 -26
- package/packages/src/views/biz/contractTracing/billInfo.vue +15 -7
- package/packages/src/views/biz/contractTracing/changrLogList.vue +67 -0
- package/packages/src/views/biz/contractTracing/companyBanks.vue +15 -5
- package/packages/src/views/biz/contractTracing/contractPdf.vue +2 -7
- package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +5 -77
- package/packages/src/views/biz/contractTracing/editBill.vue +18 -10
- package/packages/src/views/biz/contractTracing/queryDeductionRecords.vue +103 -0
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +355 -81
- package/packages/src/views/biz/contractTracing/shipmentPurchaseAmountEditDialog.vue +176 -0
|
@@ -2,115 +2,259 @@
|
|
|
2
2
|
* @Author: zhangpengwei 15038779532@163.com
|
|
3
3
|
* @Date: 2023-07-31 17:40:56
|
|
4
4
|
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
-
* @LastEditTime: 2024-
|
|
5
|
+
* @LastEditTime: 2024-08-23 14:16:00
|
|
6
6
|
* @FilePath: /doctor-admin-components/packages/src/views/biz/contractTracing/chargingDialog.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class="app-container">
|
|
11
11
|
<!-- 合同争议详情对话框 -->
|
|
12
|
-
<el-dialog :title="title" :visible.sync="open" width="
|
|
12
|
+
<el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
|
|
13
13
|
<el-form :model="form">
|
|
14
|
-
<el-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
<el-table
|
|
15
|
+
:data="form.containerPurchaseAmountRespList"
|
|
16
|
+
:cell-style="{'padding': '10px 0'}"
|
|
17
|
+
:header-cell-style="{'padding': '10px 0'}"
|
|
18
|
+
>
|
|
19
|
+
<el-table-column align="center" prop="containerNo" width="150" label="柜号"></el-table-column>
|
|
20
|
+
<el-table-column align="center" label="货物名称" width="150" >
|
|
21
|
+
<template slot-scope="{ row }">
|
|
22
|
+
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">{{item.askName}}</div>
|
|
23
|
+
</template>
|
|
24
|
+
</el-table-column>
|
|
25
|
+
<el-table-column align="center" label="净量(MT)" prop="goodsNetWeight">
|
|
26
|
+
<template slot-scope="{ row }">
|
|
27
|
+
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
28
|
+
<span :style="item.goodsNetWeight != item.purchaseActualNetWeight ? 'color:red' : ''">{{$formatNumber(item.goodsNetWeight, 3)}}</span>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
</el-table-column>
|
|
32
|
+
<el-table-column align="center" label="单价($)" width="100" prop="purchasePriceResult">
|
|
33
|
+
<template slot-scope="{ row }">
|
|
34
|
+
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
35
|
+
<el-tooltip v-if="getPurchaseAmountTip(item, row)" class="ml10" effect="dark" placement="top">
|
|
36
|
+
<template slot="content">
|
|
37
|
+
{{getPurchaseAmountTip(item, row)}}
|
|
38
|
+
</template>
|
|
21
39
|
<span>
|
|
22
|
-
<
|
|
40
|
+
<span :style="item.purchasePriceResult != item.purchaseActualUnitPrice ? 'color:red' : ''"> {{item.purchasePriceResult ? $formatNumber(item.purchasePriceResult, 2) : (item.purchaseUnitPriceFormula || getPrice(item)) }}
|
|
41
|
+
</span>
|
|
42
|
+
<i class="el-icon-question"></i>
|
|
23
43
|
</span>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
</el-tooltip>
|
|
45
|
+
<span v-else :style="item.purchasePriceResult != item.purchaseActualUnitPrice ? 'color:red' : ''"> {{item.purchasePriceResult ? $formatNumber(item.purchasePriceResult, 2) : (item.purchaseUnitPriceFormula || getPrice(item)) }}
|
|
46
|
+
</span>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
</el-table-column>
|
|
50
|
+
<el-table-column align="center" label="修正净重(MT)" width="130" prop="purchaseActualNetWeight">
|
|
51
|
+
<template slot-scope="{ row }">
|
|
52
|
+
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
53
|
+
<span :style="item.goodsNetWeight != item.purchaseActualNetWeight ? 'color:red' : ''">{{$formatNumber(item.purchaseActualNetWeight, 3)}}</span>
|
|
54
|
+
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(item,'purchaseActualNetWeight', '1')"/>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
</el-table-column>
|
|
58
|
+
<el-table-column align="center" label="修正单价($)" width="130" prop="purchaseActualUnitPrice">
|
|
59
|
+
<template slot-scope="{ row }">
|
|
60
|
+
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
61
|
+
<span :style="item.purchasePriceResult != item.purchaseActualUnitPrice ? 'color:red' : ''"> {{$formatNumber(item.purchaseActualUnitPrice, 2)}}</span>
|
|
62
|
+
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(item, 'purchaseActualUnitPrice', '1')"/>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
</el-table-column>
|
|
66
|
+
<el-table-column align="center" prop="amount" label="采购金额($)" width="130">
|
|
67
|
+
<template slot-scope="{ row }">{{ $formatNumber(row.amount, 2) }}</template>
|
|
68
|
+
</el-table-column>
|
|
69
|
+
<el-table-column align="center" prop="purchaseDepositAmount" label="扣减定金($)" width="130">
|
|
70
|
+
<template slot-scope="{ row }">{{ $formatNumber(row.purchaseDepositAmount, 2) }}</template>
|
|
71
|
+
</el-table-column>
|
|
72
|
+
<el-table-column align="center" label="尾款">
|
|
73
|
+
<template slot-scope="{ row }">{{ $formatNumber(row.amount - row.purchaseDepositAmount, 2) }}</template>
|
|
74
|
+
</el-table-column>
|
|
75
|
+
</el-table>
|
|
76
|
+
<div class="my-footer">
|
|
77
|
+
<div class="footer-item" style="width:150px;text-align:center"> 总计</div>
|
|
78
|
+
<div class="footer-item" style="width:150px;text-align:center"> 柜数:{{ form && form.containerPurchaseAmountRespList && form.containerPurchaseAmountRespList.length }}柜</div>
|
|
79
|
+
<div class="footer-item">装运总净重:<br/>{{$formatNumber(form.totalNetWeight || 0, 3) + 'MT'}}</div>
|
|
80
|
+
<div style="width:100px"></div>
|
|
81
|
+
<div class="footer-item">装运总修正净重:<br/>{{$formatNumber(form.actualTotalNetWeight || 0, 3) + 'MT'}}</div>
|
|
82
|
+
<div style="width:135px"></div>
|
|
83
|
+
<div class="footer-item">采购总金额:
|
|
84
|
+
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(form,'purchaseActualTotalAmount', '2')"/>
|
|
85
|
+
<br/>$ {{ $formatNumber(form.totalPurchaseAmount, 2) }}
|
|
86
|
+
</div>
|
|
87
|
+
<div class="footer-item">本次扣减定金:
|
|
88
|
+
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(form,'purchaseDepositAmount', '2')"/>
|
|
89
|
+
<br/>$ {{ $formatNumber(form.purchaseDepositAmount, 2) }}
|
|
90
|
+
</div>
|
|
91
|
+
<div class="footer-item">采购总尾款:<br/>$ {{ $formatNumber(form.totalPurchaseAmount - form.purchaseDepositAmount, 2) }}</div>
|
|
92
|
+
</div>
|
|
93
|
+
<!-- 自定义合并行 -->
|
|
94
|
+
<div>
|
|
95
|
+
|
|
96
|
+
</div>
|
|
97
|
+
<el-row style="margin-top:20px">
|
|
98
|
+
<el-col :span="8">
|
|
99
|
+
<el-form-item label="本次装运总修正净重:">
|
|
100
|
+
<el-tooltip class="ml10" effect="dark" content="本次一共装了多少吨的货(取修正重量汇总)" placement="top">
|
|
101
|
+
<span>
|
|
102
|
+
{{ $formatNumber(form.actualTotalNetWeight || 0, ) + 'MT'}}
|
|
103
|
+
<i class="el-icon-question"></i>
|
|
104
|
+
</span>
|
|
105
|
+
</el-tooltip>
|
|
106
|
+
</el-form-item>
|
|
31
107
|
</el-col>
|
|
32
108
|
<el-col :span="8">
|
|
33
|
-
<el-form-item label="
|
|
34
|
-
|
|
35
|
-
<el-tooltip class="item" effect="dark" content="还剩多少定金可抵扣,可为负数" placement="top-start">
|
|
109
|
+
<el-form-item label="本次装运柜数:">
|
|
110
|
+
<el-tooltip class="ml10" effect="dark" content="当前装运装了多少柜" placement="top">
|
|
36
111
|
<span>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
112
|
+
{{form && form.containerPurchaseAmountRespList && form.containerPurchaseAmountRespList.length }}柜
|
|
113
|
+
<i class="el-icon-question"></i>
|
|
114
|
+
</span>
|
|
115
|
+
</el-tooltip>
|
|
40
116
|
</el-form-item>
|
|
41
117
|
</el-col>
|
|
42
118
|
<el-col :span="8">
|
|
43
|
-
<el-form-item label="定金总额:"
|
|
44
|
-
|
|
45
|
-
|
|
119
|
+
<el-form-item label="定金总额:">
|
|
120
|
+
<el-tooltip class="ml10" effect="dark" content="采购定金发票一共已付多少金额" placement="top">
|
|
121
|
+
<span>
|
|
122
|
+
$ {{
|
|
123
|
+
$formatNumber(form.totalPurchaseDepositAmount || 0, 2)
|
|
124
|
+
}}
|
|
125
|
+
<i class="el-icon-question"></i>
|
|
126
|
+
</span>
|
|
127
|
+
</el-tooltip>
|
|
128
|
+
</el-form-item>
|
|
129
|
+
</el-col>
|
|
130
|
+
<el-col :span="8">
|
|
131
|
+
<el-form-item label="总已装运净重:">
|
|
132
|
+
<el-tooltip class="ml10" effect="dark" content="该采购合同一共装了多少吨的货" placement="top">
|
|
46
133
|
<span>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
134
|
+
{{ $formatNumber(form.totalNetWeight, 3) + 'MT'}}
|
|
135
|
+
<i class="el-icon-question"></i>
|
|
136
|
+
</span>
|
|
137
|
+
</el-tooltip>
|
|
50
138
|
</el-form-item>
|
|
51
139
|
</el-col>
|
|
52
|
-
</el-row>
|
|
53
|
-
<el-row>
|
|
54
140
|
<el-col :span="8">
|
|
55
|
-
<el-form-item label="
|
|
141
|
+
<el-form-item label="总已装运柜数:">
|
|
142
|
+
<el-tooltip class="ml10" effect="dark" content="此采购合同一共已经装了多少柜(根据最新的装运数据实时刷新)" placement="top">
|
|
143
|
+
<span>
|
|
144
|
+
{{form.loadedContainerNumber + '柜'}}
|
|
145
|
+
<i class="el-icon-question"></i>
|
|
146
|
+
</span>
|
|
147
|
+
</el-tooltip>
|
|
148
|
+
</el-form-item>
|
|
56
149
|
</el-col>
|
|
57
150
|
<el-col :span="8">
|
|
58
|
-
<el-form-item label="
|
|
151
|
+
<el-form-item label="上次剩余定金:">
|
|
152
|
+
<el-tooltip class="ml10" effect="dark" content="创建时间在此之前的装运还剩多少定金可以抵扣,不会随着上次的抵扣金额中途变更而刷新,可为负数" placement="top">
|
|
153
|
+
<span>
|
|
154
|
+
<span v-if="form.purchaseDepositBalanceAmount == null">$0</span>
|
|
155
|
+
<span v-else>
|
|
156
|
+
$ {{ $formatNumber(form.purchaseDepositBalanceAmount, 2) }}
|
|
157
|
+
<span @click.stop="queryDeductionRecords" class="edit-style">点击查询扣减记录</span>
|
|
158
|
+
</span>
|
|
159
|
+
<i class="el-icon-question"></i>
|
|
160
|
+
</span>
|
|
161
|
+
</el-tooltip>
|
|
162
|
+
</el-form-item>
|
|
59
163
|
</el-col>
|
|
60
|
-
</el-row>
|
|
61
|
-
<el-row>
|
|
62
164
|
<el-col :span="8">
|
|
63
|
-
<el-form-item label="
|
|
165
|
+
<el-form-item label="签约总净重:">
|
|
166
|
+
<el-tooltip class="ml10" effect="dark" content="该采购合同一共签了多少吨的货(实时刷新合同的签约重量)" placement="top">
|
|
167
|
+
<span>
|
|
168
|
+
{{ $formatNumber(form.signedContractWeight || 0, 3) + 'MT'}}
|
|
169
|
+
<i class="el-icon-question"></i>
|
|
170
|
+
</span>
|
|
171
|
+
</el-tooltip>
|
|
172
|
+
</el-form-item>
|
|
64
173
|
</el-col>
|
|
65
174
|
<el-col :span="8">
|
|
66
|
-
<el-form-item label="
|
|
175
|
+
<el-form-item label="本次扣减定金基于总柜数:">
|
|
176
|
+
<el-tooltip class="ml10" effect="dark" content="生成此装运时,采购合同签了多少柜(在此装运后再修改合同不刷新该数据)" placement="top">
|
|
177
|
+
<span>
|
|
178
|
+
{{(form.purchaseDepositContainerNumber || 0) + '柜'}}
|
|
179
|
+
<i class="el-icon-question"></i>
|
|
180
|
+
<span class="edit-style" @click.stop="editInfo(form,'purchaseDepositContainerNumber', '2')">编辑</span>
|
|
181
|
+
</span>
|
|
182
|
+
</el-tooltip>
|
|
183
|
+
</el-form-item>
|
|
67
184
|
</el-col>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</template>
|
|
76
|
-
</el-table-column>
|
|
77
|
-
<el-table-column align="center" label="重量(MT)">
|
|
78
|
-
<template slot-scope="{ row }">
|
|
79
|
-
<div style="white-space: pre-line !important">{{ getColumnProp(row, 'goodsNetWeight') }}</div>
|
|
80
|
-
</template>
|
|
81
|
-
</el-table-column>
|
|
82
|
-
<el-table-column align="center" label="单价($)" width="130">
|
|
83
|
-
<template slot-scope="{ row }">
|
|
84
|
-
<div v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
85
|
-
{{ item.purchasePriceResult }};
|
|
86
|
-
<!-- 显示每个项的值 -->
|
|
87
|
-
<el-tooltip
|
|
88
|
-
v-if="item.quoteType != 'FIXED' && row.pointPrice"
|
|
89
|
-
class="item"
|
|
90
|
-
effect="dark"
|
|
91
|
-
:content="getPurchaseAmountTip(item, row)"
|
|
92
|
-
placement="top-start"
|
|
93
|
-
>
|
|
94
|
-
<span>
|
|
95
|
-
<i class="el-icon-question" />
|
|
185
|
+
<el-col :span="8">
|
|
186
|
+
<el-form-item label="本次扣减定金:">
|
|
187
|
+
<el-tooltip class="ml10" effect="dark" content="当前装运抵扣了多少定金" placement="top">
|
|
188
|
+
<span>
|
|
189
|
+
<span v-if="form.purchaseDepositAmount == null">$0</span>
|
|
190
|
+
<span v-else>
|
|
191
|
+
$ {{ $formatNumber(form.purchaseDepositAmount || 0, 2)}}
|
|
96
192
|
</span>
|
|
193
|
+
<i class="el-icon-question"></i>
|
|
194
|
+
</span>
|
|
97
195
|
</el-tooltip>
|
|
196
|
+
</el-form-item>
|
|
197
|
+
</el-col>
|
|
198
|
+
<el-col :span="8">
|
|
199
|
+
<el-form-item label="签约总柜:">
|
|
200
|
+
<el-tooltip class="ml10" effect="dark" content="采购合同签了多少柜(根据最新的合同数据实时刷新)" placement="top">
|
|
201
|
+
<span>
|
|
202
|
+
{{(form.signedContainerNumber || 0) + '柜'}}
|
|
203
|
+
<i class="el-icon-question"></i>
|
|
204
|
+
</span>
|
|
205
|
+
</el-tooltip>
|
|
206
|
+
</el-form-item>
|
|
207
|
+
</el-col>
|
|
208
|
+
<el-col :span="8">
|
|
209
|
+
<el-form-item label="本次剩余定金:">
|
|
210
|
+
<el-tooltip class="ml10" effect="dark" content="本次还剩多少定金可供下次抵扣,不会随着下次的抵扣行为刷新,可为负数" placement="top">
|
|
211
|
+
<span>
|
|
212
|
+
<span v-if="form.thisRemainingDeposit == null">$0</span>
|
|
213
|
+
<span v-else>
|
|
214
|
+
$ {{ $formatNumber(form.thisRemainingDeposit || 0, 2) }}
|
|
215
|
+
</span>
|
|
216
|
+
<i class="el-icon-question"></i>
|
|
217
|
+
</span>
|
|
218
|
+
</el-tooltip>
|
|
219
|
+
</el-form-item>
|
|
220
|
+
</el-col>
|
|
221
|
+
<el-col :span="8">
|
|
222
|
+
<el-form-item label="总剩余定金:">
|
|
223
|
+
<el-tooltip class="ml10" effect="dark" content="当前时间该合同还剩余多少定金可以用于抵扣,随着每次的抵扣行为实时刷新,可为负数" placement="top">
|
|
224
|
+
<span>
|
|
225
|
+
<span v-if="form.purchaseDepositBalanceAmount == null">$0</span>
|
|
226
|
+
<span v-else>
|
|
227
|
+
$ {{ $formatNumber(form.purchaseDepositBalanceAmount || 0 ,2) }}
|
|
228
|
+
</span>
|
|
229
|
+
<i class="el-icon-question"></i>
|
|
230
|
+
</span>
|
|
231
|
+
</el-tooltip>
|
|
232
|
+
</el-form-item>
|
|
233
|
+
</el-col>
|
|
234
|
+
<el-col :span="24">
|
|
235
|
+
<el-form-item>
|
|
236
|
+
<div>
|
|
237
|
+
<span style="font-weight: bold;margin-right:5px;">备注:</span>
|
|
238
|
+
<el-button size="mini" v-if="!remarkEditable" type="primary" @click.stop="remarkEditable = true">编辑备注</el-button>
|
|
239
|
+
<el-button size="mini" v-else type="success" @click.stop="editRemark">保存备注</el-button>
|
|
98
240
|
</div>
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</el-form>
|
|
241
|
+
<el-input type="textarea" :rows="2" v-model="form.remark" :disabled="!remarkEditable"/>
|
|
242
|
+
</el-form-item>
|
|
243
|
+
</el-col>
|
|
244
|
+
</el-row>
|
|
245
|
+
</el-form>
|
|
246
|
+
<ShipmentPurchaseAmountEditDialog ref="ShipmentPurchaseAmountEditDialog" @refresh="refresh"></ShipmentPurchaseAmountEditDialog>
|
|
247
|
+
<ChangrLogList :list="form.changeLogList"></ChangrLogList>
|
|
248
|
+
<QueryDeductionRecords ref="QueryDeductionRecords"></QueryDeductionRecords>
|
|
108
249
|
</el-dialog>
|
|
109
250
|
</div>
|
|
110
251
|
</template>
|
|
111
252
|
|
|
112
253
|
<script>
|
|
113
254
|
import { getPurchaseAmount, updateBizShipment } from '../../../api/biz/bizShipment'
|
|
255
|
+
import ShipmentPurchaseAmountEditDialog from './shipmentPurchaseAmountEditDialog.vue'
|
|
256
|
+
import ChangrLogList from './changrLogList.vue'
|
|
257
|
+
import QueryDeductionRecords from './queryDeductionRecords.vue'
|
|
114
258
|
|
|
115
259
|
export default {
|
|
116
260
|
name: 'ShipmentPurchaseAmount',
|
|
@@ -119,19 +263,28 @@ export default {
|
|
|
119
263
|
// 遮罩层
|
|
120
264
|
loading: true,
|
|
121
265
|
// 弹出层标题
|
|
122
|
-
title: '',
|
|
266
|
+
title: '尾款计算明细',
|
|
123
267
|
// 是否显示弹出层
|
|
124
268
|
open: false,
|
|
125
269
|
// 表单参数
|
|
126
|
-
form: {
|
|
270
|
+
form: {
|
|
271
|
+
changrLogList: [],
|
|
272
|
+
},
|
|
127
273
|
// 非单个禁用
|
|
128
274
|
single: true,
|
|
129
275
|
// 非多个禁用
|
|
130
276
|
multiple: true,
|
|
131
277
|
//
|
|
132
|
-
contract: null
|
|
278
|
+
contract: null,
|
|
279
|
+
remarkEditable: false,
|
|
280
|
+
tableList: []
|
|
133
281
|
}
|
|
134
282
|
},
|
|
283
|
+
components: {
|
|
284
|
+
ShipmentPurchaseAmountEditDialog,
|
|
285
|
+
ChangrLogList,
|
|
286
|
+
QueryDeductionRecords
|
|
287
|
+
},
|
|
135
288
|
props: {
|
|
136
289
|
getContractFileInfoCallback: {
|
|
137
290
|
type: Function
|
|
@@ -140,6 +293,97 @@ export default {
|
|
|
140
293
|
created() {},
|
|
141
294
|
mounted() {},
|
|
142
295
|
methods: {
|
|
296
|
+
/**
|
|
297
|
+
* @description: 查询扣减记录
|
|
298
|
+
* @return {*}
|
|
299
|
+
*/
|
|
300
|
+
queryDeductionRecords() {
|
|
301
|
+
if(!this.form.shipmentId) {
|
|
302
|
+
this.$message.error('shipmentId不能为空')
|
|
303
|
+
return
|
|
304
|
+
}
|
|
305
|
+
this.$refs.QueryDeductionRecords.handlerOpen(this.form.shipmentId)
|
|
306
|
+
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* @description: 编辑备注
|
|
310
|
+
* @return {*}
|
|
311
|
+
*/
|
|
312
|
+
editRemark() {
|
|
313
|
+
updateBizShipment({
|
|
314
|
+
shipmentId: this.form.shipmentId,
|
|
315
|
+
remark: this.form.remark
|
|
316
|
+
}).then(() => {
|
|
317
|
+
this.$message({
|
|
318
|
+
type: 'success',
|
|
319
|
+
message: '修改成功'
|
|
320
|
+
})
|
|
321
|
+
this.refresh()
|
|
322
|
+
this.remarkEditable = false
|
|
323
|
+
})
|
|
324
|
+
},
|
|
325
|
+
// 编辑信息
|
|
326
|
+
editInfo(detail, prop, type) {
|
|
327
|
+
this.remarkEditable = false
|
|
328
|
+
let textInfo = {}
|
|
329
|
+
let info = {}
|
|
330
|
+
if(type == 1) {
|
|
331
|
+
info = {
|
|
332
|
+
containerId: detail.containerId,
|
|
333
|
+
containerDetailId: detail.containerDetailId,
|
|
334
|
+
purchaseActualNetWeight: detail.purchaseActualNetWeight,
|
|
335
|
+
purchaseActualUnitPrice: detail.purchaseActualUnitPrice,
|
|
336
|
+
}
|
|
337
|
+
// 修改表格净重
|
|
338
|
+
if(prop == 'purchaseActualNetWeight') {
|
|
339
|
+
textInfo = {
|
|
340
|
+
title: `请输入柜号${detail.containerNo}的修正净重`,
|
|
341
|
+
label: detail.askName,
|
|
342
|
+
unit: 'MT'
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
// 修改表格单价
|
|
346
|
+
if(prop == 'purchaseActualUnitPrice') {
|
|
347
|
+
textInfo = {
|
|
348
|
+
title: `请输入柜号${detail.containerNo}的修正单价`,
|
|
349
|
+
label: detail.askName,
|
|
350
|
+
unit: '$'
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if(type == 2) {
|
|
356
|
+
info = {
|
|
357
|
+
shipmentId: detail.shipmentId,
|
|
358
|
+
purchaseDepositContainerNumber: detail.purchaseDepositContainerNumber,
|
|
359
|
+
purchaseActualTotalAmount: detail.totalPurchaseAmount,
|
|
360
|
+
purchaseDepositAmount: detail.purchaseDepositAmount,
|
|
361
|
+
}
|
|
362
|
+
if(prop == 'purchaseDepositContainerNumber') {
|
|
363
|
+
textInfo = {
|
|
364
|
+
title: `请输入本次扣减定金基于总柜数`,
|
|
365
|
+
label: '本次扣减定金基于总柜数',
|
|
366
|
+
unit: '柜'
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
if(prop == 'purchaseActualTotalAmount') {
|
|
370
|
+
textInfo = {
|
|
371
|
+
title: `直接修改采购总金额`,
|
|
372
|
+
label: '',
|
|
373
|
+
unit: '$'
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if(prop == 'purchaseDepositAmount') {
|
|
378
|
+
textInfo = {
|
|
379
|
+
title: `请输入本次扣减定金`,
|
|
380
|
+
label: '本次扣减定金',
|
|
381
|
+
unit: '$'
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
this.$refs.ShipmentPurchaseAmountEditDialog.handlerOpen(info, type, textInfo,prop)
|
|
386
|
+
},
|
|
143
387
|
//更新装运采购定金
|
|
144
388
|
updateShipmentDepositAmount(shipmentId, purchaseDepositAmount) {
|
|
145
389
|
this.$prompt('本次扣减定金$', '请输入本次扣减定金', {
|
|
@@ -171,12 +415,17 @@ export default {
|
|
|
171
415
|
})
|
|
172
416
|
},
|
|
173
417
|
getPurchaseAmountTip(item, row) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
msg =
|
|
418
|
+
if(item.quoteType == 'FIXED' || !item.pointDate) {
|
|
419
|
+
return ''
|
|
420
|
+
}
|
|
421
|
+
let msg = '成交单价为'
|
|
422
|
+
msg = msg + this.getPrice(item)
|
|
423
|
+
msg = msg + ', ' + row.pointDate + '点到的期货价格为$' + row.pointPrice
|
|
178
424
|
return msg
|
|
179
425
|
},
|
|
426
|
+
getPrice(item) {
|
|
427
|
+
return (item.quoteType.includes('CMX') ? item.quoteType + '-' +item.purchaseUnitPrice : item.quoteType.includes('LME') ? item.purchaseUnitPrice + '%' + item.quoteType : '')
|
|
428
|
+
},
|
|
180
429
|
getColumnProp(row, type) {
|
|
181
430
|
var list = []
|
|
182
431
|
row?.containerDetailPurchaseAmountRespList?.forEach((containerDetail) => {
|
|
@@ -203,7 +452,32 @@ export default {
|
|
|
203
452
|
this.form = res.data
|
|
204
453
|
this.open = true
|
|
205
454
|
})
|
|
455
|
+
},
|
|
456
|
+
refresh() {
|
|
457
|
+
this.handleShow(this.form.shipmentId)
|
|
458
|
+
this.getContractFileInfoCallback && this.getContractFileInfoCallback()
|
|
206
459
|
}
|
|
207
460
|
}
|
|
208
461
|
}
|
|
209
462
|
</script>
|
|
463
|
+
<style scoped lang="scss">
|
|
464
|
+
.edit-style {
|
|
465
|
+
cursor: pointer;
|
|
466
|
+
color: #409eff;
|
|
467
|
+
}
|
|
468
|
+
.my-footer {
|
|
469
|
+
display: flex;
|
|
470
|
+
justify-content: space-between;
|
|
471
|
+
background-color: #f5f7fa;
|
|
472
|
+
padding: 10px;
|
|
473
|
+
font-weight: bold;
|
|
474
|
+
.footer-item {
|
|
475
|
+
text-align: center;
|
|
476
|
+
width:130px;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
::v-deep .cell {
|
|
480
|
+
padding: 0;
|
|
481
|
+
word-break: break-word;
|
|
482
|
+
}
|
|
483
|
+
</style>
|