Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
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
xulili
ybf
Commits
5b5d275a
Commit
5b5d275a
authored
Jan 19, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: PC: Goods's page style done.
parent
de8711f9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
176 additions
and
133 deletions
+176
-133
add_goods.vue
ybf_admin/src/pages/goods/main/components/add_goods.vue
+21
-12
index.vue
ybf_admin/src/pages/goods/main/index.vue
+155
-121
No files found.
ybf_admin/src/pages/goods/main/components/add_goods.vue
View file @
5b5d275a
<
template
>
<div
class=
"dialogs"
>
<el-dialog
title=
"创建任务"
:visible
.
sync=
"dialogVisible"
width=
"480px"
<!--
<el-dialog
title=
"创建任务"
:visible
.
sync=
"dialogVisible"
width=
"480px"
--
>
<el-dialog
title=
"佣金配置"
:visible
.
sync=
"dialogVisible"
width=
"480px"
:before-close=
"handleClose"
class=
"addGoods"
>
<div
class=
"dialogMain"
>
<el-form
:model=
"form"
:rules=
"formRules"
ref=
"addform"
label-width=
"130px"
>
<el-form-item
label=
"商品:"
prop=
"goods"
>
<el-input
v-model=
"form.good
s
"
></el-input>
<el-input
v-model=
"form.good
Name
"
></el-input>
</el-form-item>
<el-form-item
label=
"价格:"
>
<el-input
v-model=
"form.p
rice"
></el-input>
<el-input
disabled=
"true"
v-model=
"form.goodP
rice"
></el-input>
</el-form-item>
<el-form-item
label=
"库存:"
>
<el-input
v-model
.
number=
"form.
n
um"
></el-input>
<el-input
v-model
.
number=
"form.
goodN
um"
></el-input>
</el-form-item>
<el-form-item
label=
"佣金:"
prop=
"charges"
>
<el-radio-group
v-model=
"form.
charges
"
>
<el-radio-group
v-model=
"form.
goodBackType
"
>
<el-radio
:label=
"1"
>
佣金
</el-radio>
<el-radio
:label=
"2"
>
百分比
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-if=
"form.
charges
===1"
label=
"金额:"
label-width=
"176px"
class=
"chargeInput"
>
<el-input
v-model=
"form.
num
"
></el-input>
<el-form-item
v-if=
"form.
goodBackType
===1"
label=
"金额:"
label-width=
"176px"
class=
"chargeInput"
>
<el-input
v-model=
"form.
goodBackPrice
"
></el-input>
<span
class=
"unit"
>
元 ( ¥ )
</span>
</el-form-item>
<el-form-item
v-if=
"form.
charges
===2"
label=
"佣金比例:"
label-width=
"176px"
class=
"chargeInput"
>
<el-input
v-model=
"form.
num
"
></el-input>
<el-form-item
v-if=
"form.
goodBackType
===2"
label=
"佣金比例:"
label-width=
"176px"
class=
"chargeInput"
>
<el-input
v-model=
"form.
goodBackPercent
"
></el-input>
<span
class=
"unit"
>
( % )
</span>
</el-form-item>
</el-form>
...
...
@@ -44,10 +45,18 @@
return
{
dialogVisible
:
false
,
form
:{
goods
:
''
,
price
:
''
,
goodName
:
'膳魔师'
,
goodPrice
:
'200'
,
goodNum
:
'44'
,
goodBackType
:
2
,
goodBackPrice
:
'20'
,
goodBackPercent
:
'10'
,
goods
:
'膳魔师'
,
price
:
'200'
,
charges
:
1
,
num
:
0
num
:
44
},
formRules
:{
goods
:
[
...
...
ybf_admin/src/pages/goods/main/index.vue
View file @
5b5d275a
This diff is collapsed.
Click to expand it.
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