Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
a5e344d2
Commit
a5e344d2
authored
Jun 18, 2020
by
zhangjianguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c159d7a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
11 deletions
+46
-11
orderList.vue
src/components/orderMan/orderList.vue
+25
-2
addCoupon.vue
src/components/sallCenter/addCoupon.vue
+5
-4
grantCouPon.vue
src/components/sallCenter/grantCouPon.vue
+2
-3
freight.vue
src/components/setup/view/freight.vue
+14
-2
No files found.
src/components/orderMan/orderList.vue
View file @
a5e344d2
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<el-tag
v-if=
"item.OrderStatus==7"
style=
"margin-left:5px"
size=
"small"
type=
"danger"
>
已取消
</el-tag>
<el-tag
v-if=
"item.OrderStatus==7"
style=
"margin-left:5px"
size=
"small"
type=
"danger"
>
已取消
</el-tag>
</div>
</div>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"强制取消"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"强制取消"
placement=
"top-start"
>
<img
v-if=
"item.OrderStatus
!=7 && msg.Recycled!=1"
@
click=
"OrderExit(item,3
)"
style=
"right:60px"
<img
v-if=
"item.OrderStatus
==1 || item.OrderStatus==2"
@
click=
"OrderExit2(item
)"
style=
"right:60px"
class=
"app-order-btnimg"
src=
"../../assets/img/userman/force.png"
alt=
""
>
class=
"app-order-btnimg"
src=
"../../assets/img/userman/force.png"
alt=
""
>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"加入回收站"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"加入回收站"
placement=
"top-start"
>
...
@@ -1123,7 +1123,6 @@
...
@@ -1123,7 +1123,6 @@
}
}
});
});
},
},
// 强制取消
OrderExit
(
item
,
type
)
{
OrderExit
(
item
,
type
)
{
this
.
exitMsg
.
OrderId
=
item
.
OrderId
;
this
.
exitMsg
.
OrderId
=
item
.
OrderId
;
this
.
exitMsg
.
Type
=
type
;
this
.
exitMsg
.
Type
=
type
;
...
@@ -1133,6 +1132,30 @@
...
@@ -1133,6 +1132,30 @@
}
}
this
.
exitDig
=
true
;
this
.
exitDig
=
true
;
},
},
// 强制取消
OrderExit2
(
item
){
let
that
=
this
;
let
text
=
''
;
if
(
item
.
OrderStatus
==
1
){
text
=
'确认取消?'
}
else
if
(
item
.
OrderStatus
==
2
){
text
=
'确认取消?客人付款金额将原路退回。'
}
that
.
Confirm
(
text
,
function
()
{
that
.
apipost
(
"/api/order/SetOrderForcedToCancel"
,
{
OrderId
:
item
.
OrderId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
);
});
},
handleClick
(
val
)
{
handleClick
(
val
)
{
let
dataId
=
val
.
$attrs
.
dataId
;
let
dataId
=
val
.
$attrs
.
dataId
;
this
.
msg
.
OrderStatus
=
dataId
;
this
.
msg
.
OrderStatus
=
dataId
;
...
...
src/components/sallCenter/addCoupon.vue
View file @
a5e344d2
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"优惠折扣 "
prop=
"DiscountsPrice"
class=
"is-required"
v-if=
"msg.CouponType==2"
>
<el-form-item
label=
"优惠折扣 "
prop=
"DiscountsPrice"
class=
"is-required"
v-if=
"msg.CouponType==2"
>
<el-input
v-model=
"msg.DiscountsPrice"
step=
"1"
min=
"0"
onkeyup=
"this.value= this.value.match(/\d+(\.\d
{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
<el-input
v-model=
"msg.DiscountsPrice"
step=
"1"
min=
"0"
onkeyup=
"this.value= this.value.match(/\d+(\.\d
{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
<template
slot=
"append"
>
折
</
template
>
<template
slot=
"append"
>
折
</
template
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -500,10 +500,11 @@
...
@@ -500,10 +500,11 @@
return
callback
(
new
Error
(
'优惠金额需大于零'
));
return
callback
(
new
Error
(
'优惠金额需大于零'
));
}
}
}
else
{
}
else
{
if
(
value
>=
0
){
if
(
value
>=
0
.1
&&
value
<=
10
){
return
callback
();
return
callback
();
}
else
{
}
else
{
return
callback
(
new
Error
(
'优惠折扣不能为空'
));
return
callback
(
new
Error
(
'优惠折扣范围为0.1~10'
));
}
}
}
}
},
},
...
...
src/components/sallCenter/grantCouPon.vue
View file @
a5e344d2
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</el-tooltip>
</el-tooltip>
<el-input
v-model=
"AliasName"
style=
"width: 20%;margin-left: 5px"
placeholder=
"昵称/ID/手机号"
size=
"small"
/>
<el-input
v-model=
"AliasName"
style=
"width: 20%;margin-left: 5px"
placeholder=
"昵称/ID/手机号"
size=
"small"
/>
<el-button
:loading=
"loading"
@
click=
"lookup"
size=
"small"
>
查找用户
</el-button>
<el-button
:loading=
"loading"
@
click=
"lookup"
size=
"small"
>
查找用户
</el-button>
<div
style=
"width: 80%;display: flex;flex-direction: row;flex-wrap: wrap"
v-if=
"ByPhone.length>0"
>
<div
style=
"width: 80%;display: flex;flex-direction: row;flex-wrap: wrap
;margin-top: 5px
"
v-if=
"ByPhone.length>0"
>
<el-checkbox-group
v-model=
"msg.UserIds"
@
change =
'SelectBy'
>
<el-checkbox-group
v-model=
"msg.UserIds"
@
change =
'SelectBy'
>
<el-checkbox-button
v-for=
"(item,index) in ByPhone"
:label=
"item.Id"
:key=
"index"
>
<el-checkbox-button
v-for=
"(item,index) in ByPhone"
:label=
"item.Id"
:key=
"index"
>
<img
:src=
"item.Photo"
alt=
""
class=
"avatar"
>
<img
:src=
"item.Photo"
alt=
""
class=
"avatar"
>
...
@@ -53,7 +53,6 @@
...
@@ -53,7 +53,6 @@
</div>
</div>
<el-button
type=
"primary"
style=
"margin: 12px 0 "
@
click=
"preserve('msg')"
:loading=
"loading2"
>
保存
</el-button>
<el-button
type=
"primary"
style=
"margin: 12px 0 "
@
click=
"preserve('msg')"
:loading=
"loading2"
>
保存
</el-button>
<el-button
@
click=
"cancel"
>
取消
</el-button>
<el-button
@
click=
"cancel"
>
取消
</el-button>
</div>
</div>
</
template
>
</
template
>
...
@@ -176,7 +175,7 @@
...
@@ -176,7 +175,7 @@
display
:
inline-block
;
display
:
inline-block
;
position
:
relative
;
position
:
relative
;
}
}
.grantCouPon
.user-list
.avatar
{
.grantCouPon
.avatar
{
height
:
60px
;
height
:
60px
;
width
:
60px
;
width
:
60px
;
border-radius
:
30px
;
border-radius
:
30px
;
...
...
src/components/setup/view/freight.vue
View file @
a5e344d2
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
label=
"是否默认"
label=
"是否默认"
width=
"180"
>
width=
"180"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-radio
v-model=
"radio"
:label=
"scope.row.ID"
@
change=
"radio
=scope.row.ID
"
>
<el-radio
v-model=
"radio"
:label=
"scope.row.ID"
@
change=
"radio
Change(scope.row.ID)
"
>
<span
class=
"el-radio__label"
>
默认
</span>
<span
class=
"el-radio__label"
>
默认
</span>
</el-radio>
</el-radio>
</
template
>
</
template
>
...
@@ -120,7 +120,19 @@
...
@@ -120,7 +120,19 @@
this
.
GetLogisticsRulesPage
()
this
.
GetLogisticsRulesPage
()
},
},
radioChange
(
item
){
radioChange
(
item
){
this
.
radio
=
item
;
this
.
apipost
(
"/api/MallBase/SetLogisticsRulesDefault"
,
{
ID
:
item
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
GetLogisticsRulesPage
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
);
},
},
handleCurrentChange
(
val
){
handleCurrentChange
(
val
){
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
...
...
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