Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
01db236e
提交
01db236e
authored
3月 11, 2021
作者:
陆
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品管理数据判断修改版本
上级
f0f00234
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
72 行增加
和
9 行删除
+72
-9
tbcfstationitem.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
+14
-7
tbcfstationitem.js
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
+58
-2
没有找到文件。
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
浏览文件 @
01db236e
...
...
@@ -463,7 +463,13 @@
right
:
30px
;
z-index
:
100
;
}
.calculator
>
div
{
.calculator
{
color
:
#66ccff
;
}
.calculator
.ibox-text
>
span
{
color
:
#FF3E96
;
}
.calculator
>
.ibox
{
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
0.5%
;
...
...
@@ -721,25 +727,26 @@
</i-option>
</i-select>
</Form-item>
<div>
我就是个计算器
</div>
<div
class=
"ivu-form-item calculator"
style=
"width: 360px;"
>
<div>
<div
class=
"ibox-text"
>
我就是个计算器
<span>
o(一︿一+)o
</span>
</div>
<div
class=
"ibox"
>
<div>
请输入成本价(人民币):
</div>
<div><i-input
type=
"number"
v-model=
"RMBcost"
placeholder=
""
@
on-change=
"changecost"
/></div>
</div>
<div>
<div
class=
"ibox"
>
<div>
请输入成本价(美元):
</div>
<div><i-input
type=
"number"
v-model=
"UScost"
placeholder=
""
@
on-change=
"changecost2"
/></div>
</div>
<div>
<div
class=
"ibox"
>
<div>
参考现价:
</div>
<div><i-input
type=
"number"
v-model=
"Textcount"
placeholder=
""
@
on-change=
"changecost"
/></div>
</div>
<div>
<div
class=
"ibox"
>
<div>
折扣率%:
</div>
<div><i-input
type=
"number"
v-model=
"discountnum"
placeholder=
""
@
on-change=
"changediscount"
/></div>
</div>
<div>
<div
class=
"ibox"
>
<div>
参考原价:
</div>
<div><i-input
type=
"number"
v-model=
"Textnum"
placeholder=
""
@
on-change=
"changecost"
/></div>
</div>
...
...
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
浏览文件 @
01db236e
...
...
@@ -237,7 +237,7 @@ let vm = new Vue({
changecost
(){
if
(
vm
.
tbCfStationItem
.
itemCategorytwo
==
null
)
{
vm
.
RMBcost
=
''
alert
(
"请先选择商品分类"
)
alert
(
"请先选择商品分类
! 凸(艹皿艹 )
"
)
return
}
else
{
var
pic
=
parseFloat
(
vm
.
RMBcost
)
/
6.30
...
...
@@ -252,7 +252,7 @@ let vm = new Vue({
changecost2
(){
if
(
vm
.
tbCfStationItem
.
itemCategorytwo
==
null
)
{
vm
.
RMBcost
=
''
alert
(
"请先选择商品分类"
)
alert
(
"请先选择商品分类
! 凸(艹皿艹 )
"
)
return
}
else
{
var
pic
=
parseFloat
(
vm
.
UScost
)
*
6.30
...
...
@@ -735,6 +735,62 @@ let vm = new Vue({
let
flag
=
true
let
exist
=
false
let
url
=
'../tbcfstationitem/exchangeItemSort?sort='
+
vm
.
tbCfStationItem
.
sort
+
'&itemId='
+
vm
.
tbCfStationItem
.
itemId
;
var
pic
=
1
for
(
var
i
=
1
;
i
<
vm
.
prevItem
.
length
;
i
++
){
if
(
parseFloat
(
vm
.
prevItem
[
i
].
skuPrice
)
<=
0
||
!
vm
.
prevItem
[
i
].
skuPrice
){
pic
=
0
}
}
if
(
!
vm
.
tbCfStationItem
.
sort
){
alert
(
'请填写序号 o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
itemCode
){
alert
(
'请填写商品编号 o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
itemName
){
alert
(
'请填写商品名称 o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
itemBrief
){
alert
(
'请填写商品标题 o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
itemTags
){
alert
(
'请填写搜索关键字 o( ̄ヘ ̄o#)'
);
return
}
if
(
vm
.
tbCfStationItem
.
itemCategorytwo
==
null
)
{
alert
(
"请先选择商品分类 o( ̄ヘ ̄o#)"
)
return
}
if
(
!
vm
.
tbCfStationItem
.
costPrice
){
alert
(
'请填写成本价(美元) o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
discountPrice
){
alert
(
'请填写现价 o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
itemPrice
){
alert
(
'请填写原价 o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
itemUrl
){
alert
(
'请填写商品链接 o( ̄ヘ ̄o#)'
);
return
}
if
(
!
vm
.
tbCfStationItem
.
template
){
alert
(
'请填写运费模板 o( ̄ヘ ̄o#)'
);
return
}
if
(
pic
==
0
){
alert
(
'sku价格不能为空或小于等于0 o( ̄ヘ ̄o#)'
);
return
}
Ajax
.
request
({
url
:
url
,
type
:
"GET"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论