Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
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
hooloo
web
soss
Commits
0f505479
Commit
0f505479
authored
Aug 17, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款金额显示、机型列表组件添加
parent
e210b5cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
src/components/order/orderDetial.vue
+23
-3
src/utils/request.js
+1
-1
src/views/machine/model/modelCom.vue
+4
-2
No files found.
src/components/order/orderDetial.vue
View file @
0f505479
...
@@ -333,15 +333,35 @@ export default {
...
@@ -333,15 +333,35 @@ export default {
return
list
;
return
list
;
},
},
handleSelectionChange
(
selectList
){
handleSelectionChange
(
selectList
){
let
sum
=
null
;
let
amount
=
[]
;
this
.
ids
=
[];
this
.
ids
=
[];
if
(
selectList
.
length
>
0
){
if
(
selectList
.
length
>
0
){
for
(
let
i
=
0
;
i
<
selectList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
selectList
.
length
;
i
++
){
sum
+=
selectList
[
i
].
realAmount
;
amount
.
push
(
selectList
[
i
].
realAmount
);
this
.
ids
.
push
(
selectList
[
i
].
id
);
this
.
ids
.
push
(
selectList
[
i
].
id
);
}
}
}
}
let
sum
=
this
.
add
(
amount
);
this
.
refundForm
.
refundAmount
=
sum
;
this
.
refundForm
.
refundAmount
=
sum
;
},
add
(
arr
){
let
fieldArr
=
[]
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
){
var
m
,
field
try
{
field
=
arr
[
i
].
toString
().
split
(
"."
)[
1
].
length
}
catch
(
e
){
field
=
0
}
fieldArr
.
push
(
field
)
}
m
=
Math
.
pow
(
10
,
Math
.
max
(...
fieldArr
))
let
add
=
0
;
arr
.
forEach
(
function
(
item
)
{
add
=
add
+
item
*
m
});
let
sum
=
Math
.
round
(
add
)
/
m
return
sum
;
}
}
}
}
};
};
...
...
src/utils/request.js
View file @
0f505479
...
@@ -99,7 +99,7 @@ service.interceptors.response.use(res => {
...
@@ -99,7 +99,7 @@ service.interceptors.response.use(res => {
type
:
'error'
type
:
'error'
})
})
return
Promise
.
reject
(
new
Error
(
msg
))
return
Promise
.
reject
(
new
Error
(
msg
))
}
else
if
(
code
!==
200
)
{
}
else
if
(
code
!==
200
&&
code
!=
21001
)
{
Notification
.
error
({
Notification
.
error
({
title
:
msg
title
:
msg
})
})
...
...
src/views/machine/model/modelCom.vue
View file @
0f505479
...
@@ -282,8 +282,10 @@ export default {
...
@@ -282,8 +282,10 @@ export default {
if
(
response
.
code
==
0
){
if
(
response
.
code
==
0
){
this
.
$modal
.
msgSuccess
(
"添加组件成功!"
);
this
.
$modal
.
msgSuccess
(
"添加组件成功!"
);
this
.
getModelComponentList
();
this
.
getModelComponentList
();
}
}
else
if
(
response
.
code
==
21001
){
});
this
.
$message
.
error
(
'该机型已有机器绑定,请重新填写!'
);
}
})
},
},
//获取组件属性列表
//获取组件属性列表
getComponentPropertyList
(
model_id
,
ros_code
){
getComponentPropertyList
(
model_id
,
ros_code
){
...
...
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