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
bc212d37
Commit
bc212d37
authored
Aug 07, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓特需
parent
249bafb0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
93 deletions
+79
-93
order.js
src/api/ecw/order.js
+10
-2
index.vue
src/components/OrderBaseInfo/index.vue
+18
-8
dict.js
src/utils/dict.js
+1
-0
index.vue
src/views/ecw/order/warehousing/index.vue
+50
-83
No files found.
src/api/ecw/order.js
View file @
bc212d37
...
@@ -104,13 +104,21 @@ export function feeApplicationListByOrderId(query){
...
@@ -104,13 +104,21 @@ export function feeApplicationListByOrderId(query){
})
})
}
}
// 创建特殊
// 创建特殊
export
function
specialNeedCreate
(
data
){
export
function
specialNeedCreate
(
data
){
return
request
({
return
request
({
url
:
'
ecw/order-special-need/create
'
,
url
:
'
ecw/order-special-need/create
'
,
method
:
'
post
'
,
method
:
'
post
'
,
data
:
data
,
data
:
data
,
})
})
}
}
// 创建特殊
export
function
getSpecialListByOrderId
(
orderId
){
return
request
({
url
:
'
ecw/order-special-need/getListByOrderId
'
,
method
:
'
get
'
,
params
:
{
orderId
},
})
}
// 删除特需
// 删除特需
export
function
orderSpecialNeed
(
params
){
export
function
orderSpecialNeed
(
params
){
return
request
({
return
request
({
...
...
src/components/OrderBaseInfo/index.vue
View file @
bc212d37
...
@@ -3,17 +3,19 @@
...
@@ -3,17 +3,19 @@
<el-descriptions
border
v-if=
"order.orderId"
>
<el-descriptions
border
v-if=
"order.orderId"
>
<el-descriptions-item
label=
"唛头"
>
{{
order
.
marks
}}
</el-descriptions-item>
<el-descriptions-item
label=
"唛头"
>
{{
order
.
marks
}}
</el-descriptions-item>
<el-descriptions-item
label=
"已到箱数"
>
{{
order
.
sumNum
}}
</el-descriptions-item>
<el-descriptions-item
label=
"已到箱数"
>
{{
order
.
sumNum
}}
</el-descriptions-item>
<el-descriptions-item
label=
"订单状态"
>
{{
order
.
status
}}
</el-descriptions-item>
<el-descriptions-item
label=
"订单状态"
>
<dict-tag
:type=
"DICT_TYPE.ORDER_STATUS"
:value=
"order.status"
/>
</el-descriptions-item>
<el-descriptions-item
label=
"送货时间"
>
todo
</el-descriptions-item>
<el-descriptions-item
label=
"送货时间"
>
todo
</el-descriptions-item>
<el-descriptions-item
label=
"运输方式"
>
{{
order
.
logisticsInfoDto
.
transportId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"运输方式"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"order.logisticsInfoDto.transportId"
></dict-tag>
</el-descriptions-item>
<el-descriptions-item
label=
"始发地"
>
{{
order
.
logisticsInfoDto
.
startWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"始发地"
>
{{
order
.
logisticsInfoDto
.
startWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"目的地"
>
{{
order
.
logisticsInfoDto
.
destWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"目的地"
>
{{
order
.
logisticsInfoDto
.
destWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人姓名"
>
{{
order
.
consignorVO
.
name
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人姓名"
>
{{
order
.
consignorVO
&&
order
.
consignorVO
.
name
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人公司"
>
{{
order
.
consignorVO
.
company
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人公司"
>
{{
order
.
consignorVO
&&
order
.
consignorVO
.
company
||
''
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人电话"
>
{{
order
.
consignorVO
.
phone
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人电话"
>
{{
order
.
consignorVO
&&
order
.
consignorVO
.
phone
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收货人姓名"
>
{{
order
.
consigneeVO
.
name
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收货人姓名"
>
{{
order
.
consigneeVO
&&
order
.
consigneeVO
.
name
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收货人公司"
>
{{
order
.
consigneeVO
.
company
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收货人公司"
>
{{
order
.
consigneeVO
&&
order
.
consigneeVO
.
company
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收货人电话"
>
{{
order
.
consigneeVO
.
phone
}}
</el-descriptions-item>
<el-descriptions-item
label=
"收货人电话"
>
{{
order
.
consigneeVO
&&
order
.
consigneeVO
.
phone
}}
</el-descriptions-item>
<el-descriptions-item
label=
"入仓类型"
>
{{
order
.
warehouseType
}}
</el-descriptions-item>
<el-descriptions-item
label=
"入仓类型"
>
{{
order
.
warehouseType
}}
</el-descriptions-item>
<el-descriptions-item
label=
"订单号"
>
{{
order
.
orderNo
}}
</el-descriptions-item>
<el-descriptions-item
label=
"订单号"
>
{{
order
.
orderNo
}}
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
...
@@ -21,10 +23,18 @@
...
@@ -21,10 +23,18 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
export
default
{
export
default
{
name
:
"
orderBaseInfo
"
,
name
:
"
orderBaseInfo
"
,
props
:
{
props
:
{
order
:
Object
order
:
Object
},
data
()
{
return
{
DICT_TYPE
}
}
}
}
}
</
script
>
</
script
>
...
...
src/utils/dict.js
View file @
bc212d37
...
@@ -147,6 +147,7 @@ export const DICT_TYPE = {
...
@@ -147,6 +147,7 @@ export const DICT_TYPE = {
ORDER_ERROR_TYPE
:
'
order_error_type
'
,
//订单异常类型
ORDER_ERROR_TYPE
:
'
order_error_type
'
,
//订单异常类型
ORDER_EXCEPTION_STATUS
:
'
order_exception_status
'
,
//异常订单状态
ORDER_EXCEPTION_STATUS
:
'
order_exception_status
'
,
//异常订单状态
PAYMENT_TYPE
:
'
payment_type
'
,
//收款类型
PAYMENT_TYPE
:
'
payment_type
'
,
//收款类型
WAREHOUSE_IN_STATUS
:
'
warehouse_in_status
'
,
// 入仓状态
ECASH_INIT
:
'
ecash_init
'
,
//e-cash
ECASH_INIT
:
'
ecash_init
'
,
//e-cash
FEE_TYPE
:
'
receivable_fee_type
'
,
FEE_TYPE
:
'
receivable_fee_type
'
,
...
...
src/views/ecw/order/warehousing/index.vue
View file @
bc212d37
...
@@ -40,8 +40,10 @@
...
@@ -40,8 +40,10 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"address"
prop=
"expressNo"
v-slot=
"{row}"
label=
"快递单号"
>
label=
"快递单号"
>
{{ row.warehouseInInfoVO ? row.warehouseInInfoVO.expressNo : '' }}
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"updateTime"
prop=
"updateTime"
...
@@ -51,97 +53,27 @@
...
@@ -51,97 +53,27 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"address"
prop=
"diffType"
v-slot=
"{row}"
label=
"状态"
>
label=
"状态"
>
<dict-tag
:type=
"DICT_TYPE.WAREHOUSE_IN_STATUS"
:value=
"row.warehouseInInfoVO.diffType"
/>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"address"
prop=
"address"
label=
"操作"
>
label=
"操作"
>
<
template
v-slot=
"{ row, column, $index }"
>
<
template
v-slot=
"{ row, column, $index }"
>
<el-button
v-if=
"orderItemList[$index].orderWarehouseInBackItemDoList && orderItemList[$index].orderWarehouseInBackItemDoList.length > 0"
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
追加
</el-button>
<el-button
v-if=
"orderItemList[$index]
&& orderItemList[$index]
.orderWarehouseInBackItemDoList && orderItemList[$index].orderWarehouseInBackItemDoList.length > 0"
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
追加
</el-button>
<el-button
v-else
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
入仓
</el-button>
<el-button
v-else
size=
"mini"
type=
"text"
@
click=
"handleWarehousing($index)"
>
入仓
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
>
退仓
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
>
退仓
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<h2>
特殊需求
</h2>
<h2
v-if=
"orderSpecialNeeds.length > 0"
>
特殊需求
</h2>
<el-form
ref=
"form"
:model=
"form"
label-width=
"180px"
style=
"max-width: 600px;"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"180px"
style=
"max-width: 600px;"
>
<el-form-item
label=
"套编织袋费"
>
<el-form-item
:label=
"item.label"
v-for=
"(item, index) in orderSpecialNeeds"
:key=
"item.value"
>
<el-input
v-model=
"form.a"
placeholder=
"请输入套编织袋费"
>
<el-input
v-model=
"form.orderSpecialNeedReceivableReqVoList[index].receivableMoney"
:placeholder=
"'请输入' + item.label"
>
<el-select
v-model=
"form.b"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-select
v-model=
"form.orderSpecialNeedReceivableReqVoList[index].receivableMoneyCurrency"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
>
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item
label=
"木架包装费"
>
<el-input
v-model=
"form.a"
placeholder=
"请输入木架包装费"
>
<el-select
v-model=
"form.b"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
>
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item
label=
"纸箱包装费"
>
<el-input
v-model=
"form.a"
placeholder=
"请输入纸箱包装费"
>
<el-select
v-model=
"form.b"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
>
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item
label=
"内陆运输费"
>
<el-input
v-model=
"form.a"
placeholder=
"请输入内陆运输费"
>
<el-select
v-model=
"form.b"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
>
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item
label=
"打包费"
>
<el-input
v-model=
"form.a"
placeholder=
"请输入打包费"
>
<el-select
v-model=
"form.b"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
>
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item
label=
"易碎标签"
>
<el-input
v-model=
"form.a"
placeholder=
"请输入易碎标签"
>
<el-select
v-model=
"form.b"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
>
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item
label=
"其他费用"
>
<el-input
v-model=
"form.a"
placeholder=
"请输入其他费用"
>
<el-select
v-model=
"form.b"
placeholder=
"请选择"
slot=
"append"
style=
"width: 100px"
>
<el-option
<el-option
v-for=
"item in currencyList"
v-for=
"item in currencyList"
:key=
"item.id"
:key=
"item.id"
...
@@ -152,7 +84,7 @@
...
@@ -152,7 +84,7 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<div
style=
"text-align: center"
>
<div
style=
"text-align: center
;margin-top: 15px
"
>
<el-button
type=
"primary"
>
转异
</el-button>
<el-button
type=
"primary"
>
转异
</el-button>
<el-button
type=
"primary"
@
click=
"finishVisible = true"
>
完成入仓
</el-button>
<el-button
type=
"primary"
@
click=
"finishVisible = true"
>
完成入仓
</el-button>
</div>
</div>
...
@@ -181,10 +113,17 @@
...
@@ -181,10 +113,17 @@
<
script
>
<
script
>
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
import
{
getOrder
,
getOrderWarehouseIn
,
orderWarehouseInFinish
,
rollbackApply
}
from
"
@/api/ecw/order
"
import
{
getOrder
,
getOrderWarehouseIn
,
getSpecialListByOrderId
,
orderWarehouseInFinish
,
rollbackApply
}
from
"
@/api/ecw/order
"
import
orderBaseInfo
from
"
@/components/OrderBaseInfo
"
import
orderBaseInfo
from
"
@/components/OrderBaseInfo
"
import
WarehouseAreaDialog
from
'
@/components/WarehouseAreaDialog
'
import
WarehouseAreaDialog
from
'
@/components/WarehouseAreaDialog
'
import
editDialog
from
'
@/views/ecw/order/warehousing/components/editDialog
'
import
editDialog
from
'
@/views/ecw/order/warehousing/components/editDialog
'
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
export
default
{
export
default
{
name
:
"
Warehousing
"
,
name
:
"
Warehousing
"
,
...
@@ -200,23 +139,25 @@ export default {
...
@@ -200,23 +139,25 @@ export default {
this
.
orderId
=
this
.
$route
.
query
.
id
this
.
orderId
=
this
.
$route
.
query
.
id
getOrder
(
this
.
orderId
).
then
(
r
=>
this
.
order
=
r
.
data
)
getOrder
(
this
.
orderId
).
then
(
r
=>
this
.
order
=
r
.
data
)
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
getSpecialListByOrderId
(
this
.
orderId
).
then
(
r
=>
this
.
specialList
=
r
.
data
)
}
}
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
},
},
data
()
{
data
()
{
return
{
return
{
DICT_TYPE
,
areaVisible
:
false
,
areaVisible
:
false
,
finishVisible
:
false
,
finishVisible
:
false
,
locationName
:
''
,
locationName
:
''
,
warehousingVisible
:
false
,
warehousingVisible
:
false
,
form
:
{
form
:
{
a
:
''
,
orderSpecialNeedReceivableReqVoList
:
[]
b
:
3
},
},
currencyList
:[],
currencyList
:[],
order
:
{},
order
:
{},
orderItemList
:
[],
orderItemList
:
[],
specialList
:
[],
warehousing
:
undefined
warehousing
:
undefined
}
}
},
},
...
@@ -224,6 +165,7 @@ export default {
...
@@ -224,6 +165,7 @@ export default {
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
orderWarehouseInFinish
({
orderWarehouseInFinish
({
orderSpecialNeedReceivableReqVoList
:
this
.
form
.
orderSpecialNeedReceivableReqVoList
,
"
locationName
"
:
this
.
locationName
,
"
locationName
"
:
this
.
locationName
,
"
orderId
"
:
this
.
order
.
orderId
"
orderId
"
:
this
.
order
.
orderId
}).
then
(
r
=>
{
}).
then
(
r
=>
{
...
@@ -275,6 +217,31 @@ export default {
...
@@ -275,6 +217,31 @@ export default {
getOrder
(
this
.
orderId
).
then
(
r
=>
this
.
order
=
r
.
data
)
getOrder
(
this
.
orderId
).
then
(
r
=>
this
.
order
=
r
.
data
)
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
}
}
},
orderSpecialNeeds
(
val
){
val
.
forEach
(
e
=>
{
this
.
form
.
orderSpecialNeedReceivableReqVoList
.
push
(
{
"
id
"
:
e
.
id
,
"
receivableMoney
"
:
''
,
"
receivableMoneyCurrency
"
:
3
})
})
}
},
computed
:
{
orderSpecialNeedsDict
()
{
return
this
.
$store
.
state
.
dict
.
dictDatas
.
order_special_needs
},
orderSpecialNeeds
(){
const
result
=
[]
this
.
specialList
.
forEach
(
e
=>
{
const
t
=
this
.
orderSpecialNeedsDict
.
find
(
f
=>
f
.
value
===
e
.
advanceType
)
if
(
t
)
{
result
.
push
({...
e
,
label
:
t
.
label
})
}
})
return
result
}
}
}
}
}
}
...
...
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