Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-insurance
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ec4dc2c7
authored
Dec 30, 2020
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加发货列表
1 parent
6be17c15
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
290 additions
and
0 deletions
src/api/devices.js
src/views/biz/shiplist/app.js
src/views/biz/shiplist/index.vue
src/views/index/app.vue
src/api/devices.js
View file @
ec4dc2c
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
const
path
=
'biz/devices/'
const
path
=
'biz/devices/'
const
path1
=
'biz/tspdevice/'
const
path1
=
'biz/tspdevice/'
const
path2
=
'biz/fmrsdevice/'
const
path2
=
'biz/fmrsdevice/'
const
path3
=
'biz/shiplist/'
const
methods
=
{
const
methods
=
{
FindAll
:
`
${
path
}
findAll`
,
FindAll
:
`
${
path
}
findAll`
,
SearchLogin
:
`
${
path
}
searchlogin`
,
SearchLogin
:
`
${
path
}
searchlogin`
,
...
@@ -17,5 +18,6 @@ const methods = {
...
@@ -17,5 +18,6 @@ const methods = {
HeatMapIp
:
`
${
path
}
heatMapIp`
,
HeatMapIp
:
`
${
path
}
heatMapIp`
,
TimeRangeLogin
:
`
${
path
}
timeRangeLogin`
,
TimeRangeLogin
:
`
${
path
}
timeRangeLogin`
,
TrendLogin
:
`
${
path
}
trendLogin`
,
TrendLogin
:
`
${
path
}
trendLogin`
,
ShipFindAll
:
`
${
path3
}
findAll`
}
}
export
{
methods
}
export
{
methods
}
src/views/biz/shiplist/app.js
0 → 100644
View file @
ec4dc2c
import
App
from
'./index.vue'
import
base
from
'@/base'
import
GlsxVueCommon
from
'glsx-vue-common'
base
.
getConfig
().
then
(
data
=>
{
const
{
vue
,
config
}
=
data
vue
.
use
(
GlsxVueCommon
,
config
)
base
.
render
(
App
)
})
src/views/biz/shiplist/index.vue
0 → 100644
View file @
ec4dc2c
<!-- 发货列表 -->
<
template
>
<div>
<gl-form
:inline=
"true"
:model=
"searcher"
label-width=
"110px"
>
<gl-form-item
label=
"搜索关键字:"
>
<gl-input
:size=
"size"
placeholder=
"请输入设备号 / 卡号 / 发往客户"
v-model=
"searcher.searchKey"
:disabled=
"disabled"
clearable
>
</gl-input>
</gl-form-item>
<gl-form-item
label=
""
>
<gl-button
:size=
"size"
type=
"primary"
icon=
"el-icon-search"
:disabled=
"disabled"
@
click=
"handleSearch(1)"
>
查询
</gl-button>
<el-popover
ref=
"shipPopover"
class=
"m-l10"
placement=
"bottom"
width=
"500"
trigger=
"click"
@
show=
"showPop"
@
hide=
"hidePop"
>
<gl-form
class=
"devices"
:model=
"searcher"
label-width=
"110px"
ref=
"searchForm"
>
<gl-form-item
label=
"设备号:"
>
<gl-input
:size=
"size"
placeholder=
"请输入设备号"
v-model=
"searcher.deviceSn"
clearable
>
</gl-input>
</gl-form-item>
<gl-form-item
label=
"卡号:"
>
<gl-input
:size=
"size"
placeholder=
"请输入卡号"
v-model=
"searcher.simNo"
clearable
>
</gl-input>
</gl-form-item>
<gl-form-item
label=
"设备类型:"
prop=
"deviceType"
>
<gl-select
:size=
"size"
v-model=
"searcher.deviceType"
placeholder=
"全部"
clearable
>
<gl-option
:label=
"op.label"
:value=
"op.value"
v-for=
"(op,index) in devicesList"
:key=
"index"
></gl-option>
</gl-select>
</gl-form-item>
<gl-form-item
label=
"发往客户:"
>
<gl-input
:size=
"size"
placeholder=
"请输入发往客户"
v-model=
"searcher.settleMerchant"
clearable
>
</gl-input>
</gl-form-item>
<gl-form-item
label=
" "
>
<gl-button
:size=
"size"
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch(0)"
>
查询
</gl-button>
<gl-button
:size=
"size"
type=
"info"
icon=
"el-icon-refresh"
@
click=
"handleReset"
>
重置
</gl-button>
</gl-form-item>
</gl-form>
<gl-button
:size=
"size"
type=
"primary"
slot=
"reference"
>
高级查询
</gl-button>
</el-popover>
</gl-form-item>
</gl-form>
<gl-table
:table=
"tableData"
v-loading=
"loading"
></gl-table>
<gl-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pager.current"
:page-sizes=
"[10,20,30,40]"
:page-size=
"pager.size"
layout=
"total, ->, prev, pager, next, jumper"
:total=
"pager.total"
></gl-pagination>
</div>
</
template
>
<
script
>
import
{
devicesMethods
,
request
}
from
'@/api'
import
{
pickerOptions
,
djDevicesList
,
djStatusList
}
from
'@/common/constants'
export
default
{
name
:
'devices'
,
data
()
{
return
{
pickerOptions
:
pickerOptions
,
devicesList
:
djDevicesList
,
statusList
:
djStatusList
,
disabled
:
false
,
searcher
:
{
searchKey
:
''
,
deviceSn
:
''
,
simNo
:
''
,
deviceType
:
''
,
merchant
:
''
},
loading
:
false
,
pager
:
{
current
:
1
,
size
:
40
,
total
:
0
},
tableData
:
{
border
:
true
,
stripe
:
true
,
align
:
'center'
,
data
:
[],
number
:
{
label
:
'序号'
,
width
:
'60px'
,
index
:
index
=>
(
this
.
pager
.
current
-
1
)
*
this
.
pager
.
size
+
index
+
1
},
column
:
[
{
label
:
'设备号'
,
prop
:
'device_sn'
},
{
label
:
'卡号'
,
prop
:
'sim_no'
},
{
label
:
'设备类型'
,
prop
:
'device_type'
,
formatter
:
cellValue
=>
{
const
type
=
this
.
devicesList
.
find
(
item
=>
item
.
value
===
String
(
cellValue
[
'device_type'
]))
if
(
type
)
return
type
.
label
else
return
''
}
},
{
label
:
'发往客户'
,
prop
:
'settle_merchant'
},
{
label
:
'发货月份'
,
prop
:
'device_time'
}
]
}
}
},
mounted
()
{
this
.
handleSearch
()
},
methods
:
{
handleSearch
(
flag
)
{
const
params
=
{}
const
searcher
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searcher
))
if
(
flag
)
{
this
.
handleReset
()
params
.
searchKey
=
searcher
.
searchKey
}
else
{
params
.
deviceSn
=
searcher
.
deviceSn
params
.
simNo
=
searcher
.
simNo
params
.
deviceType
=
searcher
.
deviceType
params
.
settleMerchant
=
searcher
.
settleMerchant
}
this
.
getList
(
params
)
},
getList
(
searcher
)
{
this
.
loading
=
true
const
pager
=
this
.
pager
request
.
req
(
devicesMethods
.
ShipFindAll
,
{
pager
,
searcher
}).
then
(
res
=>
{
this
.
pager
.
total
=
res
.
count
this
.
tableData
.
data
=
res
.
rows
this
.
loading
=
false
this
.
$refs
.
shipPopover
.
doClose
()
}).
catch
(
err
=>
{
this
.
loading
=
false
console
.
log
(
err
)
})
},
handleReset
()
{
this
.
__reset__
([
{
obj
:
this
.
searcher
,
value
:
''
}
])
},
__reset__
(
objArr
)
{
objArr
.
forEach
(
item
=>
{
for
(
const
key
in
item
.
obj
)
{
if
(
item
.
obj
.
hasOwnProperty
(
key
))
{
item
.
obj
[
key
]
=
item
.
value
}
}
})
},
handleSizeChange
(
size
)
{
this
.
pager
.
size
=
size
this
.
handleSearch
()
},
handleCurrentChange
(
current
)
{
this
.
pager
.
current
=
current
this
.
handleSearch
()
},
/**
* 显示隐藏popover
*/
showPop
()
{
this
.
disabled
=
true
this
.
searcher
.
searchKey
=
''
},
hidePop
()
{
this
.
disabled
=
false
}
}
}
</
script
>
<
style
scoped
>
.devices
.el-date-editor.el-input
,
.devices
.el-input
,
.devices
.el-select
>
.el-input
{
width
:
350px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/index/app.vue
View file @
ec4dc2c
...
@@ -70,6 +70,14 @@
...
@@ -70,6 +70,14 @@
</li>
</li>
<li>
<li>
<a
<a
href=
"../biz/shiplist.html"
target=
"_self"
>
智慧门店服务-设备管理-发货列表
</a>
</li>
<li>
<a
href=
"../biz/tspdevice.html"
href=
"../biz/tspdevice.html"
target=
"_self"
target=
"_self"
>
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment