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
f9e951de
Commit
f9e951de
authored
Aug 05, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改包邮规则
parent
a3da76cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
mailRules.vue
src/components/setup/mailRules.vue
+8
-3
mailRulesSet.vue
src/components/setup/mailRulesSet.vue
+23
-2
No files found.
src/components/setup/mailRules.vue
View file @
f9e951de
...
...
@@ -25,14 +25,19 @@
</el-table-column>
<el-table-column
prop=
"
FullMoneyPinkag
e"
width=
"1
5
0"
label=
"
满额金额
"
>
prop=
"
Nam
e"
width=
"1
8
0"
label=
"
包邮名称
"
>
</el-table-column>
<el-table-column
prop=
"FullNumPinkage"
width=
"150"
label=
"满件数"
>
</el-table-column>
<el-table-column
prop=
"FullMoneyPinkage"
width=
"150"
label=
"满额金额"
>
</el-table-column>
<el-table-column
prop=
"GradeName"
...
...
src/components/setup/mailRulesSet.vue
View file @
f9e951de
...
...
@@ -15,11 +15,22 @@
<el-button
type=
"primary"
@
click=
"flDig=true,keepCategoryList=addMsg.CategoryList"
style=
"margin:0 10px;"
size=
"small"
>
选择分类
</el-button>
</el-form-item>
<el-form-item
label=
"包邮名称"
prop=
"Name"
class=
"is-required"
>
<el-input
v-model=
"addMsg.Name"
placeholder=
"请输入包邮名称"
/>
</el-form-item>
<el-form-item
label=
"包邮类型"
prop=
"IsEnable"
>
<el-radio
v-model=
"rulesType"
:label=
"1"
@
change=
'addMsg.FullMoneyPinkage=0'
>
件数包邮
</el-radio>
<el-radio
v-model=
"rulesType"
:label=
"2"
@
change=
'addMsg.FullNumPinkage=0'
>
满额包邮
</el-radio>
</el-form-item>
<el-form-item
label=
"包邮件数"
prop=
"FullNumPinkage"
class=
"is-required"
>
<el-input
v-model=
"addMsg.FullNumPinkage"
placeholder=
"请输入包邮件数"
type=
'number'
:min=
'0'
/>
<el-input
:disabled=
"rulesType==1?false:true"
v-model=
"addMsg.FullNumPinkage"
placeholder=
"请输入包邮件数"
type=
'number'
:min=
'0'
>
<
template
slot=
"append"
>
件
</
template
>
</el-input>
</el-form-item>
<el-form-item
label=
"满额包邮"
prop=
"FullMoneyPinkage"
class=
"is-required"
>
<el-input
v-model=
"addMsg.FullMoneyPinkage"
placeholder=
"请输入满额度"
type=
'number'
:min=
'0'
/>
<el-input
:disabled=
"rulesType==2?false:true"
v-model=
"addMsg.FullMoneyPinkage"
placeholder=
"请输入满额度"
type=
'number'
:min=
'0'
>
<
template
slot=
"append"
>
元
</
template
>
</el-input>
</el-form-item>
<el-form-item
label=
"是否启用"
prop=
"IsEnable"
>
<el-radio
v-model=
"addMsg.IsEnable"
:label=
"1"
>
是
</el-radio>
...
...
@@ -105,11 +116,13 @@
cityOptions
:
[],
isIndeterminate
:
true
,
flDig
:
false
,
rulesType
:
1
,
addMsg
:
{
Id
:
0
,
FullNumPinkage
:
0
,
FullMoneyPinkage
:
0
,
IsEnable
:
0
,
Name
:
''
,
CategoryList
:
[],
},
rules
:
{
...
...
@@ -117,6 +130,11 @@
required
:
true
,
message
:
'请输入件数'
,
trigger
:
'blur'
}],
Name
:
[{
required
:
true
,
message
:
'请输入包邮名称'
,
trigger
:
'blur'
}],
FullMoneyPinkage
:
[{
required
:
true
,
...
...
@@ -256,6 +274,9 @@
},
res
=>
{
this
.
loading
=
false
;
this
.
addMsg
=
res
.
data
.
data
;
if
(
this
.
addMsg
.
FullMoneyPinkage
!=
0
&&
this
.
addMsg
.
FullNumPinkage
==
0
){
this
.
rulesType
=
2
}
this
.
NewCategoryList
=
[];
this
.
addMsg
.
CategoryList
.
forEach
(
item
=>
{
item
.
Name
=
item
.
CategoryName
;
...
...
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