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
12475393
Commit
12475393
authored
Mar 25, 2023
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓储位规则调整 / 后台入仓操作、补充、修改储位规则调整-前端
https://zentao.test.jdshangmen.com/task-view-1635.html
parent
f4bee6de
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
12 deletions
+66
-12
order.js
src/api/ecw/order.js
+10
-1
index.vue
src/components/WarehouseAreaSelect/index.vue
+12
-4
WarehouseDetail.vue
src/views/ecw/order/components/WarehouseDetail.vue
+14
-2
detail.vue
src/views/ecw/order/detail.vue
+11
-2
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+19
-3
No files found.
src/api/ecw/order.js
View file @
12475393
...
@@ -212,6 +212,15 @@ export function saveOrUpdateOrderLocation(data){
...
@@ -212,6 +212,15 @@ export function saveOrUpdateOrderLocation(data){
})
})
}
}
// 入仓修改储位
export
function
updateWarehouseInLocation
(
data
){
return
request
({
url
:
'
/order/location/update-warehouse-in-location
'
,
method
:
'
put
'
,
data
})
}
// 获取入仓修改审批单详情-审批使用
// 获取入仓修改审批单详情-审批使用
export
function
getWarehouseUpdateApprovalInfo
(
id
)
{
export
function
getWarehouseUpdateApprovalInfo
(
id
)
{
return
request
({
return
request
({
...
@@ -664,4 +673,4 @@ export function operateLogPage(params){
...
@@ -664,4 +673,4 @@ export function operateLogPage(params){
method
:
'
get
'
,
method
:
'
get
'
,
params
:
params
params
:
params
})
})
}
}
\ No newline at end of file
src/components/WarehouseAreaSelect/index.vue
View file @
12475393
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
<
script
>
<
script
>
import
{
getByWarehouseId
}
from
"
@/api/ecw/warehouseArea
"
import
{
getByWarehouseId
}
from
"
@/api/ecw/warehouseArea
"
import
{
saveOrUpdateOrderLocation
}
from
"
@/api/ecw/order
"
import
{
updateWarehouseInLocation
}
from
"
@/api/ecw/order
"
export
default
{
export
default
{
name
:
"
WarehouseAreaSelect
"
,
name
:
"
WarehouseAreaSelect
"
,
...
@@ -78,6 +78,9 @@ export default {
...
@@ -78,6 +78,9 @@ export default {
default
:
()
=>
[]
default
:
()
=>
[]
},
},
orderId
:
Number
,
orderId
:
Number
,
orderItemId
:
Number
,
// 入仓记录id
warehouseInId
:
Number
,
warehouseId
:
{
warehouseId
:
{
type
:
Number
,
type
:
Number
,
default
:
undefined
default
:
undefined
...
@@ -179,10 +182,15 @@ export default {
...
@@ -179,10 +182,15 @@ export default {
if
(
this
.
isEditing
)
{
if
(
this
.
isEditing
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
saveOrUpdateOrderLocation
({
const
data
=
this
.
inputValue
.
map
(
e
=>
{
"
orderId
"
:
this
.
orderId
,
return
{
"
orderLocationCreateReqVOList
"
:
this
.
inputValue
...
e
,
orderItemId
:
this
.
orderItemId
,
warehouseInId
:
this
.
warehouseInId
}
})
})
updateWarehouseInLocation
(
data
)
})
})
}
}
},
},
...
...
src/views/ecw/order/components/WarehouseDetail.vue
View file @
12475393
...
@@ -36,6 +36,14 @@
...
@@ -36,6 +36,14 @@
<el-table-column
:label=
"$t('入仓时间')"
prop=
"inTime"
>
<el-table-column
:label=
"$t('入仓时间')"
prop=
"inTime"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
inTime
|
parseTime
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
inTime
|
parseTime
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('储位')"
prop=
"orderLocationBackVOList"
>
<
template
slot-scope=
"{row}"
>
<warehouse-area-select
v-model=
"row.orderLocationBackVOList"
readonly
:order-id=
"orderId"
></warehouse-area-select>
</
template
>
</el-table-column>
</el-table>
</el-table>
</el-dialog>
</el-dialog>
</template>
</template>
...
@@ -43,7 +51,11 @@
...
@@ -43,7 +51,11 @@
import
{
getOrder
,
getOrderWarehouseIn
}
from
'
@/api/ecw/order
'
import
{
getOrder
,
getOrderWarehouseIn
}
from
'
@/api/ecw/order
'
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
WarehouseAreaSelect
from
"
@/components/WarehouseAreaSelect
"
export
default
{
export
default
{
components
:
{
WarehouseAreaSelect
},
filters
:
{
parseTime
},
filters
:
{
parseTime
},
props
:{
props
:{
order
:
Object
,
// order 和 orderId 二选一
order
:
Object
,
// order 和 orderId 二选一
...
@@ -73,7 +85,7 @@ export default {
...
@@ -73,7 +85,7 @@ export default {
return
this
.
$l
(
this
.
orderItem
,
'
prodTitle
'
)
+
'
-
'
+
this
.
$t
(
'
入仓记录
'
)
return
this
.
$l
(
this
.
orderItem
,
'
prodTitle
'
)
+
'
-
'
+
this
.
$t
(
'
入仓记录
'
)
}
}
},
},
created
(){
created
(){
this
.
show
=
true
this
.
show
=
true
if
(
!
this
.
order
&&
this
.
orderId
){
if
(
!
this
.
order
&&
this
.
orderId
){
...
@@ -95,4 +107,4 @@ export default {
...
@@ -95,4 +107,4 @@ export default {
}
}
}
}
}
}
</
script
>
</
script
>
\ No newline at end of file
src/views/ecw/order/detail.vue
View file @
12475393
...
@@ -200,6 +200,14 @@
...
@@ -200,6 +200,14 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('储位')"
>
<
template
slot-scope=
"{row}"
>
<warehouse-area-select
v-model=
"row.warehouseInInfoVO.orderLocationBackVOList"
readonly
:order-id=
"orderId"
></warehouse-area-select>
</
template
>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('快递单号')"
>
<el-table-column
prop=
""
:label=
"$t('快递单号')"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
expressNo
}}
{{
row
.
expressNo
}}
...
@@ -325,7 +333,7 @@
...
@@ -325,7 +333,7 @@
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<div
v-if=
"feeDetail && feeDetail.coupons && feeDetail.coupons.length"
class=
"page-title"
>
优惠详情
</div>
<div
v-if=
"feeDetail && feeDetail.coupons && feeDetail.coupons.length"
class=
"page-title"
>
优惠详情
</div>
<el-table
v-if=
"feeDetail && feeDetail.coupons && feeDetail.coupons.length"
:data=
"feeDetail.coupons"
>
<el-table
v-if=
"feeDetail && feeDetail.coupons && feeDetail.coupons.length"
:data=
"feeDetail.coupons"
>
<el-table-column
label=
"优惠ID"
prop=
"couponId"
></el-table-column>
<el-table-column
label=
"优惠ID"
prop=
"couponId"
></el-table-column>
...
@@ -369,11 +377,12 @@ import {listByIds} from '@/api/ecw/region'
...
@@ -369,11 +377,12 @@ import {listByIds} from '@/api/ecw/region'
import
WarehouseDetail
from
'
./components/WarehouseDetail
'
;
import
WarehouseDetail
from
'
./components/WarehouseDetail
'
;
import
{
getProductBrank
}
from
'
@/api/ecw/productBrank
'
import
{
getProductBrank
}
from
'
@/api/ecw/productBrank
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
import
WarehouseAreaSelect
from
"
@/components/WarehouseAreaSelect
"
export
default
{
export
default
{
name
:
"
detail
"
,
name
:
"
detail
"
,
components
:
{
components
:
{
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
PrintWarehouseReceipt
,
PrintLadingBill
,
WarehouseDetail
,
WarehouseAreaSelect
},
},
filters
:
{
filters
:
{
customsTypeFilter
(
e
,
customsTypeList
)
{
customsTypeFilter
(
e
,
customsTypeList
)
{
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
12475393
...
@@ -179,6 +179,8 @@
...
@@ -179,6 +179,8 @@
v-model=
"tableData[$index].orderLocationBackVOList"
v-model=
"tableData[$index].orderLocationBackVOList"
:readonly=
"tableData[$index].id && !edit"
:readonly=
"tableData[$index].id && !edit"
:order-id=
"orderId"
:order-id=
"orderId"
:order-item-id=
"warehousing.orderItemId"
:warehouse-in-id=
"tableData[$index].id"
:warehouse-id=
"warehouseId"
:warehouse-id=
"warehouseId"
:is-editing=
"edit"
></warehouse-area-select>
:is-editing=
"edit"
></warehouse-area-select>
</
template
>
</
template
>
...
@@ -357,6 +359,8 @@
...
@@ -357,6 +359,8 @@
v-model=
"tableData1[$index].orderLocationBackVOList"
v-model=
"tableData1[$index].orderLocationBackVOList"
:readonly=
"tableData1[$index].id && !edit"
:readonly=
"tableData1[$index].id && !edit"
:order-id=
"orderId"
:order-id=
"orderId"
:order-item-id=
"warehousing.orderItemId"
:warehouse-in-id=
"tableData1[$index].id"
:warehouse-id=
"warehouseId"
:warehouse-id=
"warehouseId"
:is-editing=
"edit"
></warehouse-area-select>
:is-editing=
"edit"
></warehouse-area-select>
</
template
>
</
template
>
...
@@ -566,6 +570,7 @@ export default {
...
@@ -566,6 +570,7 @@ export default {
}
}
}
}
},
},
methods
:
{
methods
:
{
getProductBrandPage
(
titleZh
=
undefined
)
{
getProductBrandPage
(
titleZh
=
undefined
)
{
getProductBrankPage
({
pageSize
:
20
,
titleZh
}).
then
(
r
=>
{
getProductBrankPage
({
pageSize
:
20
,
titleZh
}).
then
(
r
=>
{
...
@@ -738,14 +743,24 @@ export default {
...
@@ -738,14 +743,24 @@ export default {
(
val
===
1
?
this
.
form1
:
this
.
form
).
orderWarehouseInItemDoList
.
pop
()
(
val
===
1
?
this
.
form1
:
this
.
form
).
orderWarehouseInItemDoList
.
pop
()
},
},
handleAdd
(
val
=
0
)
{
handleAdd
(
val
=
0
)
{
let
cartonsNum
=
''
;
let
cartonsNum
=
''
if
(
val
!==
1
)
{
let
orderLocationBackVOList
=
[]
if
(
val
!==
1
)
{
// 货物入仓
let
hasCartonsNum
=
0
let
hasCartonsNum
=
0
this
.
tableData
.
forEach
(
e
=>
{
this
.
tableData
.
forEach
(
e
=>
{
hasCartonsNum
+=
e
.
cartonsNum
hasCartonsNum
+=
e
.
cartonsNum
})
})
cartonsNum
=
this
.
warehousing
.
num
-
hasCartonsNum
cartonsNum
=
this
.
warehousing
.
num
-
hasCartonsNum
orderLocationBackVOList
=
this
.
tableData
.
length
?
this
.
tableData
[
this
.
tableData
.
length
-
1
].
orderLocationBackVOList
:
[]
}
else
{
// 添加新品名
orderLocationBackVOList
=
this
.
tableData1
.
length
?
this
.
tableData1
[
this
.
tableData1
.
length
-
1
].
orderLocationBackVOList
:
[]
}
}
const
form
=
val
===
1
?
this
.
form1
:
this
.
form
const
form
=
val
===
1
?
this
.
form1
:
this
.
form
form
.
orderWarehouseInItemDoList
.
push
({
form
.
orderWarehouseInItemDoList
.
push
({
"
boxGauge1
"
:
this
.
isJiyun
?
0
:
''
,
"
boxGauge1
"
:
this
.
isJiyun
?
0
:
''
,
...
@@ -757,7 +772,8 @@ export default {
...
@@ -757,7 +772,8 @@ export default {
"
unit
"
:
"
1
"
,
"
unit
"
:
"
1
"
,
"
volume
"
:
''
,
"
volume
"
:
''
,
"
weight
"
:
''
,
"
weight
"
:
''
,
specificationType
:
'
1
'
specificationType
:
'
1
'
,
orderLocationBackVOList
})
})
}
}
},
},
...
...
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