Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
54da4be6
Commit
54da4be6
authored
Dec 18, 2022
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
parents
f96792c4
f20a0cee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
10 deletions
+27
-10
productPrice.js
src/api/ecw/productPrice.js
+1
-0
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+15
-6
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+2
-0
index.vue
src/views/ecw/productPrice/index.vue
+9
-4
No files found.
src/api/ecw/productPrice.js
View file @
54da4be6
...
...
@@ -48,6 +48,7 @@ export function exportProductPriceExcel(query) {
return
request
({
url
:
'
/ecw/product-price/export-excel
'
,
method
:
'
get
'
,
timeout
:
3
*
60
*
1000
,
params
:
query
,
responseType
:
'
blob
'
})
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
54da4be6
...
...
@@ -516,6 +516,7 @@ export default {
}
,
WriteOffProportion
(){
let
total
=
0
if
(
!
this
.
form
.
receiptAccountList
)
return
0
let
amountTotal
=
this
.
form
.
receiptAccountList
.
find
(
item
=>
item
.
type
==
'
total
'
).
writeOffAmount
this
.
detailed
.
forEach
(
item
=>
{
...
...
@@ -609,23 +610,23 @@ export default {
var
n
// 收款总计
var
amountList
=
[]
this
.
currencyList
.
forEach
((
item
,
index
)
=>
{
var
nairaListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
item
.
id
)
if
(
nairaListByList
.
length
>
0
){
var
discountNaira
=
nairaListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
var
n
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
item
.
id
)
n
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
item
.
id
)
n
&&
(
n
.
discountTotal
=
discountNaira
)
}
var
dollarList
=
this
.
form
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
item
.
id
)
if
(
dollarList
.
length
>
0
){
var
dollar
=
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
).
toFixed
(
2
)
if
(
n
.
discountTotal
&&
n
.
discountTotal
>
0
){
amountList
.
push
({
currencyName
:
item
.
titleZh
,
amount
:(
dollar
-
n
.
discountTotal
).
toFixed
(
2
)
}
)
if
(
n
&&
n
.
discountTotal
&&
n
.
discountTotal
>
0
){
amountList
.
push
({
currencyName
:
item
.
titleZh
,
currencyId
:
item
.
id
,
amount
:(
dollar
-
n
.
discountTotal
).
toFixed
(
2
)
}
)
}
else
{
amountList
.
push
({
currencyName
:
item
.
titleZh
,
amount
:
dollar
}
)
amountList
.
push
({
currencyName
:
item
.
titleZh
,
currencyId
:
item
.
id
,
amount
:
dollar
}
)
}
}
...
...
@@ -910,6 +911,8 @@ export default {
}
,
handleAddReceiptItem
()
{
this
.
surplusData
=
[]
// 已收
let
recepted
=
[]
this
.
detailed
.
forEach
(
item
=>
{
...
...
@@ -918,13 +921,19 @@ export default {
}
else
recepted
[
item
.
currencyId
]
=
NP
.
plus
(
recepted
[
item
.
currencyId
],
item
.
amount
)
}
)
console
.
log
(
'
rece
'
,
recepted
)
// 应收
let
collom
=
[]
this
.
form
.
receiptAccountList
.
forEach
(
item
=>
{
/*
this.form.receiptAccountList.forEach(item => {
if(item.type!='total'){
if(!collom[item.currencyId]){
collom[item.currencyId] = item.receivableAmount-item.discountTotal
}
else collom[item.currencyId] = NP.plus(collom[item.currencyId], item.receivableAmount)
}
}
) */
// 从期望收费金额中提取应收币种和金额
this
.
form
.
receiptAccountList
.
find
(
item
=>
item
.
type
==
'
total
'
).
collectionAmount
.
forEach
(
item
=>
{
collom
[
item
.
currencyId
]
=
item
.
amount
}
)
console
.
log
(
'
collom
'
,
collom
)
// if(recepted.length>collom.length)
{
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
54da4be6
...
...
@@ -498,6 +498,8 @@ export default {
this
.
form
.
material
=
this
.
warehousing
.
material
if
(
this
.
warehousing
.
brand
&&
this
.
warehousing
.
brand
!==
0
){
this
.
form
.
brand
=
this
.
warehousing
.
brand
.
toString
()
||
''
}
else
{
this
.
form
.
brand
=
''
}
this
.
handleBrandChange
(
this
.
form
.
brand
)
getWarehouseLastUpdateApprovalInfo
({
...
...
src/views/ecw/productPrice/index.vue
View file @
54da4be6
...
...
@@ -77,6 +77,9 @@
<el-button
v-if=
"!$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchBlock"
:disabled=
"multiple"
>
{{
$t
(
'
批量加入黑名单
'
)
}}
</el-button>
<el-button
v-if=
"!$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchOff"
:disabled=
"multiple"
>
{{
$t
(
'
批量下架
'
)
}}
</el-button>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
<!--指定商品-->
<el-button
v-if=
"$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchSetSingleProductPrice"
>
{{
$t
(
'
批量设置单个商品的路线
'
)
}}
</el-button>
</el-col>
...
...
@@ -711,14 +714,16 @@ export default {
params
.
pageNo
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
//
执行导出
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有
产品价格
数据项?
'
)).
then
(()
=>
{
//
c
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有数据项?
'
)).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportProductPriceExcel
(
params
);
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
${table.classComment}.xls
'
);
this
.
$download
.
excel
(
response
,
'
路线价格.xlsx
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
this
.
exportLoading
=
false
;
});
},
// 表格多选
handleSelectionChange
(
selection
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment