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
a6ef0906
Commit
a6ef0906
authored
Mar 20, 2025
by
Smile
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求 后台-集运-包裹申请验货
parent
ba2adbc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
11 deletions
+68
-11
cons.js
src/api/ecw/cons.js
+7
-0
index.vue
src/views/ecw/cons/index.vue
+61
-11
No files found.
src/api/ecw/cons.js
View file @
a6ef0906
...
...
@@ -39,6 +39,13 @@ export function updateCons(data) {
data
:
data
})
}
export
function
updateInspect
(
data
)
{
return
request
({
url
:
'
/ecw/cons/updateInspect
'
,
method
:
'
put
'
,
data
:
data
})
}
//批量签收
export
function
updateConsBatchSignOff
(
data
)
{
return
request
({
...
...
src/views/ecw/cons/index.vue
View file @
a6ef0906
...
...
@@ -270,7 +270,7 @@
</el-table-column>
<el-table-column
:label=
"$t('验货')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.
needInspect==='0'||scope.row.needInspect
===null"
>
<template
v-if=
"scope.row.
inspectStatus
===null"
>
{{
$t
(
'
未申请
'
)
}}
</
template
>
<
template
v-else
>
...
...
@@ -314,7 +314,10 @@
</el-dropdown-item>
<el-dropdown-item
size=
"mini"
type=
"text"
v-if=
"scope.row.status==1"
@
click.native=
"handleDelete(scope.row)"
>
删除
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"handleInspect(scope.row)"
>
<el-dropdown-item
v-if=
"cancleInspect(scope.row)"
@
click.native=
"handleInspectEdit(scope.row)"
>
{{
$t
(
'
验货撤销
'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"scope.row.orderNo==null&&!scope.row.hasAddApproval&&!scope.row.hasExitApproval&&(scope.row.needInspect==0||(scope.row.needInspect==1&&(scope.row.inspectStatus==0&&scope.row.inspectStatus==4)))"
@
click.native=
"handleInspect(scope.row)"
>
{{
$t
(
'
验货
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"transmutation(scope.row)"
>
{{
$t
(
'
转异
'
)
}}
...
...
@@ -355,7 +358,7 @@
</el-dropdown-item>
<!-- 退仓 -->
<el-dropdown-item
v-if=
"scope.row.status===2&&!hasAddApproval"
v-if=
"scope.row.status===2&&!
scope.row.
hasAddApproval"
@
click.native=
"
show = true
consId = scope.row.id
...
...
@@ -364,7 +367,7 @@
>
{{
$t
(
"
退仓
"
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"!hasExitApproval"
v-if=
"!
scope.row.
hasExitApproval"
@
click.native=
"
show = true
consId = scope.row.id
...
...
@@ -373,7 +376,7 @@
>
{{
$t
(
"
取消退仓
"
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"scope.row.status===2&&!hasAddApproval"
v-if=
"scope.row.status===2&&!
scope.row.
hasAddApproval"
@
click.native=
"
showReturnWarehouse = true
consId = scope.row.id
...
...
@@ -392,12 +395,20 @@
<el-dialog
:title=
"inspectTitle"
:visible.sync=
"openInspect"
width=
"500px"
append-to-body
>
<div
style=
"margin-bottom: 5px"
>
{{ $t('备注:') }}
</div>
<el-input
v-model=
"
this.
inspectRemark"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入"
/>
<el-input
v-model=
"inspectRemark"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入"
/>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"handleInspectSubmit"
>
确 定
</el-button>
<el-button
@
click=
"openInspect = false"
>
取 消
</el-button>
</div>
</el-dialog>
<el-dialog
:title=
"inspectTitle"
:visible.sync=
"openInspectExit"
width=
"500px"
append-to-body
>
<div
style=
"margin-bottom: 5px"
>
{{ $t('备注:') }}
</div>
<el-input
v-model=
"inspectRemark"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入"
/>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"handleInspectExitSubmit"
>
确 定
</el-button>
<el-button
@
click=
"openInspectExit = false"
>
取 消
</el-button>
</div>
</el-dialog>
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
...
...
@@ -499,7 +510,7 @@
</template>
<
script
>
import
{
createCons
,
deleteCons
,
exportConsExcel
,
getCons
,
getConsPage
,
updateCons
}
from
"
@/api/ecw/cons
"
;
import
{
createCons
,
deleteCons
,
exportConsExcel
,
getCons
,
getConsPage
,
updateCons
,
updateInspect
}
from
"
@/api/ecw/cons
"
;
import
Transmutation
from
"
@/views/ecw/cons/components/Transmutation.vue
"
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
UserSelector
from
"
@/components/UserSelector/index.vue
"
;
...
...
@@ -575,8 +586,10 @@ export default {
},
consIds
:
[],
inspectTitle
:
null
,
inspectRemark
:
null
,
inspectRemark
:
''
,
inspectConsId
:
null
,
openInspect
:
false
,
openInspectExit
:
false
,
consList
:
[],
dateRangeWatEtime
:
[],
warehouseList
:
[],
...
...
@@ -674,6 +687,34 @@ export default {
},
},
methods
:
{
handleInspectSubmit
(){
const
param
=
{};
param
.
inspectStatus
=
1
param
.
needInspect
=
1
param
.
id
=
this
.
inspectConsId
param
.
inspectRemark
=
this
.
inspectRemark
updateInspect
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
===
0
){
this
.
$modal
.
msgSuccess
(
"
申请成功
"
);
this
.
openInspect
=
false
;
this
.
getList
();
}
})
},
handleInspectExitSubmit
(){
const
param
=
{};
param
.
inspectStatus
=
1
param
.
needInspect
=
4
param
.
id
=
this
.
inspectConsId
param
.
inspectRemark
=
this
.
inspectRemark
updateInspect
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
===
0
){
this
.
$modal
.
msgSuccess
(
"
撤销成功
"
);
this
.
openInspectExit
=
false
;
this
.
getList
();
}
})
},
isEditable
(
item
){
debugger
if
(
item
.
status
===
1
){
...
...
@@ -758,7 +799,7 @@ export default {
}
},
getInspectionInfo
(
val
,
status
)
{
if
(
!
status
&&
status
!==
2
)
{
if
(
!
val
||
(
status
&&
status
!==
2
)
)
{
return
null
}
let
inspectionNums
=
0
;
...
...
@@ -963,12 +1004,21 @@ export default {
/** 修改按钮操作 */
handleInspect
(
row
)
{
const
id
=
row
.
id
;
this
.
inspectTitle
=
row
.
consNum
+
"
-
"
+
row
.
customerNumber
+
"
-
"
+
this
.
$t
(
"
包裹详情
"
)
this
.
inspectConsId
=
id
this
.
inspectTitle
=
row
.
consNum
+
"
-
"
+
row
.
customerNumber
+
"
-
"
+
this
.
$t
(
"
验货申请
"
)
this
.
openInspect
=
true
},
cancleInspect
(
item
){
return
item
.
inspectStatus
===
1
},
handleInspectEdit
(
row
)
{
const
id
=
row
.
id
;
this
.
inspectConsId
=
id
this
.
inspectTitle
=
row
.
consNum
+
"
-
"
+
row
.
customerNumber
+
"
-
"
+
this
.
$t
(
"
验货撤销
"
)
this
.
openInspectExit
=
true
},
/** 签收按钮操作 */
handleSign
(
row
)
{
debugger
const
id
=
row
.
id
;
this
.
$router
.
push
({
path
:
"
/cons/sign
"
,
...
...
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