Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luoyangfei
store-system
Commits
db64f8fc
Commit
db64f8fc
authored
Nov 09, 2018
by
扫地僧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有功能菜单基本属性
parent
e1269c17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
216 additions
and
74 deletions
+216
-74
store.js
2code/web/mgt_pro/src/api/store.js
+35
-0
worker.js
2code/web/mgt_pro/src/api/worker.js
+35
-0
index.js
2code/web/mgt_pro/src/router/index.js
+2
-2
storeList.vue
2code/web/mgt_pro/src/views/store/storeList.vue
+84
-40
dataDictCat.vue
2code/web/mgt_pro/src/views/system/dataDictCat.vue
+0
-0
dataDictItem.vue
2code/web/mgt_pro/src/views/system/dataDictItem.vue
+0
-0
user.vue
2code/web/mgt_pro/src/views/system/user.vue
+9
-5
workerList.vue
2code/web/mgt_pro/src/views/worker/workerList.vue
+51
-27
No files found.
2code/web/mgt_pro/src/api/store.js
0 → 100644
View file @
db64f8fc
import
request
from
'./request'
import
qs
from
'qs'
export
function
storeList
(
data
)
{
return
request
({
url
:
'/store/storeList'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
export
function
addOrEditStore
(
data
)
{
return
request
({
url
:
'/store/addOrEditStore'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
export
function
delStore
(
data
)
{
return
request
({
url
:
'/store/delStore'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
2code/web/mgt_pro/src/api/worker.js
0 → 100644
View file @
db64f8fc
import
request
from
'./request'
import
qs
from
'qs'
export
function
workerList
(
data
)
{
return
request
({
url
:
'/worker/workerList'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
export
function
addOrEditWorker
(
data
)
{
return
request
({
url
:
'/worker/addOrEditWorker'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
export
function
delWorker
(
data
)
{
return
request
({
url
:
'/worker/delWorker'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
2code/web/mgt_pro/src/router/index.js
View file @
db64f8fc
...
@@ -131,8 +131,8 @@ export const asyncRouterMap = [
...
@@ -131,8 +131,8 @@ export const asyncRouterMap = [
{
path
:
'roles'
,
component
:
_import
(
'system/roles'
),
name
:
'system_roles'
,
meta
:
{
title
:
'系统角色'
}},
{
path
:
'roles'
,
component
:
_import
(
'system/roles'
),
name
:
'system_roles'
,
meta
:
{
title
:
'系统角色'
}},
{
path
:
'user'
,
component
:
_import
(
'system/user'
),
name
:
'system_user'
,
meta
:
{
title
:
'系统用户'
}},
{
path
:
'user'
,
component
:
_import
(
'system/user'
),
name
:
'system_user'
,
meta
:
{
title
:
'系统用户'
}},
{
path
:
'param'
,
component
:
_import
(
'system/param'
),
name
:
'system_param'
,
meta
:
{
title
:
'系统参数'
}},
{
path
:
'param'
,
component
:
_import
(
'system/param'
),
name
:
'system_param'
,
meta
:
{
title
:
'系统参数'
}},
{
path
:
'dataDic
Fl'
,
component
:
_import
(
'system/dataDicFl'
),
name
:
'system_dataDicFl
'
,
meta
:
{
title
:
'数据字典分类'
}},
{
path
:
'dataDic
tCat'
,
component
:
_import
(
'system/dataDictCat'
),
name
:
'system_dataDictCat
'
,
meta
:
{
title
:
'数据字典分类'
}},
{
path
:
'dataDic
X'
,
component
:
_import
(
'system/dataDicX'
),
name
:
'system_dataDicX
'
,
meta
:
{
title
:
'数据字典项'
}}
{
path
:
'dataDic
tItem'
,
component
:
_import
(
'system/dataDictItem'
),
name
:
'system_dataDictItem
'
,
meta
:
{
title
:
'数据字典项'
}}
]
]
},
},
{
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
}
{
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
}
...
...
2code/web/mgt_pro/src/views/store/storeList.vue
View file @
db64f8fc
This diff is collapsed.
Click to expand it.
2code/web/mgt_pro/src/views/system/dataDic
Fl
.vue
→
2code/web/mgt_pro/src/views/system/dataDic
tCat
.vue
View file @
db64f8fc
File moved
2code/web/mgt_pro/src/views/system/dataDic
X
.vue
→
2code/web/mgt_pro/src/views/system/dataDic
tItem
.vue
View file @
db64f8fc
File moved
2code/web/mgt_pro/src/views/system/user.vue
View file @
db64f8fc
...
@@ -342,11 +342,15 @@ export default {
...
@@ -342,11 +342,15 @@ export default {
edit
(
data
)
{
edit
(
data
)
{
debugger
debugger
this
.
dialogType
=
2
;
this
.
dialogType
=
2
;
this
.
getRoleList
(()
=>
{
// this.getRoleList(() => {
this
.
getSectionsByDeptId
(
data
.
deptId
,
()
=>
{
// this.getSectionsByDeptId(data.deptId, () => {
this
.
reBindData
(
data
);
// this.reBindData(data);
this
.
dialogState
=
true
;
// this.dialogState = true;
});
// });
// });
this
.
getRoleAndUserData
(()
=>
{
this
.
reBindData
(
data
);
this
.
dialogState
=
true
;
});
});
},
},
check
(
data
)
{
check
(
data
)
{
...
...
2code/web/mgt_pro/src/views/worker/workerList.vue
View file @
db64f8fc
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
</div>
</div>
<el-row
:gutter=
"15"
>
<el-row
:gutter=
"15"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-col
class=
"input-name"
:span=
"7"
>
维修
工名称
</el-col>
<el-col
class=
"input-name"
:span=
"7"
>
员
工名称
</el-col>
<el-col
:span=
"17"
><el-input
placeholder=
"请输入关键字"
v-model=
"seacherParam.
repairW
orkerName"
@
keyup
.
enter
.
native=
"seachFun"
></el-input></el-col>
<el-col
:span=
"17"
><el-input
placeholder=
"请输入关键字"
v-model=
"seacherParam.
w
orkerName"
@
keyup
.
enter
.
native=
"seachFun"
></el-input></el-col>
</el-col>
</el-col>
</el-row>
</el-row>
</el-card>
</el-card>
...
@@ -26,14 +26,20 @@
...
@@ -26,14 +26,20 @@
<el-table
empty-text=
"暂无数据"
:stripe=
"true"
:data=
"dataOption"
v-loading=
"!dataOption"
>
<el-table
empty-text=
"暂无数据"
:stripe=
"true"
:data=
"dataOption"
v-loading=
"!dataOption"
>
<el-table-column
prop=
"
repairW
orkerName"
label=
"姓名"
></el-table-column>
<el-table-column
prop=
"
w
orkerName"
label=
"姓名"
></el-table-column>
<el-table-column
label=
"性别"
>
<el-table-column
label=
"性别"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
s
ex
===
1
?
'男'
:
'女'
}}
</span>
<span>
{{
scope
.
row
.
workerS
ex
===
1
?
'男'
:
'女'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"repairWorkerPhone"
label=
"电话"
></el-table-column>
<el-table-column
prop=
"workerAge"
label=
"年龄"
></el-table-column>
<el-table-column
prop=
"repairWorkerIdCard"
label=
"身份证号"
></el-table-column>
<el-table-column
prop=
"workerBirthday"
label=
"生日"
></el-table-column>
<el-table-column
prop=
"workerAncestral"
label=
"祖籍"
></el-table-column>
<el-table-column
prop=
"workerHeight"
label=
"身高"
></el-table-column>
<el-table-column
prop=
"workerWeight"
label=
"体重"
></el-table-column>
<el-table-column
prop=
"workerBust"
label=
"胸围"
></el-table-column>
<el-table-column
prop=
"workerWaist"
label=
"腰围"
></el-table-column>
<el-table-column
prop=
"workerHipline"
label=
"臀围"
></el-table-column>
<el-table-column
label=
"创建时间"
>
<el-table-column
label=
"创建时间"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
fattTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
fattTime
(
scope
.
row
.
createTime
)
}}
</span>
...
@@ -104,8 +110,8 @@
...
@@ -104,8 +110,8 @@
<el-row
:gutter=
"15"
>
<el-row
:gutter=
"15"
>
<el-col
:span=
"8"
class=
"content-left"
><label>
姓名
</label></el-col>
<el-col
:span=
"8"
class=
"content-left"
><label>
姓名
</label></el-col>
<el-col
:span=
"16"
class=
"content-right"
>
<el-col
:span=
"16"
class=
"content-right"
>
<el-input
v-if=
"dialogType===1 || dialogType===2"
size=
"small"
placeholder=
"请输入姓名"
v-model=
"dialogBindData.
repairW
orkerName"
></el-input>
<el-input
v-if=
"dialogType===1 || dialogType===2"
size=
"small"
placeholder=
"请输入姓名"
v-model=
"dialogBindData.
w
orkerName"
></el-input>
<span
v-else
>
{{dialogBindData.
repairW
orkerName}}
</span>
<span
v-else
>
{{dialogBindData.
w
orkerName}}
</span>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -113,29 +119,29 @@
...
@@ -113,29 +119,29 @@
<el-row
:gutter=
"15"
>
<el-row
:gutter=
"15"
>
<el-col
:span=
"8"
class=
"content-left"
><label>
性别
</label></el-col>
<el-col
:span=
"8"
class=
"content-left"
><label>
性别
</label></el-col>
<el-col
:span=
"16"
class=
"content-right"
>
<el-col
:span=
"16"
class=
"content-right"
>
<el-radio-group
v-if=
"dialogType===1 || dialogType===2"
v-model=
"dialogBindData.
s
ex"
>
<el-radio-group
v-if=
"dialogType===1 || dialogType===2"
v-model=
"dialogBindData.
workerS
ex"
>
<el-radio
size=
"small"
:label=
"1"
>
男
</el-radio>
<el-radio
size=
"small"
:label=
"1"
>
男
</el-radio>
<el-radio
size=
"small"
:label=
"0"
>
女
</el-radio>
<el-radio
size=
"small"
:label=
"0"
>
女
</el-radio>
</el-radio-group>
</el-radio-group>
<span
v-else
>
{{dialogBindData.
s
ex===1?"男":"女"}}
</span>
<span
v-else
>
{{dialogBindData.
workerS
ex===1?"男":"女"}}
</span>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"15"
>
<el-row
:gutter=
"15"
>
<el-col
:span=
"8"
class=
"content-left"
><label>
电话
</label></el-col>
<el-col
:span=
"8"
class=
"content-left"
><label>
年龄
</label></el-col>
<el-col
:span=
"16"
class=
"content-right"
>
<el-col
:span=
"16"
class=
"content-right"
>
<el-input
v-if=
"dialogType===1 || dialogType===2"
size=
"small"
placeholder=
"请输入
电话号码"
v-model=
"dialogBindData.repairWorkerPhon
e"
></el-input>
<el-input
v-if=
"dialogType===1 || dialogType===2"
size=
"small"
placeholder=
"请输入
年龄"
v-model=
"dialogBindData.workerAg
e"
></el-input>
<span
v-else
>
{{dialogBindData.
repairWorkerPhon
e}}
</span>
<span
v-else
>
{{dialogBindData.
workerAg
e}}
</span>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"15"
>
<el-row
:gutter=
"15"
>
<el-col
:span=
"8"
class=
"content-left"
><label>
身
份证号
</label></el-col>
<el-col
:span=
"8"
class=
"content-left"
><label>
身
高
</label></el-col>
<el-col
:span=
"16"
class=
"content-right"
>
<el-col
:span=
"16"
class=
"content-right"
>
<el-input
v-if=
"dialogType===1 || dialogType===2"
size=
"small"
placeholder=
"请输入身
份证号"
v-model=
"dialogBindData.repairWorkerIdCard
"
></el-input>
<el-input
v-if=
"dialogType===1 || dialogType===2"
size=
"small"
placeholder=
"请输入身
高"
v-model=
"dialogBindData.workerHeight
"
></el-input>
<span
v-else
>
{{dialogBindData.
repairWorkerIdCard
}}
</span>
<span
v-else
>
{{dialogBindData.
workerHeight
}}
</span>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -160,14 +166,16 @@
...
@@ -160,14 +166,16 @@
</template>
</template>
<
script
>
<
script
>
import
*
as
repair
from
"../../api/repai
r"
;
import
*
as
worker
from
"../../api/worke
r"
;
import
*
as
common
from
"../../api/common"
;
import
*
as
common
from
"../../api/common"
;
import
{
fattCreateTime
}
from
"../../utils/fattTime"
;
import
{
fattCreateTime
}
from
"../../utils/fattTime"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
seacherParam
:
{
seacherParam
:
{
repairWorkerName
:
""
workerName
:
""
,
workerNumber
:
""
,
workerAge
:
""
},
},
// 表格数据
// 表格数据
dataOption
:
null
,
dataOption
:
null
,
...
@@ -195,11 +203,27 @@ export default {
...
@@ -195,11 +203,27 @@ export default {
// visitReasonId:"1001"
// visitReasonId:"1001"
dialogBindData
:
{
dialogBindData
:
{
repairWorkerId
:
""
,
workerId
:
""
,
repairWorkerName
:
""
,
workerName
:
""
,
sex
:
1
,
workerSex
:
1
,
repairWorkerPhone
:
""
,
workerAge
:
""
,
repairWorkerIdCard
:
""
workerBirthday
:
""
,
workerHeight
:
""
,
workerWeight
:
""
,
workerBust
:
1
,
workerWaist
:
""
,
workerHipline
:
""
,
workerHomePic
:
""
,
workerPic
:
""
,
workerResume
:
1
,
storeId
:
""
,
administratorsId
:
""
,
isAuditing
:
""
,
isShopping
:
""
,
clicks
:
1
,
isRecommend
:
""
,
serialNumber
:
""
},
},
// 是否提交
// 是否提交
submmitSuccess
:
false
submmitSuccess
:
false
...
@@ -213,7 +237,7 @@ export default {
...
@@ -213,7 +237,7 @@ export default {
methods
:
{
methods
:
{
seachFun
()
{
seachFun
()
{
this
.
$seach
this
.
$seach
.
submmit
(
this
,
repair
.
getRepairW
orkerList
)
.
submmit
(
this
,
worker
.
w
orkerList
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
dataOption
=
res
.
data
.
data
;
this
.
dataOption
=
res
.
data
.
data
;
// 初始化分页数据
// 初始化分页数据
...
@@ -284,7 +308,7 @@ export default {
...
@@ -284,7 +308,7 @@ export default {
const
isSubmitActive
=
this
.
dialogBindData
.
repairWorkerName
&&
this
.
dialogBindData
.
repairWorkerPhone
&&
this
.
dialogBindData
.
repairWorkerIdCard
;
const
isSubmitActive
=
this
.
dialogBindData
.
repairWorkerName
&&
this
.
dialogBindData
.
repairWorkerPhone
&&
this
.
dialogBindData
.
repairWorkerIdCard
;
if
(
isSubmitActive
)
{
if
(
isSubmitActive
)
{
this
.
submmitSuccess
=
true
;
this
.
submmitSuccess
=
true
;
repair
.
addOrEditRepair
Worker
(
this
.
dialogBindData
).
then
(
res
=>
{
worker
.
addOrEdit
Worker
(
this
.
dialogBindData
).
then
(
res
=>
{
this
.
getList
(()
=>
{
this
.
getList
(()
=>
{
this
.
$message
({
this
.
$message
({
message
:
this
.
dialogType
===
1
?
"添加成功"
:
"编辑成功"
,
message
:
this
.
dialogType
===
1
?
"添加成功"
:
"编辑成功"
,
...
@@ -325,8 +349,8 @@ export default {
...
@@ -325,8 +349,8 @@ export default {
},
},
// 获取表格数据
// 获取表格数据
getList
(
cb
)
{
getList
(
cb
)
{
repai
r
worke
r
.
getRepairW
orkerList
({
pageNo
:
this
.
pageNo
,
pageSize
:
this
.
pageSize
})
.
w
orkerList
({
pageNo
:
this
.
pageNo
,
pageSize
:
this
.
pageSize
})
.
then
(
res
=>
{
.
then
(
res
=>
{
// 初始话表格数据
// 初始话表格数据
this
.
dataOption
=
res
.
data
.
data
;
this
.
dataOption
=
res
.
data
.
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment