Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
e987bd23d1c389e65a2e1764a77317756eea0f94
1 parent
dc15fefb
款型编码修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
client/js/basegoods/edit.js
server/views/pages/basegoods/info.html
client/js/basegoods/edit.js
View file @
e987bd2
...
...
@@ -188,7 +188,7 @@ var g=new common.grid({
g
.
__gsm
[
item
.
__index
]
=
item
.
goodsSizeList
.
length
;
}
var
html
=
[];
html
.
push
(
"<div class='form-group'><div class='col-sm-11 red'><input type=text value='"
+
item
.
factoryCode
+
"' data-index="
+
item
.
__index
+
" class='factory
Code form-control' placeholder='款型编码' required/></div></div>"
);
html
.
push
(
"<div class='form-group'><div class='col-sm-11 red'><input type=text value='"
+
item
.
modelCode
+
"' data-index="
+
item
.
__index
+
" class='model
Code form-control' placeholder='款型编码' required/></div></div>"
);
html
.
push
(
'<div class="rows" id="rows__'
+
item
.
__index
+
'">'
);
item
.
goodsSizeList
=
item
.
goodsSizeList
||
[
$
.
extend
({},
ENUM
.
goodsSizeList
)];
var
ISXIANGO
=
(
common
.
util
.
__input
(
"isAdvance"
)
==
"Y"
&&+
RESPONSEDATA
.
isAuditing
==
200
)?
true
:
false
;
...
...
@@ -223,7 +223,7 @@ var g=new common.grid({
var
warp
=
$
(
"#basicTable"
).
find
(
"tbody"
).
children
(
"tr"
).
eq
(
i
);
warp
.
find
(
".w-goods-text"
).
prop
(
"readonly"
,
true
).
prop
(
"disabled"
,
true
);
warp
.
find
(
"input[name=file]"
).
prop
(
"readonly"
,
true
).
prop
(
"disabled"
,
true
);
warp
.
find
(
".
factory
Code"
).
prop
(
"readonly"
,
true
).
prop
(
"disabled"
,
true
);
warp
.
find
(
".
model
Code"
).
prop
(
"readonly"
,
true
).
prop
(
"disabled"
,
true
);
warp
.
find
(
".sortdelete"
).
remove
();
}
}
...
...
@@ -257,7 +257,7 @@ $(document).on("click",".sortadd",function(){
var
goodsSizeList
=
$
.
extend
({},
ENUM
.
goodsSizeList
);
goodsSizeList
.
salePrice
=
$
(
"#salesPriceStr"
).
val
();
g
.
__rows
.
push
({
"
factory
Code"
:
""
,
"
model
Code"
:
""
,
"goodsColorImage"
:
""
,
goodsName
:
$
(
this
).
text
(),
colorId
:
(
+
$
(
this
).
data
(
"id"
)),
...
...
@@ -317,9 +317,9 @@ $(document).on("click",".sortdelete",function(){
});
// g.__e.init();
});
$
(
document
).
on
(
"change"
,
".
factory
Code"
,
function
(){
$
(
document
).
on
(
"change"
,
".
model
Code"
,
function
(){
var
item
=
g
.
__rows
[
$
(
this
).
data
(
"index"
)];
item
.
factory
Code
=
$
(
this
).
val
();
item
.
model
Code
=
$
(
this
).
val
();
});
$
(
document
).
on
(
"click"
,
".btn-sort-add"
,
function
(){
var
item
=
g
.
__rows
[
$
(
this
).
data
(
"index"
)];
...
...
server/views/pages/basegoods/info.html
View file @
e987bd2
...
...
@@ -133,7 +133,7 @@
<
span
>
[[
_item
.
sizeName
]]
<
/span
>
<
/th
>
<
th
>
[[
_item
.
salePrice
]]
<
/th
>
<
th
>
[[
item
.
factory
Code
]]
<
/th
>
<
th
>
[[
item
.
model
Code
]]
<
/th
>
<
th
>
[[
_item
.
barCode
]]
<
/th
>
<
th
>
[[
item
.
factoryGoodsName
]]
<
/th
>
[[
if
_item
.
isSuppled
==
"Y"
]]
...
...
Please
register
or
login
to post a comment