doctor-admin-components 1.0.14-beta.6 → 1.0.14-beta.60

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