Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
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 eb27aea0
authored
Nov 13, 2020
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交联调接口代码
1 parent
a98c8277
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
8 deletions
src/api/editCustomer.js
src/views/flow/editCustomer.vue
src/views/goods/product.vue
src/api/editCustomer.js
0 → 100644
View file @
eb27aea
import
request
from
'./request'
const
path
=
'dj.api.'
/**获取服务门店列表 */
export
function
getServiceStore
(
data
)
{
data
.
method
=
`
${
path
}
servicemerchantref.list`
return
request
(
data
)
}
/**根据门店商户号获取员工列表 */
export
function
getStaff
(
data
)
{
data
.
method
=
`
${
path
}
employee.getByMerchantId`
return
request
(
data
)
}
/**获取车型车系 */
export
function
getCarInfo
(
data
)
{
data
.
method
=
`
${
path
}
car.series.list`
return
request
(
data
)
}
/**根据车系id获取车辆类型 */
export
function
getCarType
(
data
)
{
data
.
method
=
`
${
path
}
car.type.list`
return
request
(
data
)
}
/**根据门店商户号获取基础商品列表 */
export
function
getGoods
(
data
)
{
data
.
method
=
`
${
path
}
basegoods.list.byServiceMerchantId`
return
request
(
data
)
}
/**预录订单 */
export
function
addOrder
(
data
)
{
data
.
method
=
`
${
path
}
order.advanceCreate`
return
request
(
data
,
'post'
)
}
src/views/flow/editCustomer.vue
View file @
eb27aea
This diff is collapsed.
Click to expand it.
src/views/goods/product.vue
View file @
eb27aea
...
@@ -73,6 +73,8 @@
...
@@ -73,6 +73,8 @@
<
script
>
<
script
>
import
{
getList
,
getType
}
from
'@api/product'
import
{
getList
,
getType
}
from
'@api/product'
import
{
BaseData
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
export
default
{
export
default
{
name
:
'product'
,
name
:
'product'
,
data
()
{
data
()
{
...
@@ -96,10 +98,10 @@ export default {
...
@@ -96,10 +98,10 @@ export default {
prop
:
'thumbUrl'
,
prop
:
'thumbUrl'
,
addHtml
:
'img'
addHtml
:
'img'
},
{
},
{
label
:
'
素材
名称'
,
label
:
'
产品
名称'
,
prop
:
'goodsName'
prop
:
'goodsName'
},
{
},
{
label
:
'
商
品ID'
,
label
:
'
产
品ID'
,
prop
:
'id'
prop
:
'id'
},
{
},
{
label
:
'分类'
,
label
:
'分类'
,
...
@@ -133,15 +135,20 @@ export default {
...
@@ -133,15 +135,20 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getProductType
()
// this.getProductType()
this
.
getBaseData
()
},
},
methods
:
{
methods
:
{
getProductType
(){
// getProductType(){
let
prarms
=
{}
// let prarms = {}
getType
(
prarms
).
then
(
res
=>
{
// getType(prarms).then(res => {
this
.
baseData
.
productTypeList
=
res
||
[]
// this.baseData.productTypeList = res || []
});
// });
// },
...
mapActions
(
'd2admin/base'
,
[
'get'
]),
async
getBaseData
()
{
this
.
baseData
.
productTypeList
=
await
this
.
get
(
BaseData
.
productType
)
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
...
...
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