Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
repair_workers_h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
repair_workers_h5
Commits
27705960
Commit
27705960
authored
Aug 27, 2021
by
石盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发起收费页修改
parent
e0b8462b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
14 deletions
+58
-14
login.vue
src/views/login/login.vue
+2
-1
charge.vue
src/views/my/charge.vue
+54
-11
mine.vue
src/views/tabbar/mine.vue
+2
-2
No files found.
src/views/login/login.vue
View file @
27705960
...
@@ -79,12 +79,13 @@ export default {
...
@@ -79,12 +79,13 @@ export default {
goLogin
()
{
goLogin
()
{
if
(
this
.
checkData
())
return
true
if
(
this
.
checkData
())
return
true
const
curParams
=
{
const
curParams
=
{
tel
:
this
.
tel
,
tel
:
this
.
tel
,
code
:
this
.
code
code
:
this
.
code
}
}
// const _this = this
// const _this = this
this
.
$http
.
post
(
this
.
$myApi
.
BINDLOGIN
,
curParams
)
this
.
$http
.
post
(
this
.
$myApi
.
BINDLOGIN
,
curParams
)
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'
执行了吗
'
);
this
.
$router
.
replace
(
'
/home
'
)
this
.
$router
.
replace
(
'
/home
'
)
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{})
...
...
src/views/my/charge.vue
View file @
27705960
...
@@ -57,13 +57,14 @@
...
@@ -57,13 +57,14 @@
</div>
</div>
<div
class=
"item flex-h flex-vc"
>
<div
class=
"item flex-h flex-vc"
>
<div
class=
"title_left"
>
耗材个数
</div>
<div
class=
"title_left"
>
耗材个数
</div>
<input
type=
"number"
placeholder=
"请输入"
v-model=
"item.sl"
/>
<input
type=
"number"
placeholder=
"请输入"
v-model=
"item.sl"
@
input=
"changeInput($event)"
/>
</div>
</div>
<!-- 种类弹窗 -->
<!-- 种类弹窗 -->
<van-popup
v-model=
"item.zlSelect"
round
position=
"bottom"
>
<van-popup
v-model=
"item.zlSelect"
round
position=
"bottom"
>
<van-picker
<van-picker
show-toolbar
show-toolbar
:columns=
"types"
:columns=
"types"
value-key=
"goods_name"
@
confirm=
"(value)=>
{typeConfirm(value,index)}"
@
confirm=
"(value)=>
{typeConfirm(value,index)}"
@cancel="typeCancel(index)"
@cancel="typeCancel(index)"
/>
/>
...
@@ -72,6 +73,7 @@
...
@@ -72,6 +73,7 @@
<van-picker
<van-picker
show-toolbar
show-toolbar
:columns=
"hcName"
:columns=
"hcName"
value-key=
"goods_name"
@
confirm=
"(value)=>
{hcConfirm(value,index)}"
@
confirm=
"(value)=>
{hcConfirm(value,index)}"
@cancel="hcCancel(index)"
@cancel="hcCancel(index)"
/>
/>
...
@@ -79,8 +81,8 @@
...
@@ -79,8 +81,8 @@
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"line"
></div>
<div
class=
"math-btn flex-h flex-vc flex-hb"
>
<div
class=
"math-btn flex-h flex-vc flex-hb"
>
<div
class=
"del-btn"
@
click=
"delMeth"
>
-删除耗材
</div>
<div
class=
"add-btn"
@
click=
"addMeth"
>
+新增耗材
</div>
<div
class=
"add-btn"
@
click=
"addMeth"
>
+新增耗材
</div>
<div
v-if=
"addList.length>1"
class=
"del-btn"
@
click=
"delMeth"
>
-删除耗材
</div>
</div>
</div>
</div>
</div>
<div
class=
"blank"
></div>
<div
class=
"blank"
></div>
...
@@ -89,9 +91,9 @@
...
@@ -89,9 +91,9 @@
<div
class=
"left"
>
<div
class=
"left"
>
共
共
<span>
{{
addList
.
length
}}
</span>
件,总金额:
<span>
{{
addList
.
length
}}
</span>
件,总金额:
<span>
¥
0
</span>
<span>
¥
{{
total_price
}}
</span>
</div>
</div>
<div
class=
"sk
-btn
"
>
发起收款
</div>
<div
class=
"sk
Btn"
@
click=
"launch(repair_order_id)
"
>
发起收款
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -106,19 +108,22 @@ export default {
...
@@ -106,19 +108,22 @@ export default {
zl
:
''
,
zl
:
''
,
mc
:
''
,
mc
:
''
,
sl
:
''
,
sl
:
''
,
price
:
''
,
zlSelect
:
false
,
zlSelect
:
false
,
mcSelect
:
false
mcSelect
:
false
}
}
],
],
showPicker
:
false
,
showPicker
:
false
,
types
:
[
"
洁具
"
,
"
木工类
"
,
"
供暖类
"
],
types
:
[],
type_name
:
'
请选择
'
,
type_name
:
'
请选择
'
,
hcName
:
[
"
水龙头
"
,
"
桌子
"
,
"
暖气管
"
],
hcName
:
[],
hc_name
:
'
请选择
'
,
hc_name
:
'
请选择
'
,
hcPicker
:
false
,
hcPicker
:
false
,
hcNum
:
''
,
hcNum
:
''
,
repair_order_id
:
''
,
repair_order_id
:
''
,
order
:
''
,
order
:
''
,
hcList
:
[],
total_price
:
0
,
}
}
},
},
created
(){
created
(){
...
@@ -136,11 +141,18 @@ export default {
...
@@ -136,11 +141,18 @@ export default {
const
curParams
=
{
const
curParams
=
{
repair_order_id
:
this
.
repair_order_id
repair_order_id
:
this
.
repair_order_id
}
}
// const _this = this
this
.
$http
.
get
(
this
.
$myApi
.
REPAIR_ORDER_DETAIL
,
curParams
)
this
.
$http
.
get
(
this
.
$myApi
.
REPAIR_ORDER_DETAIL
,
curParams
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
order
=
res
.
order
this
.
order
=
res
.
order
console
.
log
(
this
.
order
,
123456
);
var
arr
=
[]
for
(
let
i
in
res
.
material
){
arr
.
push
({
id
:
res
.
material
[
i
].
id
,
goods_name
:
res
.
material
[
i
].
goods_name
,
son
:
res
.
material
[
i
].
son
})
}
this
.
types
=
arr
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{})
},
},
...
@@ -148,8 +160,19 @@ export default {
...
@@ -148,8 +160,19 @@ export default {
this
.
addList
[
index
].
zlSelect
=
true
this
.
addList
[
index
].
zlSelect
=
true
},
},
typeConfirm
(
value
,
index
)
{
typeConfirm
(
value
,
index
)
{
this
.
addList
[
index
].
zl
=
value
this
.
hcList
=
value
this
.
addList
[
index
].
zl
=
value
.
goods_name
this
.
addList
[
index
].
zlSelect
=
false
this
.
addList
[
index
].
zlSelect
=
false
var
childArr
=
[]
for
(
let
i
in
value
.
son
){
childArr
.
push
({
id
:
value
.
son
[
i
].
id
,
goods_name
:
value
.
son
[
i
].
goods_name
,
price
:
value
.
son
[
i
].
price
})
}
this
.
hcName
=
childArr
},
},
typeCancel
(
index
)
{
typeCancel
(
index
)
{
this
.
addList
[
index
].
zlSelect
=
false
this
.
addList
[
index
].
zlSelect
=
false
...
@@ -158,10 +181,14 @@ export default {
...
@@ -158,10 +181,14 @@ export default {
this
.
addList
[
index
].
mcSelect
=
true
this
.
addList
[
index
].
mcSelect
=
true
},
},
hcConfirm
(
value
,
index
)
{
hcConfirm
(
value
,
index
)
{
this
.
addList
[
index
].
mc
=
value
console
.
log
(
value
,
'
耗材名称
'
);
this
.
addList
[
index
].
mc
=
value
.
goods_name
this
.
addList
[
index
].
price
=
value
.
price
this
.
addList
[
index
].
mcSelect
=
false
this
.
addList
[
index
].
mcSelect
=
false
console
.
log
(
'
家对的被动方法
'
,
this
.
addList
[
index
].
price
);
this
.
total_price
=
this
.
addList
[
index
].
price
},
},
hcCancel
()
{
hcCancel
(
index
)
{
this
.
addList
[
index
].
mcSelect
=
false
this
.
addList
[
index
].
mcSelect
=
false
},
},
addMeth
()
{
addMeth
()
{
...
@@ -176,6 +203,22 @@ export default {
...
@@ -176,6 +203,22 @@ export default {
delMeth
(
index
){
delMeth
(
index
){
this
.
addList
.
splice
(
index
,
1
)
this
.
addList
.
splice
(
index
,
1
)
},
},
changeInput
(
e
){
this
.
hc_number
=
e
.
target
.
value
},
launch
(
id
){
console
.
log
(
'
东西啊啊
'
,
this
.
addList
[
0
].
sl
);
const
curParams
=
{
repair_order_id
:
this
.
repair_order_id
,
goods
:
this
.
addList
}
// const _this = this
this
.
$http
.
post
(
this
.
$myApi
.
REPAIR_ORDER
,
curParams
)
.
then
(
res
=>
{
console
.
log
(
'
执行了吗
'
);
})
.
catch
(()
=>
{})
},
},
},
}
}
</
script
>
</
script
>
...
...
src/views/tabbar/mine.vue
View file @
27705960
...
@@ -58,7 +58,7 @@ export default {
...
@@ -58,7 +58,7 @@ export default {
position
:
relative
;
position
:
relative
;
}
}
.info-item
{
.info-item
{
width
:
7
.5rem
;
width
:
100%
;
height
:
8
.05rem
;
height
:
8
.05rem
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
0
.28rem
0
.28rem
0rem
0rem
;
border-radius
:
0
.28rem
0
.28rem
0rem
0rem
;
...
@@ -74,7 +74,7 @@ export default {
...
@@ -74,7 +74,7 @@ export default {
background
:
#f1f1f1
;
background
:
#f1f1f1
;
position
:
absolute
;
position
:
absolute
;
top
:
-1rem
;
top
:
-1rem
;
left
:
2
.9
rem
;
left
:
3
.2
rem
;
}
}
.btn
{
.btn
{
width
:
1
.38rem
;
width
:
1
.38rem
;
...
...
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