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
f0ee0b51
Commit
f0ee0b51
authored
1 month ago
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求114 后台-集运-包裹列表-操作-特需
parent
52031a26
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
120 additions
and
0 deletions
+120
-0
consSpecialNeed.js
src/api/ecw/consSpecialNeed.js
+8
-0
dict.js
src/utils/dict.js
+1
-0
SpecialNeedsConsLook.vue
src/views/ecw/cons/components/SpecialNeedsConsLook.vue
+98
-0
index.vue
src/views/ecw/cons/index.vue
+13
-0
No files found.
src/api/ecw/consSpecialNeed.js
View file @
f0ee0b51
...
...
@@ -42,6 +42,14 @@ export function getSpecialListByConsId(id) {
})
}
// 根据包裹id特需列表
export
function
selectAllSpecialListByConsId
(
id
)
{
return
request
({
url
:
'
/ecw/cons-special-need/selectAllSpecialListByConsId?consId=
'
+
id
,
method
:
'
get
'
})
}
// 获得包裹特需分页
export
function
getConsSpecialNeedPage
(
query
)
{
return
request
({
...
...
This diff is collapsed.
Click to expand it.
src/utils/dict.js
View file @
f0ee0b51
...
...
@@ -286,6 +286,7 @@ export const DICT_TYPE = {
ECW_LANGUAGE_CODE
:
"
ecw_language_code
"
,
//语言编码
CONS_STATUS
:
"
cons_status
"
,
//包裹状态
CONS_INSPECT_STATUS
:
"
cons_inspect_status
"
,
//验货状态
CONS_SPECIAL_NEEDS_STATUS
:
"
cons_special_needs_status
"
,
//特需状态
};
/**
...
...
This diff is collapsed.
Click to expand it.
src/views/ecw/cons/components/SpecialNeedsConsLook.vue
0 → 100644
View file @
f0ee0b51
<
template
>
<div>
<el-dialog
center
width=
"80%"
:before-close=
"()=>
{$emit('update:showSpecialNeedsConsLook',false)}"
:visible.sync="showSpecialNeedsConsLook">
<div
class=
"content"
>
<h1>
{{
consNum
}}
特需-查看
</h1>
<el-row
v-for=
"item in echoList"
>
<el-col
:span=
"24"
>
{{
$t
(
"
特需
"
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ORDER_SPECIAL_NEEDS"
:value=
"item.advanceType"
/>
-
<span
v-if=
"item.deleted"
>
已删除
</span>
<dict-tag
v-else
:type=
"DICT_TYPE.CONS_SPECIAL_NEEDS_STATUS"
:value=
"item.needStatus"
/>
</el-col>
<el-col
:span=
"24"
>
{{
$t
(
"
备注
"
)
}}
:
{{
item
.
remarks
}}
</el-col>
<el-col
:span=
"24"
>
{{
$t
(
"
金额
"
)
}}
:
{{
item
.
expectedFee
}}{{
item
.
expectedFeeCurrencyName
}}
-
<dict-tag
:type=
"DICT_TYPE.PAYMENT_TYPE"
:value=
"item.payType"
/>
</el-col>
<el-col
:span=
"6"
>
{{
$t
(
"
创建人
"
)
}}
:
{{
item
.
creatorName
}}
</el-col>
<el-col
:span=
"6"
>
{{
$t
(
"
创建时间
"
)
}}
:
{{
parseTime
(
item
.
createTime
)
}}
</el-col>
<el-col
:span=
"6"
>
{{
$t
(
"
处理人
"
)
}}
:
{{
item
.
auditorName
}}
</el-col>
<el-col
:span=
"6"
>
{{
$t
(
"
处理时间
"
)
}}
:
{{
parseTime
(
item
.
auditorTime
)
}}
</el-col>
</el-row>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"$emit('update:showSpecialNeedsConsLook',false)"
>
{{
$t
(
"
取消
"
)
}}
</el-button>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
DICT_TYPE
}
from
"
@/utils/dict
"
import
{
selectAllSpecialListByConsId
}
from
"
@/api/ecw/consSpecialNeed
"
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
export
default
{
name
:
"
specialNeedsCons
"
,
props
:
{
consId
:
{
type
:
[
String
,
Number
]
},
consNum
:
[
String
,
Number
],
showSpecialNeedsConsLook
:
Boolean
},
data
()
{
return
{
DICT_TYPE
,
remarks
:
""
,
echoList
:
[],
currencyList
:
[]
}
},
methods
:
{},
watch
:
{
showSpecialNeedsConsLook
(
val
)
{
getCurrencyList
().
then
((
res
)
=>
(
this
.
currencyList
=
res
.
data
))
if
(
val
)
{
const
that
=
this
//特需回显
selectAllSpecialListByConsId
(
this
.
consId
).
then
(
r
=>
{
r
.
data
.
forEach
(
row
=>
{
row
.
expectedFeeCurrencyName
=
that
.
currencyList
.
filter
(
item
=>
item
.
id
==
row
.
expectedFeeCurrency
)[
0
][
"
titleEn
"
]
})
console
.
log
(
r
.
data
)
that
.
echoList
=
r
.
data
})
}
else
{
this
.
echoList
=
[]
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.el-row
{
margin-bottom
:
20px
;
&
:last-child
{
margin-bottom
:
0
;
}
}
.el-col
{
margin-bottom
:
10px
;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/views/ecw/cons/index.vue
View file @
f0ee0b51
...
...
@@ -169,6 +169,7 @@
v-hasPermi=
"['ecw:cons:delete']"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"transmutation(scope.row)"
>
{{
$t
(
'
转异
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"specialNeedsCons(scope.row)"
>
{{
$t
(
'
特需
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"specialNeedsConsLook(scope.row)"
>
{{
$t
(
'
特需查看
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -251,6 +252,8 @@
</el-dialog>
<Transmutation
:showException.sync=
"showException"
:id=
"id"
@
determine=
"getList"
></Transmutation>
<SpecialNeedsCons
:showSpecialNeedsCons.sync=
"showSpecialNeedsCons"
:currency=
"JSON.stringify(currencyList)"
:consId=
"id"
:consNum=
"consNum"
@
determine=
"getList"
></SpecialNeedsCons>
<SpecialNeedsConsLook
:showSpecialNeedsConsLook.sync=
"showSpecialNeedsConsLook"
:consNum=
"consNum"
:consId=
"id"
></SpecialNeedsConsLook>
</div>
</template>
...
...
@@ -263,6 +266,8 @@ import { getWarehouseList } from "@/api/ecw/warehouse";
import
{
getTradeCountryList
}
from
"
@/api/ecw/region
"
;
import
{
getRegionList
}
from
"
@/api/ecw/order
"
;
import
SpecialNeedsCons
from
"
@/views/ecw/cons/components/SpecialNeedsCons.vue
"
import
SpecialNeedsConsLook
from
"
@/views/ecw/cons/components/SpecialNeedsConsLook.vue
"
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
export
default
{
...
...
@@ -271,6 +276,7 @@ export default {
UserSelector
,
Transmutation
,
Template
,
SpecialNeedsConsLook
,
SpecialNeedsCons
},
data
()
{
...
...
@@ -333,6 +339,7 @@ export default {
},
showException
:
false
,
showSpecialNeedsCons
:
false
,
showSpecialNeedsConsLook
:
false
,
id
:
null
,
currencyList
:
[],
consNum
:
null
,
...
...
@@ -553,6 +560,12 @@ export default {
this
.
id
=
row
.
id
this
.
consNum
=
row
.
consNum
this
.
showSpecialNeedsCons
=
true
},
//特需查看
specialNeedsConsLook
(
row
)
{
this
.
id
=
row
.
id
this
.
consNum
=
row
.
consNum
this
.
showSpecialNeedsConsLook
=
true
}
}
};
...
...
This diff is collapsed.
Click to expand it.
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