Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
65cd5345
authored
Aug 24, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设置上传
parent
9afd8ff9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
public/plugins/assets/js/common.js
resources/views/script/SkuListScript.blade.php
resources/views/web/SkuList.blade.php
public/plugins/assets/js/common.js
View file @
65cd5345
...
...
@@ -142,3 +142,11 @@ function multiArrayUnique(arr) {
})
===
index
;
});
}
function
getFootstoneDomain
()
{
var
defaultDomain
=
"http://footstone.liexindev.net"
;
if
(
document
.
domain
.
indexOf
(
"ichunt"
)
!==
-
1
)
{
defaultDomain
=
"https://footstone_v2.ichunt.net"
;
}
return
defaultDomain
;
}
resources/views/script/SkuListScript.blade.php
View file @
65cd5345
...
...
@@ -79,10 +79,10 @@
if
(
ladder
.
hasOwnProperty
(
'price_cn'
))
{
if
(
ladder
.
price_cn
>
0
)
{
return
'
<
div
class
=
"view_ladder_price_cn layui-row"
><
div
class
=
"layui-col-xs5"
><
span
>
' + (ladder.purchases) + '
+<
/span></
div
><
div
class
=
"layui-col-xs7"
><
span
>
¥
' + (ladder.price_cn) + '
<
/span></
div
><
/div>'
;
}
else
{
}
else
{
return
''
;
}
}
else
{
}
else
{
return
''
;
}
...
...
@@ -96,7 +96,7 @@
let
ladder
=
data
.
ladder_price
[
data
.
ladder_price
.
length
-
1
];
if
(
ladder
.
hasOwnProperty
(
'price_us'
))
{
if
(
ladder
.
price_us
>
0
)
{
return
'
<
div
class
=
"view_ladder_price_us layui-row"
"
><
div
class
=
"layui-col-xs5"
><
span
>
'
+ (ladder.purchases)
+ '
+<
/span></
div
><
div
class
=
"layui-col-xs7"
><
span
>
$
' + (ladder.price_us) + '
<
/span></
div
><
/div>'
;
return
'
<
div
class
=
"view_ladder_price_us layui-row"
"
><
div
class
=
"layui-col-xs5"
><
span
>
'
+ (ladder.purchases)
+ '
+<
/span></
div
><
div
class
=
"layui-col-xs7"
><
span
>
$
' + (ladder.price_us) + '
<
/span></
div
><
/div>'
;
}
return
''
;
}
...
...
@@ -455,13 +455,31 @@
});
$
(
"#update_sku"
).
click
(
function
()
{
let
checkStatus
=
table
.
checkStatus
(
'skuList'
);
let
data
=
checkStatus
.
data
;
let
skuIds
=
Array
.
from
(
data
,
({
goods_id
})
=>
goods_id
);
if
(
skuIds
.
length
===
0
)
{
layer
.
msg
(
'请选择要操作的sku'
,
{
icon
:
5
});
return
false
;
}
console
.
log
(
skuIds
);
if
(
skuIds
.
length
>
1
)
{
layer
.
msg
(
'此操作只支持单选'
,
{
icon
:
5
});
return
false
;
}
let
skuId
=
skuIds
[
0
];
let
domain
=
getFootstoneDomain
();
window
.
open
(
domain
+
'/web/sku/saveSku?from=supplier&goods_id='
+
skuId
);
});
//划过显示成本价格
let
ladderPriceTipsVal
=
''
;
$
(
document
).
on
(
'mouseenter'
,
'.view_ladder_price_cn'
,
function
()
{
let
self
=
this
;
let
rowIndex
=
$
(
this
).
parent
().
parent
().
parent
().
attr
(
'data-index'
);
let
data
=
table
.
cache
[
'skuList'
][
rowIndex
].
ladder_price
;
console
.
log
(
data
)
if
(
!
data
)
{
return
false
;
}
...
...
resources/views/web/SkuList.blade.php
View file @
65cd5345
...
...
@@ -39,6 +39,7 @@
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
set_sku_tag
">设置标签</button>
@if (checkPerm('SetSupplierSkuCpTimeLimit'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
set_sku_cp_time_ruler
">商品有效期配置</button>
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
update_sku
">修改商品信息</button>
@endif
@endif
</div>
...
...
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