Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh-order-h5
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
李俊赕
wxh-order-h5
Commits
540fc8d8
Commit
540fc8d8
authored
Jul 30, 2020
by
李超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
夏宝页面对接接口
parent
525386f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
64 deletions
+38
-64
.env.development
web/.env.development
+1
-1
sell-record.js
web/src/api/xiabao/order/sell-record.js
+20
-0
sell-record.vue
web/src/views/h5/xiabao/order/sell-record.vue
+17
-63
No files found.
web/.env.development
View file @
540fc8d8
NODE_ENV = 'development'
VUE_APP_MODE = 'development'
VUE_APP_API_URL = '//
system.dev.banshouhui.com
'
VUE_APP_API_URL = '//
localhost:8182/
'
web/src/api/xiabao/order/sell-record.js
0 → 100644
View file @
540fc8d8
import
{
request
}
from
'@/utils/request'
// import { getToken } from '@/utils/auth'
// 获取厂商列表列表信息
export
function
getSpecification
(
query
)
{
return
request
({
url
:
'/wxh-cloud-rest/rest/thirdparty/xiabao/getSpecification'
,
method
:
'get'
,
// headers: { 'Content-Type': 'application/json' },
params
:
query
})
}
export
function
getServiceMeasure
(
query
)
{
return
request
({
url
:
'/wxh-cloud-rest/rest/thirdparty/xiabao/getServiceMeasure'
,
method
:
'get'
,
params
:
query
})
}
web/src/views/h5/xiabao/order/sell-record.vue
View file @
540fc8d8
...
...
@@ -34,7 +34,7 @@
<ul
slot=
""
>
<li
v-for=
"(item, index) in filterResult"
class=
"food-item"
:class=
"
{active:measure.index===index}" @click="selectMeasureFun(item,index)" :key="index">
<div
class=
"content"
>
<p
class=
"name"
>
{{
item
.
RepairType
+
': '
+
item
.
R
epairContent
}}
</p>
<p
class=
"name"
>
{{
item
.
repairType
+
': '
+
item
.
r
epairContent
}}
</p>
</div>
</li>
</ul>
...
...
@@ -49,9 +49,9 @@
</
template
>
<
script
>
import
{
get
AppreciationService
,
get
Vap
}
from
'@/api/
haier/order/service
'
get
Specification
,
get
ServiceMeasure
}
from
'@/api/
xiabao/order/sell-record
'
import
{
Toast
,
Indicator
}
from
'mint-ui'
import
BScroll
from
'better-scroll'
export
default
{
...
...
@@ -70,46 +70,11 @@ export default {
selectFoods
:
[],
specification
:
{
index
:
0
,
list
:
[
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
},
{
id
:
'2P'
,
name
:
'2P'
},
{
id
:
'3P'
,
name
:
'3P'
}
]
list
:
[]
},
measure
:
{
index
:
''
,
list
:
[
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件0'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件1'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件2'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件3'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件4'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件5'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件6'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件7'
,
RepairFee
:
'120'
},
{
productTypeName
:
''
,
RepairType
:
'中修'
,
categoryType
:
''
,
RepairContent
:
'更改零件8'
,
RepairFee
:
'120'
}
],
list
:
[],
selected
:
[]
},
keyword
:
''
...
...
@@ -123,7 +88,7 @@ export default {
}
const
reg
=
new
RegExp
(
this
.
keyword
)
return
this
.
measure
.
list
.
filter
(
item
=>
{
const
title
=
item
.
RepairContent
+
item
.
R
epairType
const
title
=
item
.
repairContent
+
item
.
r
epairType
if
(
reg
.
test
(
title
))
{
return
item
}
...
...
@@ -150,9 +115,9 @@ export default {
},
methods
:
{
getOrderId
(
orderId
)
{
this
.
orderId
=
orderId
||
'
6099514
'
this
.
orderId
=
orderId
||
'
10704411
'
this
.
loading
=
false
//
this.getList('specification')
this
.
getList
(
'specification'
)
},
selectMeasureFun
(
item
,
index
)
{
this
.
measure
.
index
=
index
...
...
@@ -165,11 +130,14 @@ export default {
getList
(
type
)
{
Indicator
.
open
(
'加载中...'
)
const
request
=
{
specification
:
get
Vap
,
measure
:
get
Vap
specification
:
get
Specification
,
measure
:
get
ServiceMeasure
}
const
selectSpecification
=
this
.
specification
.
list
[
this
.
specification
.
index
]
const
params
=
{
orderId
:
this
.
orderId
orderId
:
this
.
orderId
,
specificationName
:
selectSpecification
?
selectSpecification
.
name
:
''
}
request
[
type
](
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
...
...
@@ -195,11 +163,13 @@ export default {
},
initScroll
(
type
)
{
if
(
type
===
'measure'
)
{
// eslint-disable-next-line no-new
new
BScroll
(
this
.
$refs
.
foodsWrapper
,
{
// probeType: 3,
click
:
true
})
}
else
{
// eslint-disable-next-line no-new
new
BScroll
(
this
.
$refs
.
menuWrapper
,
{
click
:
true
})
...
...
@@ -234,22 +204,6 @@ export default {
})
return
false
}
getAppreciationService
(
data
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
Toast
({
message
:
'operation success'
,
iconClass
:
'icon icon-success'
})
if
(
window
.
parent
.
layer
)
{
window
.
parent
.
layer
.
closeAll
()
}
}
else
{
Toast
({
message
:
res
.
data
.
message
,
duration
:
3000
})
}
})
}
}
}
...
...
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