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
1c3c5c0c
Commit
1c3c5c0c
authored
Nov 13, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出货阶段入仓修改和补充
parent
4176732b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
41 deletions
+98
-41
warehouse.js
src/api/ecw/warehouse.js
+18
-0
edit.vue
src/views/ecw/order/edit.vue
+36
-29
index.vue
src/views/ecw/order/index.vue
+26
-7
Warehouse.vue
src/views/ecw/order/warehousing/components/Warehouse.vue
+11
-4
index.vue
src/views/ecw/order/warehousing/index.vue
+7
-1
No files found.
src/api/ecw/warehouse.js
View file @
1c3c5c0c
...
...
@@ -150,3 +150,21 @@ export function getGuojiaAndShiAndWarehouseList(params = {}) {
params
})
}
// 出货阶段-追加申请
export
function
appendApplyWhenShipment
(
data
)
{
return
request
({
url
:
'
/order/order-warehouse-in/append-apply-when-shipment
'
,
method
:
'
post
'
,
data
})
}
// 出货阶段-入仓修改申请
export
function
updateApplyWhenShipment
(
data
)
{
return
request
({
url
:
'
/order/order-warehouse-in/update-apply-when-shipment
'
,
method
:
'
post
'
,
data
})
}
src/views/ecw/order/edit.vue
View file @
1c3c5c0c
...
...
@@ -357,10 +357,10 @@
</el-descriptions>
</el-card>
<el-card
class=
"mt-10"
>
<el-card
class=
"mt-10
right-label
"
>
<div
class=
"card-title"
slot=
"header"
>
{{$t('通用')}}
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('唛头')"
prop=
"marks"
class=
"w-500"
>
<el-form-item
:label=
"$t('唛头')"
prop=
"marks"
class=
"w-500"
>
<el-input
v-model=
"form.marks"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('单证报关')"
:span=
"2"
prop=
"customsType"
>
...
...
@@ -380,32 +380,28 @@
<!--目的港清关:选择专线空运才显示,默认选中我司
我司选中后,按钮下方显示“多票”和“单票”的操作,默认选中多票。
客户选中后,按钮下方显示“单票”的操作,默认选中,无需点击-->
<div
class=
"form-section w-500"
>
<el-form-item
:label=
"$t('目的港清关')"
>
<el-radio-group
v-model=
"form.portDestCustomsClear"
>
<el-radio
:label=
"1"
>
{{$t('我司')}}
<el-tooltip
effect=
"dark"
:content=
"$t('我司承接')"
placement=
"top"
>
<i
class=
"el-icon-question"
></i>
</el-tooltip>
</el-radio>
<el-radio
:label=
"2"
>
{{$t('客户')}}
<el-tooltip
effect=
"dark"
:content=
"$t('客户自清')"
placement=
"top"
>
<i
class=
"el-icon-question"
></i>
</el-tooltip>
</el-radio>
</el-radio-group>
</el-form-item>
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('发货方式')"
>
<el-radio-group
v-model=
"form.deliveryWay"
>
<el-radio
:label=
"1"
v-if=
"form.portDestCustomsClear == 1"
>
{{$t('多票')}}
</el-radio>
<el-radio
:label=
"2"
>
{{$t('单票')}}
</el-radio>
</el-radio-group>
</el-form-item>
</div>
<el-form-item
:label=
"$t('目的港清关')"
class=
"w-500"
>
<el-radio-group
v-model=
"form.portDestCustomsClear"
>
<el-radio
:label=
"1"
>
{{$t('我司')}}
<el-tooltip
effect=
"dark"
:content=
"$t('我司承接')"
placement=
"top"
>
<i
class=
"el-icon-question"
></i>
</el-tooltip>
</el-radio>
<el-radio
:label=
"2"
>
{{$t('客户')}}
<el-tooltip
effect=
"dark"
:content=
"$t('客户自清')"
placement=
"top"
>
<i
class=
"el-icon-question"
></i>
</el-tooltip>
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('发货方式')"
>
<el-radio-group
v-model=
"form.deliveryWay"
>
<el-radio
:label=
"1"
v-if=
"form.portDestCustomsClear == 1"
>
{{$t('多票')}}
</el-radio>
<el-radio
:label=
"2"
>
{{$t('单票')}}
</el-radio>
</el-radio-group>
</el-form-item>
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('是否控货')"
prop=
"isCargoControl"
class=
"w-500"
>
...
...
@@ -454,7 +450,7 @@
</el-form-item>
<div
v-if=
"form.isExternalWarehouse"
>
<div
v-for=
"(item, index) in form.externalWarehouseDtoList"
class=
"flex"
:key=
"index"
>
<div
class=
"w-3
0
0"
>
<div
class=
"w-3
8
0"
>
<el-form-item
:label=
"$t('装货时间')"
:prop=
"'externalWarehouseDtoList.' + index + '.estLoadingTime'"
:rules=
"{
...
...
@@ -1906,6 +1902,9 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
>
.w-380
{
width
:
380px
;
}
.card-title
{
font-size
:
18px
;
display
:
flex
;
...
...
@@ -1935,4 +1934,12 @@ export default {
color
:
red
;
}
}
::v-deep
.right-label
{
.el-form-item__label
{
width
:
150px
;
display
:
inline-flex
;
justify-content
:
flex-end
;
align-items
:
center
;
}
}
</
style
>
src/views/ecw/order/index.vue
View file @
1c3c5c0c
...
...
@@ -919,10 +919,9 @@
<
template
v-if=
"
exclude(
scope.row.status,
[0, 11, 12, 13, 14, 15, 17, 18, 32]
) && exclude(scope.row.inWarehouseState, [204, 205, 206])
(exclude(scope.row.status,[0, 11, 12, 13, 14, 15, 17, 18, 32]) && exclude(scope.row.inWarehouseState, [204, 205, 206]))
||
(scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0)
"
>
<!--
<el-divider
direction=
"vertical"
></el-divider>
-->
...
...
@@ -936,6 +935,8 @@
'ecw:order:warehouse_transfer',
'ecw:order:warehouse_arrive',
'ecw:order:stocking',
'ecw:order:shipment:warehouse_replenish',
'ecw:order:shipment:warehouse_update',
]"
>
<el-button
type=
"text"
>
{{
$t
(
"
仓库
"
)
}}
</el-button>
...
...
@@ -959,7 +960,16 @@
</
template
>
<!-- 入仓补充 -->
<
template
v-if=
"
v-if=
"scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing-add?shipment=1&id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:shipment:warehouse_replenish']"
>
{{
$t
(
"
入仓补充
"
)
}}
</el-dropdown-item
>
</
template
>
<
template
v-else-if=
"
include(
scope.row.inWarehouseState,
[201, 202, 202, 210, 202, 211, 202, 214, 215, 216]
...
...
@@ -978,7 +988,16 @@
</
template
>
<!-- 入仓修改 -->
<
template
v-if=
"
v-if=
"scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/warehousing-update?shipment=1&id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:shipment:warehouse_update']"
>
{{
$t
(
"
入仓修改
"
)
}}
</el-dropdown-item
>
</
template
>
<
template
v-else-if=
"
include(
scope.row.inWarehouseState,
[
...
...
@@ -987,7 +1006,7 @@
]
) &&
scope.row.status != 11 &&
exclude(scope.row.shipmentState, [3
14, 315, 317, 318
])
exclude(scope.row.shipmentState, [3
05, 307, 407
])
"
>
<el-dropdown-item
...
...
src/views/ecw/order/warehousing/components/Warehouse.vue
View file @
1c3c5c0c
...
...
@@ -464,7 +464,7 @@
</el-tab-pane>
</el-tabs>
<div
v-if=
"
edit && order.status !== 3
"
>
<div
v-if=
"
(edit && order.status !== 3) || isShipment
"
>
<h2>
{{ $t('审批流程') }}
</h2>
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
<!-- <div>选择的用户:{{selectedUsers}}</div>-->
...
...
@@ -534,6 +534,7 @@ import {getProductTypeList} from "@/api/ecw/productType"
import
{
addProduct
}
from
"
@/api/ecw/product
"
import
ImageAndVideoUpload
from
"
@/components/ImageAndVideoUpload/index.vue
"
import
WarehouseRecordDetail
from
"
@/views/ecw/order/warehousing/components/WarehouseRecordDetail.vue
"
import
{
appendApplyWhenShipment
,
updateApplyWhenShipment
}
from
'
@/api/ecw/warehouse
'
export
default
{
name
:
"
Warehouse
"
,
...
...
@@ -583,6 +584,10 @@ export default {
orderWarehouseInBackItemDoList
:
[]
}
}
},
isShipment
:{
type
:
Boolean
,
default
:
false
}
},
...
...
@@ -870,7 +875,8 @@ export default {
return
}
this
.
submitting
=
true
return
orderWarehouseIn
({
const
func
=
this
.
isShipment
?
appendApplyWhenShipment
:
orderWarehouseIn
return
func
({
...
this
.
form1
,
brandType
:
this
.
warehousing
.
brandType
,
orderId
:
this
.
warehousing
.
orderId
,
...
...
@@ -914,7 +920,8 @@ export default {
if
(
this
.
edit
)
{
// 入仓修改
this
.
submitting
=
true
return
orderWarehouseInUpdateApply
({
const
func
=
this
.
isShipment
?
updateApplyWhenShipment
:
orderWarehouseInUpdateApply
return
func
({
...
this
.
form
,
brandType
:
this
.
warehousing
.
brandType
,
orderId
:
this
.
warehousing
.
orderId
,
...
...
@@ -1046,7 +1053,7 @@ export default {
this
.
form1
.
table
.
splice
(
index
,
1
);
}
else
if
(
this
.
form
.
table
.
length
>
this
.
protectRowCount
)
{
this
.
form
.
table
.
splice
(
index
,
1
);
}
}
},
handleAdd
(
val
=
0
)
{
let
cartonsNum
=
''
...
...
src/views/ecw/order/warehousing/index.vue
View file @
1c3c5c0c
...
...
@@ -103,6 +103,7 @@
:order-item-b=
"orderItemList[$index]"
:title=
"$t('修改')"
:order=
"order"
:is-shipment=
"isShipment"
@
close=
"getList"
></warehouse>
<template
...
...
@@ -120,9 +121,11 @@
:order-item-b=
"orderItemList[$index]"
:title=
"$t('追加')"
:order=
"order"
:is-shipment=
"isShipment"
@
close=
"getList"
></warehouse>
<el-button
v-if=
"!isShipment"
size=
"mini"
type=
"text"
@
click=
"handleWarehousingReturn(row)"
...
...
@@ -254,7 +257,7 @@
</el-card>
<div
style=
"text-align: center; margin-top: 15px"
v-if=
"!(order.status !== 3 && isEdit)"
v-if=
"!(order.status !== 3 && isEdit)
&& !isShipment
"
>
<el-button
@
click=
"escapeBol = true"
type=
"primary"
>
{{
$t("转异")
...
...
@@ -696,6 +699,9 @@ export default {
warehouseId
()
{
return
this
.
order
?.
logisticsInfoDto
?.
startWarehouseId
;
},
isShipment
(){
return
this
.
$route
.
query
?.
shipment
==
1
}
},
};
</
script
>
...
...
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