Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 794625c5
authored
Nov 11, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商品
1 parent
723f869d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
src/assets/css/public.scss
src/views/productGroup/editProduct.vue
src/assets/css/public.scss
View file @
794625c
...
...
@@ -144,6 +144,10 @@
z-index
:
3000
!
important
;
}
.marketing
.txt-red
{
color
:
red
;
}
.one-line-ellipsis
{
display
:
-
webkit-box
;
overflow
:
hidden
;
...
...
src/views/productGroup/editProduct.vue
View file @
794625c
...
...
@@ -125,7 +125,7 @@
<tr>
<td
:style=
"{ width: specsWidth }"
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
{{ subItem.specificationName }}
</td>
<td
:style=
"{ width: specsWidth }"
>
零售价(元)
</td>
<td
:style=
"{ width: specsWidth }"
>
库存
</td>
<td
:style=
"{ width: specsWidth }"
>
库存
(件)
</td>
</tr>
</tbody>
</table>
...
...
@@ -134,9 +134,14 @@
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235);"
v-for=
"(subItem, subIndex) in nameToValSpecsList"
:key=
"subIndex"
>
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in subItem.specsValueList"
:key=
"idx"
>
{{ n }}
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
ng-blur=
"handleBlur()"
></el-input>
<!-- <p ng-show="(parentData.groupOrStore == 1) && (+formData.supplyPrice > +item.retailPrice) && submitted"
class="text-danger form-text">零售价要大于供货价</p> -->
<div
v-if=
"routeInfo.groupOrStore == 1"
>
<el-input
:class=
"{ 'border-red': (+editForm.supplyPrice > +subItem.retailPrice) && submitted }"
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
ng-blur=
"handleBlur()"
>
<el-tooltip
v-show=
"(+editForm.supplyPrice > +subItem.retailPrice) && submitted"
slot=
"suffix"
class=
"item"
effect=
"dark"
content=
"零售价要大于供货价"
placement=
"top"
>
<i
class=
"el-icon-warning color-red"
></i>
</el-tooltip>
</el-input>
</div>
<el-input
v-else
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
ng-blur=
"handleBlur()"
></el-input>
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
placeholder=
"库存"
v-model=
"subItem.stock"
></el-input></td>
...
...
@@ -220,6 +225,7 @@ export default {
footerLeft
:
'0'
,
footerWidth
:
'0'
,
editChildRef
:
'editChildRef'
,
submitted
:
false
,
routeInfo
:
{
// 1-新增;2-编辑;3-查看
addOrEdit
:
1
,
...
...
@@ -917,6 +923,7 @@ export default {
// 图片-描述-end
handleConfirm
()
{
var
isJump
=
false
this
.
submitted
=
true
for
(
var
i
=
0
;
i
<
this
.
externalFormList
.
length
;
i
++
)
{
if
(
isJump
)
{
return
true
...
...
@@ -1068,4 +1075,11 @@ export default {
width
:
90px
;
vertical-align
:
bottom
;
}
.edit-pro
.table-spesc
.el-input--small.border-red
.el-input__inner
{
border
:
1px
solid
#EB4E4E
;
}
.color-red
{
color
:
#EB4E4E
;
cursor
:
pointer
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment