Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
supply-web
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 4ddc94eb
authored
Sep 09, 2020
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
first v0.0.1
1 parent
32f94c6f
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1965 additions
and
720 deletions
src/assets/style/public-class.scss
src/assets/style/reset.scss
src/layout/header-aside/components/hamburger/index.vue
src/views/consumerManage/factory.vue
src/views/consumerManage/index.vue
src/views/deviceManage/deviceInventory.vue
src/views/deviceManage/deviceSetting.vue
src/views/deviceManage/firmware.vue
src/views/deviceManage/outManage.vue
src/views/orderManage/assignOrder.vue
src/views/orderManage/invoice.vue
src/assets/style/public-class.scss
View file @
4ddc94e
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
// 动画
// 动画
@import
'~@/assets/style/animate/vue-transition.scss'
;
@import
'~@/assets/style/animate/vue-transition.scss'
;
// 重置样式
// @import '~@/assets/style/reset.scss';
// 在这里写公用的class
// 在这里写公用的class
// 注意 这个文件里只写class
// 注意 这个文件里只写class
// mixin等内容请在 public.scss 里书写
// mixin等内容请在 public.scss 里书写
...
@@ -21,6 +24,7 @@
...
@@ -21,6 +24,7 @@
.
#{
$prefix
}
-fl
{
.
#{
$prefix
}
-fl
{
float
:
left
;
float
:
left
;
}
}
.
#{
$prefix
}
-fr
{
.
#{
$prefix
}
-fr
{
float
:
right
;
float
:
right
;
}
}
...
@@ -29,29 +33,85 @@
...
@@ -29,29 +33,85 @@
$sizes
:
(
0
,
5
,
10
,
15
,
20
);
$sizes
:
(
0
,
5
,
10
,
15
,
20
);
@for
$index
from
1
to
6
{
@for
$index
from
1
to
6
{
.
#{
$prefix
}
-m-
#{
nth
(
$sizes
,
$index
)
}
{
margin
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-m-
#{
nth
(
$sizes
,
$index
)
}
{
.
#{
$prefix
}
-mt-
#{
nth
(
$sizes
,
$index
)
}
{
margin-top
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
margin
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
.
#{
$prefix
}
-mr-
#{
nth
(
$sizes
,
$index
)
}
{
margin-right
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
}
.
#{
$prefix
}
-mb-
#{
nth
(
$sizes
,
$index
)
}
{
margin-bottom
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-ml-
#{
nth
(
$sizes
,
$index
)
}
{
margin-left
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-mt-
#{
nth
(
$sizes
,
$index
)
}
{
margin-top
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-mr-
#{
nth
(
$sizes
,
$index
)
}
{
margin-right
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-mb-
#{
nth
(
$sizes
,
$index
)
}
{
margin-bottom
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-ml-
#{
nth
(
$sizes
,
$index
)
}
{
margin-left
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-p-
#{
nth
(
$sizes
,
$index
)
}
{
padding
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-pt-
#{
nth
(
$sizes
,
$index
)
}
{
padding-top
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-p-
#{
nth
(
$sizes
,
$index
)
}
{
padding
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-pr-
#{
nth
(
$sizes
,
$index
)
}
{
.
#{
$prefix
}
-pt-
#{
nth
(
$sizes
,
$index
)
}
{
padding-top
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
padding-right
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
.
#{
$prefix
}
-pr-
#{
nth
(
$sizes
,
$index
)
}
{
padding-right
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
}
.
#{
$prefix
}
-pb-
#{
nth
(
$sizes
,
$index
)
}
{
padding-bottom
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-pl-
#{
nth
(
$sizes
,
$index
)
}
{
padding-left
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-pb-
#{
nth
(
$sizes
,
$index
)
}
{
padding-bottom
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
.
#{
$prefix
}
-pl-
#{
nth
(
$sizes
,
$index
)
}
{
padding-left
:
#{
nth
(
$sizes
,
$index
)
}
px
!
important
;
}
}
}
// 快速使用
// 快速使用
.
#{
$prefix
}
-m
{
margin
:
20px
!
important
;
}
.
#{
$prefix
}
-m
{
.
#{
$prefix
}
-mt
{
margin-top
:
20px
!
important
;
}
margin
:
20px
!
important
;
.
#{
$prefix
}
-mr
{
margin-right
:
20px
!
important
;
}
}
.
#{
$prefix
}
-mb
{
margin-bottom
:
20px
!
important
;
}
.
#{
$prefix
}
-ml
{
margin-left
:
20px
!
important
;
}
.
#{
$prefix
}
-mt
{
margin-top
:
20px
!
important
;
.
#{
$prefix
}
-p
{
padding
:
20px
!
important
;
}
}
.
#{
$prefix
}
-pt
{
padding-top
:
20px
!
important
;
}
.
#{
$prefix
}
-pr
{
padding-right
:
20px
!
important
;
}
.
#{
$prefix
}
-mr
{
.
#{
$prefix
}
-pb
{
padding-bottom
:
20px
!
important
;
}
margin-right
:
20px
!
important
;
.
#{
$prefix
}
-pl
{
padding-left
:
20px
!
important
;
}
}
.
#{
$prefix
}
-mb
{
margin-bottom
:
20px
!
important
;
}
.
#{
$prefix
}
-ml
{
margin-left
:
20px
!
important
;
}
.
#{
$prefix
}
-p
{
padding
:
20px
!
important
;
}
.
#{
$prefix
}
-pt
{
padding-top
:
20px
!
important
;
}
.
#{
$prefix
}
-pr
{
padding-right
:
20px
!
important
;
}
.
#{
$prefix
}
-pb
{
padding-bottom
:
20px
!
important
;
}
.
#{
$prefix
}
-pl
{
padding-left
:
20px
!
important
;
}
src/assets/style/reset.scss
0 → 100644
View file @
4ddc94e
td
,
th
{
padding
:
0
!
important
;
}
.el-card__body
{
padding
:
5px
;
}
.el-table
.cell
{
white-space
:
nowrap
;
}
.el-input--small
.el-input__inner
{
height
:
28px
;
line-height
:
28px
;
}
.el-button--mini
,
.el-button--mini.is-round
{
padding
:
6px
10px
;
}
.el-pagination.is-background
.btn-next
,
.el-pagination.is-background
.btn-prev
,
.el-pagination.is-background
.el-pager
li
{
min-width
:
28px
;
}
.el-pagination
.el-select
.el-input
.el-input__inner
{
height
:
22px
;
}
/* 框架的 样式 */
.d2-layout-header-aside-group
.d2-layout-header-aside-content
.d2-theme-header
{
height
:
36px
!
important
;
}
.d2-layout-header-aside-group
.d2-layout-header-aside-content
.d2-theme-header
.d2-header-right
{
height
:
36px
!
important
;
}
.d2-layout-header-aside-group
.d2-layout-header-aside-content
.d2-theme-container
.d2-theme-container-main
.d2-theme-container-main-header
.d2-multiple-page-control-group
.d2-multiple-page-control-content
.d2-multiple-page-control-content-inner
.d2-multiple-page-control
.el-tabs__nav
.el-tabs__item
{
height
:
24px
!
important
;
line-height
:
24px
!
important
;
}
.d2-layout-header-aside-group
.d2-layout-header-aside-content
.d2-theme-container
.d2-theme-container-main
.d2-theme-container-main-header
.d2-multiple-page-control-group
.d2-multiple-page-control-btn
.el-button-group
.el-button
{
padding
:
5px
15px
!
important
;
}
.d2-layout-header-aside-group
.d2-layout-header-aside-content
.d2-theme-container
.d2-theme-container-main
.d2-theme-container-main-header
{
height
:
26px
!
important
;
}
.el-tabs__item
{
padding
:
0
8px
;
}
src/layout/header-aside/components/hamburger/index.vue
View file @
4ddc94e
...
@@ -8,8 +8,12 @@
...
@@ -8,8 +8,12 @@
<path
d=
"M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z"
<path
d=
"M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z"
p-id=
"1694"
></path>
p-id=
"1694"
></path>
</svg>
-->
</svg>
-->
<div
@
click=
"click"
class=
"hamburger"
:class=
"
{'is-active':isActive}">
<div
<d2-el-icon
name=
"s-fold"
/>
@
click=
"click"
class=
"hamburger"
:class=
"
{'is-active':isActive}"
>
<d2-el-icon
name=
"s-fold"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -37,11 +41,13 @@ export default {
...
@@ -37,11 +41,13 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.hamburger
{
.hamburger
{
height
:
58px
;
height
:
58px
;
//
height
:
36px
;
cursor
:
pointer
;
cursor
:
pointer
;
transition
:
.38s
;
transition
:
0
.38s
;
transform-origin
:
50%
50%
;
transform-origin
:
50%
50%
;
i{
i
{
line-height
:
58px
;
line-height
:
58px
;
//
line-height
:
36px
;
font-size
:
28px
;
font-size
:
28px
;
}
}
}
}
...
...
src/views/consumerManage/factory.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"属性"
>
<el-form-item
label=
"属性"
>
<el-select
v-model=
"formInline.belong"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.belong"
<el-option
value=
"FA"
label=
"工厂"
>
工厂
</el-option>
placeholder=
"请选择"
<el-option
value=
"WA"
label=
"仓库"
>
仓库
</el-option>
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
value=
"FA"
label=
"工厂"
>
工厂
</el-option>
<el-option
value=
"WA"
label=
"仓库"
>
仓库
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"工厂/仓库名"
>
<el-form-item
label=
"工厂/仓库名"
>
<el-input
v-model=
"formInline.name"
placeholder=
"请输入工厂/仓库名"
clearable
/>
<el-input
v-model=
"formInline.name"
placeholder=
"请输入工厂/仓库名"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-plus"
:loading=
"tableLoading"
@
click=
"editInfo()"
>
新建
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
:loading=
"tableLoading"
@
click=
"editInfo()"
>
新建
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
stripe
style=
"width: 100%"
size=
"small"
border
>
<el-table
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
v-loading=
"tableLoading"
<el-table-column
prop=
"name"
label=
"工厂/仓库名称"
:width=
"tdWidth"
/>
:data=
"tableData"
<el-table-column
prop=
"belong"
label=
"属性"
:width=
"tdWidth"
>
stripe
style=
"width: 100%"
size=
"small"
border
>
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}"
label="序号"
width="80"
/>
<el-table-column
prop=
"name"
label=
"工厂/仓库名称"
:width=
"tdWidth"
/>
<el-table-column
prop=
"belong"
label=
"属性"
:width=
"tdWidth"
>
<template
slot-scope=
"scope"
>
{{
BELONGTYPE
[
scope
.
row
.
belong
]
}}
</
template
>
<template
slot-scope=
"scope"
>
{{
BELONGTYPE
[
scope
.
row
.
belong
]
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"地址"
:width=
"tdWidth"
/>
<el-table-column
<el-table-column
prop=
"mobile"
label=
"电话"
:width=
"tdWidth"
/>
prop=
"address"
<el-table-column
prop=
"contacts"
label=
"联系人"
:width=
"tdWidth"
/>
label=
"地址"
<el-table-column
prop=
"createdBy"
label=
"创建人"
:width=
"tdWidth"
/>
:width=
"tdWidth"
<el-table-column
prop=
"createdDate"
label=
"创建时间"
:width=
"tdWidth"
>
/>
<el-table-column
prop=
"mobile"
label=
"电话"
:width=
"tdWidth"
/>
<el-table-column
prop=
"contacts"
label=
"联系人"
:width=
"tdWidth"
/>
<el-table-column
prop=
"createdBy"
label=
"创建人"
:width=
"tdWidth"
/>
<el-table-column
prop=
"createdDate"
label=
"创建时间"
:width=
"tdWidth"
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"updatedDate"
label=
"更新时间"
:width=
"tdWidth"
>
<el-table-column
prop=
"updatedDate"
label=
"更新时间"
:width=
"tdWidth"
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"操作"
label=
"操作"
:width=
"tdWidth"
fixed=
"right"
>
<el-table-column
prop=
"操作"
label=
"操作"
:width=
"tdWidth"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"editInfo(scope.row)"
>
修改
</el-button>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
"editInfo(scope.row)"
>
修改
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
class=
"pagination_list"
>
<div
class=
"pagination_list"
>
<el-pagination
<el-pagination
small
background
background
layout=
"sizes, total,prev, pager, next, jumper"
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:total=
"pageTotal"
...
@@ -60,7 +151,12 @@
...
@@ -60,7 +151,12 @@
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<!-- 新增工厂/仓库弹框 开始 -->
<!-- 新增工厂/仓库弹框 开始 -->
<edit-fac
:show=
"showAddDialog"
v-if=
"showAddDialog"
:info=
"info"
@
closed=
"closeAddDialog"
/>
<edit-fac
:show=
"showAddDialog"
v-if=
"showAddDialog"
:info=
"info"
@
closed=
"closeAddDialog"
/>
<!-- 新增工厂/仓库弹框 结束 -->
<!-- 新增工厂/仓库弹框 结束 -->
</d2-container>
</d2-container>
...
@@ -100,7 +196,7 @@ export default {
...
@@ -100,7 +196,7 @@ export default {
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
...
@@ -108,7 +204,7 @@ export default {
...
@@ -108,7 +204,7 @@ export default {
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
const
_this
=
this
const
_this
=
this
const
oParams
=
_this
.
getParams
()
const
oParams
=
_this
.
getParams
()
console
.
log
(
current
)
console
.
log
(
current
)
...
@@ -134,7 +230,7 @@ export default {
...
@@ -134,7 +230,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
oParams
=
this
.
formInline
const
oParams
=
this
.
formInline
oParams
.
pageSize
=
this
.
pageSize
oParams
.
pageSize
=
this
.
pageSize
return
oParams
return
oParams
...
@@ -143,7 +239,7 @@ export default {
...
@@ -143,7 +239,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
this
.
pageSize
=
e
this
.
getList
()
this
.
getList
()
},
},
...
@@ -152,10 +248,10 @@ export default {
...
@@ -152,10 +248,10 @@ export default {
/**
/**
* 新增或修改工厂/仓库
* 新增或修改工厂/仓库
*/
*/
editInfo
:
function
(
row
)
{
editInfo
:
function
(
row
)
{
if
(
row
)
{
if
(
row
)
{
this
.
info
=
row
this
.
info
=
row
}
else
{
}
else
{
this
.
info
=
{}
this
.
info
=
{}
}
}
this
.
showAddDialog
=
true
this
.
showAddDialog
=
true
...
@@ -164,9 +260,9 @@ export default {
...
@@ -164,9 +260,9 @@ export default {
/**
/**
* 关闭新增弹出框
* 关闭新增弹出框
*/
*/
closeAddDialog
:
function
(
isCancel
)
{
closeAddDialog
:
function
(
isCancel
)
{
this
.
showAddDialog
=
false
this
.
showAddDialog
=
false
if
(
isCancel
)
{
if
(
isCancel
)
{
return
return
}
}
this
.
getList
()
this
.
getList
()
...
@@ -177,7 +273,7 @@ export default {
...
@@ -177,7 +273,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.table_box
{
.table_box
{
margin
:
20px
0
;
margin
:
20px
0
;
}
}
</
style
>
</
style
>
src/views/consumerManage/index.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"用户名称"
>
<el-form-item
label=
"用户名称"
>
<el-input
v-model=
"formInline.userName"
placeholder=
"请输入用户名称"
clearable
/>
<el-input
v-model=
"formInline.userName"
placeholder=
"请输入用户名称"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"角色"
>
<el-form-item
label=
"角色"
>
<el-select
v-model=
"formInline.role"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.role"
<el-option
value=
"1"
label=
"入库"
>
入库
</el-option>
placeholder=
"请选择"
<el-option
value=
"2"
label=
"出库"
>
出库
</el-option>
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
value=
"1"
label=
"入库"
>
入库
</el-option>
<el-option
value=
"2"
label=
"出库"
>
出库
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-plus"
:loading=
"tableLoading"
@
click=
"showAddDialog = true"
>
新建用户
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
:loading=
"tableLoading"
@
click=
"showAddDialog = true"
>
新建用户
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
stripe
style=
"width: 100%"
size=
"small"
border
>
<el-table
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
v-loading=
"tableLoading"
<el-table-column
prop=
"userName"
label=
"用户名"
/>
:data=
"tableData"
<el-table-column
prop=
"role"
label=
"角色"
>
stripe
<template
slot-scope=
"scope"
>
{{
roleShow
[
scope
.
row
.
role
]
}}
</
template
>
style=
"width: 100%"
</el-table-column>
size=
"small"
<el-table-column
prop=
"imsi"
label=
"工厂/仓库名"
>
border
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
wareHouseInfo
?
scope
.
row
.
wareHouseInfo
.
name
:
''
}}
</
template
>
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"createdBy"
label=
"创建人"
/>
type=
"index"
<el-table-column
prop=
"createdDate"
label=
"创建时间"
>
:index=
"index =>
{return index+1}"
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
label="序号"
</el-table-column>
width="80"
<el-table-column
prop=
"updatedDate"
label=
"更新时间"
>
/>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
<el-table-column
</el-table-column>
prop=
"userName"
<el-table-column
prop=
"sendMerchantNo"
label=
"操作"
width=
"120"
>
label=
"用户名"
<
template
slot-scope=
"scope"
>
/>
<el-button
type=
"primary"
size=
"mini"
@
click=
"openResetPassword(scope.row)"
>
重置密码
</el-button>
<el-table-column
</
template
>
prop=
"role"
</el-table-column>
label=
"角色"
</el-table>
>
<div
class=
"pagination_list"
>
<template
slot-scope=
"scope"
>
{{
roleShow
[
scope
.
row
.
role
]
}}
</
template
>
<el-pagination
</el-table-column>
background
<el-table-column
layout=
"sizes, total,prev, pager, next, jumper"
prop=
"imsi"
:total=
"pageTotal"
label=
"工厂/仓库名"
:page-size=
"pageSize"
>
:page-sizes=
"pageSizes"
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
wareHouseInfo
?
scope
.
row
.
wareHouseInfo
.
name
:
''
}}
</
template
>
@
current-change=
"getList"
</el-table-column>
@
size-change=
"changePageSize"
<el-table-column
/>
prop=
"createdBy"
</div>
label=
"创建人"
/>
<el-table-column
prop=
"createdDate"
label=
"创建时间"
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"updatedDate"
label=
"更新时间"
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"sendMerchantNo"
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
"openResetPassword(scope.row)"
>
重置密码
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination_list"
>
<el-pagination
background
small
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-sizes=
"pageSizes"
@
current-change=
"getList"
@
size-change=
"changePageSize"
/>
</div>
</div>
</div>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<!-- 新增用户弹框 开始 -->
<!-- 新增用户弹框 开始 -->
<add-cus
:show=
"showAddDialog"
v-if=
"showAddDialog"
@
closed=
"closeAddDialog"
/>
<add-cus
:show=
"showAddDialog"
v-if=
"showAddDialog"
@
closed=
"closeAddDialog"
/>
<!-- 新增用户弹框 结束 -->
<!-- 新增用户弹框 结束 -->
<!-- 重置密码弹框 开始 -->
<!-- 重置密码弹框 开始 -->
<glsx-dialog
title=
"重置密码"
width=
"30%"
:show=
"showPassDialog"
usefooter
v-on:closed=
"closePasslDialog"
>
<glsx-dialog
<el-form
ref=
"passForm"
:rules=
"formRules_pass"
:model=
"form_pass"
label-width=
"120px"
>
title=
"重置密码"
<el-form-item
label=
"用户名:"
>
width=
"30%"
<el-input
v-model=
"form_pass.userName"
style=
"width:400px"
disabled
/>
:show=
"showPassDialog"
</el-form-item>
usefooter
<el-form-item
label=
"密码:"
prop=
"password"
>
v-on:closed=
"closePasslDialog"
<el-input
v-model=
"form_pass.password"
maxlength=
"50"
style=
"width:400px"
/>
>
</el-form-item>
<el-form
</el-form>
ref=
"passForm"
:rules=
"formRules_pass"
:model=
"form_pass"
label-width=
"120px"
>
<el-form-item
label=
"用户名:"
>
<el-input
v-model=
"form_pass.userName"
style=
"width:400px"
disabled
/>
</el-form-item>
<el-form-item
label=
"密码:"
prop=
"password"
>
<el-input
v-model=
"form_pass.password"
maxlength=
"50"
style=
"width:400px"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"resetPassword()"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"resetPassword()"
>
提交
</el-button>
<el-button
@
click=
"showPassDialog = false"
>
取消
</el-button>
<el-button
@
click=
"showPassDialog = false"
>
取消
</el-button>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
...
@@ -112,7 +217,7 @@ export default {
...
@@ -112,7 +217,7 @@ export default {
},
},
showAddDialog
:
false
,
showAddDialog
:
false
,
showPassDialog
:
false
,
showPassDialog
:
false
,
form_pass
:
{},
form_pass
:
{},
formRules_pass
:
{
formRules_pass
:
{
password
:
[
password
:
[
{
required
:
true
,
message
:
"请输入密码"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请输入密码"
,
trigger
:
"blur"
}
...
@@ -121,10 +226,10 @@ export default {
...
@@ -121,10 +226,10 @@ export default {
}
}
},
},
created
()
{
created
()
{
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
...
@@ -132,7 +237,7 @@ export default {
...
@@ -132,7 +237,7 @@ export default {
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
const
_this
=
this
const
_this
=
this
const
oParams
=
_this
.
getParams
()
const
oParams
=
_this
.
getParams
()
console
.
log
(
current
)
console
.
log
(
current
)
...
@@ -153,7 +258,7 @@ export default {
...
@@ -153,7 +258,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
oParams
=
this
.
formInline
const
oParams
=
this
.
formInline
oParams
.
pageSize
=
this
.
pageSize
oParams
.
pageSize
=
this
.
pageSize
return
oParams
return
oParams
...
@@ -163,7 +268,7 @@ export default {
...
@@ -163,7 +268,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
this
.
pageSize
=
e
this
.
getList
()
this
.
getList
()
},
},
...
@@ -171,7 +276,7 @@ export default {
...
@@ -171,7 +276,7 @@ export default {
/**
/**
* 重置密码操作
* 重置密码操作
*/
*/
openResetPassword
:
function
(
row
)
{
openResetPassword
:
function
(
row
)
{
this
.
userInfo
=
row
this
.
userInfo
=
row
this
.
form_pass
.
userName
=
this
.
userInfo
.
userName
this
.
form_pass
.
userName
=
this
.
userInfo
.
userName
this
.
showPassDialog
=
true
this
.
showPassDialog
=
true
...
@@ -180,7 +285,7 @@ export default {
...
@@ -180,7 +285,7 @@ export default {
/**
/**
* 关闭密码重置弹窗
* 关闭密码重置弹窗
*/
*/
closePasslDialog
:
function
()
{
closePasslDialog
:
function
()
{
this
.
showPassDialog
=
false
this
.
showPassDialog
=
false
this
.
getList
()
this
.
getList
()
},
},
...
@@ -188,17 +293,17 @@ export default {
...
@@ -188,17 +293,17 @@ export default {
/**
/**
* 重置密码
* 重置密码
*/
*/
resetPassword
:
function
()
{
resetPassword
:
function
()
{
let
_this
=
this
;
let
_this
=
this
;
let
_obj
=
_this
.
$refs
.
passForm
;
let
_obj
=
_this
.
$refs
.
passForm
;
_obj
.
validate
(
valid
=>
{
_obj
.
validate
(
valid
=>
{
let
oParams
=
_this
.
form_pass
;
let
oParams
=
_this
.
form_pass
;
oParams
.
id
=
this
.
userInfo
.
id
oParams
.
id
=
this
.
userInfo
.
id
if
(
!
valid
)
{
if
(
!
valid
)
{
return
false
;
return
false
;
}
}
UPDATEPASSWORD
(
oParams
).
then
(
res
=>
{
UPDATEPASSWORD
(
oParams
).
then
(
res
=>
{
if
(
res
.
returnCode
==
0
)
{
if
(
res
.
returnCode
==
0
)
{
_this
.
$Util
.
Info
({
_this
.
$Util
.
Info
({
message
:
res
.
message
,
message
:
res
.
message
,
type
:
"success"
type
:
"success"
...
@@ -212,9 +317,9 @@ export default {
...
@@ -212,9 +317,9 @@ export default {
/**
/**
* 关闭新增弹出框
* 关闭新增弹出框
*/
*/
closeAddDialog
:
function
(
isCancel
)
{
closeAddDialog
:
function
(
isCancel
)
{
this
.
showAddDialog
=
false
this
.
showAddDialog
=
false
if
(
isCancel
)
{
if
(
isCancel
)
{
return
return
}
}
this
.
getList
()
this
.
getList
()
...
@@ -226,7 +331,7 @@ export default {
...
@@ -226,7 +331,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.table_box
{
.table_box
{
margin
:
20px
0
;
margin
:
20px
0
;
}
}
</
style
>
</
style
>
src/views/deviceManage/deviceInventory.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"设备类型"
>
<el-form-item
label=
"设备类型"
>
<el-select
v-model=
"formInline.devTypeId"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.devTypeId"
<el-option
v-for=
"item in deviceTypeList"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
>
{{
item
.
name
}}
</el-option>
placeholder=
"请选择"
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
v-for=
"item in deviceTypeList"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"请输入"
>
<el-form-item
label=
"请输入"
>
<el-input
v-model=
"formInline.searchKey"
placeholder=
"请输入ICCID、IMEI、订单号、SN"
style=
"width:250px"
clearable
/>
<el-input
v-model=
"formInline.searchKey"
placeholder=
"请输入ICCID、IMEI、订单号、SN"
style=
"width:250px"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-form-item
label=
"状态"
>
<el-select
v-model=
"formInline.status"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.status"
<el-option
value=
"IN"
label=
"入库"
>
入库
</el-option>
placeholder=
"请选择"
<el-option
value=
"OUT"
label=
"出库"
>
出库
</el-option>
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
value=
"IN"
label=
"入库"
>
入库
</el-option>
<el-option
value=
"OUT"
label=
"出库"
>
出库
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<!--
<el-form-item>
<!--
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-download"
:loading=
"exportLoading"
@
click=
"exportInfo()"
>
导出
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-download"
:loading=
"exportLoading"
@
click=
"exportInfo()"
>
导出
</el-button>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-upload2"
@
click=
"openDialog"
>
导入
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-upload2"
@
click=
"openDialog"
>
导入
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
stripe
style=
"width: 100%"
size=
"small"
border
>
<el-table
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
v-loading=
"tableLoading"
<el-table-column
prop=
"iccid"
label=
"ICCID"
:width=
"tdWidth"
/>
:data=
"tableData"
<el-table-column
prop=
"imei"
label=
"IMEI"
:width=
"tdWidth"
/>
stripe
<el-table-column
prop=
"sn"
label=
"SN"
:width=
"tdWidth"
/>
style=
"width: 100%"
<el-table-column
prop=
"attribCode"
label=
"物料编码"
:width=
"tdWidth"
/>
size=
"small"
<el-table-column
prop=
"model"
label=
"设备型号"
:width=
"tdWidth"
>
border
<template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
devMnumName
}}
</
template
>
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"batch"
label=
"是否联网"
:width=
"tdWidth"
>
type=
"index"
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
orNetName
}}
</
template
>
:index=
"index =>
{return index+1}"
</el-table-column>
label="序号"
<!-- <el-table-column prop="vcode" label="卡类型" :width="tdWidth">
width="80"
/>
<el-table-column
prop=
"iccid"
label=
"ICCID"
:width=
"tdWidth"
/>
<el-table-column
prop=
"imei"
label=
"IMEI"
:width=
"tdWidth"
/>
<el-table-column
prop=
"sn"
label=
"SN"
:width=
"tdWidth"
/>
<el-table-column
prop=
"attribCode"
label=
"物料编码"
:width=
"tdWidth"
/>
<el-table-column
prop=
"model"
label=
"设备型号"
:width=
"tdWidth"
>
<template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
devMnumName
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"batch"
label=
"是否联网"
:width=
"tdWidth"
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
orNetName
}}
</
template
>
</el-table-column>
<!-- <el-table-column prop="vcode" label="卡类型" :width="tdWidth">
<template slot-scope="scoped">{{ scoped.row.attribMana.cardSelfName }}</template>
<template slot-scope="scoped">{{ scoped.row.attribMana.cardSelfName }}</template>
</el-table-column>
</el-table-column>
<el-table-column prop="logisticsNo" label="是否带屏" :width="tdWidth">
<el-table-column prop="logisticsNo" label="是否带屏" :width="tdWidth">
...
@@ -71,57 +154,115 @@
...
@@ -71,57 +154,115 @@
<el-table-column prop="factoryName" label="软件版本号" :width="tdWidth">
<el-table-column prop="factoryName" label="软件版本号" :width="tdWidth">
<template slot-scope="scoped">{{ scoped.row.attribMana.softVersion }}</template>
<template slot-scope="scoped">{{ scoped.row.attribMana.softVersion }}</template>
</el-table-column> -->
</el-table-column> -->
<el-table-column
prop=
"batch"
label=
"设备批次号"
:width=
"tdWidth"
/>
<el-table-column
<el-table-column
prop=
"status"
label=
"状态"
:width=
"tdWidth"
>
prop=
"batch"
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
status
==
'OUT'
?
'出库'
:
'入库'
}}
</
template
>
label=
"设备批次号"
</el-table-column>
:width=
"tdWidth"
<el-table-column
prop=
"imei"
label=
"入库工厂"
:width=
"tdWidth"
>
/>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
wareHouseInfo
.
wareHouseName
}}
</
template
>
<el-table-column
</el-table-column>
prop=
"status"
<el-table-column
prop=
"imei"
label=
"当前所在工厂/仓库"
:width=
"tdWidth"
>
label=
"状态"
:width=
"tdWidth"
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
status
==
'OUT'
?
'出库'
:
'入库'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"imei"
label=
"入库工厂"
:width=
"tdWidth"
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
wareHouseInfo
.
wareHouseName
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"imei"
label=
"当前所在工厂/仓库"
:width=
"tdWidth"
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
wareHouseInfo
.
wareHouseUpName
}}
</
template
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
wareHouseInfo
.
wareHouseUpName
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"createdDate"
label=
"入库时间"
:width=
"tdWidth"
>
<el-table-column
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
prop=
"createdDate"
</el-table-column>
label=
"入库时间"
<el-table-column
prop=
"updatedDate"
label=
"出库时间"
:width=
"tdWidth"
>
:width=
"tdWidth"
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
>
</el-table-column>
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
<el-table-column
prop=
"orderCode"
label=
"出库发货单号"
:width=
"tdWidth"
/>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
>
<el-table-column
<
template
slot-scope=
"scope"
>
prop=
"updatedDate"
<!--
<el-link
type=
"primary"
:underline=
"false"
v-if=
"scope.row.status == 'IN'"
@
click=
"editEvent(scope.row)"
>
修改
</el-link>
-->
label=
"出库时间"
<el-button
type=
"primary"
size=
"mini"
v-if=
"scope.row.status == 'IN'"
@
click=
"editEvent(scope.row)"
>
修改
</el-button>
:width=
"tdWidth"
</
template
>
>
</el-table-column>
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
</el-table>
</el-table-column>
<div
class=
"pagination_list"
>
<el-table-column
<el-pagination
prop=
"orderCode"
background
label=
"出库发货单号"
layout=
"sizes, total,prev, pager, next, jumper"
:width=
"tdWidth"
:total=
"pageTotal"
/>
:page-size=
"pageSize"
<el-table-column
:page-sizes=
"pageSizes"
label=
"操作"
@
current-change=
"getList"
fixed=
"right"
@
size-change=
"changePageSize"
align=
"center"
/>
>
</div>
<
template
slot-scope=
"scope"
>
<!--
<el-link
type=
"primary"
:underline=
"false"
v-if=
"scope.row.status == 'IN'"
@
click=
"editEvent(scope.row)"
>
修改
</el-link>
-->
<el-button
type=
"primary"
size=
"mini"
plain
v-if=
"scope.row.status == 'IN'"
@
click=
"editEvent(scope.row)"
>
修改
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination_list"
>
<el-pagination
background
small
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-sizes=
"pageSizes"
@
current-change=
"getList"
@
size-change=
"changePageSize"
/>
</div>
</div>
</div>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<edit-inventory
:deviceInfo=
"current"
v-if=
"editShow"
:show=
"editShow"
@
closed=
"closeDialog"
/>
<edit-inventory
:deviceInfo=
"current"
v-if=
"editShow"
:show=
"editShow"
@
closed=
"closeDialog"
/>
<!-- 弹框 开始 -->
<!-- 弹框 开始 -->
<glsx-dialog
:show=
"showDialog"
title=
"导入设备"
width=
"30%"
usefooter
@
closed=
"closeImportDialog"
>
<glsx-dialog
:show=
"showDialog"
title=
"导入设备"
width=
"30%"
usefooter
@
closed=
"closeImportDialog"
>
<div
class=
"upload_box"
>
<div
class=
"upload_box"
>
<h2
class=
"h2"
>
<h2
class=
"h2"
>
请点击"
请点击"
<a
:href=
"DOWNLOADEQUIPMENTDETAILSTEMPLATE"
target=
"_blank"
>
导入门店模板下载
</a>
", 并填写导入信息
<a
:href=
"DOWNLOADEQUIPMENTDETAILSTEMPLATE"
target=
"_blank"
>
导入门店模板下载
</a>
", 并填写导入信息
</h2>
</h2>
<div
class=
"upload_cell"
>
<div
class=
"upload_cell"
>
<span
class=
"name"
>
导入设备:
</span>
<span
class=
"name"
>
导入设备:
</span>
<div
class=
"content"
>
<div
class=
"content"
>
<el-input
type=
"text"
class=
"a_input"
:value=
"uploadFile.name"
readonly
/>
<el-input
type=
"text"
class=
"a_input"
:value=
"uploadFile.name"
readonly
/>
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
ref=
"upload"
ref=
"upload"
...
@@ -135,18 +276,33 @@
...
@@ -135,18 +276,33 @@
:on-change=
"uploadChange"
:on-change=
"uploadChange"
:on-success=
"uploadSuccess"
:on-success=
"uploadSuccess"
>
>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
</el-upload>
</el-upload>
</div>
</div>
</div>
</div>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<span>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
请下载
</span>
<span>
请下载
</span>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"btn_group"
>
<div
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
>
导入
</el-button>
slot=
"footer"
class=
"btn_group"
>
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
>
导入
</el-button>
<el-button
@
click=
"closeImportDialog"
>
取消
</el-button>
<el-button
@
click=
"closeImportDialog"
>
取消
</el-button>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
...
@@ -188,20 +344,20 @@ export default {
...
@@ -188,20 +344,20 @@ export default {
DATEFORMATE
:
(
str
,
type
)
=>
{
return
this
.
$Util
.
dateFormate
(
str
,
type
)
},
DATEFORMATE
:
(
str
,
type
)
=>
{
return
this
.
$Util
.
dateFormate
(
str
,
type
)
},
deviceTypeList
:
[],
deviceTypeList
:
[],
exportLoading
:
false
,
exportLoading
:
false
,
editShow
:
false
,
editShow
:
false
,
showDialog
:
false
,
showDialog
:
false
,
current
:{},
current
:
{},
uploadFile
:{},
uploadFile
:
{},
DOWNLOADEQUIPMENTDETAILSTEMPLATE
:
DOWNLOADEQUIPMENTDETAILSTEMPLATE
,
DOWNLOADEQUIPMENTDETAILSTEMPLATE
:
DOWNLOADEQUIPMENTDETAILSTEMPLATE
,
IMPORTEQUIPMENTDETAILS
:
IMPORTEQUIPMENTDETAILS
,
IMPORTEQUIPMENTDETAILS
:
IMPORTEQUIPMENTDETAILS
,
uploadError
:{}
uploadError
:
{}
}
}
},
},
created
()
{
created
()
{
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
this
.
getList
()
this
.
getDeviceList
()
this
.
getDeviceList
()
},
},
...
@@ -210,7 +366,7 @@ export default {
...
@@ -210,7 +366,7 @@ export default {
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
const
_this
=
this
const
_this
=
this
const
oParams
=
_this
.
getParams
()
const
oParams
=
_this
.
getParams
()
console
.
log
(
current
)
console
.
log
(
current
)
...
@@ -231,7 +387,7 @@ export default {
...
@@ -231,7 +387,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
oParams
=
this
.
formInline
const
oParams
=
this
.
formInline
if
(
oParams
.
searchKey
)
{
if
(
oParams
.
searchKey
)
{
...
@@ -254,7 +410,7 @@ export default {
...
@@ -254,7 +410,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
this
.
pageSize
=
e
this
.
getList
()
this
.
getList
()
},
},
...
@@ -262,7 +418,7 @@ export default {
...
@@ -262,7 +418,7 @@ export default {
/**
/**
* 获取设备类型列表
* 获取设备类型列表
*/
*/
getDeviceList
:
function
()
{
getDeviceList
:
function
()
{
let
_this
=
this
let
_this
=
this
GETDEVICETYPE
().
then
(
res
=>
{
GETDEVICETYPE
().
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
...
@@ -274,14 +430,14 @@ export default {
...
@@ -274,14 +430,14 @@ export default {
/**
/**
* 关闭弹框
* 关闭弹框
*/
*/
closeDialog
:
function
()
{
closeDialog
:
function
()
{
this
.
editShow
=
false
;
this
.
editShow
=
false
;
},
},
/**
/**
* 修改
* 修改
*/
*/
editEvent
:
function
(
row
)
{
editEvent
:
function
(
row
)
{
this
.
editShow
=
true
;
this
.
editShow
=
true
;
this
.
current
=
row
;
this
.
current
=
row
;
},
},
...
@@ -298,11 +454,11 @@ export default {
...
@@ -298,11 +454,11 @@ export default {
},
},
/**监听文件上传成功 */
/**监听文件上传成功 */
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
console
.
log
(
res
);
console
.
log
(
res
);
//this.$refs.upload.submit();
//this.$refs.upload.submit();
let
o
=
res
.
data
||
[];
let
o
=
res
.
data
||
[];
let
m
=
o
[
0
]
||
{};
let
m
=
o
[
0
]
||
{};
if
(
m
.
url
)
{
if
(
m
.
url
)
{
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
...
@@ -313,13 +469,13 @@ export default {
...
@@ -313,13 +469,13 @@ export default {
},
},
/**手动上传文件 */
/**手动上传文件 */
uploadInfoToServer
:
function
()
{
uploadInfoToServer
:
function
()
{
// if(!this.uploadFile || !this.uploadFile.name){
// if(!this.uploadFile || !this.uploadFile.name){
// }
// }
let
o
=
this
.
fileInfo
;
let
o
=
this
.
fileInfo
;
if
(
!
o
)
{
if
(
!
o
)
{
return
false
;
return
false
;
}
}
let
oParams
=
JSON
.
parse
(
o
);
let
oParams
=
JSON
.
parse
(
o
);
...
@@ -331,7 +487,7 @@ export default {
...
@@ -331,7 +487,7 @@ export default {
/**
/**
* 关闭弹框
* 关闭弹框
*/
*/
closeImportDialog
:
function
()
{
closeImportDialog
:
function
()
{
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
this
.
uploadFile
=
{}
this
.
uploadFile
=
{}
this
.
showDialog
=
false
;
this
.
showDialog
=
false
;
...
@@ -340,13 +496,13 @@ export default {
...
@@ -340,13 +496,13 @@ export default {
/**
/**
* 导出列表
* 导出列表
*/
*/
exportInfo
:
function
()
{
exportInfo
:
function
()
{
const
_this
=
this
const
_this
=
this
const
_data
=
_this
.
getParams
()
const
_data
=
_this
.
getParams
()
const
params
=
{
'fileName'
:
'设备库存列表'
}
const
params
=
{
'fileName'
:
'设备库存列表'
}
params
.
url
=
config
.
baseURL
+
"/deviceInfo/exportExit"
params
.
url
=
config
.
baseURL
+
"/deviceInfo/exportExit"
params
.
data
=
_data
params
.
data
=
_data
params
.
success
=
function
()
{
params
.
success
=
function
()
{
_this
.
exportLoading
=
false
_this
.
exportLoading
=
false
}
}
_this
.
exportLoading
=
true
_this
.
exportLoading
=
true
...
@@ -367,11 +523,11 @@ export default {
...
@@ -367,11 +523,11 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.table_box
{
.table_box
{
margin
:
20px
0
;
margin
:
20px
0
;
}
}
.upload_box
{
.upload_box
{
.h2
{
.h2
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
normal
;
font-weight
:
normal
;
...
@@ -383,7 +539,7 @@ export default {
...
@@ -383,7 +539,7 @@ export default {
.upload_cell
{
.upload_cell
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin
:
10px
0
;
margin
:
10px
0
;
.name
{
.name
{
width
:
80px
;
width
:
80px
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -393,7 +549,7 @@ export default {
...
@@ -393,7 +549,7 @@ export default {
display
:
flex
;
display
:
flex
;
.a_input
{
.a_input
{
margin
:
0
8px
0
0
;
margin
:
0
8px
0
0
;
width
:
217px
;
width
:
217px
;
}
}
}
}
}
}
...
...
src/views/deviceManage/deviceSetting.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"设备类型"
>
<el-form-item
label=
"设备类型"
>
<el-select
v-model=
"formInline.deviceTypeId"
placeholder=
"请选择"
>
<el-select
<el-option
value
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.deviceTypeId"
placeholder=
"请选择"
>
<el-option
value
label=
"全部"
>
全部
</el-option>
<el-option
<el-option
v-for=
"item in deviceTypeList"
v-for=
"item in deviceTypeList"
:key=
"item.id"
:key=
"item.id"
...
@@ -14,11 +28,16 @@
...
@@ -14,11 +28,16 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"物料编码"
>
<el-form-item
label=
"物料编码"
>
<el-input
v-model=
"formInline.attribName"
placeholder=
"请输入物料编码"
clearable
/>
<el-input
v-model=
"formInline.attribName"
placeholder=
"请输入物料编码"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
icon=
"el-icon-search"
icon=
"el-icon-search"
:loading=
"tableLoading"
:loading=
"tableLoading"
@
click=
"getList()"
@
click=
"getList()"
...
@@ -27,6 +46,7 @@
...
@@ -27,6 +46,7 @@
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
:loading=
"tableLoading"
:loading=
"tableLoading"
@
click=
"showModal = true"
@
click=
"showModal = true"
...
@@ -45,26 +65,104 @@
...
@@ -45,26 +65,104 @@
size=
"small"
size=
"small"
border
border
>
>
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
<el-table-column
<el-table-column
prop=
"attribCode"
label=
"物料编码"
width=
"150"
/>
type=
"index"
<el-table-column
prop=
"attribName"
label=
"物料名称"
width=
"250"
/>
:index=
"index =>
{return index+1}"
<el-table-column
prop=
"devTypeName"
label=
"设备类型"
:width=
"tdWidth"
/>
label="序号"
<el-table-column
prop=
"devMnumName"
label=
"设备型号"
:width=
"tdWidth"
:formatter=
"formatter"
/>
width="80"
<el-table-column
prop=
"orNetName"
label=
"是否联网"
:width=
"tdWidth"
:formatter=
"formatter"
/>
/>
<el-table-column
prop=
"cardSelfName"
label=
"卡类型"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
<el-table-column
prop=
"orOpenName"
label=
"专用/通用"
:width=
"tdWidth"
:formatter=
"formatter"
/>
prop=
"attribCode"
<el-table-column
prop=
"screenName"
label=
"是否带屏"
:width=
"tdWidth"
:formatter=
"formatter"
/>
label=
"物料编码"
<el-table-column
prop=
"sourceName"
label=
"有源/无源"
:width=
"tdWidth"
:formatter=
"formatter"
/>
width=
"150"
<el-table-column
prop=
"msizeName"
label=
"尺寸"
:width=
"tdWidth"
:formatter=
"formatter"
/>
/>
<el-table-column
prop=
"modelName"
label=
"机型"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
<el-table-column
prop=
"typeName"
label=
"裸机/整机"
:width=
"tdWidth"
:formatter=
"formatter"
/>
prop=
"attribName"
<el-table-column
prop=
"configureName"
label=
"配置"
:width=
"tdWidth"
:formatter=
"formatter"
/>
label=
"物料名称"
<el-table-column
prop=
"boardVersion"
label=
"主板版本号"
:width=
"tdWidth"
:formatter=
"formatter"
/>
width=
"250"
<el-table-column
prop=
"softVersion"
label=
"软件版本号"
:width=
"tdWidth"
:formatter=
"formatter"
/>
/>
<el-table-column
prop=
"devTypeName"
label=
"设备类型"
:width=
"tdWidth"
/>
<el-table-column
prop=
"devMnumName"
label=
"设备型号"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"orNetName"
label=
"是否联网"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"cardSelfName"
label=
"卡类型"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"orOpenName"
label=
"专用/通用"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"screenName"
label=
"是否带屏"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"sourceName"
label=
"有源/无源"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"msizeName"
label=
"尺寸"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"modelName"
label=
"机型"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"typeName"
label=
"裸机/整机"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"configureName"
label=
"配置"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"boardVersion"
label=
"主板版本号"
:width=
"tdWidth"
:formatter=
"formatter"
/>
<el-table-column
prop=
"softVersion"
label=
"软件版本号"
:width=
"tdWidth"
:formatter=
"formatter"
/>
</el-table>
</el-table>
<div
class=
"pagination_list"
>
<div
class=
"pagination_list"
>
<el-pagination
<el-pagination
background
background
small
layout=
"sizes, total,prev, pager, next, jumper"
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-size=
"pageSize"
...
@@ -84,17 +182,21 @@
...
@@ -84,17 +182,21 @@
<el-button
@
click=
"showModal = false"
>
取消
</el-button>
<el-button
@
click=
"showModal = false"
>
取消
</el-button>
</div>
</div>
</el-dialog>
-->
</el-dialog>
-->
<add-setting
:show=
"showModal"
v-if=
"showModal"
@
closed=
"closeAddSettingDialog"
/>
<add-setting
:show=
"showModal"
v-if=
"showModal"
@
closed=
"closeAddSettingDialog"
/>
<!-- 弹框 end -->
<!-- 弹框 end -->
</d2-container>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
PAGEATTRIBMANA
,
PAGEATTRIBMANA
,
GETDEVICETYPE
,
GETDEVICETYPE
,
// SAVEATTRIBMANA
// SAVEATTRIBMANA
}
from
"@/http/interface"
;
}
from
"@/http/interface"
;
import
GlsxDialog
from
"@/components/dialog/index"
;
import
GlsxDialog
from
"@/components/dialog/index"
;
import
AddSetting
from
"./addSetting"
;
import
AddSetting
from
"./addSetting"
;
...
@@ -123,24 +225,24 @@ export default {
...
@@ -123,24 +225,24 @@ export default {
},
},
deviceTypeList
:
[],
deviceTypeList
:
[],
showModal
:
false
,
showModal
:
false
,
showChildModal
:
false
showChildModal
:
false
};
};
},
},
created
()
{},
created
()
{
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
();
this
.
getList
();
this
.
getDeviceList
();
this
.
getDeviceList
();
},
},
methods
:
{
methods
:
{
formatter
:
function
(
row
,
column
,
cellValue
)
{
formatter
:
function
(
row
,
column
,
cellValue
)
{
if
(
cellValue
)
{
if
(
cellValue
)
{
if
(
cellValue
==
'未知'
||
cellValue
==
"'未知'"
)
{
if
(
cellValue
==
'未知'
||
cellValue
==
"'未知'"
)
{
return
'//'
return
'//'
}
else
{
}
else
{
return
cellValue
return
cellValue
}
}
}
else
{
}
else
{
return
''
return
''
}
}
},
},
...
@@ -148,7 +250,7 @@ export default {
...
@@ -148,7 +250,7 @@ export default {
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
const
_this
=
this
;
const
_this
=
this
;
const
oParams
=
_this
.
getParams
();
const
oParams
=
_this
.
getParams
();
oParams
.
pageNum
=
current
||
_this
.
currentPage
;
oParams
.
pageNum
=
current
||
_this
.
currentPage
;
...
@@ -167,7 +269,7 @@ export default {
...
@@ -167,7 +269,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
oParams
=
this
.
formInline
;
const
oParams
=
this
.
formInline
;
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageSize
=
this
.
pageSize
;
return
oParams
;
return
oParams
;
...
@@ -176,7 +278,7 @@ export default {
...
@@ -176,7 +278,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
;
this
.
pageSize
=
e
;
this
.
getList
();
this
.
getList
();
},
},
...
@@ -184,7 +286,7 @@ export default {
...
@@ -184,7 +286,7 @@ export default {
/**
/**
* 获取设备类型列表
* 获取设备类型列表
*/
*/
getDeviceList
:
function
()
{
getDeviceList
:
function
()
{
const
_this
=
this
;
const
_this
=
this
;
GETDEVICETYPE
().
then
(
res
=>
{
GETDEVICETYPE
().
then
(
res
=>
{
const
{
data
}
=
res
;
const
{
data
}
=
res
;
...
@@ -192,9 +294,9 @@ export default {
...
@@ -192,9 +294,9 @@ export default {
});
});
},
},
closeAddSettingDialog
:
function
(
sub
)
{
closeAddSettingDialog
:
function
(
sub
)
{
this
.
showModal
=
false
this
.
showModal
=
false
if
(
sub
)
{
if
(
sub
)
{
this
.
getList
()
this
.
getList
()
}
}
}
}
...
...
src/views/deviceManage/firmware.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"固件版本号"
>
<el-form-item
label=
"固件版本号"
>
<el-input
v-model=
"formInline.fastenerVersion"
placeholder=
"请输入固件版本号"
clearable
/>
<el-input
v-model=
"formInline.fastenerVersion"
placeholder=
"请输入固件版本号"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
icon=
"el-icon-search"
icon=
"el-icon-search"
:loading=
"tableLoading"
:loading=
"tableLoading"
@
click=
"getList()"
@
click=
"getList()"
...
@@ -16,6 +29,7 @@
...
@@ -16,6 +29,7 @@
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
:loading=
"tableLoading"
:loading=
"tableLoading"
@
click=
"showModal = true"
@
click=
"showModal = true"
...
@@ -34,60 +48,119 @@
...
@@ -34,60 +48,119 @@
size=
"small"
size=
"small"
border
border
>
>
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
<el-table-column
<el-table-column
prop=
"deviceCode"
label=
"机型"
>
type=
"index"
:index=
"index =>
{return index+1}"
label="序号"
width="80"
/>
<el-table-column
prop=
"deviceCode"
label=
"机型"
>
<template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
typeName
}}
</
template
>
<template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
typeName
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"deviceName"
label=
"裸机/整机"
>
<el-table-column
prop=
"deviceName"
label=
"裸机/整机"
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
modelName
}}
</
template
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
modelName
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"iccid"
label=
"配置"
>
<el-table-column
prop=
"iccid"
label=
"配置"
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
configureName
}}
</
template
>
<
template
slot-scope=
"scoped"
>
{{
scoped
.
row
.
attribMana
.
configureName
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"boardVersion"
label=
"主板版本号"
/>
<el-table-column
<el-table-column
prop=
"mcuVersion"
label=
"芯片版本号"
/>
prop=
"boardVersion"
<el-table-column
prop=
"fastenerVersion"
label=
"固件版本号"
>
label=
"主板版本号"
/>
<el-table-column
prop=
"mcuVersion"
label=
"芯片版本号"
/>
<el-table-column
prop=
"fastenerVersion"
label=
"固件版本号"
>
<
template
slot-scope=
"scoped"
>
<
template
slot-scope=
"scoped"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.fastenerVersion"
placement=
"top-start"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.fastenerVersion"
placement=
"top-start"
>
<span>
{{
CUTSTR
(
scoped
.
row
.
fastenerVersion
)
}}
</span>
<span>
{{
CUTSTR
(
scoped
.
row
.
fastenerVersion
)
}}
</span>
</el-tooltip>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"softVersion"
label=
"软件版本号"
>
<el-table-column
prop=
"softVersion"
label=
"软件版本号"
>
<
template
slot-scope=
"scoped"
>
<
template
slot-scope=
"scoped"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.softVersion"
placement=
"top-start"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.softVersion"
placement=
"top-start"
>
<span>
{{
CUTSTR
(
scoped
.
row
.
softVersion
)
}}
</span>
<span>
{{
CUTSTR
(
scoped
.
row
.
softVersion
)
}}
</span>
</el-tooltip>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"vendorCode"
label=
"厂商码"
>
<el-table-column
prop=
"vendorCode"
label=
"厂商码"
>
<
template
slot-scope=
"scoped"
>
<
template
slot-scope=
"scoped"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.vendorCode"
placement=
"top-start"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.vendorCode"
placement=
"top-start"
>
<span>
{{
CUTSTR
(
scoped
.
row
.
vendorCode
,
14
)
}}
</span>
<span>
{{
CUTSTR
(
scoped
.
row
.
vendorCode
,
14
)
}}
</span>
</el-tooltip>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"svnAddress"
label=
"SVN地址"
>
<el-table-column
prop=
"svnAddress"
label=
"SVN地址"
>
<
template
slot-scope=
"scoped"
>
<
template
slot-scope=
"scoped"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.svnAddress"
placement=
"top-start"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.svnAddress"
placement=
"top-start"
>
<span>
{{
CUTSTR
(
scoped
.
row
.
svnAddress
,
16
)
}}
</span>
<span>
{{
CUTSTR
(
scoped
.
row
.
svnAddress
,
16
)
}}
</span>
</el-tooltip>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"updateContent"
label=
"更新内容"
>
<el-table-column
prop=
"updateContent"
label=
"更新内容"
>
<
template
slot-scope=
"scoped"
>
<
template
slot-scope=
"scoped"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.updateContent"
placement=
"top-start"
>
<el-tooltip
class=
"item"
:content=
"scoped.row.updateContent"
placement=
"top-start"
>
<span>
{{
CUTSTR
(
scoped
.
row
.
updateContent
)
}}
</span>
<span>
{{
CUTSTR
(
scoped
.
row
.
updateContent
)
}}
</span>
</el-tooltip>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"createdDate"
label=
"创建时间"
>
<el-table-column
prop=
"createdDate"
label=
"创建时间"
>
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
createdDate
)
}}
</
template
>
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
createdDate
)
}}
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
class=
"pagination_list"
>
<div
class=
"pagination_list"
>
<el-pagination
<el-pagination
background
background
small
layout=
"sizes, total,prev, pager, next, jumper"
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-size=
"pageSize"
...
@@ -100,17 +173,28 @@
...
@@ -100,17 +173,28 @@
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<!-- 弹框 开始 -->
<!-- 弹框 开始 -->
<glsx-dialog
title=
"创建固件版本"
:show=
"showModal"
:usefooter=
"true"
@
closed=
"closeDialog"
>
<glsx-dialog
title=
"创建固件版本"
:show=
"showModal"
:usefooter=
"true"
@
closed=
"closeDialog"
>
<div>
<div>
<edit-frimware
ref=
"editFirmware"
v-if=
"showModal"
/>
<edit-frimware
ref=
"editFirmware"
v-if=
"showModal"
/>
</div>
</div>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"saveInfo()"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"saveInfo()"
>
提交
</el-button>
<el-button
@
click=
"closeDialog"
>
取消
</el-button>
<el-button
@
click=
"closeDialog"
>
取消
</el-button>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
<!-- 弹框 end -->
<!-- 弹框 end -->
</d2-container>
</d2-container>
</template>
</template>
...
@@ -150,16 +234,16 @@ export default {
...
@@ -150,16 +234,16 @@ export default {
showModal
:
false
showModal
:
false
};
};
},
},
created
()
{},
created
()
{
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
const
_this
=
this
;
const
_this
=
this
;
const
oParams
=
_this
.
getParams
();
const
oParams
=
_this
.
getParams
();
console
.
log
(
current
);
console
.
log
(
current
);
...
@@ -180,7 +264,7 @@ export default {
...
@@ -180,7 +264,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
oParams
=
this
.
formInline
;
const
oParams
=
this
.
formInline
;
const
m
=
this
.
registerDate
;
const
m
=
this
.
registerDate
;
if
(
m
&&
m
.
length
>
0
)
{
if
(
m
&&
m
.
length
>
0
)
{
...
@@ -197,7 +281,7 @@ export default {
...
@@ -197,7 +281,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
;
this
.
pageSize
=
e
;
this
.
getList
();
this
.
getList
();
},
},
...
@@ -205,7 +289,7 @@ export default {
...
@@ -205,7 +289,7 @@ export default {
/**
/**
* 保存数据
* 保存数据
*/
*/
saveInfo
:
function
()
{
saveInfo
:
function
()
{
let
_this
=
this
;
let
_this
=
this
;
let
_obj
=
_this
.
$refs
.
editFirmware
;
let
_obj
=
_this
.
$refs
.
editFirmware
;
console
.
log
(
_obj
);
console
.
log
(
_obj
);
...
@@ -230,7 +314,7 @@ export default {
...
@@ -230,7 +314,7 @@ export default {
},
},
/**关闭弹框 */
/**关闭弹框 */
closeDialog
:
function
()
{
closeDialog
:
function
()
{
this
.
showModal
=
false
;
this
.
showModal
=
false
;
}
}
...
...
src/views/deviceManage/outManage.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"发货单号"
>
<el-form-item
label=
"发货单号"
>
<el-input
v-model=
"formInline.orderCode"
placeholder=
"请输入发货单号"
clearable
/>
<el-input
v-model=
"formInline.orderCode"
placeholder=
"请输入发货单号"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"SN"
>
<el-form-item
label=
"SN"
>
<el-input
v-model=
"formInline.sn"
placeholder=
"请输入SN"
clearable
/>
<el-input
v-model=
"formInline.sn"
placeholder=
"请输入SN"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"操作标记"
>
<el-form-item
label=
"操作标记"
>
<el-input
v-model=
"formInline.seedTag"
placeholder=
"请输入操作标记"
clearable
/>
<el-input
v-model=
"formInline.seedTag"
placeholder=
"请输入操作标记"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"处理状态"
>
<el-form-item
label=
"处理状态"
>
<el-select
v-model=
"formInline.result"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.result"
<el-option
value=
"UN"
label=
"正在处理"
>
正在处理
</el-option>
placeholder=
"请选择"
<el-option
value=
"FA"
label=
"处理失败"
>
处理失败
</el-option>
>
<el-option
value=
"SU"
label=
"处理成功"
>
处理成功
</el-option>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
value=
"UN"
label=
"正在处理"
>
正在处理
</el-option>
<el-option
value=
"FA"
label=
"处理失败"
>
处理失败
</el-option>
<el-option
value=
"SU"
label=
"处理成功"
>
处理成功
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"导入时间"
>
<el-form-item
label=
"导入时间"
>
...
@@ -31,66 +66,167 @@
...
@@ -31,66 +66,167 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
</el-form-item>
type=
"primary"
<el-form-item>
size=
"mini"
<el-button
type=
"primary"
icon=
"el-icon-upload2"
@
click=
"openDialog"
>
导入
</el-button>
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-upload2"
@
click=
"openDialog"
>
导入
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
stripe
style=
"width: 100%"
size=
"small"
border
>
<el-table
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
v-loading=
"tableLoading"
<el-table-column
prop=
"orderCode"
label=
"发货单号"
:width=
"tdWidth"
/>
:data=
"tableData"
<el-table-column
prop=
"simCardNo"
label=
"SIM卡手机号码"
:width=
"tdWidth"
/>
stripe
<el-table-column
prop=
"iccid"
label=
"ICCID"
:width=
"tdWidth"
/>
style=
"width: 100%"
<el-table-column
prop=
"imsi"
label=
"IMSI"
:width=
"tdWidth"
/>
size=
"small"
<el-table-column
prop=
"imei"
label=
"IMEI"
:width=
"tdWidth"
/>
border
<el-table-column
prop=
"sn"
label=
"SN"
:width=
"tdWidth"
/>
>
<el-table-column
prop=
"model"
label=
"设备型号"
:width=
"tdWidth"
/>
<el-table-column
<el-table-column
prop=
"batch"
label=
"批次号"
:width=
"tdWidth"
/>
type=
"index"
<el-table-column
prop=
"vcode"
label=
"验证码"
:width=
"tdWidth"
/>
:index=
"index =>
{return index+1}"
<el-table-column
prop=
"logisticsCpy"
label=
"物流公司"
:width=
"tdWidth"
/>
label="序号"
<el-table-column
prop=
"logisticsNo"
label=
"物流单号"
:width=
"tdWidth"
/>
width="80"
<el-table-column
prop=
"factoryName"
label=
"工厂"
:width=
"tdWidth"
/>
/>
<el-table-column
prop=
"seedTag"
label=
"操作标记"
:width=
"tdWidth"
/>
<el-table-column
<el-table-column
prop=
"result"
label=
"处理状态"
:width=
"tdWidth"
>
prop=
"orderCode"
<template
slot-scope=
"scoped"
>
label=
"发货单号"
{{
resultShow
[
scoped
.
row
.
result
]
}}
:width=
"tdWidth"
</
template
>
/>
</el-table-column>
<el-table-column
<el-table-column
prop=
"resultDesc"
label=
"处理描述"
:width=
"tdWidth"
/>
prop=
"simCardNo"
<el-table-column
prop=
"createdDate"
label=
"导入时间"
:width=
"tdWidth"
fixed=
"right"
>
label=
"SIM卡手机号码"
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
createdDate
)
}}
</
template
>
:width=
"tdWidth"
</el-table-column>
/>
</el-table>
<el-table-column
<div
class=
"pagination_list"
>
prop=
"iccid"
<el-pagination
label=
"ICCID"
background
:width=
"tdWidth"
layout=
"sizes, total,prev, pager, next, jumper"
/>
:total=
"pageTotal"
<el-table-column
:page-size=
"pageSize"
prop=
"imsi"
:page-sizes=
"pageSizes"
label=
"IMSI"
@
current-change=
"getList"
:width=
"tdWidth"
@
size-change=
"changePageSize"
/>
/>
<el-table-column
</div>
prop=
"imei"
label=
"IMEI"
:width=
"tdWidth"
/>
<el-table-column
prop=
"sn"
label=
"SN"
:width=
"tdWidth"
/>
<el-table-column
prop=
"model"
label=
"设备型号"
:width=
"tdWidth"
/>
<el-table-column
prop=
"batch"
label=
"批次号"
:width=
"tdWidth"
/>
<el-table-column
prop=
"vcode"
label=
"验证码"
:width=
"tdWidth"
/>
<el-table-column
prop=
"logisticsCpy"
label=
"物流公司"
:width=
"tdWidth"
/>
<el-table-column
prop=
"logisticsNo"
label=
"物流单号"
:width=
"tdWidth"
/>
<el-table-column
prop=
"factoryName"
label=
"工厂"
:width=
"tdWidth"
/>
<el-table-column
prop=
"seedTag"
label=
"操作标记"
:width=
"tdWidth"
/>
<el-table-column
prop=
"result"
label=
"处理状态"
:width=
"tdWidth"
>
<template
slot-scope=
"scoped"
>
{{
resultShow
[
scoped
.
row
.
result
]
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"resultDesc"
label=
"处理描述"
:width=
"tdWidth"
/>
<el-table-column
prop=
"createdDate"
label=
"导入时间"
:width=
"tdWidth"
fixed=
"right"
>
<
template
slot-scope=
"scoped"
>
{{
DATEFORMATE
(
scoped
.
row
.
createdDate
)
}}
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination_list"
>
<el-pagination
background
small
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-sizes=
"pageSizes"
@
current-change=
"getList"
@
size-change=
"changePageSize"
/>
</div>
</div>
</div>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<!-- 弹框 开始 -->
<!-- 弹框 开始 -->
<glsx-dialog
:show=
"showDialog"
title=
"导入设备"
width=
"30%"
usefooter
@
closed=
"closeImportDialog"
>
<glsx-dialog
:show=
"showDialog"
title=
"导入设备"
width=
"30%"
usefooter
@
closed=
"closeImportDialog"
>
<div
class=
"upload_box"
>
<div
class=
"upload_box"
>
<h2
class=
"h2"
>
<h2
class=
"h2"
>
请点击"
请点击"
<a
:href=
"GPSDEVICEDOWNLOADTEMPLATE"
target=
"_blank"
>
下载GPS出库模板
</a>
", 并填写导入信息
<a
:href=
"GPSDEVICEDOWNLOADTEMPLATE"
target=
"_blank"
>
下载GPS出库模板
</a>
", 并填写导入信息
</h2>
</h2>
<div
class=
"upload_cell"
>
<div
class=
"upload_cell"
>
<span
class=
"name"
>
导入GPS出库模板:
</span>
<span
class=
"name"
>
导入GPS出库模板:
</span>
<div
class=
"content"
>
<div
class=
"content"
>
<el-input
type=
"text"
class=
"a_input"
:value=
"uploadFile.name"
readonly
/>
<el-input
type=
"text"
class=
"a_input"
:value=
"uploadFile.name"
readonly
/>
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
ref=
"upload"
ref=
"upload"
...
@@ -104,18 +240,33 @@
...
@@ -104,18 +240,33 @@
:on-change=
"uploadChange"
:on-change=
"uploadChange"
:on-success=
"uploadSuccess"
:on-success=
"uploadSuccess"
>
>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
</el-upload>
</el-upload>
</div>
</div>
</div>
</div>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<span>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
请下载
</span>
<span>
请下载
</span>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"btn_group"
>
<div
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
>
导入
</el-button>
slot=
"footer"
class=
"btn_group"
>
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
>
导入
</el-button>
<el-button
@
click=
"closeImportDialog"
>
取消
</el-button>
<el-button
@
click=
"closeImportDialog"
>
取消
</el-button>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
...
@@ -149,25 +300,25 @@ export default {
...
@@ -149,25 +300,25 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
registerDate
:
[],
registerDate
:
[],
tdWidth
:
170
,
tdWidth
:
170
,
DATEFORMATE
:
str
=>
{
return
this
.
$Util
.
dateFormate
(
str
)
},
DATEFORMATE
:
str
=>
{
return
this
.
$Util
.
dateFormate
(
str
)
},
resultShow
:
{
resultShow
:
{
'UN'
:
'正在处理'
,
'UN'
:
'正在处理'
,
'FA'
:
'处理失败'
,
'FA'
:
'处理失败'
,
'SU'
:
'处理成功'
'SU'
:
'处理成功'
},
},
showDialog
:
false
,
showDialog
:
false
,
current
:{},
current
:
{},
uploadFile
:{},
uploadFile
:
{},
GPSDEVICEDOWNLOADTEMPLATE
:
GPSDEVICEDOWNLOADTEMPLATE
,
GPSDEVICEDOWNLOADTEMPLATE
:
GPSDEVICEDOWNLOADTEMPLATE
,
PREGPSDEVICEIMPORTCHECK
:
PREGPSDEVICEIMPORTCHECK
,
PREGPSDEVICEIMPORTCHECK
:
PREGPSDEVICEIMPORTCHECK
,
uploadError
:{}
uploadError
:
{}
}
}
},
},
created
()
{
created
()
{
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
...
@@ -175,7 +326,7 @@ export default {
...
@@ -175,7 +326,7 @@ export default {
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
const
_this
=
this
const
_this
=
this
const
oParams
=
_this
.
getParams
()
const
oParams
=
_this
.
getParams
()
console
.
log
(
current
)
console
.
log
(
current
)
...
@@ -196,7 +347,7 @@ export default {
...
@@ -196,7 +347,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
n
=
this
.
formInline
const
n
=
this
.
formInline
const
m
=
this
.
registerDate
const
m
=
this
.
registerDate
const
oParams
=
{}
const
oParams
=
{}
...
@@ -216,7 +367,7 @@ export default {
...
@@ -216,7 +367,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
this
.
pageSize
=
e
this
.
getList
()
this
.
getList
()
},
},
...
@@ -233,11 +384,11 @@ export default {
...
@@ -233,11 +384,11 @@ export default {
},
},
/**监听文件上传成功 */
/**监听文件上传成功 */
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
console
.
log
(
res
);
console
.
log
(
res
);
//this.$refs.upload.submit();
//this.$refs.upload.submit();
let
o
=
res
.
data
||
[];
let
o
=
res
.
data
||
[];
let
m
=
o
[
0
]
||
{};
let
m
=
o
[
0
]
||
{};
if
(
m
.
url
)
{
if
(
m
.
url
)
{
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
...
@@ -248,12 +399,12 @@ export default {
...
@@ -248,12 +399,12 @@ export default {
},
},
/**手动上传文件 */
/**手动上传文件 */
uploadInfoToServer
:
function
()
{
uploadInfoToServer
:
function
()
{
// if(!this.uploadFile || !this.uploadFile.name){
// if(!this.uploadFile || !this.uploadFile.name){
// }
// }
let
o
=
this
.
fileInfo
;
let
o
=
this
.
fileInfo
;
if
(
!
o
)
{
if
(
!
o
)
{
this
.
$message
({
this
.
$message
({
message
:
'请导入有效数据!'
,
message
:
'请导入有效数据!'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -271,7 +422,7 @@ export default {
...
@@ -271,7 +422,7 @@ export default {
/**
/**
* 关闭弹框
* 关闭弹框
*/
*/
closeImportDialog
:
function
()
{
closeImportDialog
:
function
()
{
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
this
.
uploadFile
=
{}
this
.
uploadFile
=
{}
this
.
showDialog
=
false
;
this
.
showDialog
=
false
;
...
@@ -282,11 +433,11 @@ export default {
...
@@ -282,11 +433,11 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.table_box
{
.table_box
{
margin
:
20px
0
;
margin
:
20px
0
;
}
}
.upload_box
{
.upload_box
{
.h2
{
.h2
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
normal
;
font-weight
:
normal
;
...
@@ -298,7 +449,7 @@ export default {
...
@@ -298,7 +449,7 @@ export default {
.upload_cell
{
.upload_cell
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin
:
10px
0
;
margin
:
10px
0
;
.name
{
.name
{
width
:
130px
;
width
:
130px
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -308,7 +459,7 @@ export default {
...
@@ -308,7 +459,7 @@ export default {
display
:
flex
;
display
:
flex
;
.a_input
{
.a_input
{
margin
:
0
8px
0
0
;
margin
:
0
8px
0
0
;
width
:
217px
;
width
:
217px
;
}
}
}
}
}
}
...
...
src/views/orderManage/assignOrder.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"子订单号"
>
<el-form-item
label=
"子订单号"
>
<el-input
v-model=
"formInline.merchantOrder"
placeholder=
"请输入子订单号"
clearable
/>
<el-input
v-model=
"formInline.merchantOrder"
placeholder=
"请输入子订单号"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发货单号"
>
<el-form-item
label=
"发货单号"
>
<el-input
v-model=
"formInline.dispatchOrderCode"
placeholder=
"请输入发货单号"
clearable
/>
<el-input
v-model=
"formInline.dispatchOrderCode"
placeholder=
"请输入发货单号"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"下单客户"
>
<el-form-item
label=
"下单客户"
>
<el-input
v-model=
"formInline.merchantName"
placeholder=
"请输入下单客户"
clearable
/>
<el-input
v-model=
"formInline.merchantName"
placeholder=
"请输入下单客户"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"物料编码"
>
<el-form-item
label=
"物料编码"
>
<el-input
v-model=
"formInline.materialName"
placeholder=
"请输入物料编码"
clearable
/>
<el-input
v-model=
"formInline.materialName"
placeholder=
"请输入物料编码"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单状态"
>
<el-form-item
label=
"订单状态"
>
<el-select
v-model=
"formInline.status"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.status"
<el-option
value=
"8"
label=
"待分配"
>
待分配
</el-option>
placeholder=
"请选择"
<el-option
value=
"2"
label=
"待发货"
>
待发货
</el-option>
>
<el-option
value=
"3"
label=
"部分发货"
>
部分发货
</el-option>
<el-option
<el-option
value=
"0"
label=
"已驳回"
>
已驳回
</el-option>
value=
""
<el-option
value=
"5"
label=
"完成发货"
>
完成发货
</el-option>
label=
"全部"
<el-option
value=
"7"
label=
"提前结束发货"
>
提前结束发货
</el-option>
>
全部
</el-option>
<el-option
value=
"8"
label=
"待分配"
>
待分配
</el-option>
<el-option
value=
"2"
label=
"待发货"
>
待发货
</el-option>
<el-option
value=
"3"
label=
"部分发货"
>
部分发货
</el-option>
<el-option
value=
"0"
label=
"已驳回"
>
已驳回
</el-option>
<el-option
value=
"5"
label=
"完成发货"
>
完成发货
</el-option>
<el-option
value=
"7"
label=
"提前结束发货"
>
提前结束发货
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"渠道类型"
>
<el-form-item
label=
"渠道类型"
>
<el-select
v-model=
"formInline.channelId"
placeholder=
"请选择"
>
<el-select
<el-option
value
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.channelId"
placeholder=
"请选择"
>
<el-option
value
label=
"全部"
>
全部
</el-option>
<el-option
<el-option
v-for=
"item in merchantIdList"
v-for=
"item in merchantIdList"
:key=
"item.id"
:key=
"item.id"
...
@@ -47,98 +101,274 @@
...
@@ -47,98 +101,274 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-download"
:loading=
"exportLoading"
@
click=
"exportInfo()"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-download"
:loading=
"exportLoading"
@
click=
"exportInfo()"
>
导出
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"batchAssignShipment()"
>
批量分配发货
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"batchAssignShipment()"
>
批量分配发货
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"batchDirectDelivery()"
>
批量直接发货
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"batchDirectDelivery()"
>
批量直接发货
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
@
selection-change=
"selectChange"
stripe
style=
"width: 100%"
size=
"small"
border
>
<el-table
<el-table-column
type=
"selection"
width=
"50"
fixed=
"left"
align=
"center"
/>
v-loading=
"tableLoading"
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
:data=
"tableData"
<el-table-column
prop=
"merchantOrder"
label=
"子订单号"
width=
"200"
/>
@
selection-change=
"selectChange"
<el-table-column
prop=
"channelName"
label=
"商户渠道"
:width=
"tdWidth"
/>
stripe
<el-table-column
prop=
"merchantName"
label=
"下单客户"
width=
"80"
/>
style=
"width: 100%"
<el-table-column
prop=
"materialCode"
label=
"审核物料编号"
:width=
"tdWidth"
/>
size=
"small"
<el-table-column
prop=
"materialName"
label=
"审核物料名称"
width=
"250"
/>
border
<el-table-column
prop=
"deviceTypeName"
label=
"设备类型"
width=
"80"
/>
>
<el-table-column
prop=
"status"
label=
"订单状态"
width=
"80"
>
<el-table-column
<template
slot-scope=
"scope"
>
type=
"selection"
{{
statusShow
[
scope
.
row
.
status
]
}}
width=
"50"
</
template
>
fixed=
"left"
</el-table-column>
align=
"center"
<el-table-column
prop=
"totalCheck"
label=
"需发货数量"
width=
"90"
/>
/>
<el-table-column
prop=
"totalSends"
label=
"已发数量"
width=
"70"
/>
<el-table-column
<el-table-column
prop=
"totalOwes"
label=
"欠数"
width=
"70"
/>
type=
"index"
<el-table-column
prop=
"checkBy"
label=
"审核人"
width=
"70"
/>
:index=
"index =>
{return index+1}"
<el-table-column
prop=
"checkTime"
label=
"审核时间"
width=
"140"
>
label="序号"
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
checkTime
?
DATEFORMATE
(
scope
.
row
.
checkTime
,
'YYYY/MM/DD HH:mm:ss'
)
:
''
}}
</
template
>
width="80"
</el-table-column>
/>
<el-table-column
prop=
"checkRemark"
label=
"审核备注"
:width=
"tdWidth"
/>
<el-table-column
<el-table-column
prop=
"bsAddressDto.address"
label=
"收货地址"
:width=
"tdWidth"
/>
prop=
"merchantOrder"
<el-table-column
prop=
"bsAddressDto.name"
label=
"收货联系人"
:width=
"tdWidth"
/>
label=
"子订单号"
<el-table-column
prop=
"bsAddressDto.mobile"
label=
"收货联系电话"
:width=
"tdWidth"
/>
width=
"200"
<el-table-column
prop=
"subjectName"
label=
"项目"
:width=
"tdWidth"
/>
/>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"360"
>
<el-table-column
<
template
slot-scope=
"scope"
>
prop=
"channelName"
<el-button
type=
"primary"
size=
"mini"
v-if=
"scope.row.status == '8'"
@
click=
"assignShipment(scope.row)"
>
分配发货
</el-button>
label=
"商户渠道"
<el-button
type=
"primary"
size=
"mini"
v-if=
"scope.row.status == '8'"
@
click=
"directDelivery(scope.row)"
>
直接发货
</el-button>
:width=
"tdWidth"
<el-button
type=
"danger"
size=
"mini"
v-if=
"scope.row.status == '8'"
@
click=
"reject(scope.row)"
>
驳回
</el-button>
/>
<el-button
type=
"danger"
size=
"mini"
v-if=
"scope.row.status == '2'"
@
click=
"withdraw(scope.row)"
>
撤回
</el-button>
<el-table-column
<el-button
type=
"success"
size=
"mini"
v-if=
"scope.row.status == '3'"
@
click=
"advanceOver(scope.row)"
>
提前结束
</el-button>
prop=
"merchantName"
<el-button
type=
"info"
size=
"mini"
@
click=
"downloadInvoice(scope.row)"
>
下载发货单
</el-button>
label=
"下单客户"
</
template
>
width=
"80"
</el-table-column>
/>
</el-table>
<el-table-column
<div
class=
"pagination_list"
>
prop=
"materialCode"
<el-pagination
label=
"审核物料编号"
background
:width=
"tdWidth"
layout=
"sizes, total,prev, pager, next, jumper"
/>
:total=
"pageTotal"
<el-table-column
:page-size=
"pageSize"
prop=
"materialName"
:page-sizes=
"pageSizes"
label=
"审核物料名称"
@
current-change=
"getList"
width=
"250"
@
size-change=
"changePageSize"
/>
/>
<el-table-column
</div>
prop=
"deviceTypeName"
label=
"设备类型"
width=
"80"
/>
<el-table-column
prop=
"status"
label=
"订单状态"
width=
"80"
>
<template
slot-scope=
"scope"
>
{{
statusShow
[
scope
.
row
.
status
]
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"totalCheck"
label=
"需发货数量"
width=
"90"
/>
<el-table-column
prop=
"totalSends"
label=
"已发数量"
width=
"70"
/>
<el-table-column
prop=
"totalOwes"
label=
"欠数"
width=
"70"
/>
<el-table-column
prop=
"checkBy"
label=
"审核人"
width=
"70"
/>
<el-table-column
prop=
"checkTime"
label=
"审核时间"
width=
"140"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
checkTime
?
DATEFORMATE
(
scope
.
row
.
checkTime
,
'YYYY/MM/DD HH:mm:ss'
)
:
''
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"checkRemark"
label=
"审核备注"
:width=
"tdWidth"
/>
<el-table-column
prop=
"bsAddressDto.address"
label=
"收货地址"
:width=
"tdWidth"
/>
<el-table-column
prop=
"bsAddressDto.name"
label=
"收货联系人"
:width=
"tdWidth"
/>
<el-table-column
prop=
"bsAddressDto.mobile"
label=
"收货联系电话"
:width=
"tdWidth"
/>
<el-table-column
prop=
"subjectName"
label=
"项目"
:width=
"tdWidth"
/>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"360"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
plain
v-if=
"scope.row.status == '8'"
@
click=
"assignShipment(scope.row)"
>
分配发货
</el-button>
<el-button
type=
"primary"
size=
"mini"
plain
v-if=
"scope.row.status == '8'"
@
click=
"directDelivery(scope.row)"
>
直接发货
</el-button>
<el-button
type=
"danger"
size=
"mini"
plain
v-if=
"scope.row.status == '8'"
@
click=
"reject(scope.row)"
>
驳回
</el-button>
<el-button
type=
"danger"
size=
"mini"
plain
v-if=
"scope.row.status == '2'"
@
click=
"withdraw(scope.row)"
>
撤回
</el-button>
<el-button
type=
"success"
size=
"mini"
plain
v-if=
"scope.row.status == '3'"
@
click=
"advanceOver(scope.row)"
>
提前结束
</el-button>
<el-button
type=
"info"
size=
"mini"
plain
@
click=
"downloadInvoice(scope.row)"
>
下载发货单
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination_list"
>
<el-pagination
background
small
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-sizes=
"pageSizes"
@
current-change=
"getList"
@
size-change=
"changePageSize"
/>
</div>
</div>
</div>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<!-- 分配发货弹框 开始 -->
<!-- 分配发货弹框 开始 -->
<assign-shipment
:show=
"showAssignShipmentDialog"
v-if=
"showAssignShipmentDialog"
:info=
"info"
@
closed=
"closeAssignShipmentDialog"
/>
<assign-shipment
:show=
"showAssignShipmentDialog"
v-if=
"showAssignShipmentDialog"
:info=
"info"
@
closed=
"closeAssignShipmentDialog"
/>
<!-- 分配发货弹框 结束 -->
<!-- 分配发货弹框 结束 -->
<!-- 批量分配发货弹框 开始 -->
<!-- 批量分配发货弹框 开始 -->
<assign-shipment-for-batch
:show=
"showAssignShipmentForBatchDialog"
v-if=
"showAssignShipmentForBatchDialog"
:infoList=
"selectList"
@
closed=
"closeAssignShipmentForBatchDialog"
/>
<assign-shipment-for-batch
:show=
"showAssignShipmentForBatchDialog"
v-if=
"showAssignShipmentForBatchDialog"
:infoList=
"selectList"
@
closed=
"closeAssignShipmentForBatchDialog"
/>
<!-- 批量分配发货弹框 结束 -->
<!-- 批量分配发货弹框 结束 -->
<!-- 直接发货弹框 开始 -->
<!-- 直接发货弹框 开始 -->
<direct-delivery
:show=
"showDirectDeliveryDialog"
v-if=
"showDirectDeliveryDialog"
:info=
"info"
@
closed=
"closeDirectDeliveryDialog"
/>
<direct-delivery
:show=
"showDirectDeliveryDialog"
v-if=
"showDirectDeliveryDialog"
:info=
"info"
@
closed=
"closeDirectDeliveryDialog"
/>
<!-- 直接发货弹框 结束 -->
<!-- 直接发货弹框 结束 -->
<!-- 批量直接发货弹框 开始 -->
<!-- 批量直接发货弹框 开始 -->
<glsx-dialog
:show=
"showImportDialog"
title=
"批量直接发货"
width=
"30%"
usefooter
@
closed=
"closeImportDialog"
>
<glsx-dialog
:show=
"showImportDialog"
title=
"批量直接发货"
width=
"30%"
usefooter
@
closed=
"closeImportDialog"
>
<div
class=
"upload_box"
>
<div
class=
"upload_box"
>
<span
class=
"h3"
>
注意:此功能只能不需要工厂/仓库出货,且无需明细的设备,请谨慎操作
</span>
<span
class=
"h3"
>
注意:此功能只能不需要工厂/仓库出货,且无需明细的设备,请谨慎操作
</span>
<h2
class=
"h2"
>
<h2
class=
"h2"
>
请点击"
请点击"
<a
:href=
"GPSDEVICEDOWNLOADTEMPLATE"
target=
"_blank"
>
下载物料发货物流清单模板
</a>
", 并填写导入信息
<a
:href=
"GPSDEVICEDOWNLOADTEMPLATE"
target=
"_blank"
>
下载物料发货物流清单模板
</a>
", 并填写导入信息
</h2>
</h2>
<h2
class=
"h2"
>
请导入无需扫明细的物料发货物流清单
</h2>
<h2
class=
"h2"
>
请导入无需扫明细的物料发货物流清单
</h2>
<div
class=
"upload_cell"
>
<div
class=
"upload_cell"
>
<span
class=
"name"
>
选择文件:
</span>
<span
class=
"name"
>
选择文件:
</span>
<div
class=
"content"
>
<div
class=
"content"
>
<el-input
type=
"text"
class=
"a_input"
:value=
"uploadFile.name"
readonly
/>
<el-input
type=
"text"
class=
"a_input"
:value=
"uploadFile.name"
readonly
/>
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
ref=
"upload"
ref=
"upload"
...
@@ -152,18 +382,33 @@
...
@@ -152,18 +382,33 @@
:on-change=
"uploadChange"
:on-change=
"uploadChange"
:on-success=
"uploadSuccess"
:on-success=
"uploadSuccess"
>
>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
<el-button
size=
"small"
type=
"primary"
>
选择文件
</el-button>
</el-upload>
</el-upload>
</div>
</div>
</div>
</div>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<span>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
请下载
</span>
<span>
请下载
</span>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"btn_group"
>
<div
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
>
导入
</el-button>
slot=
"footer"
class=
"btn_group"
>
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
>
导入
</el-button>
<el-button
@
click=
"closeImportDialog"
>
取消
</el-button>
<el-button
@
click=
"closeImportDialog"
>
取消
</el-button>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
...
@@ -174,7 +419,7 @@
...
@@ -174,7 +419,7 @@
<
script
>
<
script
>
import
config
from
'@/http/config.js'
// 倒入默认配置
import
config
from
'@/http/config.js'
// 倒入默认配置
import
{
exportExcel
}
from
'@/common/common'
import
{
exportExcel
}
from
'@/common/common'
import
{
import
{
GPSDEVICEDOWNLOADTEMPLATE
,
GPSDEVICEDOWNLOADTEMPLATE
,
DEVICEIMPORT
,
DEVICEIMPORT
,
...
@@ -211,7 +456,7 @@ export default {
...
@@ -211,7 +456,7 @@ export default {
exportLoading
:
false
,
exportLoading
:
false
,
registerDate
:
[],
registerDate
:
[],
tdWidth
:
100
,
tdWidth
:
100
,
DATEFORMATE
:
(
str
,
type
)
=>
{
return
this
.
$Util
.
dateFormate
(
str
,
type
)
},
DATEFORMATE
:
(
str
,
type
)
=>
{
return
this
.
$Util
.
dateFormate
(
str
,
type
)
},
statusShow
:
{
statusShow
:
{
'8'
:
'待分配'
,
'8'
:
'待分配'
,
'2'
:
'待发货'
,
'2'
:
'待发货'
,
...
@@ -224,11 +469,11 @@ export default {
...
@@ -224,11 +469,11 @@ export default {
showAssignShipmentDialog
:
false
,
showAssignShipmentDialog
:
false
,
showAssignShipmentForBatchDialog
:
false
,
showAssignShipmentForBatchDialog
:
false
,
showDirectDeliveryDialog
:
false
,
showDirectDeliveryDialog
:
false
,
current
:{},
current
:
{},
uploadFile
:{},
uploadFile
:
{},
GPSDEVICEDOWNLOADTEMPLATE
:
GPSDEVICEDOWNLOADTEMPLATE
,
GPSDEVICEDOWNLOADTEMPLATE
:
GPSDEVICEDOWNLOADTEMPLATE
,
DEVICEIMPORT
:
DEVICEIMPORT
,
DEVICEIMPORT
:
DEVICEIMPORT
,
uploadError
:{},
uploadError
:
{},
selectList
:
[],
selectList
:
[],
}
}
},
},
...
@@ -236,7 +481,7 @@ export default {
...
@@ -236,7 +481,7 @@ export default {
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getMerchantList
()
this
.
getMerchantList
()
this
.
getList
()
this
.
getList
()
},
},
...
@@ -245,7 +490,7 @@ export default {
...
@@ -245,7 +490,7 @@ export default {
/**
/**
* 获取渠道
* 获取渠道
*/
*/
getMerchantList
:
function
()
{
getMerchantList
:
function
()
{
const
_this
=
this
;
const
_this
=
this
;
LISTMERCHANTCHANNEL
().
then
(
res
=>
{
LISTMERCHANTCHANNEL
().
then
(
res
=>
{
const
{
data
}
=
res
;
const
{
data
}
=
res
;
...
@@ -256,7 +501,7 @@ export default {
...
@@ -256,7 +501,7 @@ export default {
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
console
.
log
(
current
)
console
.
log
(
current
)
const
_this
=
this
const
_this
=
this
const
oParams
=
_this
.
getParams
()
const
oParams
=
_this
.
getParams
()
...
@@ -277,7 +522,7 @@ export default {
...
@@ -277,7 +522,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
n
=
this
.
formInline
const
n
=
this
.
formInline
const
m
=
this
.
registerDate
const
m
=
this
.
registerDate
let
oParams
=
{}
let
oParams
=
{}
...
@@ -298,7 +543,7 @@ export default {
...
@@ -298,7 +543,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
this
.
pageSize
=
e
this
.
getList
()
this
.
getList
()
},
},
...
@@ -306,13 +551,13 @@ export default {
...
@@ -306,13 +551,13 @@ export default {
/**
/**
* 导出列表
* 导出列表
*/
*/
exportInfo
:
function
()
{
exportInfo
:
function
()
{
const
_this
=
this
const
_this
=
this
const
_data
=
_this
.
getParams
()
const
_data
=
_this
.
getParams
()
const
params
=
{
'fileName'
:
'订单列表'
}
const
params
=
{
'fileName'
:
'订单列表'
}
params
.
url
=
EXPORTSPORDER
params
.
url
=
EXPORTSPORDER
params
.
data
=
_data
params
.
data
=
_data
params
.
success
=
function
()
{
params
.
success
=
function
()
{
_this
.
exportLoading
=
false
_this
.
exportLoading
=
false
}
}
_this
.
exportLoading
=
true
_this
.
exportLoading
=
true
...
@@ -322,148 +567,148 @@ export default {
...
@@ -322,148 +567,148 @@ export default {
/**
/**
* 驳回操作
* 驳回操作
*/
*/
reject
:
function
(
row
)
{
reject
:
function
(
row
)
{
let
htmlContent
=
'<span class="warningFont">注意:驳回后,订单无法重新发货,请慎重操作,谢谢!</span><br /><br />'
let
htmlContent
=
'<span class="warningFont">注意:驳回后,订单无法重新发货,请慎重操作,谢谢!</span><br /><br />'
+
'驳回原因<span class="warningFont">*</span>:'
+
'驳回原因<span class="warningFont">*</span>:'
this
.
$prompt
(
htmlContent
,
'驳回'
,
{
this
.
$prompt
(
htmlContent
,
'驳回'
,
{
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
,
inputType
:
'textarea'
,
inputType
:
'textarea'
,
confirmButtonText
:
'确认拒绝'
,
confirmButtonText
:
'确认拒绝'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
inputValidator
:
function
(
inputValue
){
inputValidator
:
function
(
inputValue
)
{
if
(
!
inputValue
){
if
(
!
inputValue
)
{
return
'请输入驳回原因'
return
'请输入驳回原因'
}
else
{
}
else
{
if
(
inputValue
.
length
>
200
){
if
(
inputValue
.
length
>
200
)
{
return
'原因最多支持200个字'
return
'原因最多支持200个字'
}
}
}
}
}
}).
then
(({
value
})
=>
{
}
let
oParams
=
{}
}).
then
(({
value
})
=>
{
oParams
.
merchantOrder
=
row
.
merchantOrder
let
oParams
=
{}
oParams
.
rebackReason
=
value
oParams
.
merchantOrder
=
row
.
merchantOrder
REBACKSPORDER
(
oParams
).
then
(
res
=>
{
oParams
.
rebackReason
=
value
if
(
res
.
returnCode
==
0
)
{
REBACKSPORDER
(
oParams
).
then
(
res
=>
{
this
.
$message
({
if
(
res
.
returnCode
==
0
)
{
type
:
'success'
,
this
.
$message
({
message
:
'操作成功!'
type
:
'success'
,
});
message
:
'操作成功!'
this
.
getList
()
});
}
else
{
this
.
getList
()
this
.
$message
({
}
else
{
type
:
'error'
,
this
.
$message
({
message
:
'操作失败!'
type
:
'error'
,
});
message
:
'操作失败!'
return
});
}
return
})
}
}).
catch
(()
=>
{
})
// this.$message({
}).
catch
(()
=>
{
// type: 'info',
// this.$message({
// message: '取消输入'
// type: 'info',
// });
// message: '取消输入'
});
// });
});
},
},
/**
/**
* 撤回操作
* 撤回操作
*/
*/
withdraw
:
function
(
row
)
{
withdraw
:
function
(
row
)
{
let
htmlContent
=
'<span class="warningFont">注意:撤回后,订单将重新变为待分配状态,工厂/仓库不再看到该出货订单,请慎重操作,谢谢!</span><br /><br />'
let
htmlContent
=
'<span class="warningFont">注意:撤回后,订单将重新变为待分配状态,工厂/仓库不再看到该出货订单,请慎重操作,谢谢!</span><br /><br />'
+
'撤回原因<span class="warningFont">*</span>:'
+
'撤回原因<span class="warningFont">*</span>:'
this
.
$prompt
(
htmlContent
,
'撤回'
,
{
this
.
$prompt
(
htmlContent
,
'撤回'
,
{
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
,
inputType
:
'textarea'
,
inputType
:
'textarea'
,
confirmButtonText
:
'确认拒绝'
,
confirmButtonText
:
'确认拒绝'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
inputValidator
:
function
(
inputValue
){
inputValidator
:
function
(
inputValue
)
{
if
(
!
inputValue
){
if
(
!
inputValue
)
{
return
'请输入撤回原因'
return
'请输入撤回原因'
}
else
{
}
else
{
if
(
inputValue
.
length
>
200
){
if
(
inputValue
.
length
>
200
)
{
return
'原因最多支持200个字'
return
'原因最多支持200个字'
}
}
}
}
}
}).
then
(({
value
})
=>
{
}
let
oParams
=
{}
}).
then
(({
value
})
=>
{
oParams
.
merchantOrder
=
row
.
merchantOrder
let
oParams
=
{}
oParams
.
recallReason
=
value
oParams
.
merchantOrder
=
row
.
merchantOrder
RECALLSPORDER
(
oParams
).
then
(
res
=>
{
oParams
.
recallReason
=
value
if
(
res
.
returnCode
==
0
)
{
RECALLSPORDER
(
oParams
).
then
(
res
=>
{
this
.
$message
({
if
(
res
.
returnCode
==
0
)
{
type
:
'success'
,
this
.
$message
({
message
:
'操作成功!'
type
:
'success'
,
});
message
:
'操作成功!'
this
.
getList
()
});
}
else
{
this
.
getList
()
this
.
$message
({
}
else
{
type
:
'error'
,
this
.
$message
({
message
:
'操作失败!'
type
:
'error'
,
});
message
:
'操作失败!'
return
});
}
return
})
}
}).
catch
(()
=>
{
})
// this.$message({
}).
catch
(()
=>
{
// type: 'info',
// this.$message({
// message: '取消输入'
// type: 'info',
// });
// message: '取消输入'
});
// });
});
},
},
/**
/**
* 提前结束操作
* 提前结束操作
*/
*/
advanceOver
:
function
(
row
)
{
advanceOver
:
function
(
row
)
{
let
htmlContent
=
'<span class="warningFont">注意:提前结束后,订单将结束,不再支持发货,请慎重操作,谢谢!</span><br /><br />'
let
htmlContent
=
'<span class="warningFont">注意:提前结束后,订单将结束,不再支持发货,请慎重操作,谢谢!</span><br /><br />'
+
'提前结束原因<span class="warningFont">*</span>:'
+
'提前结束原因<span class="warningFont">*</span>:'
this
.
$prompt
(
htmlContent
,
'提前结束'
,
{
this
.
$prompt
(
htmlContent
,
'提前结束'
,
{
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
,
inputType
:
'textarea'
,
inputType
:
'textarea'
,
confirmButtonText
:
'确认拒绝'
,
confirmButtonText
:
'确认拒绝'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
inputValidator
:
function
(
inputValue
){
inputValidator
:
function
(
inputValue
)
{
if
(
!
inputValue
){
if
(
!
inputValue
)
{
return
'请输入提前结束原因'
return
'请输入提前结束原因'
}
else
{
}
else
{
if
(
inputValue
.
length
>
200
){
if
(
inputValue
.
length
>
200
)
{
return
'原因最多支持200个字'
return
'原因最多支持200个字'
}
}
}
}
}
}).
then
(({
value
})
=>
{
}
let
oParams
=
{}
}).
then
(({
value
})
=>
{
oParams
.
merchantOrder
=
row
.
merchantOrder
let
oParams
=
{}
oParams
.
finishReason
=
value
oParams
.
merchantOrder
=
row
.
merchantOrder
FINISHSPORDER
(
oParams
).
then
(
res
=>
{
oParams
.
finishReason
=
value
if
(
res
.
returnCode
==
0
)
{
FINISHSPORDER
(
oParams
).
then
(
res
=>
{
this
.
$message
({
if
(
res
.
returnCode
==
0
)
{
type
:
'success'
,
this
.
$message
({
message
:
'操作成功!'
type
:
'success'
,
});
message
:
'操作成功!'
this
.
getList
()
});
}
else
{
this
.
getList
()
this
.
$message
({
}
else
{
type
:
'error'
,
this
.
$message
({
message
:
'操作失败!'
type
:
'error'
,
});
message
:
'操作失败!'
return
});
}
return
})
}
}).
catch
(()
=>
{
})
// this.$message({
}).
catch
(()
=>
{
// type: 'info',
// this.$message({
// message: '取消输入'
// type: 'info',
// });
// message: '取消输入'
});
// });
});
},
},
/**
/**
* 分配发货
* 分配发货
*/
*/
assignShipment
:
function
(
row
)
{
assignShipment
:
function
(
row
)
{
// row.materialCode = 'GLSX001062'
// row.materialCode = 'GLSX001062'
// row.bsAddressDto = {name:'111',mobile:'111',address:'111'}
// row.bsAddressDto = {name:'111',mobile:'111',address:'111'}
this
.
info
=
row
this
.
info
=
row
...
@@ -474,9 +719,9 @@ export default {
...
@@ -474,9 +719,9 @@ export default {
/**
/**
* 关闭分配发货弹窗
* 关闭分配发货弹窗
*/
*/
closeAssignShipmentDialog
:
function
(
sub
)
{
closeAssignShipmentDialog
:
function
(
sub
)
{
this
.
showAssignShipmentDialog
=
false
this
.
showAssignShipmentDialog
=
false
if
(
sub
)
{
if
(
sub
)
{
this
.
getList
()
this
.
getList
()
}
}
},
},
...
@@ -484,7 +729,7 @@ export default {
...
@@ -484,7 +729,7 @@ export default {
/**
/**
* 直接发货
* 直接发货
*/
*/
directDelivery
:
function
(
row
)
{
directDelivery
:
function
(
row
)
{
this
.
info
=
row
this
.
info
=
row
console
.
log
(
row
)
console
.
log
(
row
)
this
.
showDirectDeliveryDialog
=
true
this
.
showDirectDeliveryDialog
=
true
...
@@ -493,9 +738,9 @@ export default {
...
@@ -493,9 +738,9 @@ export default {
/**
/**
* 关闭直接发货弹窗
* 关闭直接发货弹窗
*/
*/
closeDirectDeliveryDialog
:
function
(
sub
)
{
closeDirectDeliveryDialog
:
function
(
sub
)
{
this
.
showDirectDeliveryDialog
=
false
this
.
showDirectDeliveryDialog
=
false
if
(
sub
)
{
if
(
sub
)
{
this
.
getList
()
this
.
getList
()
}
}
},
},
...
@@ -512,7 +757,7 @@ export default {
...
@@ -512,7 +757,7 @@ export default {
/**
/**
* 复选框操作
* 复选框操作
*/
*/
selectChange
:
function
(
selection
)
{
selectChange
:
function
(
selection
)
{
console
.
log
(
selection
)
console
.
log
(
selection
)
this
.
selectList
=
selection
this
.
selectList
=
selection
},
},
...
@@ -520,12 +765,12 @@ export default {
...
@@ -520,12 +765,12 @@ export default {
/**
/**
* 批量分配发货
* 批量分配发货
*/
*/
batchAssignShipment
:
function
()
{
batchAssignShipment
:
function
()
{
if
(
this
.
selectList
.
length
>
1
)
{
if
(
this
.
selectList
.
length
>
1
)
{
let
materialCode
=
this
.
selectList
[
0
].
materialCode
let
materialCode
=
this
.
selectList
[
0
].
materialCode
let
flag
=
true
let
flag
=
true
for
(
var
key
in
this
.
selectList
)
{
for
(
var
key
in
this
.
selectList
)
{
if
(
this
.
selectList
[
key
].
materialCode
!=
materialCode
)
{
if
(
this
.
selectList
[
key
].
materialCode
!=
materialCode
)
{
this
.
$message
({
this
.
$message
({
message
:
'选择的订单存在不同物料产品,不支持批量发货!'
,
message
:
'选择的订单存在不同物料产品,不支持批量发货!'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -535,7 +780,7 @@ export default {
...
@@ -535,7 +780,7 @@ export default {
flag
=
false
flag
=
false
break
;
break
;
}
}
if
(
this
.
selectList
[
key
].
status
!=
'8'
)
{
if
(
this
.
selectList
[
key
].
status
!=
'8'
)
{
this
.
$message
({
this
.
$message
({
message
:
'选择的订单状态不对!'
,
message
:
'选择的订单状态不对!'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -546,10 +791,10 @@ export default {
...
@@ -546,10 +791,10 @@ export default {
break
;
break
;
}
}
}
}
if
(
flag
)
{
if
(
flag
)
{
this
.
showAssignShipmentForBatchDialog
=
true
this
.
showAssignShipmentForBatchDialog
=
true
}
}
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
'请选择多个订单进行操作!'
,
message
:
'请选择多个订单进行操作!'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -562,19 +807,19 @@ export default {
...
@@ -562,19 +807,19 @@ export default {
/**
/**
* 关闭批量分配发货弹框
* 关闭批量分配发货弹框
*/
*/
closeAssignShipmentForBatchDialog
:
function
()
{
closeAssignShipmentForBatchDialog
:
function
()
{
this
.
showAssignShipmentForBatchDialog
=
false
this
.
showAssignShipmentForBatchDialog
=
false
},
},
/**
/**
* 批量直接发货
* 批量直接发货
*/
*/
batchDirectDelivery
:
function
()
{
batchDirectDelivery
:
function
()
{
if
(
this
.
selectList
.
length
>
1
)
{
if
(
this
.
selectList
.
length
>
1
)
{
let
materialCode
=
this
.
selectList
[
0
].
materialCode
let
materialCode
=
this
.
selectList
[
0
].
materialCode
let
flag
=
true
let
flag
=
true
for
(
var
key
in
this
.
selectList
)
{
for
(
var
key
in
this
.
selectList
)
{
if
(
this
.
selectList
[
key
].
materialCode
!=
materialCode
)
{
if
(
this
.
selectList
[
key
].
materialCode
!=
materialCode
)
{
this
.
$message
({
this
.
$message
({
message
:
'选择的订单存在不同物料产品,不支持批量发货!'
,
message
:
'选择的订单存在不同物料产品,不支持批量发货!'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -584,7 +829,7 @@ export default {
...
@@ -584,7 +829,7 @@ export default {
flag
=
false
flag
=
false
break
;
break
;
}
}
if
(
this
.
selectList
[
key
].
status
!=
'8'
)
{
if
(
this
.
selectList
[
key
].
status
!=
'8'
)
{
this
.
$message
({
this
.
$message
({
message
:
'选择的订单状态不对!'
,
message
:
'选择的订单状态不对!'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -595,10 +840,10 @@ export default {
...
@@ -595,10 +840,10 @@ export default {
break
;
break
;
}
}
}
}
if
(
flag
)
{
if
(
flag
)
{
this
.
showImportDialog
=
true
this
.
showImportDialog
=
true
}
}
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
'请选择多个订单进行操作!'
,
message
:
'请选择多个订单进行操作!'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -620,11 +865,11 @@ export default {
...
@@ -620,11 +865,11 @@ export default {
},
},
/**监听文件上传成功 */
/**监听文件上传成功 */
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
console
.
log
(
res
);
console
.
log
(
res
);
//this.$refs.upload.submit();
//this.$refs.upload.submit();
let
o
=
res
.
data
||
[];
let
o
=
res
.
data
||
[];
let
m
=
o
[
0
]
||
{};
let
m
=
o
[
0
]
||
{};
if
(
m
.
url
)
{
if
(
m
.
url
)
{
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
...
@@ -635,13 +880,13 @@ export default {
...
@@ -635,13 +880,13 @@ export default {
},
},
/**手动上传文件 */
/**手动上传文件 */
uploadInfoToServer
:
function
()
{
uploadInfoToServer
:
function
()
{
// if(!this.uploadFile || !this.uploadFile.name){
// if(!this.uploadFile || !this.uploadFile.name){
// }
// }
let
o
=
this
.
fileInfo
;
let
o
=
this
.
fileInfo
;
if
(
!
o
)
{
if
(
!
o
)
{
return
false
;
return
false
;
}
}
let
oParams
=
JSON
.
parse
(
o
);
let
oParams
=
JSON
.
parse
(
o
);
...
@@ -653,7 +898,7 @@ export default {
...
@@ -653,7 +898,7 @@ export default {
/**
/**
* 关闭弹框
* 关闭弹框
*/
*/
closeImportDialog
:
function
()
{
closeImportDialog
:
function
()
{
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
this
.
uploadFile
=
{}
this
.
uploadFile
=
{}
this
.
showImportDialog
=
false
;
this
.
showImportDialog
=
false
;
...
@@ -664,11 +909,11 @@ export default {
...
@@ -664,11 +909,11 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.table_box
{
.table_box
{
margin
:
20px
0
;
margin
:
20px
0
;
}
}
.upload_box
{
.upload_box
{
.h2
{
.h2
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
normal
;
font-weight
:
normal
;
...
@@ -676,16 +921,16 @@ export default {
...
@@ -676,16 +921,16 @@ export default {
color
:
#337ab7
;
color
:
#337ab7
;
}
}
}
}
.h3
{
.h3
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#f00
;
color
:
#f00
;
font-weight
:
normal
;
font-weight
:
normal
;
}
}
}
}
.upload_cell
{
.upload_cell
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin
:
10px
0
;
margin
:
10px
0
;
.name
{
.name
{
width
:
130px
;
width
:
130px
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -695,7 +940,7 @@ export default {
...
@@ -695,7 +940,7 @@ export default {
display
:
flex
;
display
:
flex
;
.a_input
{
.a_input
{
margin
:
0
8px
0
0
;
margin
:
0
8px
0
0
;
width
:
217px
;
width
:
217px
;
}
}
}
}
}
}
...
@@ -704,9 +949,9 @@ export default {
...
@@ -704,9 +949,9 @@ export default {
//
font-size
:
30
;
//
font-size
:
30
;
//
color
:
#f00
;
//
color
:
#f00
;
//
}
//
}
.warningFont
{
.warningFont
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#f00
;
color
:
#f00
;
font-weight
:
normal
;
font-weight
:
normal
;
}
}
</
style
>
</
style
>
src/views/orderManage/invoice.vue
View file @
4ddc94e
<
template
>
<
template
>
<d2-container>
<d2-container>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"设备类型"
>
<el-form-item
label=
"设备类型"
>
<el-select
v-model=
"formInline.deviceTypeId"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.deviceTypeId"
<el-option
v-for=
"item in deviceTypeList"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
>
{{
item
.
name
}}
</el-option>
placeholder=
"请选择"
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
v-for=
"item in deviceTypeList"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发货单号"
>
<el-form-item
label=
"发货单号"
>
<el-input
v-model=
"formInline.dispatchOrderCode"
placeholder=
"请输入发货单号"
clearable
/>
<el-input
v-model=
"formInline.dispatchOrderCode"
placeholder=
"请输入发货单号"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单状态"
>
<el-form-item
label=
"订单状态"
>
<el-select
v-model=
"formInline.status"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.status"
<el-option
value=
"UF"
label=
"未完成"
>
未完成
</el-option>
placeholder=
"请选择"
<el-option
value=
"OV"
label=
"完成"
>
完成
</el-option>
>
<el-option
value=
"CL"
label=
"已取消"
>
已取消
</el-option>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
value=
"UF"
label=
"未完成"
>
未完成
</el-option>
<el-option
value=
"OV"
label=
"完成"
>
完成
</el-option>
<el-option
value=
"CL"
label=
"已取消"
>
已取消
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"子订单号"
>
<el-form-item
label=
"子订单号"
>
<el-input
v-model=
"formInline.merchantOrder"
placeholder=
"请输入子订单号"
clearable
/>
<el-input
v-model=
"formInline.merchantOrder"
placeholder=
"请输入子订单号"
clearable
/>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"发往商户"
>
<!--
<el-form-item
label=
"发往商户"
>
<el-input
v-model=
"formInline.sendMerchantNo"
placeholder=
"请输入发往商户"
/>
<el-input
v-model=
"formInline.sendMerchantNo"
placeholder=
"请输入发往商户"
/>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
label=
"发往商户"
>
<el-form-item
label=
"发往商户"
>
<el-select
v-model=
"formInline.sendMerchantNo"
class=
"el_select"
<el-select
filterable
v-model=
"formInline.sendMerchantNo"
remote
class=
"el_select"
:remote-method=
"getMerchant"
filterable
placeholder=
"请输入关键词"
>
remote
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
:remote-method=
"getMerchant"
<el-option
placeholder=
"请输入关键词"
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
v-for=
"item in merchantList"
v-for=
"item in merchantList"
:key=
"item.merchantId"
:key=
"item.merchantId"
:label=
"item.merchantId + '/' + item.merchantName"
:label=
"item.merchantId + '/' + item.merchantName"
:value=
"item.merchantId"
>
:value=
"item.merchantId"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -44,63 +93,175 @@
...
@@ -44,63 +93,175 @@
<el-input
v-model=
"formInline.sendFactory"
placeholder=
"请输入发货仓库"
/>
<el-input
v-model=
"formInline.sendFactory"
placeholder=
"请输入发货仓库"
/>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
label=
"发往仓库"
>
<el-form-item
label=
"发往仓库"
>
<el-select
v-model=
"formInline.warehouseId"
placeholder=
"请选择"
>
<el-select
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
v-model=
"formInline.warehouseId"
<el-option
v-for=
"item in warehouse"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
></el-option>
placeholder=
"请选择"
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
v-for=
"item in warehouse"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-plus"
:loading=
"tableLoading"
@
click=
"editOrder"
>
新建发货单
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
:loading=
"tableLoading"
@
click=
"editOrder"
>
新建发货单
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
<div></div>
<div></div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
stripe
style=
"width: 100%"
size=
"small"
border
>
<el-table
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
v-loading=
"tableLoading"
<el-table-column
prop=
"dispatchOrderCode"
label=
"发货单号"
:width=
"tdWidth"
/>
:data=
"tableData"
<el-table-column
prop=
"merchantOrder"
label=
"子订单号"
width=
"200px"
/>
stripe
<el-table-column
prop=
"vehicleDto"
label=
"车辆信息"
width=
"200px"
>
style=
"width: 100%"
<template
slot-scope=
"scoped"
v-if=
"scoped.row.vehicleDto"
>
size=
"small"
品牌:
{{
scoped
.
row
.
vehicleDto
.
bsParentBrandName
}}
<br
/>
border
子品牌:
{{
scoped
.
row
.
vehicleDto
.
bsSubBrandName
}}
<br
/>
>
车系:
{{
scoped
.
row
.
vehicleDto
.
bsAudiName
}}
<br
/>
<el-table-column
车型:
{{
scoped
.
row
.
vehicleDto
.
bsMotorcycle
}}
<br
/>
type=
"index"
车价/颜色:
{{
scoped
.
row
.
vehicleDto
.
bsRemark
}}
:index=
"index =>
{return index+1}"
label="序号"
width="80"
/>
<el-table-column
prop=
"dispatchOrderCode"
label=
"发货单号"
:width=
"tdWidth"
/>
<el-table-column
prop=
"merchantOrder"
label=
"子订单号"
width=
"200px"
/>
<el-table-column
prop=
"vehicleDto"
label=
"车辆信息"
width=
"200px"
>
<template
slot-scope=
"scoped"
v-if=
"scoped.row.vehicleDto"
>
品牌:
{{
scoped
.
row
.
vehicleDto
.
bsParentBrandName
}}
<br
/>
子品牌:
{{
scoped
.
row
.
vehicleDto
.
bsSubBrandName
}}
<br
/>
车系:
{{
scoped
.
row
.
vehicleDto
.
bsAudiName
}}
<br
/>
车型:
{{
scoped
.
row
.
vehicleDto
.
bsMotorcycle
}}
<br
/>
车价/颜色:
{{
scoped
.
row
.
vehicleDto
.
bsRemark
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"total"
label=
"需求总数"
width=
"70"
/>
<el-table-column
<el-table-column
prop=
"sendQuantities"
label=
"已发货数"
width=
"70"
>
prop=
"total"
label=
"需求总数"
width=
"70"
/>
<el-table-column
prop=
"sendQuantities"
label=
"已发货数"
width=
"70"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"getAlreadyShippedDetail(scope.row)"
>
{{
scope
.
row
.
sendQuantities
}}
</el-link>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"getAlreadyShippedDetail(scope.row)"
>
{{
scope
.
row
.
sendQuantities
}}
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"status"
label=
"订单状态"
width=
"70"
>
<el-table-column
<
template
slot-scope=
"scoped"
>
prop=
"status"
{{
statusShow
[
scoped
.
row
.
status
]
}}
label=
"订单状态"
</
template
>
width=
"70"
>
<
template
slot-scope=
"scoped"
>
{{
statusShow
[
scoped
.
row
.
status
]
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"deviceName"
label=
"硬件设备"
:width=
"tdWidth"
/>
<el-table-column
<el-table-column
prop=
"materialCode"
label=
"物料编码"
width=
"100"
/>
prop=
"deviceName"
<el-table-column
prop=
"mnumName"
label=
"设备型号"
:width=
"tdWidth"
/>
label=
"硬件设备"
<el-table-column
prop=
"packageOne"
label=
"商品编号"
:width=
"tdWidth"
/>
:width=
"tdWidth"
<el-table-column
prop=
"warehouseName"
label=
"发货仓库"
:width=
"tdWidth"
/>
/>
<el-table-column
prop=
"sendMerchantName"
label=
"发往商户"
width=
"200px"
/>
<el-table-column
<el-table-column
prop=
"address"
label=
"发货地址"
width=
"300"
show-overflow-tooltip
/>
prop=
"materialCode"
<!-- <template slot-scope="scoped">
label=
"物料编码"
width=
"100"
/>
<el-table-column
prop=
"mnumName"
label=
"设备型号"
:width=
"tdWidth"
/>
<el-table-column
prop=
"packageOne"
label=
"商品编号"
:width=
"tdWidth"
/>
<el-table-column
prop=
"warehouseName"
label=
"发货仓库"
:width=
"tdWidth"
/>
<el-table-column
prop=
"sendMerchantName"
label=
"发往商户"
width=
"200px"
/>
<el-table-column
prop=
"address"
label=
"发货地址"
width=
"300"
show-overflow-tooltip
/>
<!-- <template slot-scope="scoped">
{{CUTSTR(scoped.row.address,20)}}
{{CUTSTR(scoped.row.address,20)}}
</template>
</template>
</el-table-column> -->
</el-table-column> -->
<el-table-column
prop=
"contacts"
label=
"联系人"
width=
"80"
/>
<el-table-column
<el-table-column
prop=
"mobile"
label=
"联系电话"
width=
"100"
/>
prop=
"contacts"
<el-table-column
prop=
"createdTime"
label=
"创建时间"
width=
"140"
>
label=
"联系人"
width=
"80"
/>
<el-table-column
prop=
"mobile"
label=
"联系电话"
width=
"100"
/>
<el-table-column
prop=
"createdTime"
label=
"创建时间"
width=
"140"
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
createdTime
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
DATEFORMATE
(
scope
.
row
.
createdTime
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"remark"
label=
"备注"
width=
"300"
show-overflow-tooltip
/>
<el-table-column
prop=
"remark"
label=
"备注"
width=
"300"
show-overflow-tooltip
/>
<!-- <el-table-column prop="" label="操作" align="center" width="150" fixed="right">
<!-- <el-table-column prop="" label="操作" align="center" width="150" fixed="right">
<template slot-scope="scope">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="editOrder(scope.row)" v-if="scope.row.status != 'CL'">修改</el-button>
<el-button type="primary" size="mini" @click="editOrder(scope.row)" v-if="scope.row.status != 'CL'">修改</el-button>
...
@@ -111,6 +272,7 @@
...
@@ -111,6 +272,7 @@
<div
class=
"pagination_list"
>
<div
class=
"pagination_list"
>
<el-pagination
<el-pagination
background
background
small
layout=
"sizes, total,prev, pager, next, jumper"
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-size=
"pageSize"
...
@@ -122,12 +284,32 @@
...
@@ -122,12 +284,32 @@
</div>
</div>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<glsx-dialog
:show=
"showDialog"
v-if=
"showDialog"
title=
"创建订单"
v-on:closed=
"closeDialog"
>
<glsx-dialog
<add-order
:deviceType=
"deviceTypeList"
:id=
"editId"
v-if=
"showDialog"
v-on:closed=
"closeDialog"
/>
:show=
"showDialog"
v-if=
"showDialog"
title=
"创建订单"
v-on:closed=
"closeDialog"
>
<add-order
:deviceType=
"deviceTypeList"
:id=
"editId"
v-if=
"showDialog"
v-on:closed=
"closeDialog"
/>
</glsx-dialog>
</glsx-dialog>
<glsx-dialog
:show=
"showDetailDialog"
v-if=
"showDetailDialog"
title=
"出货明细"
usefooter
v-on:closed=
"closeDetailDialog"
>
<glsx-dialog
<already-shipped-detail
:orderCode=
"orderCode"
v-if=
"showDetailDialog"
v-on:closed=
"closeDetailDialog"
/>
:show=
"showDetailDialog"
v-if=
"showDetailDialog"
title=
"出货明细"
usefooter
v-on:closed=
"closeDetailDialog"
>
<already-shipped-detail
:orderCode=
"orderCode"
v-if=
"showDetailDialog"
v-on:closed=
"closeDetailDialog"
/>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
@
click=
"showDetailDialog = false"
>
关 闭
</el-button>
<el-button
@
click=
"showDetailDialog = false"
>
关 闭
</el-button>
</div>
</div>
...
@@ -170,8 +352,8 @@ export default {
...
@@ -170,8 +352,8 @@ export default {
merchantList
:
[],
merchantList
:
[],
showDialog
:
false
,
showDialog
:
false
,
editId
:
''
,
editId
:
''
,
showDetailDialog
:
false
,
showDetailDialog
:
false
,
orderCode
:
''
,
orderCode
:
''
,
statusShow
:
{
statusShow
:
{
'UF'
:
'未完成'
,
'UF'
:
'未完成'
,
'OV'
:
'完成'
,
'OV'
:
'完成'
,
...
@@ -187,7 +369,7 @@ export default {
...
@@ -187,7 +369,7 @@ export default {
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
this
.
getList
()
this
.
getDeviceList
()
this
.
getDeviceList
()
this
.
getWarehouseList
()
this
.
getWarehouseList
()
...
@@ -198,7 +380,7 @@ export default {
...
@@ -198,7 +380,7 @@ export default {
/**
/**
* 查询列表
* 查询列表
*/
*/
getList
:
function
(
current
)
{
getList
:
function
(
current
)
{
const
_this
=
this
const
_this
=
this
const
oParams
=
_this
.
getParams
()
const
oParams
=
_this
.
getParams
()
console
.
log
(
current
)
console
.
log
(
current
)
...
@@ -225,7 +407,7 @@ export default {
...
@@ -225,7 +407,7 @@ export default {
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
n
=
this
.
formInline
const
n
=
this
.
formInline
const
oParams
=
n
const
oParams
=
n
oParams
.
pageSize
=
this
.
pageSize
oParams
.
pageSize
=
this
.
pageSize
...
@@ -236,7 +418,7 @@ export default {
...
@@ -236,7 +418,7 @@ export default {
/**
/**
* 每页展示
* 每页展示
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
this
.
pageSize
=
e
this
.
getList
()
this
.
getList
()
},
},
...
@@ -244,7 +426,7 @@ export default {
...
@@ -244,7 +426,7 @@ export default {
/**
/**
* 获取设备类型列表
* 获取设备类型列表
*/
*/
getDeviceList
:
function
()
{
getDeviceList
:
function
()
{
let
_this
=
this
let
_this
=
this
LISTDEVICETYPE
().
then
(
res
=>
{
LISTDEVICETYPE
().
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
...
@@ -256,12 +438,12 @@ export default {
...
@@ -256,12 +438,12 @@ export default {
/**
/**
* 获取仓库列表
* 获取仓库列表
*/
*/
getWarehouseList
:
function
(
e
)
{
getWarehouseList
:
function
(
e
)
{
const
_this
=
this
const
_this
=
this
const
oParams
=
{}
const
oParams
=
{}
oParams
.
name
=
''
oParams
.
name
=
''
LISTWAREHOUSEINFOS
(
oParams
).
then
(
res
=>
{
LISTWAREHOUSEINFOS
(
oParams
).
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
_this
.
warehouse
=
data
||
[]
_this
.
warehouse
=
data
||
[]
})
})
},
},
...
@@ -269,15 +451,15 @@ export default {
...
@@ -269,15 +451,15 @@ export default {
/**
/**
* 获取发往商户
* 获取发往商户
*/
*/
getMerchant
:
function
(
query
)
{
getMerchant
:
function
(
query
)
{
const
_this
=
this
const
_this
=
this
let
Regex
=
new
RegExp
(
"[\\u4E00-\\u9FFF]+"
,
"g"
);
let
Regex
=
new
RegExp
(
"[\\u4E00-\\u9FFF]+"
,
"g"
);
let
obj
=
{}
let
obj
=
{}
if
(
query
)
{
if
(
query
)
{
if
(
Regex
.
test
(
query
))
{
if
(
Regex
.
test
(
query
))
{
obj
=
{
sendMerchantName
:
query
}
obj
=
{
sendMerchantName
:
query
}
}
else
{
}
else
{
obj
=
{
sendMerchantNo
:
query
}
obj
=
{
sendMerchantNo
:
query
}
}
}
}
}
FINDSENDMERCHANTNO
(
obj
).
then
(
res
=>
{
FINDSENDMERCHANTNO
(
obj
).
then
(
res
=>
{
...
@@ -292,7 +474,7 @@ export default {
...
@@ -292,7 +474,7 @@ export default {
/**
/**
* 关闭弹窗
* 关闭弹窗
*/
*/
closeDialog
:
function
()
{
closeDialog
:
function
()
{
this
.
showDialog
=
false
this
.
showDialog
=
false
this
.
getList
()
this
.
getList
()
},
},
...
@@ -300,7 +482,7 @@ export default {
...
@@ -300,7 +482,7 @@ export default {
/**
/**
* 取消发货单
* 取消发货单
*/
*/
cancelOrder
:
function
(
row
)
{
cancelOrder
:
function
(
row
)
{
const
_this
=
this
const
_this
=
this
const
oParams
=
{}
const
oParams
=
{}
oParams
.
deletedFlag
=
'Y'
oParams
.
deletedFlag
=
'Y'
...
@@ -310,8 +492,8 @@ export default {
...
@@ -310,8 +492,8 @@ export default {
_this
.
$Util
.
msg
({
_this
.
$Util
.
msg
({
message
:
'<p>确定是否要取消?</p><p>取消后将无法恢复,请谨慎操作!</p>'
,
message
:
'<p>确定是否要取消?</p><p>取消后将无法恢复,请谨慎操作!</p>'
,
showCancelButton
:
true
,
showCancelButton
:
true
,
type
:
'warning'
,
type
:
'warning'
,
success
:()
=>
{
success
:
()
=>
{
CANCELORDER
(
oParams
).
then
(
res
=>
{
CANCELORDER
(
oParams
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
.
returnCode
==
0
)
{
if
(
res
.
returnCode
==
0
)
{
...
@@ -329,8 +511,8 @@ export default {
...
@@ -329,8 +511,8 @@ export default {
/**
/**
* 修改订单
* 修改订单
*/
*/
editOrder
:
function
(
row
)
{
editOrder
:
function
(
row
)
{
if
(
row
)
{
if
(
row
)
{
this
.
editId
=
row
.
id
this
.
editId
=
row
.
id
}
}
this
.
showDialog
=
true
this
.
showDialog
=
true
...
@@ -339,7 +521,7 @@ export default {
...
@@ -339,7 +521,7 @@ export default {
/**
/**
* 打开发货单明细弹窗
* 打开发货单明细弹窗
*/
*/
getAlreadyShippedDetail
:
function
(
row
)
{
getAlreadyShippedDetail
:
function
(
row
)
{
this
.
orderCode
=
row
.
dispatchOrderCode
this
.
orderCode
=
row
.
dispatchOrderCode
this
.
showDetailDialog
=
true
this
.
showDetailDialog
=
true
},
},
...
@@ -347,7 +529,7 @@ export default {
...
@@ -347,7 +529,7 @@ export default {
/**
/**
* 关闭出货明细弹窗
* 关闭出货明细弹窗
*/
*/
closeDetailDialog
:
function
()
{
closeDetailDialog
:
function
()
{
this
.
showDetailDialog
=
false
this
.
showDetailDialog
=
false
},
},
...
@@ -358,7 +540,7 @@ export default {
...
@@ -358,7 +540,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.table_box
{
.table_box
{
margin
:
20px
0
;
margin
:
20px
0
;
}
}
</
style
>
</
style
>
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