Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
a9f986e4
Commit
a9f986e4
authored
Jul 09, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:解决部分输入框bug
parent
fe769961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
10 deletions
+24
-10
index.vue
src/pages/Goods/Detail/index.vue
+24
-10
No files found.
src/pages/Goods/Detail/index.vue
View file @
a9f986e4
...
...
@@ -164,6 +164,7 @@
v-if=
"$route.params.operation === 'EDIT'"
type=
"textarea"
:readonly=
"true"
:autosize=
"{ minRows: 4 }"
v-model=
"goodsObj.introduce"
></el-input>
<span
v-else
>
{{ goodsObj.introduce }}
</span>
...
...
@@ -299,7 +300,11 @@
:model=
"shopForm"
>
<el-form-item
label=
"门店名称:"
>
<el-input
v-model=
"shopForm.shop_name"
></el-input>
<el-input
v-model=
"shopForm.shop_name"
maxlength=
"20"
show-word-limit
></el-input>
</el-form-item>
<el-form-item
label=
"联系电话:"
>
<el-input
v-model=
"shopForm.connect_phone"
></el-input>
...
...
@@ -324,6 +329,7 @@
type=
"primary"
@
click=
"addShop"
>
保存
</el-button>
<el-button
@
click=
"addShopShow = false"
>
取消
</el-button>
</section>
</el-popover>
</el-popover>
...
...
@@ -362,6 +368,7 @@
v-if=
"$route.params.operation === 'EDIT'"
v-model=
"goodsObj.inventory_rest"
:min=
"0"
@
blur=
"hasNumber"
></el-input-number>
<span
v-else
>
{{ goodsObj.inventory_rest }}
</span>
</el-form-item>
...
...
@@ -469,6 +476,7 @@
v-if=
"$route.params.operation === 'EDIT'"
type=
"textarea"
maxlength=
"100"
:autosize=
"{ minRows: 4 }"
show-word-limit
v-model=
"goodsObj.rule_desc"
></el-input>
...
...
@@ -563,10 +571,7 @@
@
click=
"saveDetailMessage"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"backToDetail"
>
返回
</el-button>
<el-button
@
click=
"backToDetail"
>
返回
</el-button>
</section>
</el-card>
<!-- 展示缩略图 -->
...
...
@@ -944,7 +949,6 @@ export default {
this
.
isGoodsNameRepeat
=
true
;
}
else
{
this
.
isGoodsNameRepeat
=
false
;
return
this
.
$message
.
error
(
"商品名称被占用"
);
}
},
...
...
@@ -971,6 +975,13 @@ export default {
this
.
isShowPopver
=
true
;
},
// 剩余库存量更改
hasNumber
()
{
if
(
!
this
.
goodsObj
.
inventory_rest
||
this
.
goodsObj
.
inventory_rest
<
0
)
{
this
.
goodsObj
.
inventory_rest
=
0
};
},
// 选择时间
pickerTime
(
time
)
{
let
startHours
=
time
[
0
].
getHours
()
+
""
;
...
...
@@ -1043,14 +1054,17 @@ export default {
// 更改售价
salePrice
()
{
if
(
this
.
goodsObj
.
price
.
length
===
0
)
return
(
this
.
goodsObj
.
price
=
0
);
if
(
this
.
goodsObj
.
price
.
length
===
0
)
{
this
.
goodsObj
.
price
=
0
};
this
.
goodsObj
.
price
=
parseFloat
(
this
.
goodsObj
.
price
).
toFixed
(
2
);
},
// 更改原价
perPrice
()
{
if
(
this
.
goodsObj
.
original_price
===
0
)
return
(
this
.
goodsObj
.
original_price
=
0
);
if
(
this
.
goodsObj
.
original_price
.
length
===
0
)
{
this
.
goodsObj
.
original_price
=
0
};
this
.
goodsObj
.
original_price
=
parseFloat
(
this
.
goodsObj
.
original_price
).
toFixed
(
2
);
...
...
@@ -1133,7 +1147,7 @@ export default {
if
(
!
query
.
rule_refund
)
{
return
this
.
$message
.
error
(
"请填写退款规则"
);
};
if
(
!
query
.
inventory_add
)
{
if
(
!
query
.
inventory_add
.
length
===
0
)
{
return
this
.
$message
.
error
(
"请填写库存剩余量"
);
};
if
(
!
query
.
original_price
)
{
...
...
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