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
c6138b95
Commit
c6138b95
authored
Jul 12, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出货管理列表
parent
717da4a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
145 additions
and
64 deletions
+145
-64
dict.js
src/utils/dict.js
+1
-0
index.vue
src/views/ecw/box/index.vue
+144
-64
No files found.
src/utils/dict.js
View file @
c6138b95
...
...
@@ -10,6 +10,7 @@ export const DICT_TYPE = {
COMMON_STATUS
:
'
common_status
'
,
AUDIT_STATUS
:
'
audit_status
'
,
ADVANCE_STATUS
:
'
advance_status
'
,
BOX_SHIPMENT_STATUS
:
'
box_shipment_status
'
,
// ========== SYSTEM 模块 ==========
SYSTEM_USER_SEX
:
'
system_user_sex
'
,
...
...
src/views/ecw/box/index.vue
View file @
c6138b95
...
...
@@ -3,46 +3,58 @@
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"主键ID"
prop=
"id"
>
<el-input
v-model=
"queryParams.id"
placeholder=
"请输入主键ID"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"自编号"
prop=
"orderNo"
>
<el-input
v-model=
"queryParams.orderNo"
placeholder=
"请输入自编号"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"柜号"
prop=
"cubNo"
>
<el-input
v-model=
"queryParams.cubNo"
placeholder=
"请输入柜号"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"柜型"
prop=
"
boxType
"
>
<el-select
v-model=
"queryParams.
boxType
"
placeholder=
"请选择柜型"
>
<el-option
v-for=
"item in
CabinetPage
"
:label=
"item.name"
:value=
"item.name"
:key=
"item.id"
></el-option>
<el-form-item
label=
"柜型"
prop=
"
cabinetId
"
>
<el-select
v-model=
"queryParams.
cabinetId
"
placeholder=
"请选择柜型"
>
<el-option
v-for=
"item in
cabinetList
"
:label=
"item.name"
:value=
"item.name"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"发货状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择发货状态"
clearable
size=
"small"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.BOX_SHIPMENT_STATUS)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"始发地"
prop=
"departureId"
>
<el-select
v-model=
"queryParams.departureId"
placeholder=
"请选择始发地"
>
<el-form-item
label=
"始发地"
prop=
"startWarehouseId"
>
<el-select
v-model=
"queryParams.startWarehouseId"
placeholder=
"请选择始发地"
>
<el-option
v-for=
"item in expoerCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"目的地"
prop=
"objectiveId"
>
<el-select
v-model=
"queryParams.objectiveId"
placeholder=
"请选择始发地"
>
<el-form-item
label=
"目的地"
prop=
"destWarehouseId"
>
<el-select
v-model=
"queryParams.destWarehouseId"
placeholder=
"请选择目的地"
>
<el-option
v-for=
"item in importCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"运输方式"
prop=
"transportId"
>
<el-select
v-model=
"queryParams.transportId"
placeholder=
"请选择运输方式"
clearable
size=
"small
"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
<el-form-item
label=
""
prop=
"date
"
>
<el-select
v-model=
"queryParams.dateType"
placeholder=
"请选择时间类型"
clearable
size=
"small"
>
<el-option
v-for=
"item in dateTypes"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"创建时间"
>
<el-date-picker
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
<el-form-item
label=
""
>
<el-date-picker
v-model=
"queryParams.dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
/>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"boxStatus"
>
<el-select
v-model=
"queryParams.boxStatus"
placeholder=
"请选择状态"
clearable
size=
"small"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.BOX_SHIPMENT_STATUS)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"运输方式"
prop=
"transportType"
>
<el-select
v-model=
"queryParams.transportType"
placeholder=
"请选择运输方式"
clearable
size=
"small"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
...
...
@@ -53,7 +65,7 @@
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['shipment:box:create']"
>
新增
v-hasPermi=
"['shipment:box:create']"
>
出货安排
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
...
...
@@ -67,29 +79,37 @@
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"主键ID"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"自编号"
align=
"center"
prop=
"orderNo"
/>
<el-table-column
label=
"柜号"
align=
"center"
prop=
"cubNo"
/>
<el-table-column
label=
"柜型"
align=
"center"
prop=
"
boxType
"
>
<template
v-model=
"queryParams.boxTy
pe"
>
<
el-option
v-for=
"item in CabinetPage"
:label=
"item.name"
:value=
"item.name"
:key=
"item.id"
></el-optio
n>
<el-table-column
label=
"柜型"
align=
"center"
prop=
"
cabinetId
"
>
<template
slot-scope=
"sco
pe"
>
<
span>
{{
getCabinetName
(
scope
.
row
.
cabinetId
)
}}
</spa
n>
</
template
>
</el-table-column>
<el-table-column
label=
"
发货状态"
align=
"center"
prop=
"status
"
>
<el-table-column
label=
"
运输方式"
align=
"center"
prop=
"transportType
"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.
BOX_SHIPMENT_STATUS"
:value=
"scope.row.status
"
/>
<dict-tag
:type=
"DICT_TYPE.
ECW_TRANSPORT_TYPE"
:value=
"scope.row.transportType
"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"始发地"
align=
"center"
prop=
"departureId"
/>
<el-table-column
label=
"目的地"
align=
"center"
prop=
"objectiveId"
/>
<el-table-column
label=
"运输方式"
align=
"center"
prop=
"transportId"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"scope.row.transportId"
/>
</
template
>
<el-table-column
label=
"出货渠道"
align=
"center"
prop=
"shippingChannelId"
>
<
template
slot-scope=
"scope"
>
<span>
{{
getShipChannelName
(
scope
.
row
.
shippingChannelId
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
label=
"方数(预装/已装)"
align=
"center"
prop=
"squareNumber"
/>
<el-table-column
label=
"重量(预装/已装)"
align=
"center"
prop=
"weight"
/>
<el-table-column
label=
"状态"
align=
"center"
prop=
"boxStatus"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPMENT_STATUS"
:value=
"scope.row.boxStatus"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"日期"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
new
Date
(
scope
.
row
.
createTime
).
format
(
'
yyyy-MM-dd
'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
...
...
@@ -106,29 +126,39 @@
@
pagination=
"getList"
/>
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
5
00px"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
8
00px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"柜型"
prop=
"boxType"
>
<el-select
v-model=
"form.boxType"
placeholder=
"请选择柜型"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
<el-form-item
label=
"运输方式"
prop=
"transportType"
>
<el-radio-group
v-model=
"form.transportType"
@
change=
"changeTransportType"
>
<el-radio
v-for=
"dict in this.getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"出货渠道"
prop=
"shippingChannelId"
v-if=
"form.transportType === 3 || form.transportType === 4"
>
<el-select
v-model=
"form.shippingChannelId"
placeholder=
"请选择出货渠道"
>
<el-option
v-for=
"item in channelList"
:label=
"item.nameZh"
:value=
"item.channelId"
:key=
"item.channelId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"始发地"
prop=
"departureId"
>
<el-select
v-model=
"form.departureId"
placeholder=
"请选择始发地"
>
<el-option
v-for=
"item in expoerCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-form-item
label=
"柜型"
prop=
"cabinetId"
v-if=
"form.transportType !== 3"
>
<el-select
v-model=
"form.cabinetId"
placeholder=
"请选择柜型"
>
<el-option
v-for=
"item in cabinetList"
:label=
"item.name"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"目的地"
prop=
"objectiveId"
>
<el-select
v-model=
"form.objectiveId"
placeholder=
"请选择始发地"
>
<el-option
v-for=
"item in importCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-form-item
label=
"始发地"
prop=
"startWarehouseId"
>
<el-select
v-model=
"form.startWarehouseId"
placeholder=
"请选择始发地"
>
<el-option
v-for=
"item in expoerCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"运输类型"
prop=
"transportId"
>
<el-select
v-model=
"queryParams.transportId"
placeholder=
"请选择运输方式"
clearable
size=
"small
"
>
<el-option
v-for=
"dict in this.getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/
>
<el-form-item
label=
"目的地"
prop=
"destWarehouseId
"
>
<el-select
v-model=
"form.destWarehouseId"
placeholder=
"请选择目的地"
>
<el-option
v-for=
"item in importCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option
>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
...
...
@@ -142,12 +172,23 @@
import
{
createbox
,
updatebox
,
deletebox
,
getbox
,
getboxPage
,
exportboxExcel
}
from
"
@/api/ecw/box
"
;
import
{
getTradeCityList
}
from
'
@/api/ecw/region
'
;
import
{
getCabinetPage
}
from
"
@/api/ecw/cabinet
"
;
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
;
export
default
{
name
:
"
box
"
,
components
:
{},
data
()
{
return
{
dateTypes
:[
{
value
:
'
1
'
,
label
:
'
预装时间/分拣时间
'
},
{
value
:
'
2
'
,
label
:
'
装柜时间
'
},
{
value
:
'
3
'
,
label
:
'
起运时间
'
},
{
value
:
'
4
'
,
label
:
'
到港时间
'
},
{
value
:
'
5
'
,
label
:
'
清关时间
'
},
{
value
:
'
6
'
,
label
:
'
提货时间
'
},
],
// 遮罩层
loading
:
true
,
// 导出遮罩层
...
...
@@ -170,14 +211,15 @@
id
:
null
,
orderNo
:
null
,
cubNo
:
null
,
boxType
:
null
,
s
tatus
:
null
,
departur
eId
:
null
,
objectiv
eId
:
null
,
transport
Id
:
null
,
cabinetId
:
null
,
boxS
tatus
:
null
,
startWarehous
eId
:
null
,
destWarehous
eId
:
null
,
transport
Type
:
null
,
},
tradeCityList
:
[],
CabinetPage
:[],
cabinetList
:[],
channelList
:[],
// 表单参数
form
:
{},
// 表单校验
...
...
@@ -186,20 +228,58 @@
},
computed
:
{
expoerCityList
()
{
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
2
)
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
2
||
item
.
type
==
3
)
},
importCityList
()
{
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
1
)
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
1
||
item
.
type
==
3
)
},
getCabinetName
()
{
return
cabinetId
=>
{
for
(
let
index
in
this
.
cabinetList
)
{
let
cabinetItem
=
this
.
cabinetList
[
index
];
if
(
cabinetItem
.
id
==
cabinetId
)
{
return
cabinetItem
.
name
;
}
}
return
'
/
'
}
},
getShipChannelName
()
{
return
shippingChannelId
=>
{
for
(
let
index
in
this
.
channelList
)
{
let
channelItem
=
this
.
channelList
[
index
];
if
(
channelItem
.
channelId
==
shippingChannelId
)
{
return
channelItem
.
nameZh
;
}
}
return
'
/
'
}
}
},
created
()
{
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
);
getCabinetPage
(
null
).
then
(
response
=>
{
this
.
CabinetPage
=
response
.
data
.
list
;
this
.
cabinetList
=
response
.
data
.
list
;
});
this
.
getList
();
this
.
getChannelList
();
},
methods
:
{
getChannelList
(){
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
},
changeTransportType
(
value
)
{
if
(
value
===
3
)
{
this
.
form
.
cabinetId
=
null
;
}
else
if
(
value
==
1
||
value
==
2
)
{
this
.
form
.
shippingChannelId
=
null
;
}
},
/** 查询列表 */
getList
()
{
this
.
loading
=
true
;
...
...
@@ -222,10 +302,10 @@
reset
()
{
this
.
form
=
{
id
:
undefined
,
boxType
:
undefined
,
departur
eId
:
undefined
,
objectiv
eId
:
undefined
,
transport
Id
:
undefined
,
cabinetId
:
undefined
,
startWarehous
eId
:
undefined
,
destWarehous
eId
:
undefined
,
transport
Type
:
undefined
,
};
this
.
resetForm
(
"
form
"
);
},
...
...
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