Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 88e2b569
authored
Sep 27, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-services
2 parents
a35b518c
e3b454b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
92 deletions
src/views/cmmodityLibrary/warehousingList.vue
src/views/liveMember/memberList.vue
src/views/cmmodityLibrary/warehousingList.vue
View file @
88e2b56
<
template
>
<
template
>
<div>
<div>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"
formInline
"
class=
"demo-form-inline"
size=
"small"
>
<el-form
:inline=
"true"
:model=
"
searchForm
"
class=
"demo-form-inline"
size=
"small"
>
<el-form-item
label=
"商品搜索:"
>
<el-form-item
label=
"商品搜索:"
>
<el-input
v-model=
"
formInline.user
Name"
placeholder=
"请输入商品名称"
clearable
/>
<el-input
v-model=
"
searchForm.pro
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"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
...
@@ -15,49 +15,29 @@
...
@@ -15,49 +15,29 @@
</el-card>
</el-card>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<glsx-table
ref=
"wareRef"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"tableData"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
stripe
style=
"width: 100%"
size=
"small"
border
>
<span
slot=
"showImg"
slot-scope=
"scope"
>
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
<img
style=
"width: 50px; height: 50px;"
:src=
"scope.scope.pic"
/>
{{
scope
.
scope
.
title
}}
<el-table-column
prop=
"pic"
label=
"基本信息"
>
</span>
<template
slot-scope=
"scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<img
:src=
"scope.row.pic"
style=
"width: 50px;height:50px;"
/>
{{
scope
.
row
.
title
}}
<el-button
type=
"text"
@
click=
"updatePrice(scope.scope)"
>
修改价格
</el-button>
</
template
>
</span>
</el-table-column>
</glsx-table>
<el-table-column
prop=
"price"
label=
"价格(元)"
/>
<el-table-column
prop=
"merchant"
label=
"来源门店"
/>
<el-table-column
prop=
""
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"updatePrice(scope.row)"
>
修改价格
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination_list"
>
<el-pagination
background
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-sizes=
"pageSizes"
@
current-change=
"getList"
@
size-change=
"changePageSize"
/>
</div>
</div>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<!--
重置密码
弹框 开始 -->
<!--
修改价格
弹框 开始 -->
<
el-dialog
title=
"修改价格"
width=
"30%"
v-show=
"showPriceDialog"
@
close
=
"closePriceDialog"
>
<
glsx-dialog
title=
"修改价格"
width=
"620px"
:isVisible=
"showPriceDialog"
@
closeDialog=
"closePriceDialog"
@
confirmDialog
=
"closePriceDialog"
>
<el-form
ref=
"passForm"
:rules=
"formRules_pass"
:model=
"form_pass
"
label-width=
"120px"
>
<el-form
ref=
"priceForm"
:rules=
"formRules"
:model=
"form
"
label-width=
"120px"
>
<el-form-item
label=
"商品价格:"
prop=
"p
assword
"
>
<el-form-item
label=
"商品价格:"
prop=
"p
rice
"
>
<el-input
v-model=
"form
_pass.password
"
maxlength=
"8"
style=
"width:400px"
/>
<el-input
v-model=
"form
.price
"
maxlength=
"8"
style=
"width:400px"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"resetP
assword
()"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"resetP
rice
()"
>
提交
</el-button>
<el-button
@
click=
"showPriceDialog = false"
>
取消
</el-button>
<el-button
@
click=
"showPriceDialog = false"
>
取消
</el-button>
</div>
</div>
</
el
-dialog>
</
glsx
-dialog>
<!--
重置密码
弹框 end -->
<!--
修改价格
弹框 end -->
</div>
</div>
</
template
>
</
template
>
...
@@ -67,15 +47,44 @@
...
@@ -67,15 +47,44 @@
// GETLISTUSERINFO,
// GETLISTUSERINFO,
// UPDATEPASSWORD
// UPDATEPASSWORD
// } from '@/http/interface'
// } from '@/http/interface'
import
glsxDialog
from
'@/components/glsx-dialog'
export
default
{
export
default
{
components
:
{
components
:
{
// 'glsx-dialog': GlsxDialog,
glsxDialog
// 'add-cus': AddCus,
},
},
data
()
{
data
()
{
return
{
return
{
formInline
:
{},
searchForm
:
{
tableData
:
[],
proName
:
''
},
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'基本信息'
,
prop
:
'pic'
,
line
:
1
,
addHtml
:
'showImg'
},
{
label
:
'价格(元)'
,
prop
:
'price'
},
{
label
:
'来源门店'
,
prop
:
'merchant'
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableData
:
[{
id
:
1
,
pic
:
'https://t7.baidu.com/it/u=4162611394,4275913936&fm=193&f=GIF'
,
title
:
'商品标题'
,
price
:
999
,
merchant
:
'xxx'
}],
tableLoading
:
false
,
tableLoading
:
false
,
pageTotal
:
0
,
pageTotal
:
0
,
userInfo
:
{},
userInfo
:
{},
...
@@ -85,10 +94,10 @@ export default {
...
@@ -85,10 +94,10 @@ export default {
tdWidth
:
170
,
tdWidth
:
170
,
DATEFORMATE
:
(
str
,
type
)
=>
{
return
this
.
$Util
.
dateFormate
(
str
,
type
)
},
DATEFORMATE
:
(
str
,
type
)
=>
{
return
this
.
$Util
.
dateFormate
(
str
,
type
)
},
showPriceDialog
:
false
,
showPriceDialog
:
false
,
form
_pass
:
{},
form
:
{},
formRules
_pass
:
{
formRules
:
{
p
assword
:
[
p
rice
:
[
{
required
:
true
,
message
:
"请输入
密码
"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请输入
价格
"
,
trigger
:
"blur"
}
]
]
},
},
}
}
...
@@ -98,10 +107,16 @@ export default {
...
@@ -98,10 +107,16 @@ export default {
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
//
this.getList()
},
},
methods
:
{
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
resolve
()
})
},
/**
/**
* 查询列表
* 查询列表
*/
*/
...
@@ -133,7 +148,7 @@ export default {
...
@@ -133,7 +148,7 @@ export default {
* 获取查询参数
* 获取查询参数
*/
*/
getParams
:
function
()
{
getParams
:
function
()
{
const
oParams
=
this
.
formInline
const
oParams
=
this
.
searchForm
oParams
.
pageSize
=
this
.
pageSize
oParams
.
pageSize
=
this
.
pageSize
return
oParams
return
oParams
},
},
...
@@ -147,6 +162,10 @@ export default {
...
@@ -147,6 +162,10 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
reset
()
{
this
.
$refs
.
wareRef
.
refreshTable
()
},
updatePrice
:
function
(){
updatePrice
:
function
(){
this
.
showPriceDialog
=
true
this
.
showPriceDialog
=
true
},
},
...
...
src/views/liveMember/memberList.vue
View file @
88e2b56
<
template
>
<
template
>
<div>
<div>
<el-card
shadow=
"never"
slot=
"header"
>
<el-card
shadow=
"never"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"
formInline
"
class=
"demo-form-inline"
size=
"small"
>
<el-form
:inline=
"true"
:model=
"
searchForm
"
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=
"
searchForm
.userName"
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"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
...
@@ -15,30 +15,11 @@
...
@@ -15,30 +15,11 @@
</el-card>
</el-card>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<glsx-table
ref=
"memberRef"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"tableData"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
stripe
style=
"width: 100%"
size=
"small"
border
>
<span
slot=
"showImg"
slot-scope=
"scope"
>
<el-table-column
type=
"index"
:index=
"index =>
{return index+1}" label="序号" width="80" />
<img
style=
"width: 50px; height: 50px;"
:src=
"scope.scope.pic"
/>
<el-table-column
prop=
"pic"
label=
"头像"
>
</span>
<template
slot-scope=
"scope"
>
</glsx-table>
<img
:src=
"scope.row.pic"
style=
"width: 50px;height:50px;"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"userName"
label=
"昵称"
/>
<el-table-column
prop=
"userCode"
label=
"微信号"
/>
<el-table-column
prop=
"roleName"
label=
"所属角色"
/>
</el-table>
<div
class=
"pagination_list"
>
<el-pagination
background
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:page-size=
"pageSize"
:page-sizes=
"pageSizes"
@
current-change=
"getList"
@
size-change=
"changePageSize"
/>
</div>
</div>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
...
@@ -58,19 +39,42 @@ export default {
...
@@ -58,19 +39,42 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
formInline
:
{},
searchForm
:
{
tableData
:
[],
userName
:
''
tableLoading
:
false
,
},
pageTotal
:
0
,
tableParams
:
{
userInfo
:
{},
listName
:
'list'
,
currentPage
:
1
,
tableOption
:
true
,
pageSizes
:
[
10
,
20
,
30
,
40
],
tableColumns
:
[
pageSize
:
10
,
{
tdWidth
:
170
,
label
:
'头像'
,
DATEFORMATE
:
(
str
,
type
)
=>
{
return
this
.
$Util
.
dateFormate
(
str
,
type
)
},
prop
:
'pic'
,
showAddDialog
:
false
,
line
:
1
,
showPassDialog
:
false
,
addHtml
:
'showImg'
form_pass
:
{},
},
{
label
:
'昵称'
,
prop
:
'userName'
},
{
label
:
'微信号'
,
prop
:
'userCode'
},
{
label
:
'所属角色'
,
prop
:
'roleName'
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableData
:
[{
id
:
1
,
pic
:
'https://t7.baidu.com/it/u=4162611394,4275913936&fm=193&f=GIF'
,
userName
:
'昵称'
,
userCode
:
'微信号'
,
roleName
:
'所属角色'
}],
tableLoading
:
false
}
}
},
},
created
()
{
created
()
{
...
@@ -78,10 +82,16 @@ export default {
...
@@ -78,10 +82,16 @@ export default {
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
//
this.getList()
},
},
methods
:
{
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
resolve
()
})
},
/**
/**
* 查询列表
* 查询列表
*/
*/
...
@@ -93,9 +103,9 @@ export default {
...
@@ -93,9 +103,9 @@ export default {
let
list
=
[{
let
list
=
[{
id
:
1
,
id
:
1
,
pic
:
'https://t7.baidu.com/it/u=4162611394,4275913936&fm=193&f=GIF'
,
pic
:
'https://t7.baidu.com/it/u=4162611394,4275913936&fm=193&f=GIF'
,
userName
:
'
userName
'
,
userName
:
'
昵称
'
,
userCode
:
'
userCode
'
,
userCode
:
'
微信号
'
,
roleName
:
'
roleName
'
roleName
:
'
所属角色
'
}]
}]
// GETLISTUSERINFO(oParams).then(res => {
// GETLISTUSERINFO(oParams).then(res => {
// console.log(res)
// console.log(res)
...
@@ -127,7 +137,12 @@ export default {
...
@@ -127,7 +137,12 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
/**
* 重置
*/
reset
()
{
this
.
$refs
.
memberRef
.
refreshTable
()
},
}
}
}
}
...
...
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