Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopFront
Project
Project
Details
Activity
Releases
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
newshop
newShopFront
Commits
f367dcf5
Commit
f367dcf5
authored
Dec 19, 2019
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交问题
parent
b97aac20
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
640 additions
and
341 deletions
+640
-341
delivery.js
src/api/delivery.js
+44
-2
router.config.js
src/config/router.config.js
+14
-0
Manage_editor.vue
src/views/authority/details/Manage_editor.vue
+2
-1
manageList.vue
src/views/authority/manageList.vue
+2
-2
menuList.vue
src/views/authority/menuList.vue
+158
-251
companyDetail.vue
src/views/delivery/details/companyDetail.vue
+153
-0
distributionDetail.vue
src/views/delivery/details/distributionDetail.vue
+185
-0
distributionManage.vue
src/views/delivery/distributionManage.vue
+47
-30
distributionMode.vue
src/views/delivery/distributionMode.vue
+33
-43
storeManage_details.vue
src/views/storedc/details/storeManage_details.vue
+2
-12
No files found.
src/api/delivery.js
View file @
f367dcf5
...
@@ -14,9 +14,43 @@ import homeUrl from './homeURL'
...
@@ -14,9 +14,43 @@ import homeUrl from './homeURL'
* @param parameter
* @param parameter
* @returns {*}
* @returns {*}
*/
*/
// 获取快递方式列表
// 获取配送方式列表
export
function
getDistributionModeList
(
parameter
)
{
export
function
getDistributionModeList
(
parameter
)
{
console
.
log
(
parameter
)
return
axios
({
url
:
'transport/companies/company-list'
,
method
:
'get'
,
params
:
parameter
})
}
// 获取快递方式详情
export
function
getCompanyDetail
(
parameter
)
{
return
axios
({
url
:
'transport/companies/company-detail'
,
method
:
'get'
,
params
:
{
'guid'
:
parameter
}
})
}
//修改快递方式详情
export
function
modifyCompanyDetail
(
parameter
)
{
return
axios
({
url
:
'transport/companies/company-revise'
,
method
:
'put'
,
data
:
parameter
})
}
// 添加快递方式
export
function
addCompanyDetail
(
parameter
)
{
return
axios
({
url
:
'transport/transport-settings/transport-fee-add'
,
method
:
'post'
,
data
:
parameter
})
}
// 获取配送方式列表
export
function
getTransportMethod
(
parameter
)
{
console
.
log
(
parameter
)
console
.
log
(
parameter
)
return
axios
({
return
axios
({
url
:
'transport/transport-methods/get-transport-method'
,
url
:
'transport/transport-methods/get-transport-method'
,
...
@@ -24,6 +58,14 @@ export function getDistributionModeList(parameter) {
...
@@ -24,6 +58,14 @@ export function getDistributionModeList(parameter) {
params
:
parameter
params
:
parameter
})
})
}
}
// 添加配送方式
export
function
addDistributionManage
(
parameter
)
{
return
axios
({
url
:
'transport/transport-methods/transport-method-insert'
,
method
:
'post'
,
data
:
parameter
})
}
// 获取O2O配送费列表
// 获取O2O配送费列表
export
function
getExpressPrice
(
parameter
)
{
export
function
getExpressPrice
(
parameter
)
{
console
.
log
(
parameter
)
console
.
log
(
parameter
)
...
...
src/config/router.config.js
View file @
f367dcf5
...
@@ -208,12 +208,26 @@ export const asyncRouterMap = [
...
@@ -208,12 +208,26 @@ export const asyncRouterMap = [
component
:
()
=>
import
(
'@/views/delivery/distributionMode'
),
component
:
()
=>
import
(
'@/views/delivery/distributionMode'
),
meta
:
{
title
:
'快递方式'
,
keepAlive
:
false
,
permission
:
[
'table'
]
}
meta
:
{
title
:
'快递方式'
,
keepAlive
:
false
,
permission
:
[
'table'
]
}
},
},
{
path
:
'/delivery/details/companyDetail'
,
name
:
'companyDetail'
,
hidden
:
true
,
component
:
()
=>
import
(
'@/views/delivery/details/companyDetail'
),
meta
:
{
title
:
'编辑快递方式'
,
keepAlive
:
false
,
permission
:
[
'table'
]
}
},
{
{
path
:
'/delivery/distributionManage'
,
path
:
'/delivery/distributionManage'
,
name
:
'distributionManage'
,
name
:
'distributionManage'
,
component
:
()
=>
import
(
'@/views/delivery/distributionManage'
),
component
:
()
=>
import
(
'@/views/delivery/distributionManage'
),
meta
:
{
title
:
'配送方式管理'
,
keepAlive
:
false
,
permission
:
[
'table'
]
}
meta
:
{
title
:
'配送方式管理'
,
keepAlive
:
false
,
permission
:
[
'table'
]
}
},
},
{
path
:
'/delivery/details/distributionDetail'
,
name
:
'distributionDetail'
,
hidden
:
true
,
component
:
()
=>
import
(
'@/views/delivery/details/distributionDetail'
),
meta
:
{
title
:
'编辑配送方式管理'
,
keepAlive
:
false
,
permission
:
[
'table'
]
}
},
{
{
path
:
'/delivery/expressPrice'
,
path
:
'/delivery/expressPrice'
,
name
:
'expressPrice'
,
name
:
'expressPrice'
,
...
...
src/views/authority/details/Manage_editor.vue
View file @
f367dcf5
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"拥有权限"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"拥有权限"
>
<a-radio-group
v-decorator=
"['ROLE_ID',
{normalize:checkRadio}]">
<a-radio-group
v-decorator=
"['ROLE_ID',
{normalize:checkRadio}]">
<a-radio
v-for=
"(item,index) in grouplist"
:key=
"index"
:value=
"item.ID"
>
{{
item
.
NAME
}}
</a-radio>
<!--
<a-radio
v-for=
"(item,index) in grouplist"
:key=
"index"
:value=
"item.ID"
>
{{
item
.
NAME
}}
</a-radio>
-->
<a-radio
v-for=
"(group, index) in grouplist"
:key=
"index"
:value=
"group.ID"
>
{{
group
.
NAME
}}
</a-radio>
</a-radio-group>
</a-radio-group>
</a-form-item>
</a-form-item>
...
...
src/views/authority/manageList.vue
View file @
f367dcf5
...
@@ -98,8 +98,8 @@ export default {
...
@@ -98,8 +98,8 @@ export default {
this
.
$router
.
push
({
path
:
'/authority/details/Manage_editor'
,
query
:{
GUID
:
GUID
}})
this
.
$router
.
push
({
path
:
'/authority/details/Manage_editor'
,
query
:{
GUID
:
GUID
}})
// this.$router.push({path:'/authority/details/Manage_editor',query:{goid:1}})
// this.$router.push({path:'/authority/details/Manage_editor',query:{goid:1}})
}
else
{
}
else
{
console
.
log
(
value
)
//
console.log(value)
this
.
$router
.
push
({
path
:
'/authority/details/Manage_editor'
,
query
:{
goid
:
0
,
GUID
:
value
.
GUID
}
})
this
.
$router
.
push
({
path
:
'/authority/details/Manage_editor'
})
}
}
},
},
...
...
src/views/authority/menuList.vue
View file @
f367dcf5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<a-card
style=
"margin-bottom:10px"
>
<a-card
style=
"margin-bottom:10px"
>
<a-form
:form=
"newform"
layout=
"inline"
>
<a-form
:form=
"newform"
layout=
"inline"
>
<a-row
:gutter=
"16"
type=
"flex"
justify=
"start"
>
<a-row
:gutter=
"16"
type=
"flex"
justify=
"start"
>
<a-col
:span=
"6"
>
<
!--
<
a-col
:span=
"6"
>
<a-form-item
label=
"名称:"
>
<a-form-item
label=
"名称:"
>
<a-input
type=
"text"
v-model=
"queryParam.TITLE"
>
</a-input>
<a-input
type=
"text"
v-model=
"queryParam.TITLE"
>
</a-input>
</a-form-item>
</a-form-item>
...
@@ -15,10 +15,11 @@
...
@@ -15,10 +15,11 @@
<a-radio-button
value=
"1"
>
禁用
</a-radio-button>
<a-radio-button
value=
"1"
>
禁用
</a-radio-button>
</a-radio-group>
</a-radio-group>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
-->
<a-col
:span=
"6"
>
<a-col
:span=
"6"
>
<a-form-item>
<a-form-item>
<a-button
type=
"primary"
icon=
"search"
@
click=
"$refs.table.refresh(true)"
>
查询
</a-button>
<a-input-search
style=
"margin-bottom: 8px"
placeholder=
"Search"
@
change=
"onChange"
/>
<!--
<a-button
type=
"primary"
icon=
"search"
@
click=
"$refs.table.refresh(true)"
>
查询
</a-button>
-->
</a-form-item>
</a-form-item>
</a-col>
</a-col>
</a-row>
</a-row>
...
@@ -31,9 +32,31 @@
...
@@ -31,9 +32,31 @@
rowKey=
"ID"
rowKey=
"ID"
:columns=
"columns"
:columns=
"columns"
:data=
"loadData"
:data=
"loadData"
:scroll=
"
{ x: 1200, y:300 }"
:scroll=
"
{ x: 1200, y:
300 }"
:showPagination="pagination"
:showPagination="pagination"
>
>
<span
slot=
"TITLE"
slot-scope=
""
>
<template>
<div>
<!--
<a-input-search
style=
"margin-bottom: 8px"
placeholder=
"Search"
@
change=
"onChange"
/>
-->
<a-tree
@
expand=
"onExpand"
:expandedKeys=
"expandedKeys"
:autoExpandParent=
"autoExpandParent"
:treeData=
"gData"
>
<template
slot=
"title"
slot-scope=
"
{ title }">
<span
v-if=
"title.indexOf(searchValue) > -1"
>
{{
title
.
substr
(
0
,
title
.
indexOf
(
searchValue
))
}}
<span
style=
"color: #f50"
>
{{
searchValue
}}
</span>
{{
title
.
substr
(
title
.
indexOf
(
searchValue
)
+
searchValue
.
length
)
}}
</span>
<span
v-else
>
{{
title
}}
</span>
</
template
>
</a-tree>
</div>
</template>
</span>
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<
template
>
<
template
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
...
@@ -125,13 +148,73 @@
...
@@ -125,13 +148,73 @@
import
moment
from
'moment'
import
moment
from
'moment'
import
{
STable
}
from
'@/components'
import
{
STable
}
from
'@/components'
import
{
getMenuList
}
from
'@/api/authority'
import
{
getMenuList
}
from
'@/api/authority'
const
x
=
3
;
const
y
=
2
;
const
z
=
1
;
const
gData
=
[];
const
generateData
=
(
_level
,
_preKey
,
_tns
)
=>
{
const
preKey
=
_preKey
||
'0'
;
const
tns
=
_tns
||
gData
;
const
children
=
[];
for
(
let
i
=
0
;
i
<
x
;
i
++
)
{
const
key
=
`
${
preKey
}
-
${
i
}
`
;
tns
.
push
({
title
:
key
,
key
,
scopedSlots
:
{
title
:
'title'
}
});
if
(
i
<
y
)
{
children
.
push
(
key
);
}
}
if
(
_level
<
0
)
{
return
tns
;
}
const
level
=
_level
-
1
;
children
.
forEach
((
key
,
index
)
=>
{
tns
[
index
].
children
=
[];
return
generateData
(
level
,
key
,
tns
[
index
].
children
);
});
};
generateData
(
z
);
const
dataList
=
[];
const
generateList
=
data
=>
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
const
node
=
data
[
i
];
const
key
=
node
.
key
;
dataList
.
push
({
key
,
title
:
key
});
if
(
node
.
children
)
{
generateList
(
node
.
children
,
node
.
key
);
}
}
};
generateList
(
gData
);
const
getParentKey
=
(
key
,
tree
)
=>
{
let
parentKey
;
for
(
let
i
=
0
;
i
<
tree
.
length
;
i
++
)
{
const
node
=
tree
[
i
];
if
(
node
.
children
)
{
if
(
node
.
children
.
some
(
item
=>
item
.
key
===
key
))
{
parentKey
=
node
.
key
;
}
else
if
(
getParentKey
(
key
,
node
.
children
))
{
parentKey
=
getParentKey
(
key
,
node
.
children
);
}
}
}
return
parentKey
;
};
export
default
{
export
default
{
name
:
"authority"
,
name
:
'authority'
,
components
:
{
components
:
{
STable
STable
},
},
data
()
{
data
()
{
return
{
return
{
expandedKeys
:
[],
searchValue
:
''
,
autoExpandParent
:
true
,
gData
,
// loading: false,
// loading: false,
// parentTreeSelected: {},
// parentTreeSelected: {},
labelCol
:
{
labelCol
:
{
...
@@ -150,17 +233,24 @@ export default {
...
@@ -150,17 +233,24 @@ export default {
columns
:
[
columns
:
[
{
{
title
:
'菜单名称'
,
title
:
'菜单名称'
,
dataIndex
:
'TITLE'
,
//
dataIndex: 'TITLE',
width
:
200
,
fixed
:
'left'
,
key
:
'TITLE'
,
width
:
200
,
fixed
:
'left'
scopedSlots
:
{
customRender
:
'TITLE'
}
},
},
// {
// title: '菜单名称',
// dataIndex: 'TITLE',
// width:200,
// key:'TITLE',
// fixed:'left'
// },
{
{
title
:
'节点id'
,
title
:
'节点id'
,
dataIndex
:
'ID'
,
dataIndex
:
'ID'
,
width
:
90
,
width
:
90
,
key
:
'ID'
,
key
:
'ID'
,
fixed
:
'left'
fixed
:
'left'
// customRender: (value, row, index) => {
// customRender: (value, row, index) => {
// var ret = []
// var ret = []
// // 添加icon
// // 添加icon
...
@@ -180,32 +270,32 @@ export default {
...
@@ -180,32 +270,32 @@ export default {
{
{
title
:
'菜单地址'
,
title
:
'菜单地址'
,
dataIndex
:
'NAME'
,
dataIndex
:
'NAME'
,
width
:
200
width
:
200
},
},
{
{
title
:
'菜单状态'
,
title
:
'菜单状态'
,
dataIndex
:
'STATUS'
,
dataIndex
:
'STATUS'
,
width
:
150
width
:
150
},
},
{
{
title
:
'是否为菜单'
,
title
:
'是否为菜单'
,
dataIndex
:
'IS_MENU'
,
dataIndex
:
'IS_MENU'
,
width
:
100
width
:
100
},
},
{
{
title
:
'是否顶部菜单'
,
title
:
'是否顶部菜单'
,
dataIndex
:
'IS_TOP_MENU'
,
dataIndex
:
'IS_TOP_MENU'
,
width
:
100
width
:
100
},
},
{
{
title
:
'是否默认显示'
,
title
:
'是否默认显示'
,
dataIndex
:
'IS_DEFAULT_SHOW'
,
dataIndex
:
'IS_DEFAULT_SHOW'
,
width
:
150
width
:
150
},
},
{
{
title
:
'描述'
,
title
:
'描述'
,
dataIndex
:
'REMARK'
,
dataIndex
:
'REMARK'
,
width
:
90
width
:
90
},
},
// {
// {
// title: '类型',
// title: '类型',
...
@@ -227,12 +317,12 @@ export default {
...
@@ -227,12 +317,12 @@ export default {
{
{
title
:
'排序'
,
title
:
'排序'
,
dataIndex
:
'SORT'
,
dataIndex
:
'SORT'
,
width
:
100
width
:
100
},
},
{
{
title
:
'类型'
,
title
:
'类型'
,
dataIndex
:
'LEVEL'
,
dataIndex
:
'LEVEL'
,
width
:
100
width
:
100
// customRender: (state, row, index) => {
// customRender: (state, row, index) => {
// return
<
div
>
{
state
===
0
?
<
a
-
tag
color
=
"cyan"
>
显示
<
/a-tag> : <a-tag color="red">隐藏</
a
-
tag
>
}
<
/div
>
// return
<
div
>
{
state
===
0
?
<
a
-
tag
color
=
"cyan"
>
显示
<
/a-tag> : <a-tag color="red">隐藏</
a
-
tag
>
}
<
/div
>
// }
// }
...
@@ -241,13 +331,13 @@ export default {
...
@@ -241,13 +331,13 @@ export default {
{
{
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'action'
,
dataIndex
:
'action'
,
fixed
:
'right'
,
fixed
:
'right'
,
width
:
100
,
width
:
100
,
scopedSlots
:
{
customRender
:
'action'
}
scopedSlots
:
{
customRender
:
'action'
}
}
}
],
],
listData
:[],
listData
:
[],
pagination
:
false
,
pagination
:
false
,
// 加载数据方法 必须为 Promise 对象
// 加载数据方法 必须为 Promise 对象
loadData
:
parameter
=>
{
loadData
:
parameter
=>
{
return
getMenuList
().
then
(
res
=>
{
return
getMenuList
().
then
(
res
=>
{
...
@@ -257,7 +347,7 @@ export default {
...
@@ -257,7 +347,7 @@ export default {
// res.totalCount = res._meta.totalCount
// res.totalCount = res._meta.totalCount
console
.
log
(
res
)
console
.
log
(
res
)
this
.
listData
=
res
this
.
listData
=
res
res
.
data
=
this
.
listData
res
.
data
=
this
.
listData
return
res
return
res
})
})
},
},
...
@@ -277,223 +367,40 @@ export default {
...
@@ -277,223 +367,40 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
onExpand
(
expandedKeys
)
{
this
.
expandedKeys
=
expandedKeys
;
this
.
autoExpandParent
=
false
;
},
onChange
(
e
)
{
const
value
=
e
.
target
.
value
;
const
expandedKeys
=
dataList
.
map
(
item
=>
{
if
(
item
.
key
.
indexOf
(
value
)
>
-
1
)
{
return
getParentKey
(
item
.
key
,
gData
);
}
return
null
;
})
.
filter
((
item
,
i
,
self
)
=>
item
&&
self
.
indexOf
(
item
)
===
i
);
Object
.
assign
(
this
,
{
expandedKeys
,
searchValue
:
value
,
autoExpandParent
:
true
,
});
},
// secondLoad(){
// secondLoad(){
loadData
:
parameter
=>
{
loadData
:
parameter
=>
{
return
getMenuList
(
Object
.
assign
(
parameter
,
this
.
queryParam
)).
then
(
res
=>
{
return
getMenuList
(
Object
.
assign
(
parameter
,
this
.
queryParam
)).
then
(
res
=>
{
// res.pageSize = res._meta.perPage
// res.pageSize = res._meta.perPage
// res.page = res._meta.currentPage
// res.page = res._meta.currentPage
// res.totalPage = res._meta.pageCount
// res.totalPage = res._meta.pageCount
// res.totalCount = res._meta.totalCount
// res.totalCount = res._meta.totalCount
this
.
listData
=
res
this
.
listData
=
res
res
.
data
=
this
.
listData
res
.
data
=
this
.
listData
return
res
return
res
})
})
// }
},
// regetTreeData () {
// if (this.modalTreeData.length
<=
0
)
{
// getMenuList({}).then(res => {
// this.modalTreeData = [{ id: 0, name: '主菜单', type: 'D' }]
// this.modalTreeData[0].children = res.data
// this.makeTreeDataSafe(this.modalTreeData)
// })
// }
// },
// customRow (record) {
// return {
// on: {
// click: () => {
// this.rowSelection.selectedRowKeys = [record.id]
// this.tableSelected = record
// }
// }
// }
// },
// parentTreeSelect (value, node, extra) {
// this.parentTreeSelected = extra.selectedNodes[0].data.props
// },
// getMenuById (data, id) {
// if (id === null) return null
// for (var i = 0; i
<
data
.
length
;
i
++
)
{
// if (data[i].id === id) {
// return data[i]
// }
// if (data[i].children) {
// var ret = null
// if ((ret = this.getMenuById(data[i].children, id))) {
// return ret
// }
// }
// }
// },
// initMenuParams () {
// this.modalParams = {
// pMenu: '',
// pid: '',
// type: 'M',
// permName: '',
// name: '',
// path: '',
// component: '',
// icon: ''
// }
// },
// addMenuClick () {
// if (this.tableSelected.type === 'B') {
// this.$error({ title: '按钮下不能创建子项' })
// return
// }
// this.editType = 'add'
// this.initMenuParams()
// this.modalParams.pMenu = this.tableSelected.name ? this.tableSelected.name : '主菜单'
// this.modalParams.pid = this.tableSelected.id ? this.tableSelected.id : 0
// if (this.tableSelected.type === 'M') {
// this.modalParams.type = 'B'
// }
// this.showMenuModal = true
// },
// editMenuClick () {
// if (!this.tableSelected.id) {
// this.$message.warning('请选择要修改的菜单项', 5)
// return
// }
// this.editType = 'update'
// this.initMenuParams()
// this.tableSelected = this.getMenuById(this.data, this.tableSelected.id)
// Object.assign(this.modalParams, this.tableSelected)
// var parentMenu = this.getMenuById(this.modalTreeData, this.modalParams.pid)
// this.modalParams.pMenu = parentMenu.name
// this.showMenuModal = true
// },
// deleteMenuClick () {
// if (!this.tableSelected.id) {
// this.$message.warning('请选择要删除的菜单项', 5)
// return
// }
// this.$confirm({
// title: `确认删除菜单【${this.tableSelected.name}】吗?`,
// onOk: () => {
// deleteMenu(this.tableSelected.id).then(res => {
// if (!res.code) {
// this.tableSelected = {}
// this.$message.success('删除成功', 5)
// this.getData()
// this.updateModalTreeIfNeed()
// } else {
// this.$error({ title: `删除失败:${res.msg}` })
// }
// })
// }
// })
// },
// makeMenuTypeSafe (rule, value, cb) {
// var parentType = 'D'
// if (this.parentTreeSelected.type) {
// // 用户自己选择父菜单
// parentType = this.parentTreeSelected.type
// } else if (this.modalParams.pid) {
// // 对话框刚打开时
// var parentMenu = this.getMenuById(this.modalTreeData, this.modalParams.pid)
// parentType = parentMenu ? parentMenu.type : 'D'
// }
// if (parentType === 'M' && value !== 'B') {
// cb(new Error('菜单下只能包含按钮'))
// } else if (parentType === 'D' && value === 'B') {
// cb(new Error('目录下不能包含按钮'))
// } else if (parentType === 'B') {
// cb(new Error('按钮下不能包含子项'))
// }
// cb()
// },
// updateModalTreeIfNeed () {
// if (Object.keys(this.params).length === 0) {
// this.modalTreeData = []
// this.regetTreeData()
// }
// },
// editMenu () {
// this.form.validateFields((err, values) => {
// if (!err) {
// if (this.editType === 'add') {
// addMenu(values).then(res => {
// if (!res.code) {
// this.showMenuModal = false
// this.$message.success('添加成功', 5)
// this.getData()
// this.updateModalTreeIfNeed()
// } else {
// this.$error({ title: `添加失败:${res.msg}` })
// }
// })
// } else if (this.editType === 'update') {
// // 修改父菜单
// if (this.parentTreeSelected.id) {
// values.pid = this.parentTreeSelected.id
// if (values.pid === values.id) {
// this.$error({ title: `父菜单不能是自身` })
// return
// }
// }
// updateMenu(values).then(res => {
// if (!res.code) {
// this.showMenuModal = false
// this.$message.success('修改成功', 5)
// this.getData()
// if (this.parentTreeSelected.id) {
// // 更新下树结构
// this.updateModalTreeIfNeed()
// }
// } else {
// this.$error({ title: `修改失败:${res.msg}` })
// }
// })
// }
// }
// })
// },
// getData () {
// this.loading = true
// getMenuList(this.params).then(res => {
// this.loading = false
// this.data = res.data
// // 设置第一层级默认展开
// // this.expandedRowKeys.push(...this.data.map(item => item.id))
// if (Object.keys(this.params).length === 0 && this.modalTreeData.length
<=
0
)
{
// this.modalTreeData = [{ id: 0, name: '主菜单', type: 'D' }]
// this.modalTreeData[0].children = JSON.parse(JSON.stringify(this.data))
// this.makeTreeDataSafe(this.modalTreeData)
// }
// })
// },
// makeTreeDataSafe (data) {
// // 修改为antd控件需要的不同属性名
// for (var i = data.length - 1; i >= 0; i--) {
// var item = data[i]
// if (item.type === 'B') {
// data.splice(i, 1)
// }
// item.title = item.name
// item.key = item.id
// item.value = item.name
// if (item.children) {
// this.makeTreeDataSafe(item.children)
// }
// }
// }
}
}
// created () {
}
// this.getData()
// },
// watch: {
// showMenuModal (newVal) {
// if (newVal) {
// this.parentTreeSelected = {}
// this.$nextTick(() => {
// this.form.setFieldsValue(this.modalParams)
// })
// }
// }
// }
}
}
</
script
>
</
script
>
<
style
>
<
style
>
...
...
src/views/delivery/details/companyDetail.vue
0 → 100644
View file @
f367dcf5
<
template
>
<a-card
:body-style=
"
{ padding: '24px 32px' }" :bordered="false">
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"快递方式CODE"
>
<a-input
v-decorator=
"['CODE',
{ rules: [{ required: true, message: '请输入快递方式CODE' }] }]"
name="CODE"
placeholder="请输入快递方式CODE"
/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"快递方式名称"
>
<a-input
v-decorator=
"['NAME',
{ rules: [{ required: true, message: '请输入快递方式名称' }] }]"
name="NAME" placeholder="请输入快递方式名称"/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"手机号"
>
<a-input
v-decorator=
"['PHONE',
{ rules: [{ required: true, message: '请输入手机号' }] }]" name="PHONE" placeholder="请输入手机号"/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"排序"
>
<a-input
v-decorator=
"['SORT']"
name=
"SORT"
/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"描述"
>
<a-input
v-decorator=
"['DESCRIPTION',
{ rules: [{ required: true, message: '请输入描述' }] }]" name="DESCRIPTION" placeholder="请输入描述"/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"是否默认"
>
<a-radio-group
v-decorator=
"['IS_DEFAULT',
{ initialValue: '0', normalize: checkRadio }]">
<a-radio
value=
"0"
>
否
</a-radio>
<a-radio
value=
"1"
>
是
</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item
:wrapperCol=
"
{ span: 24 }" style="text-align: center">
<a-button
v-if=
"GUID"
@
click
.
stop
.
prevent=
"handleSubmit"
htmlType=
"submit"
type=
"primary"
>
提交
</a-button>
<a-button
v-else
@
click
.
stop
.
prevent=
"handleSubmit1()"
htmlType=
"submit"
type=
"primary"
>
提交
</a-button>
<a-button
@
click=
"goBack"
style=
"margin-left: 8px"
>
返回
</a-button>
</a-form-item>
</a-form>
</a-card>
</
template
>
<
script
>
import
moment
from
'moment'
import
{
getCompanyDetail
,
modifyCompanyDetail
,
addCompanyDetail
}
from
'@/api/delivery'
export
default
{
name
:
'delivery'
,
data
()
{
return
{
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
7
}
},
wrapperCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
12
}
},
// count: 2,
description
:
'表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。'
,
// goId: 1,
GUID
:
''
,
// res:[],
// grouplist: [],
// form
form
:
this
.
$form
.
createForm
(
this
)
}
},
mounted
()
{
var
id
=
this
.
$route
.
query
.
GUID
console
.
log
(
id
)
// var gooId = this.$route.query.goid
// this.goId = gooId
this
.
GUID
=
id
if
(
id
)
{
return
getCompanyDetail
(
id
)
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
form
.
setFieldsValue
(
res
)
})
.
catch
(
err
=>
{})
}
//获取所有权限
// getManageGroupList()
// .then(res => {
// console.log(res)
// this.grouplist = res.info
// })
// .catch(err => {})
},
methods
:
{
// checkboxGroup处理
checkRadio
(
value
)
{
if
(
value
)
{
return
value
.
toString
()
}
},
//time
DateCheck
(
value
)
{
if
(
value
||
value
!=
null
||
value
!=
''
)
{
console
.
log
(
value
)
return
moment
(
value
,
'YYYY-MM-DD'
)
}
},
// checkRadio(value) {
// if (value == null || value == '') {
// return '0'
// } else {
// return value.toString()
// }
// },
handleSubmit
()
{
console
.
log
(
validateFields
)
const
{
form
:
{
validateFields
}
}
=
this
validateFields
({
force
:
true
},
(
err
,
values
)
=>
{
console
.
log
(
values
)
if
(
!
err
)
{
console
.
log
(
err
)
const
EminformanParams
=
{
...
values
}
addCompanyDetail
(
EminformanParams
)
this
.
$router
.
push
({
path
:
'/delivery/distributionMode'
})
}
})
},
handleSubmit1
()
{
let
guid
=
this
.
GUID
const
{
form
:
{
validateFields
}
}
=
this
validateFields
({
force
:
true
},
(
err
,
values
)
=>
{
if
(
!
err
)
{
const
CompanyModify
=
Object
.
assign
({
...
values
},
{
GUID
:
guid
})
// if (CompanyModify.CONTACTBIRTH_DATE) {
// CompanyModify.CONTACTBIRTH_DATE = CompanyModify.CONTACTBIRTH_DATE.format('YYYY-MM-DD')
// }
modifyCompanyDetail
(
EminformanModify
)
this
.
$router
.
push
({
path
:
'/delivery/distributionMode'
})
}
})
},
goBack
()
{
this
.
$router
.
push
({
path
:
'/delivery/distributionMode'
})
}
}
}
</
script
>
src/views/delivery/details/distributionDetail.vue
0 → 100644
View file @
f367dcf5
<
template
>
<a-card
:body-style=
"
{ padding: '24px 32px' }" :bordered="false">
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"名称"
>
<a-input
v-decorator=
"['NAME',
{ rules: [{ required: true, message: '名称' }] }]"
name="NAME"
placeholder="名称"
/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"小时数"
>
<!--
<a-input
v-decorator=
"['DSDINTERVAL',
{ rules: [{ required: true, message: '请输入小时数' }] }]"
name="DSDINTERVAL"
placeholder="请输入小时数"
/> -->
<a-row>
<a-col
:span=
"12"
>
<a-input-group
compact
>
<a-input
style=
"width:50%"
v-decorator=
"['DSDINTERVAL']"
placeholder=
"请输入小时数"
/>
<a-button
type=
"primary"
style=
"width:20%"
>
元
</a-button>
</a-input-group>
</a-col>
</a-row>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"额外配送费用"
>
<!--
<a-input
v-decorator=
"['EXTRA_MONEY',
{ rules: [{ required: true, message: '请输入额外配送费用' }] }]"
name="EXTRA_MONEY"
placeholder="请输入额外配送费用"
/> -->
<a-row>
<a-col
:span=
"12"
>
<a-input-group
compact
>
<a-input
style=
"width:50%"
v-decorator=
"['EXTRA_MONEY']"
placeholder=
"请输入额外配送费用"
/>
<a-button
type=
"primary"
style=
"width:20%"
>
元
</a-button>
</a-input-group>
</a-col>
</a-row>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"配送类型"
>
<a-input
v-decorator=
"['TRANSPOR_TYPE',
{ rules: [{ required: true, message: '请选择配送类型' }] }]"
name="TRANSPOR_TYPE"
placeholder="请选择配送类型"
/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"排序"
>
<a-input
v-decorator=
"['ORDER_INDEX']"
name=
"ORDER_INDEX"
/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"是否支持线下付款"
>
<a-radio-group
v-decorator=
"['IS_UNDERLINE_PAY',
{ initialValue: '0', normalize: checkRadio }]">
<a-radio
value=
"0"
>
否
</a-radio>
<a-radio
value=
"1"
>
是
</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"描述"
>
<a-input
v-decorator=
"['DESCRIPTION',
{ rules: [{ required: true, message: '请输入描述' }] }]"
name="DESCRIPTION"
placeholder="请输入描述"
/>
</a-form-item>
<a-form-item
:wrapperCol=
"
{ span: 24 }" style="text-align: center">
<a-button
v-if=
"GUID"
@
click
.
stop
.
prevent=
"handleSubmit"
htmlType=
"submit"
type=
"primary"
>
提交
</a-button>
<a-button
v-else
@
click
.
stop
.
prevent=
"handleSubmit1()"
htmlType=
"submit"
type=
"primary"
>
提交
</a-button>
<a-button
@
click=
"goBack"
style=
"margin-left: 8px"
>
返回
</a-button>
</a-form-item>
</a-form>
</a-card>
</
template
>
<
script
>
import
moment
from
'moment'
import
{
addDistributionManage
}
from
'@/api/delivery'
export
default
{
name
:
'delivery'
,
data
()
{
return
{
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
7
}
},
wrapperCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
12
}
},
// count: 2,
description
:
'表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。'
,
// goId: 1,
GUID
:
''
,
// res:[],
// grouplist: [],
// form
form
:
this
.
$form
.
createForm
(
this
)
}
},
mounted
()
{
var
id
=
this
.
$route
.
query
.
GUID
console
.
log
(
id
)
// var gooId = this.$route.query.goid
// this.goId = gooId
this
.
GUID
=
id
if
(
id
)
{
return
getCompanyDetail
(
id
)
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
form
.
setFieldsValue
(
res
)
})
.
catch
(
err
=>
{})
}
//获取所有权限
// getManageGroupList()
// .then(res => {
// console.log(res)
// this.grouplist = res.info
// })
// .catch(err => {})
},
methods
:
{
// checkboxGroup处理
checkRadio
(
value
)
{
if
(
value
)
{
return
value
.
toString
()
}
},
//time
DateCheck
(
value
)
{
if
(
value
||
value
!=
null
||
value
!=
''
)
{
console
.
log
(
value
)
return
moment
(
value
,
'YYYY-MM-DD'
)
}
},
// checkRadio(value) {
// if (value == null || value == '') {
// return '0'
// } else {
// return value.toString()
// }
// },
handleSubmit
()
{
console
.
log
(
validateFields
)
const
{
form
:
{
validateFields
}
}
=
this
validateFields
({
force
:
true
},
(
err
,
values
)
=>
{
console
.
log
(
values
)
if
(
!
err
)
{
console
.
log
(
err
)
const
EminformanParams
=
{
...
values
}
addDistributionManage
(
EminformanParams
)
this
.
$router
.
push
({
path
:
'/delivery/distributionManage'
})
}
})
},
handleSubmit1
()
{
let
guid
=
this
.
GUID
const
{
form
:
{
validateFields
}
}
=
this
validateFields
({
force
:
true
},
(
err
,
values
)
=>
{
if
(
!
err
)
{
const
CompanyModify
=
Object
.
assign
({
...
values
},
{
GUID
:
guid
})
// if (CompanyModify.CONTACTBIRTH_DATE) {
// CompanyModify.CONTACTBIRTH_DATE = CompanyModify.CONTACTBIRTH_DATE.format('YYYY-MM-DD')
// }
modifyCompanyDetail
(
EminformanModify
)
this
.
$router
.
push
({
path
:
'/delivery/distributionManage'
})
}
})
},
goBack
()
{
this
.
$router
.
push
({
path
:
'/delivery/distributionManage'
})
}
}
}
</
script
>
src/views/delivery/distributionManage.vue
View file @
f367dcf5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<a-card
style=
"margin-bottom:10px"
>
<a-card
style=
"margin-bottom:10px"
>
<div
class=
"table-operator"
>
<div
class=
"table-operator"
>
<a-button-group>
<a-button-group>
<a-button
type=
'primary'
icon=
'plus'
@
click=
"goEdit(1)"
>
添加管理员
</a-button>
<a-button
type=
"primary"
icon=
"plus"
@
click=
"goEdit()"
>
添加配送方式
</a-button>
</a-button-group>
</a-button-group>
</div>
</div>
<s-table
<s-table
...
@@ -15,13 +15,30 @@
...
@@ -15,13 +15,30 @@
:data=
"loadData"
:data=
"loadData"
:showPagination=
"pagination"
:showPagination=
"pagination"
>
>
<span
slot=
"
action"
slot-scope=
"text, record
"
>
<span
slot=
"
switchAction"
slot-scope=
"
"
>
<template>
<template>
<a
@
click=
"handleEdit(record)"
>
角色分配
</a>
<a-row
type=
"flex"
justify=
"start"
align=
"middle"
>
<!--
<a-divider
type=
"vertical"
/>
-->
<a-col><a-switch
checkedChildren=
"开"
unCheckedChildren=
"关"
defaultChecked
/></a-col>
<!--
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.ID)"
>
<a-col><a-divider
type=
"vertical"
/></a-col>
<a-col><a-switch
checkedChildren=
"开"
unCheckedChildren=
"关"
defaultChecked
/></a-col>
</a-row>
</
template
>
</span>
<span
slot=
"action"
slot-scope=
""
>
<
template
>
<a-row
type=
"flex"
justify=
"start"
align=
"middle"
>
<a-col>
<a
@
click=
"goEdit(record.GUID)"
>
编辑
</a>
</a-col>
<!--
<a-col>
<a-divider
type=
"vertical"
/>
</a-col>
<a-col>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.ID)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
-->
</a-popconfirm>
</a-col>
-->
</a-row>
</
template
>
</
template
>
</span>
</span>
</s-table>
</s-table>
...
@@ -32,9 +49,9 @@
...
@@ -32,9 +49,9 @@
// , addMenu, updateMenu, deleteMenu
// , addMenu, updateMenu, deleteMenu
import
moment
from
'moment'
import
moment
from
'moment'
import
{
STable
}
from
'@/components'
import
{
STable
}
from
'@/components'
import
{
get
MangeList
}
from
'@/api/authorit
y'
import
{
get
TransportMethod
}
from
'@/api/deliver
y'
export
default
{
export
default
{
name
:
"authority"
,
name
:
'delivery'
,
components
:
{
components
:
{
STable
STable
},
},
...
@@ -49,21 +66,14 @@ export default {
...
@@ -49,21 +66,14 @@ export default {
form
:
this
.
$form
.
createForm
(
this
),
form
:
this
.
$form
.
createForm
(
this
),
columns
:
[
columns
:
[
{
{
title
:
'
管理员姓名
'
,
title
:
'
名称
'
,
dataIndex
:
'NAME'
dataIndex
:
'NAME'
},
},
{
{
title
:
'手机号'
,
title
:
'开启关闭配送方式'
,
dataIndex
:
'MOBILEPHONE'
dataIndex
:
'switchAction'
,
width
:
'200px'
,
},
scopedSlots
:
{
customRender
:
'switchAction'
}
{
title
:
'创建时间'
,
dataIndex
:
'CREATE_DATE'
},
{
title
:
'角色'
,
dataIndex
:
'ROLENAME'
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
@@ -72,30 +82,37 @@ export default {
...
@@ -72,30 +82,37 @@ export default {
scopedSlots
:
{
customRender
:
'action'
}
scopedSlots
:
{
customRender
:
'action'
}
}
}
],
],
//
listData:[],
listData
:[],
pagination
:
false
,
pagination
:
false
,
// 加载数据方法 必须为 Promise 对象
// 加载数据方法 必须为 Promise 对象
loadData
:
parameter
=>
{
loadData
:
parameter
=>
{
console
.
log
(
'shujujiazai'
)
console
.
log
(
'shujujiazai'
)
return
get
MangeList
(
Object
.
assign
(
parameter
,
this
.
queryParam
)
).
then
(
res
=>
{
return
get
TransportMethod
(
).
then
(
res
=>
{
console
.
log
(
'1212121'
)
console
.
log
(
'1212121'
)
console
.
log
(
res
)
console
.
log
(
res
)
//
this.listData = res
this
.
listData
=
res
//
console.log(this.listData)
console
.
log
(
this
.
listData
)
//
res.data=this.listData
res
.
data
=
this
.
listData
return
res
return
res
})
})
},
},
selectedRowKeys
:
[],
selectedRowKeys
:
[],
selectedRows
:
[],
selectedRows
:
[],
modalNow
:
1
modalNow
:
1
}
}
},
},
methods
:
{
methods
:
{
goEdit
(
GUID
=
''
)
{
if
(
GUID
){
this
.
$router
.
push
({
path
:
'/delivery/details/distributionDetail'
,
query
:{
GUID
:
GUID
}})
// this.$router.push({path:'/authority/details/Manage_editor',query:{goid:1}})
}
else
{
// console.log(value)
this
.
$router
.
push
({
path
:
'/delivery/details/distributionDetail'
})
}
}
},
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
...
...
src/views/delivery/distributionMode.vue
View file @
f367dcf5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<a-card
style=
"margin-bottom:10px"
>
<a-card
style=
"margin-bottom:10px"
>
<div
class=
"table-operator"
>
<div
class=
"table-operator"
>
<a-button-group>
<a-button-group>
<a-button
type=
'primary'
icon=
'plus'
@
click=
"goEdit(
1
)"
>
添加快递
</a-button>
<a-button
type=
'primary'
icon=
'plus'
@
click=
"goEdit()"
>
添加快递
</a-button>
</a-button-group>
</a-button-group>
</div>
</div>
<s-table
<s-table
...
@@ -13,11 +13,11 @@
...
@@ -13,11 +13,11 @@
rowKey=
"GUID"
rowKey=
"GUID"
:columns=
"columns"
:columns=
"columns"
:data=
"loadData"
:data=
"loadData"
:showPagination=
"pagination
"
showPagination=
"auto
"
>
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<template>
<template>
<a
@
click=
"
handleEdit(record
)"
>
编辑
</a>
<a
@
click=
"
goEdit(record.GUID
)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.ID)"
>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.ID)"
>
<a>
删除
</a>
<a>
删除
</a>
...
@@ -53,49 +53,26 @@ export default {
...
@@ -53,49 +53,26 @@ export default {
dataIndex
:
'CODE'
dataIndex
:
'CODE'
},
},
{
{
title
:
'名称'
,
title
:
'
配送方式
名称'
,
dataIndex
:
'NAME'
dataIndex
:
'NAME'
},
},
{
{
title
:
'描述'
,
title
:
'手机号'
,
dataIndex
:
'DESCRIPTION'
dataIndex
:
'PHONE'
},
{
title
:
'是否启用'
,
dataIndex
:
'STATE'
},
{
title
:
'是否支持线下付款'
,
dataIndex
:
'IS_UNDERLINE_PAY'
},
{
title
:
'积分商城中是否启用'
,
dataIndex
:
'POINTS_STATE'
},
{
title
:
'小程序中是否启用'
,
dataIndex
:
'ROMENS_RENT_STATE'
},
},
{
{
title
:
'定时达时间间隔'
,
title
:
'排序'
,
dataIndex
:
'DSDINTERVAL'
dataIndex
:
'SORT'
},
{
title
:
'配送方式类型'
,
dataIndex
:
'TRANSPOR_TYPE'
},
{
title
:
'额外费用'
,
dataIndex
:
'EXTRA_MONEY'
},
},
{
{
title
:
'
配送时间
'
,
title
:
'
描述
'
,
dataIndex
:
'DE
LIVERY_TIME
'
dataIndex
:
'DE
SCRIPTION
'
},
},
{
{
title
:
'
排序序号
'
,
title
:
'
是否默认
'
,
dataIndex
:
'
ORDER_INDEX
'
dataIndex
:
'
IS_DEFAULT
'
},
},
{
{
...
@@ -105,17 +82,20 @@ export default {
...
@@ -105,17 +82,20 @@ export default {
scopedSlots
:
{
customRender
:
'action'
}
scopedSlots
:
{
customRender
:
'action'
}
}
}
],
],
listData
:[],
//
listData:[],
pagination
:
false
,
//
pagination:false,
// 加载数据方法 必须为 Promise 对象
// 加载数据方法 必须为 Promise 对象
loadData
:
parameter
=>
{
loadData
:
parameter
=>
{
console
.
log
(
'shujujiazai'
)
console
.
log
(
'shujujiazai'
)
return
getDistributionModeList
(
Object
.
assign
(
parameter
,
this
.
queryParam
)).
then
(
res
=>
{
return
getDistributionModeList
(
Object
.
assign
(
parameter
,
this
.
queryParam
)).
then
(
res
=>
{
console
.
log
(
'1212121'
)
console
.
log
(
res
)
console
.
log
(
res
)
this
.
listData
=
res
res
.
pageSize
=
res
.
_meta
.
perPage
console
.
log
(
this
.
listData
)
res
.
page
=
res
.
_meta
.
currentPage
res
.
data
=
this
.
listData
res
.
totalPage
=
res
.
_meta
.
pageCount
res
.
totalCount
=
res
.
_meta
.
totalCount
// res.data = []
// res.data = res.userdepartment
console
.
log
(
res
.
data
)
return
res
return
res
})
})
},
},
...
@@ -126,6 +106,16 @@ export default {
...
@@ -126,6 +106,16 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
goEdit
(
GUID
=
''
)
{
if
(
GUID
){
this
.
$router
.
push
({
path
:
'/delivery/details/companyDetail'
,
query
:{
GUID
:
GUID
}})
// this.$router.push({path:'/authority/details/Manage_editor',query:{goid:1}})
}
else
{
// console.log(value)
this
.
$router
.
push
({
path
:
'/delivery/details/companyDetail'
})
}
},
}
}
...
...
src/views/storedc/details/storeManage_details.vue
View file @
f367dcf5
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
label=
"门店坐标"
label=
"门店坐标"
:labelCol=
"labelCol"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
:wrapperCol=
"wrapperCol"
>
<
div
id=
"components-button-demo-button-group"
>
<
a-row
>
<a-col
:span=
"12"
>
<a-col
:span=
"12"
>
<a-input-group
compact
>
<a-input-group
compact
>
<a-input
<a-input
...
@@ -94,17 +94,7 @@
...
@@ -94,17 +94,7 @@
<a-button
type=
"primary"
style=
"width:20%"
>
LAT
</a-button>
<a-button
type=
"primary"
style=
"width:20%"
>
LAT
</a-button>
</a-input-group>
</a-input-group>
</a-col>
</a-col>
<a-col
:span=
"12"
>
<a-row>
<a-input-group
compact
>
<a-input
style=
"width:50%"
v-decorator=
"['LNG']"
placeholder=
"请输入坐标"
/>
<a-button
type=
"primary"
style=
"width:20%"
>
LNG
</a-button>
</a-input-group>
</a-col>
</div>
</a-form-item>
</a-form-item>
<a-form-item
<a-form-item
label=
"是否积分兑换门店"
label=
"是否积分兑换门店"
...
...
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