doctor-admin-components 1.0.14-beta.26 → 1.0.14-beta.28
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
3
3
|
* @Date: 2024-08-20 10:37:30
|
|
4
4
|
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
-
* @LastEditTime: 2024-08-
|
|
5
|
+
* @LastEditTime: 2024-08-22 14:51:11
|
|
6
6
|
* @FilePath: /doctor-admin-components 公共组件/packages/src/views/biz/contractTracing/queryDeductionRecords.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
@@ -32,28 +32,28 @@
|
|
|
32
32
|
prop="purchaseDepositTotalAmount"
|
|
33
33
|
label="定金总额">
|
|
34
34
|
<template slot-scope="{ row }">
|
|
35
|
-
{{ row.purchaseDepositTotalAmount ? "$" +
|
|
35
|
+
{{ row.purchaseDepositTotalAmount ? "$" + $formatNumber(row.purchaseDepositTotalAmount, 2) : '' }}
|
|
36
36
|
</template>
|
|
37
37
|
</el-table-column>
|
|
38
38
|
<el-table-column
|
|
39
39
|
prop="purchaseDepositBalance"
|
|
40
40
|
label="上次剩余定金">
|
|
41
41
|
<template slot-scope="{ row }">
|
|
42
|
-
{{ row.purchaseDepositBalance ? "$" +
|
|
42
|
+
{{ row.purchaseDepositBalance ? "$" + $formatNumber(row.purchaseDepositBalance,2) : '' }}
|
|
43
43
|
</template>
|
|
44
44
|
</el-table-column>
|
|
45
45
|
<el-table-column
|
|
46
46
|
prop="purchaseDepositAmount"
|
|
47
47
|
label="扣减定金">
|
|
48
48
|
<template slot-scope="{ row }">
|
|
49
|
-
<span class="edit-style" v-if="row.purchaseDepositAmount" @click.stop="jumpFileManage(row)">{{ row.purchaseDepositAmount ? "$" +
|
|
49
|
+
<span class="edit-style" v-if="row.purchaseDepositAmount" @click.stop="jumpFileManage(row)">{{ row.purchaseDepositAmount ? "$" + $formatNumber(row.purchaseDepositAmount, 2) : '' }}</span>
|
|
50
50
|
</template>
|
|
51
51
|
</el-table-column>
|
|
52
52
|
<el-table-column
|
|
53
53
|
prop="purchaseDepositRemainAmount"
|
|
54
54
|
label="定金余额">
|
|
55
55
|
<template slot-scope="{ row }">
|
|
56
|
-
{{ row.purchaseDepositRemainAmount ? "$" +
|
|
56
|
+
{{ row.purchaseDepositRemainAmount ? "$" + $formatNumber(row.purchaseDepositRemainAmount, 2) : '' }}
|
|
57
57
|
</template>
|
|
58
58
|
</el-table-column>
|
|
59
59
|
</el-table>
|
|
@@ -2,7 +2,7 @@
|
|
|
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-08-
|
|
5
|
+
* @LastEditTime: 2024-08-22 15:53:26
|
|
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
|
-->
|
|
@@ -25,21 +25,32 @@
|
|
|
25
25
|
<el-table-column align="center" label="净量(MT)" prop="goodsNetWeight">
|
|
26
26
|
<template slot-scope="{ row }">
|
|
27
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' : ''">{{item.goodsNetWeight}}</span>
|
|
28
|
+
<span :style="item.goodsNetWeight != item.purchaseActualNetWeight ? 'color:red' : ''">{{$formatNumber(item.goodsNetWeight, 3)}}</span>
|
|
29
29
|
</div>
|
|
30
30
|
</template>
|
|
31
31
|
</el-table-column>
|
|
32
32
|
<el-table-column align="center" label="单价($)" width="100" prop="purchasePriceResult">
|
|
33
33
|
<template slot-scope="{ row }">
|
|
34
34
|
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
35
|
-
<
|
|
35
|
+
<el-tooltip v-if="getPurchaseAmountTip(item, row)" class="ml10" effect="dark" placement="top">
|
|
36
|
+
<template slot="content">
|
|
37
|
+
{{getPurchaseAmountTip(item, row)}}
|
|
38
|
+
</template>
|
|
39
|
+
<span>
|
|
40
|
+
<span :style="item.purchasePriceResult != item.purchaseActualUnitPrice ? 'color:red' : ''"> {{$formatNumber(item.purchasePriceResult, 2)}}
|
|
41
|
+
</span>
|
|
42
|
+
<i class="el-icon-question"></i>
|
|
43
|
+
</span>
|
|
44
|
+
</el-tooltip>
|
|
45
|
+
<span v-else :style="item.purchasePriceResult != item.purchaseActualUnitPrice ? 'color:red' : ''"> {{$formatNumber(item.purchasePriceResult, 2)}}
|
|
46
|
+
</span>
|
|
36
47
|
</div>
|
|
37
48
|
</template>
|
|
38
49
|
</el-table-column>
|
|
39
50
|
<el-table-column align="center" label="修正净重(MT)" width="130" prop="purchaseActualNetWeight">
|
|
40
51
|
<template slot-scope="{ row }">
|
|
41
52
|
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
42
|
-
<span :style="item.goodsNetWeight != item.purchaseActualNetWeight ? 'color:red' : ''">{{item.purchaseActualNetWeight}}</span>
|
|
53
|
+
<span :style="item.goodsNetWeight != item.purchaseActualNetWeight ? 'color:red' : ''">{{$formatNumber(item.purchaseActualNetWeight, 3)}}</span>
|
|
43
54
|
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(item,'purchaseActualNetWeight', '1')"/>
|
|
44
55
|
</div>
|
|
45
56
|
</template>
|
|
@@ -47,13 +58,17 @@
|
|
|
47
58
|
<el-table-column align="center" label="修正单价($)" width="130" prop="purchaseActualUnitPrice">
|
|
48
59
|
<template slot-scope="{ row }">
|
|
49
60
|
<div style="white-space: pre-line !important" v-for="(item, index) in getColumnPropArray(row)" :key="index">
|
|
50
|
-
<span :style="item.purchasePriceResult != item.purchaseActualUnitPrice ? 'color:red' : ''"> {{item.purchaseActualUnitPrice}}</span>
|
|
61
|
+
<span :style="item.purchasePriceResult != item.purchaseActualUnitPrice ? 'color:red' : ''"> {{$formatNumber(item.purchaseActualUnitPrice, 2)}}</span>
|
|
51
62
|
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(item, 'purchaseActualUnitPrice', '1')"/>
|
|
52
63
|
</div>
|
|
53
64
|
</template>
|
|
54
65
|
</el-table-column>
|
|
55
|
-
<el-table-column align="center" prop="amount" label="采购金额($)" width="130"
|
|
56
|
-
|
|
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>
|
|
57
72
|
<el-table-column align="center" label="尾款">
|
|
58
73
|
<template slot-scope="{ row }">{{ $formatNumber(row.amount - row.purchaseDepositAmount, 2) }}</template>
|
|
59
74
|
</el-table-column>
|
|
@@ -61,17 +76,17 @@
|
|
|
61
76
|
<div class="my-footer">
|
|
62
77
|
<div class="footer-item" style="width:150px;text-align:center"> 总计</div>
|
|
63
78
|
<div class="footer-item" style="width:150px;text-align:center"> 柜数:{{ form && form.containerPurchaseAmountRespList && form.containerPurchaseAmountRespList.length }}柜</div>
|
|
64
|
-
<div class="footer-item">装运总净重:<br/>{{form.totalNetWeight + 'MT'}}</div>
|
|
79
|
+
<div class="footer-item">装运总净重:<br/>{{$formatNumber(form.totalNetWeight || 0, 3) + 'MT'}}</div>
|
|
65
80
|
<div style="width:100px"></div>
|
|
66
|
-
<div class="footer-item">装运总修正净重:<br/>{{
|
|
81
|
+
<div class="footer-item">装运总修正净重:<br/>{{$formatNumber(form.actualTotalNetWeight || 0, 3) + 'MT'}}</div>
|
|
67
82
|
<div style="width:135px"></div>
|
|
68
83
|
<div class="footer-item">采购总金额:
|
|
69
84
|
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(form,'purchaseActualTotalAmount', '2')"/>
|
|
70
|
-
<br/>$ {{ form.totalPurchaseAmount }}
|
|
85
|
+
<br/>$ {{ $formatNumber(form.totalPurchaseAmount, 2) }}
|
|
71
86
|
</div>
|
|
72
87
|
<div class="footer-item">本次扣减定金:
|
|
73
88
|
<i class="el-icon-edit-outline edit-style" @click.stop="editInfo(form,'purchaseDepositAmount', '2')"/>
|
|
74
|
-
<br/>$ {{ form.purchaseDepositAmount }}
|
|
89
|
+
<br/>$ {{ $formatNumber(form.purchaseDepositAmount, 2) }}
|
|
75
90
|
</div>
|
|
76
91
|
<div class="footer-item">采购总尾款:<br/>$ {{ $formatNumber(form.totalPurchaseAmount - form.purchaseDepositAmount, 2) }}</div>
|
|
77
92
|
</div>
|
|
@@ -84,7 +99,7 @@
|
|
|
84
99
|
<el-form-item label="本次装运总修正净重:">
|
|
85
100
|
<el-tooltip class="ml10" effect="dark" content="本次一共装了多少吨的货(取修正重量汇总)" placement="top">
|
|
86
101
|
<span>
|
|
87
|
-
{{
|
|
102
|
+
{{ $formatNumber(form.actualTotalNetWeight || 0, ) + 'MT'}}
|
|
88
103
|
<i class="el-icon-question"></i>
|
|
89
104
|
</span>
|
|
90
105
|
</el-tooltip>
|
|
@@ -105,7 +120,7 @@
|
|
|
105
120
|
<el-tooltip class="ml10" effect="dark" content="采购定金发票一共已付多少金额" placement="top">
|
|
106
121
|
<span>
|
|
107
122
|
$ {{
|
|
108
|
-
|
|
123
|
+
$formatNumber(form.totalPurchaseDepositAmount || 0, 2)
|
|
109
124
|
}}
|
|
110
125
|
<i class="el-icon-question"></i>
|
|
111
126
|
</span>
|
|
@@ -116,7 +131,7 @@
|
|
|
116
131
|
<el-form-item label="总已装运净重:">
|
|
117
132
|
<el-tooltip class="ml10" effect="dark" content="该采购合同一共装了多少吨的货" placement="top">
|
|
118
133
|
<span>
|
|
119
|
-
{{form.totalNetWeight + 'MT'}}
|
|
134
|
+
{{ $formatNumber(form.totalNetWeight, 3) + 'MT'}}
|
|
120
135
|
<i class="el-icon-question"></i>
|
|
121
136
|
</span>
|
|
122
137
|
</el-tooltip>
|
|
@@ -136,9 +151,9 @@
|
|
|
136
151
|
<el-form-item label="上次剩余定金:">
|
|
137
152
|
<el-tooltip class="ml10" effect="dark" content="创建时间在此之前的装运还剩多少定金可以抵扣,不会随着上次的抵扣金额中途变更而刷新,可为负数" placement="top">
|
|
138
153
|
<span>
|
|
139
|
-
<span v-if="form.purchaseDepositBalanceAmount == null"
|
|
154
|
+
<span v-if="form.purchaseDepositBalanceAmount == null">$0</span>
|
|
140
155
|
<span v-else>
|
|
141
|
-
$ {{
|
|
156
|
+
$ {{ $formatNumber(form.purchaseDepositBalanceAmount, 2) }}
|
|
142
157
|
<span @click.stop="queryDeductionRecords" class="edit-style">点击查询扣减记录</span>
|
|
143
158
|
</span>
|
|
144
159
|
<i class="el-icon-question"></i>
|
|
@@ -150,7 +165,7 @@
|
|
|
150
165
|
<el-form-item label="签约总净重:">
|
|
151
166
|
<el-tooltip class="ml10" effect="dark" content="该采购合同一共签了多少吨的货(实时刷新合同的签约重量)" placement="top">
|
|
152
167
|
<span>
|
|
153
|
-
{{form.signedContractWeight + 'MT'}}
|
|
168
|
+
{{ $formatNumber(form.signedContractWeight || 0, 3) + 'MT'}}
|
|
154
169
|
<i class="el-icon-question"></i>
|
|
155
170
|
</span>
|
|
156
171
|
</el-tooltip>
|
|
@@ -171,9 +186,9 @@
|
|
|
171
186
|
<el-form-item label="本次扣减定金:">
|
|
172
187
|
<el-tooltip class="ml10" effect="dark" content="当前装运抵扣了多少定金" placement="top">
|
|
173
188
|
<span>
|
|
174
|
-
<span v-if="form.purchaseDepositAmount == null"
|
|
189
|
+
<span v-if="form.purchaseDepositAmount == null">$0</span>
|
|
175
190
|
<span v-else>
|
|
176
|
-
$ {{
|
|
191
|
+
$ {{ $formatNumber(form.purchaseDepositAmount || 0, 2)}}
|
|
177
192
|
</span>
|
|
178
193
|
<i class="el-icon-question"></i>
|
|
179
194
|
</span>
|
|
@@ -194,9 +209,9 @@
|
|
|
194
209
|
<el-form-item label="本次剩余定金:">
|
|
195
210
|
<el-tooltip class="ml10" effect="dark" content="本次还剩多少定金可供下次抵扣,不会随着下次的抵扣行为刷新,可为负数" placement="top">
|
|
196
211
|
<span>
|
|
197
|
-
<span v-if="form.thisRemainingDeposit == null"
|
|
212
|
+
<span v-if="form.thisRemainingDeposit == null">$0</span>
|
|
198
213
|
<span v-else>
|
|
199
|
-
$ {{
|
|
214
|
+
$ {{ $formatNumber(form.thisRemainingDeposit || 0, 2) }}
|
|
200
215
|
</span>
|
|
201
216
|
<i class="el-icon-question"></i>
|
|
202
217
|
</span>
|
|
@@ -207,9 +222,9 @@
|
|
|
207
222
|
<el-form-item label="总剩余定金:">
|
|
208
223
|
<el-tooltip class="ml10" effect="dark" content="当前时间该合同还剩余多少定金可以用于抵扣,随着每次的抵扣行为实时刷新,可为负数" placement="top">
|
|
209
224
|
<span>
|
|
210
|
-
<span v-if="form.purchaseDepositBalanceAmount == null"
|
|
225
|
+
<span v-if="form.purchaseDepositBalanceAmount == null">$0</span>
|
|
211
226
|
<span v-else>
|
|
212
|
-
$ {{
|
|
227
|
+
$ {{ $formatNumber(form.purchaseDepositBalanceAmount || 0 ,2) }}
|
|
213
228
|
</span>
|
|
214
229
|
<i class="el-icon-question"></i>
|
|
215
230
|
</span>
|
|
@@ -400,10 +415,12 @@ export default {
|
|
|
400
415
|
})
|
|
401
416
|
},
|
|
402
417
|
getPurchaseAmountTip(item, row) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
msg =
|
|
418
|
+
if(item.quoteType != '"FIXED"') {
|
|
419
|
+
return ''
|
|
420
|
+
}
|
|
421
|
+
let msg = '成交单价为'
|
|
422
|
+
msg = msg + (item.quoteType.includes('CMX') ? item.quoteType + item.purchaseUnitPrice : item.quoteType.includes('LME') ? item.purchaseUnitPrice + '%' + item.quoteType : '')
|
|
423
|
+
msg = msg + ', ' + row.pointDate + '点到的期货价格为$' + row.pointPrice
|
|
407
424
|
return msg
|
|
408
425
|
},
|
|
409
426
|
getColumnProp(row, type) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
3
3
|
* @Date: 2024-08-19 15:46:00
|
|
4
4
|
* @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
|
|
5
|
-
* @LastEditTime: 2024-08-
|
|
5
|
+
* @LastEditTime: 2024-08-22 15:26:39
|
|
6
6
|
* @FilePath: /doctor-admin-components 公共组件/packages/src/views/biz/contractTracing/shipmentPurchaseAmountEditDialog.vue
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
-->
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
v-if="dialogVisible"
|
|
13
13
|
:visible.sync="dialogVisible"
|
|
14
14
|
width="40%"
|
|
15
|
+
style="margin-top: 30vh"
|
|
15
16
|
:modal="false"
|
|
16
17
|
:before-close="handleClose">
|
|
17
18
|
<div>
|