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
1cb3d990
Commit
1cb3d990
authored
Nov 09, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c9e3a22a
0cbf8310
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
173 additions
and
23 deletions
+173
-23
index.vue
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
+15
-2
warehouseDetail.vue
...ws/ecw/box/shippingSea/nodePage/tally/warehouseDetail.vue
+104
-0
index.vue
src/views/ecw/currencyEcash/index.vue
+26
-11
voucher.vue
src/views/ecw/financial/voucher.vue
+0
-1
specialNeeds.vue
src/views/ecw/order/components/specialNeeds.vue
+0
-1
warehouseDetails.vue
src/views/ecw/order/components/warehouseDetails.vue
+21
-1
feeApplication.vue
src/views/ecw/order/feeApplication.vue
+0
-1
index.vue
src/views/ecw/order/index.vue
+1
-1
Commission.vue
src/views/ecw/order/special/Commission.vue
+6
-5
No files found.
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
View file @
1cb3d990
...
...
@@ -47,9 +47,9 @@
</el-table-column>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"num"
>
<
template
slot-scope=
"scope"
>
<
div
>
<
el-link
type=
"primary"
@
click.native=
"showWarehouseLogs(scope.row)"
>
{{
scope
.
row
.
num
}}
</
div
>
</
el-link
>
<div
style=
"color:blue;fontWeight:bold;"
>
{{
scope
.
row
.
multiSpecification
===
true
?
'
(多规格)
'
:
''
}}
</div>
...
...
@@ -93,6 +93,7 @@
<el-dialog
custom-class=
"shipping-dialog"
:title=
"dialogConfig.title"
:visible.sync=
"dialogConfig.dialogVisible"
:fullscreen=
"dialogConfig.fullscreen"
:width=
"dialogConfig.width"
:modal-append-to-body=
false
append-to-body
>
<batchTally
v-if=
"dialogConfig.dialogVisible"
v-bind=
"$attrs"
@
closeDialog=
"closeDialog"
:type=
"dialogConfig.type"
:tallyRows=
"tallyRows"
:shipmentObj=
"shipmentObj"
/>
</el-dialog>
<warehouse-detail
:order=
"order"
:orderItemId=
"showWarehouseInItemId"
v-if=
"showWarehouseInItemId"
@
close=
"showWarehouseInItemId=null"
/>
</div>
</template>
...
...
@@ -100,18 +101,23 @@
import
batchTally
from
"
./batchTally.vue
"
;
import
{
getTallyList
,
tallyRemove
,
tallyCommit
}
from
"
@/api/ecw/boxSea
"
;
import
{
formatDate
,
serviceMsg
}
from
"
../../utils
"
;
import
WarehouseDetail
from
"
./warehouseDetail
"
;
import
{
getOrder
}
from
"
@/api/ecw/order
"
;
export
default
{
name
:
"
tally
"
,
inheritAttrs
:
false
,
components
:
{
batchTally
,
WarehouseDetail
,
},
props
:
{
shipmentObj
:
Object
,
},
data
()
{
return
{
showWarehouseInItemId
:
null
,
order
:
null
,
tallyList
:
[],
// 理货数据
tallyRows
:
[],
...
...
@@ -245,6 +251,13 @@ export default {
});
});
},
// 显示入仓记录
showWarehouseLogs
(
row
)
{
getOrder
(
row
.
orderId
).
then
((
response
)
=>
{
this
.
order
=
response
.
data
;
this
.
showWarehouseInItemId
=
row
.
orderItemId
;
});
},
},
computed
:
{
/* 获取仓库 */
...
...
src/views/ecw/box/shippingSea/nodePage/tally/warehouseDetail.vue
0 → 100644
View file @
1cb3d990
<
template
>
<!-- 订单获取入仓记录 -->
<el-dialog
:title=
"title"
visible
:before-close=
"closeDialog"
:close-on-click-modal=
"false"
width=
"1000px"
append-to-body
>
<el-table
v-if=
"warehouseItem && warehouseItem.orderWarehouseInBackItemDoList"
:data=
"warehouseItem.orderWarehouseInBackItemDoList"
>
<el-table-column
type=
"index"
:label=
"$t('序号')"
/>
<el-table-column
:label=
"$t('箱数')"
prop=
"cartonsNum"
/>
<el-table-column
:label=
"$t('入仓类型')"
prop=
"cartonsNum"
>
<template
slot-scope=
"
{row}">
<dict-tag
:type=
"DICT_TYPE.WAREHOUSING_SPECIFICATION_TYPE"
:value=
"row.specificationType"
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('包装类型')"
prop=
"unit"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
:value=
"row.unit"
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('长')"
prop=
"boxGauge"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
boxGauge
.
split
(
'
*
'
)[
0
]
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('宽')"
prop=
"boxGauge"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
boxGauge
.
split
(
'
*
'
)[
1
]
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('高')"
prop=
"boxGauge"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
boxGauge
.
split
(
'
*
'
)[
2
]
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('体积') + '(m³)'"
prop=
"volume"
/>
<el-table-column
:label=
"$t('重量') + '(kg)'"
prop=
"weight"
/>
<el-table-column
:label=
"$t('数量(个)')"
prop=
"quantityAll"
/>
<el-table-column
:label=
"$t('快递单号')"
prop=
"expressNo"
/>
<el-table-column
:label=
"$t('入仓时间')"
prop=
"inTime"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
inTime
|
parseTime
}}
</
template
>
</el-table-column>
</el-table>
</el-dialog>
</template>
<
script
>
import
{
getOrder
,
getOrderWarehouseIn
}
from
"
@/api/ecw/order
"
;
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
parseTime
}
from
"
@/utils/ruoyi
"
;
export
default
{
filters
:
{
parseTime
},
props
:
{
order
:
Object
,
// order 和 orderId 二选一
orderId
:
Number
,
orderItemId
:
Number
,
},
data
()
{
return
{
orderDetail
:
null
,
warehouseList
:
null
,
};
},
computed
:
{
info
()
{
return
this
.
orderDetail
||
this
.
order
;
},
orderItem
()
{
if
(
!
this
.
info
)
return
null
;
return
this
.
info
.
orderItemVOList
.
find
(
(
item
)
=>
item
.
orderItemId
==
this
.
orderItemId
);
},
warehouseItem
()
{
if
(
!
this
.
warehouseList
)
return
[];
return
(
this
.
warehouseList
.
find
(
(
item
)
=>
item
.
orderItemId
==
this
.
orderItemId
)
||
[]
);
},
title
()
{
if
(
!
this
.
orderItem
)
return
"
-
"
;
return
this
.
$l
(
this
.
orderItem
,
"
prodTitle
"
)
+
"
-
"
+
this
.
$t
(
"
入仓记录
"
);
},
},
created
()
{
this
.
show
=
true
;
if
(
!
this
.
order
&&
this
.
orderId
)
{
getOrder
(
this
.
orderId
).
then
((
res
)
=>
{
this
.
orderDetail
=
res
.
data
;
});
}
this
.
getOrderWarehouseIn
();
},
methods
:
{
closeDialog
()
{
this
.
show
=
false
;
this
.
$emit
(
"
close
"
);
},
getOrderWarehouseIn
()
{
getOrderWarehouseIn
(
this
.
info
.
orderId
).
then
((
res
)
=>
{
this
.
warehouseList
=
res
.
data
;
});
},
},
};
</
script
>
src/views/ecw/currencyEcash/index.vue
View file @
1cb3d990
...
...
@@ -15,8 +15,8 @@
<el-table-column
:label=
"$t('金额')"
align=
"center"
prop=
"fromFee"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
fromFee
}}
<dict-tag
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
:value=
"scope.row.fromCurrency"
/>
<!--
{{
scope
.
row
.
fromCurrency
|
currencyDataFilter
(
currencyDictDatas
)
}}
-->
{{
currencyName
(
scope
.
row
.
fromCurrency
)
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -29,8 +29,8 @@
</el-table-column>
<el-table-column
:label=
"$t('兑换货币类型')"
align=
"center"
prop=
"toCurrency"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
:value=
"scope.row.toCurrency"
/>
<!--
<span>
{{
scope
.
row
.
toCurrency
|
currencyDataFilter
(
currencyDictDatas
)
}}
</span>
-->
{{
currencyName
(
scope
.
row
.
toCurrency
)
}}
</
template
>
</el-table-column>
</el-table>
...
...
@@ -83,11 +83,10 @@
<el-input
v-model=
"form.fromFee"
:placeholder=
"$t('请输入金额')"
/>
</el-form-item>
<el-form-item
:label=
"$t('货币类型')"
prop=
"fromCurrency"
>
<dict-selector
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
v-model=
"form.fromCurrency"
/>
<!-- <el-select v-model="form.fromCurrency" clearable>
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)" :key="parseInt(dict.value)"
:label="$l(dict, 'label')" :value="parseInt(dict.value)"/>
</el-select> -->
<el-select
v-model=
"form.fromCurrency"
clearable
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"$l(item, 'title')"
:value=
"item.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('兑换金额')"
prop=
"toFee"
>
<el-input
v-model=
"form.toFee"
:placeholder=
"$t('请输入兑换金额')"
/>
...
...
@@ -97,8 +96,8 @@
<!-- </el-form-item>-->
<el-form-item
:label=
"$t('兑换货币类型')"
prop=
"toCurrency"
>
<el-select
v-model=
"form.toCurrency"
clearable
>
<el-option
v-for=
"
dict in this.getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)"
:key=
"parseInt(dict.value)
"
:label=
"
dict.label"
:value=
"parseInt(dict.value)
"
/>
<el-option
v-for=
"
item in currencyList"
:key=
"item.id
"
:label=
"
$l(item, 'title')"
:value=
"item.id
"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"开始时间(尼日利亚)"
prop=
"nrlyStartTime"
>
...
...
@@ -148,7 +147,8 @@
import
{
CommonStatusEnum
}
from
"
@/utils/constants
"
;
import
{
changeUserStatus
}
from
"
@/api/system/user
"
;
import
{
DICT_TYPE
,
getDictDatas
,
getDictData
}
from
"
@/utils/dict
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
arrryToKeyedObjectBy
}
from
'
@/utils/index
'
export
default
{
name
:
"
CurrencyEcash
"
,
components
:
{},
...
...
@@ -202,12 +202,27 @@
// 表单校验
rules
:
{},
/* statusDictDatas: getDictDatas(DICT_TYPE.COMMON_STATUS), */
/* currencyDictDatas: getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE), */
/* ecashDatas: getDictDatas(DICT_TYPE.ECASH_INIT), */
currencyList
:
[]
};
},
computed
:{
currencyMap
(){
return
arrryToKeyedObjectBy
(
this
.
currencyList
,
'
id
'
)
},
currencyName
(){
return
id
=>
{
let
obj
=
this
.
currencyMap
[
id
]
if
(
obj
)
return
this
.
$l
(
obj
,
'
title
'
)
return
this
.
$t
(
'
未知
'
)
}
}
},
created
()
{
this
.
getList
();
getCurrencyList
().
then
(
res
=>
{
this
.
currencyList
=
res
.
data
})
},
methods
:
{
/** 查询列表 */
...
...
src/views/ecw/financial/voucher.vue
View file @
1cb3d990
...
...
@@ -136,7 +136,6 @@
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"
币种
"
align
=
"
center
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.COMMISSION_CURRENCY_TYPE
"
:
value
=
"
scope.row.currencyId
"
/>
<
/template
>
<
/el-table-column> --
>
<!--
<
el
-
table
-
column
label
=
"
汇率
"
align
=
"
center
"
prop
=
"
totalAmount
"
/>
-->
...
...
src/views/ecw/order/components/specialNeeds.vue
View file @
1cb3d990
...
...
@@ -14,7 +14,6 @@
<el-form-item
v-for=
"(item,index) in this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)"
v-if=
"advanceType.indexOf(item.value) > -1"
:key=
"item.value"
:label=
"item.label + '预计金额'"
>
<el-input
style=
"width: 300px;"
v-model=
"specialNeedsList[index].transFee"
>
<div
style=
"width: 100px;"
slot=
"append"
>
<!--
<dict-selector
v-model=
"specialNeedsList[index].transCurrency"
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
></dict-selector>
-->
<el-select
v-model=
"specialNeedsList[index].transCurrency"
>
<el-option
v-for=
"item in JSON.parse(currency)"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
...
...
src/views/ecw/order/components/warehouseDetails.vue
View file @
1cb3d990
...
...
@@ -123,7 +123,8 @@
<div>
<dict-tag
:type=
"DICT_TYPE.FEE_TYPE"
:value=
"FeeDetails.feeType"
/>
,
{{FeeDetails.applicationFee}}
<dict-tag
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
:value=
"FeeDetails.applicationFeeCurrency"
/>
,
<!-- <dict-tag :type="DICT_TYPE.COMMISSION_ CURRENCY_TYPE" :value="FeeDetails.applicationFeeCurrency" />, -->
{{currencyName(FeeDetails.applicationFeeCurrency)}}
<dict-tag
:value=
"FeeDetails.payType"
:type=
"DICT_TYPE.PAYMENT_TYPE"
></dict-tag>
,
【{{FeeDetails.remarks}}】
</div>
...
...
@@ -163,10 +164,14 @@ import {
getOrderPage
,
getWarehouseUpdateApprovalInfo
}
from
'
@/api/ecw/order
'
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
;
import
Template
from
"
@/views/cms/template
"
;
import
{
getSupplierPage
}
from
"
@/api/ecw/supplier
"
;
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
arrryToKeyedObjectBy
}
from
'
@/utils/index
'
export
default
{
components
:
{
Template
},
props
:{
...
...
@@ -195,7 +200,22 @@ export default {
prodName
:
''
}
},
computed
:{
currencyMap
(){
return
arrryToKeyedObjectBy
(
this
.
currencyList
,
'
id
'
)
},
currencyName
(){
return
id
=>
{
let
obj
=
this
.
currencyMap
[
id
]
if
(
obj
)
return
this
.
$l
(
obj
,
'
title
'
)
return
this
.
$t
(
'
未知
'
)
}
}
},
created
()
{
getCurrencyList
().
then
(
res
=>
{
this
.
currencyList
=
res
.
data
})
getChannelList
().
then
(
r
=>
this
.
channelList
=
r
.
data
);
warehouseAreaPositionList
().
then
(
r
=>
this
.
warehouseList
=
r
.
data
)
if
(
this
.
type
===
2
){
...
...
src/views/ecw/order/feeApplication.vue
View file @
1cb3d990
...
...
@@ -31,7 +31,6 @@
<el-select
:disabled=
"isModify[forbidden(scope.row)]"
v-model=
"scope.row.applicationFeeCurrency"
>
<el-option
v-for=
"item in JSON.parse(currencys)"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
<!--
<dict-selector
:disabled=
"isModify[forbidden(scope.row)]"
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
v-model=
"scope.row.applicationFeeCurrency"
/>
-->
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('付款类型')"
>
...
...
src/views/ecw/order/index.vue
View file @
1cb3d990
...
...
@@ -238,7 +238,7 @@
</
template
>
<!-- 合单,拆单 -->
<
template
v-if=
" (scope.row.status < 12 || (scope.row.status == 12 && scope.row.shipmentState == 314)) && !scope.row.abnormalState && scope.row.status"
>
<
template
v-if=
" (scope.row.status < 12 || (scope.row.status == 12 && scope.row.shipmentState == 314)) && !scope.row.abnormalState && scope.row.status
> 3
"
>
<el-dropdown-item
@
click.native=
"$router.push(`/order/singleApply?orderNo=$
{scope.row.orderNo}`)" >
{{
$t
(
'
合单申请
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$router.push(`/order/splitApply?orderId=$
{scope.row.orderId}`)" >
{{
$t
(
'
拆单申请
'
)
}}
</el-dropdown-item>
</
template
>
...
...
src/views/ecw/order/special/Commission.vue
View file @
1cb3d990
...
...
@@ -44,13 +44,13 @@
<!--
明佣或者明佣
+
暗佣才显示
-->
<
el
-
form
-
item
label
=
"
明佣佣金
"
v
-
if
=
"
form.commissionType == 1 || form.commissionType == 3
"
>
<
el
-
input
v
-
model
.
number
=
"
form.lightCommissionAmount
"
placeholder
=
""
class
=
"
w-100
"
><
/el-input
>
<
el
-
input
v
-
model
=
"
form.lightCommissionAmount
"
type
=
"
number
"
placeholder
=
""
class
=
"
w-100
"
><
/el-input
>
{{
currencyMap
[
orderItem
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
orderItem
.
seaFreightVolume
]
}}
<
/el-form-item
>
<!--
明佣
+
暗佣才显示
-->
<
el
-
form
-
item
label
=
"
暗佣佣金
"
v
-
if
=
"
form.commissionType == 3
"
prop
=
"
shadeCommissionAmount
"
:
rules
=
"
{type: 'number', max: originPrice.toNumber(), message: '暗佣设置错误', trigger: 'blur'
}
"
>
<
el
-
input
v
-
model
.
number
=
"
form.shadeCommissionAmount
"
placeholder
=
"
"
class
=
"
w-100
"
><
/el-input
>
<
el
-
input
v
-
model
=
"
form.shadeCommissionAmount
"
placeholder
=
""
type
=
"
number
"
class
=
"
w-100
"
><
/el-input
>
{{
currencyMap
[
orderItem
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
orderItem
.
seaFreightVolume
]
}}
<
/el-form-item
>
...
...
@@ -180,17 +180,18 @@ export default {
// 原价
originPrice
(){
if
(
!
this
.
form
.
orgFreight
)
return
0
return
Decimal
(
this
.
form
.
orgFreight
).
minus
(
this
.
form
.
orgLightCommissionAmount
||
0
)
return
Decimal
(
this
.
form
.
orgFreight
).
minus
(
parseFloat
(
this
.
form
.
orgLightCommissionAmount
)
||
0
)
}
,
// 成本价
costPrice
(){
if
(
!
this
.
originPrice
)
return
0
return
Decimal
(
this
.
originPrice
).
minus
(
this
.
form
.
shadeCommissionAmount
||
0
)
return
Decimal
(
this
.
originPrice
).
minus
(
parseFloat
(
this
.
form
.
shadeCommissionAmount
)
||
0
)
}
,
// 销售价
salePrice
(){
if
(
!
this
.
originPrice
)
return
0
return
Decimal
(
this
.
originPrice
).
plus
(
this
.
form
.
lightCommissionAmount
||
0
)
return
Decimal
(
this
.
originPrice
).
plus
(
parseFloat
(
this
.
form
.
lightCommissionAmount
)
||
0
)
}
}
,
...
...
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