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
9d3b15fb
Commit
9d3b15fb
authored
Aug 23, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消调仓申请
parent
a1a853fb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
64 deletions
+124
-64
batchSingleApplication.js
src/api/ecw/batchSingleApplication.js
+17
-0
batchSingleApplication.vue
src/views/ecw/order/batchSingleApplication.vue
+107
-64
No files found.
src/api/ecw/batchSingleApplication.js
View file @
9d3b15fb
...
...
@@ -56,3 +56,20 @@ export function warehouseApprovalGetById(params){
params
,
})
}
//调仓-查看状态
export
function
adjustApplyStatus
(
params
){
return
request
({
url
:
'
/order/order-warehouse-in/adjust-apply-status
'
,
method
:
'
get
'
,
params
})
}
//调仓-撤销
export
function
cancelAdjustApply
(
data
){
return
request
({
url
:
'
/order/order-warehouse-in/cancel-adjust-apply
'
,
method
:
'
post
'
,
data
})
}
src/views/ecw/order/batchSingleApplication.vue
View file @
9d3b15fb
...
...
@@ -11,31 +11,31 @@
<el-table-column
label=
"订单编号"
prop=
"orderNo"
></el-table-column>
<el-table-column
label=
"唛头"
prop=
"marks"
></el-table-column>
<el-table-column
label=
"已到箱数/总箱数"
>
<template
v-slot
=
{row}>
{{
row
.
sumQuantity
||
0
}}
/
{{
row
.
totalNum
}}
<template
v-slot
=
{row}>
{{
row
.
sumQuantity
||
0
}}
/
{{
row
.
totalNum
}}
</
template
>
</el-table-column>
<el-table-column
label=
"下单统计"
>
<
template
v-slot=
"{row}"
>
<div
v-if=
"row.costVO"
>
箱数:
{{
row
.
costVO
.
totalNum
}}
{{
row
.
costVO
.
totalVolume
}}
m³
{{
row
.
costVO
.
totalWeight
}}
kg
箱数:
{{
row
.
costVO
.
totalNum
}}
{{
row
.
costVO
.
totalVolume
}}
m³
{{
row
.
costVO
.
totalWeight
}}
kg
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"入仓统计"
width=
"150"
>
<
template
v-slot=
"{row}"
>
<div>
总箱数:
{{
row
.
sumNum
||
0
}}
</div>
<div>
体积:
{{
row
.
sumVolume
||
0
}}
CBM
</div>
<div>
重量:
{{
row
.
sumWeight
||
0
}}
KG
</div>
<div>
总箱数:
{{
row
.
sumNum
||
0
}}
</div>
<div>
体积:
{{
row
.
sumVolume
||
0
}}
CBM
</div>
<div>
重量:
{{
row
.
sumWeight
||
0
}}
KG
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"入仓时间"
>
</el-table-column>
<el-table-column
label=
"运输方式"
>
<
template
v-slot
=
{row}
>
<
template
v-slot
=
{row}
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"row.transportId"
></dict-tag>
</
template
>
</el-table-column>
...
...
@@ -49,7 +49,7 @@
<div>
<div>
<p>
{{
row
.
consignorName
}}
{{
row
.
consignorName
}}
</p>
<p>
</p>
...
...
@@ -61,17 +61,17 @@
<
template
v-slot=
"{row}"
>
<div>
<p>
{{
row
.
consigneeName
}}
{{
row
.
consigneeName
}}
</p>
<p>
{{
row
.
consigneePhone
}}
{{
row
.
consigneePhone
}}
</p>
</div>
</
template
>
</el-table-column>
<el-table-column>
<
template
v-slot=
"{row}"
>
<el-button
type=
"text"
v-if=
"row.inWarehouseState === 10"
>
<el-button
@
click=
"canceLtiaoCang(row)"
type=
"text"
v-if=
"row.inWarehouseState === 10"
>
取消调仓
</el-button>
</
template
>
...
...
@@ -83,7 +83,8 @@
</div>
<div
style=
"width: 200px;"
>
<el-select
v-model=
"params.warehouseInId"
>
<el-option
v-for=
"(item ,index) in availableWarehouse"
:value=
"item.id"
:label=
"item.titleZh"
:key=
"index"
></el-option>
<el-option
v-for=
"(item ,index) in availableWarehouse"
:value=
"item.id"
:label=
"item.titleZh"
:key=
"index"
></el-option>
</el-select>
</div>
</div>
...
...
@@ -92,10 +93,10 @@
审批流程
</h1>
<div
style=
"padding: 20px"
>
<work-flow
xmlkey=
"warehouse_transfer"
v-model=
"params.copyUserId"
/>
<work-flow
xmlkey=
"warehouse_transfer"
v-model=
"params.copyUserId"
/>
</div>
<div
style=
"text-align: center"
>
<el-button
style=
"margin-right: 50px"
v-if=
"adjustmentBol"
>
审核中
</el-button>
<el-button
style=
"margin-right: 50px"
v-if=
"adjustmentBol"
>
审核中
</el-button>
<el-button
v-else
style=
"margin-right: 50px"
@
click=
"submit"
:disabled=
"isSubmit"
>
提交申请
</el-button>
<el-button
@
click=
"$emit('update:dialogVisible',false)"
>
取消
</el-button>
</div>
...
...
@@ -107,6 +108,7 @@
<
script
>
import
{
DICT_TYPE
,
getDictDatas
}
from
"
@/utils/dict
"
;
import
{
adjustApplyStatus
,
cancelAdjustApply
,
ecwOrderList
,
orderWarehouseInAdjustApply
,
warehouseAdjustmentList
,
...
...
@@ -116,87 +118,128 @@ import warehouseDetails from "@/views/ecw/order/components/warehouseDetails";
import
{
getOrderPage
}
from
"
@/api/ecw/order
"
;
import
workFlow
from
"
@/components/WorkFlow
"
;
import
Template
from
"
@/views/cms/template
"
;
export
default
{
name
:
"
batchSingleApplication
"
,
props
:{
orderList
:
[
String
,
Number
],
dialogVisible
:{
type
:
Boolean
,
default
:
false
,
props
:
{
orderList
:
[
String
,
Number
],
dialogVisible
:
{
type
:
Boolean
,
default
:
false
,
}
},
components
:{
components
:
{
Template
,
warehouseDetails
,
workFlow
},
watch
:{
dialogVisible
(
val
){
if
(
val
){
getOrderPage
({
orderIdList
:
this
.
orderList
}).
then
(
r
=>
{
this
.
list
=
r
.
data
.
list
warehouseAdjustmentList
({
id
:
this
.
list
[
0
].
startWarehouseId
}).
then
(
r
=>
this
.
availableWarehouse
=
r
.
data
)
})
watch
:
{
dialogVisible
(
val
)
{
if
(
val
)
{
this
.
getOrderListFn
()
}
else
{
this
.
params
=
{
orderIds
:
undefined
,
warehouseInId
:
undefined
,
warehouseOutId
:
undefined
,
copyUserId
:
[],
}
}
}
},
computed
:{
isSubmit
(){
computed
:
{
isSubmit
()
{
let
flag
=
true
;
if
(
this
.
list
.
length
===
1
&&
this
.
list
[
0
].
status
===
5
)
{
if
(
this
.
list
.
length
===
1
&&
this
.
list
[
0
].
status
===
5
)
{
flag
=
false
}
else
{
}
else
{
let
l
=
this
.
list
.
map
(
e
=>
e
.
startWarehouseId
)
if
(
this
.
list
.
every
(
e
=>
e
.
status
===
5
)
&&
[...
new
Set
(
l
)].
length
===
1
)
flag
=
false
if
(
this
.
list
.
every
(
e
=>
e
.
status
===
5
)
&&
[...
new
Set
(
l
)].
length
===
1
)
flag
=
false
}
return
flag
;
},
adjustmentBol
(){
adjustmentBol
()
{
return
this
.
list
.
some
(
e
=>
e
.
inWarehouseState
===
10
)
}
},
data
(){
data
()
{
return
{
list
:[],
selectedUsers
:[],
availableWarehouse
:[],
list
:
[],
selectedUsers
:
[],
availableWarehouse
:
[],
DICT_TYPE
,
departureWarehouse
:
undefined
,
adjustment
:
undefined
,
params
:{
orderIds
:
undefined
,
warehouseInId
:
undefined
,
departureWarehouse
:
undefined
,
adjustment
:
undefined
,
params
:
{
orderIds
:
undefined
,
warehouseInId
:
undefined
,
warehouseOutId
:
undefined
,
copyUserId
:[],
copyUserId
:
[],
},
}
},
methods
:{
submit
(){
methods
:
{
getOrderListFn
()
{
getOrderPage
({
orderIdList
:
this
.
orderList
}).
then
(
r
=>
{
this
.
list
=
r
.
data
.
list
warehouseAdjustmentList
({
id
:
this
.
list
[
0
].
startWarehouseId
}).
then
(
r
=>
this
.
availableWarehouse
=
r
.
data
)
})
},
submit
()
{
let
p
=
this
.
list
.
map
(
e
=>
e
.
orderId
).
join
(
'
,
'
);
this
.
params
.
orderIds
=
p
;
this
.
params
.
warehouseOutId
=
this
.
list
[
0
].
startWarehouseId
;
this
.
params
.
orderNo
=
this
.
list
[
0
].
orderNo
orderWarehouseInAdjustApply
(
this
.
params
).
then
(
r
=>
{
if
(
r
.
code
===
0
)
{
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
orderWarehouseInAdjustApply
(
this
.
params
).
then
(
r
=>
{
if
(
r
.
code
===
0
)
{
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
this
.
$message
.
success
(
'
调仓成功
'
);
}
})
},
async
canceLtiaoCang
(
row
)
{
let
res
=
await
adjustApplyStatus
({
orderId
:
row
.
orderId
})
if
(
res
.
data
.
isBatch
)
{
this
.
$message
.
warning
(
'
批量提提交请耐心等待
'
)
}
else
{
this
.
$prompt
(
'
请问您是否要取消调仓?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
,
}).
then
((
val
)
=>
{
cancelAdjustApply
({
orderId
:
row
.
orderId
,
reason
:
val
.
value
}).
then
(
r
=>
{
if
(
r
.
code
===
0
)
{
this
.
$message
({
type
:
'
success
'
,
message
:
'
取消调仓成功!
'
});
this
.
getOrderListFn
()
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消
'
});
});
}
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.batch-single-application
{
.batch-single-application
{
padding
:
20px
;
box-sizing
:
border-box
;
.title
{
.title
{
font-weight
:
600
;
text-align
:
left
;
}
}
.my-process-designer
{
height
:
calc
(
100vh
-
200px
);
}
...
...
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