Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
d434f006
提交
d434f006
编写于
11月 12, 2020
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
0c66ffde
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
21 行删除
+16
-21
create-good.vue
src/views/goods/create-good.vue
+14
-18
forms.js
src/views/goods/forms.js
+2
-2
rules.js
src/views/goods/rules.js
+0
-1
未找到文件。
src/views/goods/create-good.vue
浏览文件 @
d434f006
...
@@ -553,25 +553,17 @@
...
@@ -553,25 +553,17 @@
format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"有效期"
prop=
"expire
dTime"
>
<
!--
<el-form-item
label=
"商品使用日期"
prop=
"en
dTime"
>
<el-col
:span=
"13"
>
<el-col
:span=
"13"
>
<el-input
<el-input
size=
"small"
size=
"small"
v-model=
"formData
1.expire
dTime"
v-model=
"formData
2.en
dTime"
placeholder=
"请输入
有效
期"
placeholder=
"请输入
商品使用日
期"
style=
"width:70%;"
style=
"width:70%;"
></el-input>
></el-input>
<!--
<el-date-picker
v-model=
"formData.expiredTime"
size=
"small"
format=
"yyyy-MM-dd HH:mm:ss"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
-->
<span
class=
"word-num"
></span>
<span
class=
"word-num"
></span>
</el-col>
</el-col>
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"检测说明"
class=
"required-label"
>
<el-form-item
label=
"检测说明"
class=
"required-label"
>
<el-upload
<el-upload
...
@@ -649,9 +641,10 @@
...
@@ -649,9 +641,10 @@
<el-form-item
label=
"零售价"
prop=
"optPrice"
>
<el-form-item
label=
"零售价"
prop=
"optPrice"
>
<el-col
:span=
"20"
>
<el-col
:span=
"20"
>
<el-input
<el-input
size=
"small"
@
input=
"$forceUpdate();"
v-model=
"formData.optPrice"
size=
"small"
placeholder=
"请输入零售价"
v-model=
"formData.optPrice"
placeholder=
"请输入零售价"
></el-input>
></el-input>
<!--
<span
class=
"word-num"
>
{{
(
formData
.
name
).
replace
(
/
\s
+/g
,
""
).
length
}}
/60
</span>
-->
<!--
<span
class=
"word-num"
>
{{
(
formData
.
name
).
replace
(
/
\s
+/g
,
""
).
length
}}
/60
</span>
-->
...
@@ -851,7 +844,7 @@
...
@@ -851,7 +844,7 @@
this
.
rules
=
originRules
;
this
.
rules
=
originRules
;
this
.
rules1
=
originRules1
;
this
.
rules1
=
originRules1
;
this
.
rules2
=
originRules2
;
this
.
rules2
=
originRules2
;
this
.
jumPathThird
=
'/goods-manage?storeId='
+
storeId
this
.
jumPathThird
=
'/goods-manage?storeId='
+
storeId
//this.jumPathThird = '/create-good?id=add&storeId=46'
//this.jumPathThird = '/create-good?id=add&storeId=46'
this
.
title
=
id
==
'add'
?
'新增商品'
:
'编辑商品'
;
this
.
title
=
id
==
'add'
?
'新增商品'
:
'编辑商品'
;
...
@@ -1051,6 +1044,7 @@
...
@@ -1051,6 +1044,7 @@
});
});
},
},
getGoodsTypes
(
goodsType
,
type
){
getGoodsTypes
(
goodsType
,
type
){
this
.
goodsType
=
goodsType
;
if
(
goodsType
==
5
){
if
(
goodsType
==
5
){
this
.
isMedic
=
true
;
this
.
isMedic
=
true
;
this
.
isCheckServe
=
false
;
this
.
isCheckServe
=
false
;
...
@@ -1169,6 +1163,8 @@
...
@@ -1169,6 +1163,8 @@
if
(
this
.
goodsType
==
337
){
if
(
this
.
goodsType
==
337
){
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData2
};
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData2
};
}
else
{
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData1
};
}
}
for
(
let
i
=
0
;
i
<
this
.
fileGoodsList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
this
.
fileGoodsList
.
length
;
i
++
){
this
.
fileGoodsList
[
i
].
imageSort
=
i
+
1
this
.
fileGoodsList
[
i
].
imageSort
=
i
+
1
...
@@ -1195,8 +1191,8 @@
...
@@ -1195,8 +1191,8 @@
// 如果是【检测服务】类型的商品
// 如果是【检测服务】类型的商品
if
(
this
.
isCheckServe
){
if
(
this
.
isCheckServe
){
this
.
formData
.
goodsCheckImages
=
this
.
goodsCheckList
;
this
.
formData
.
goodsCheckImages
=
this
.
goodsCheckList
;
const
{
suitableArr
}
=
this
.
formData
;
const
{
suitableArr
}
=
this
.
formData
2
;
this
.
formData
.
suitable
=
suitableArr
.
join
(
','
);
this
.
formData
2
.
suitable
=
this
.
formData
.
suitable
=
suitableArr
.
join
(
','
);
this
.
formData
.
medicalServiceId
=
this
.
formData
.
medicationId
;
this
.
formData
.
medicalServiceId
=
this
.
formData
.
medicationId
;
}
}
...
...
src/views/goods/forms.js
浏览文件 @
d434f006
...
@@ -33,10 +33,10 @@ const form2 = {
...
@@ -33,10 +33,10 @@ const form2 = {
useCount
:
1
,
useCount
:
1
,
checkType
:
''
,
checkType
:
''
,
suitable
:
''
,
suitable
:
''
,
suitable
St
r
:
''
,
suitable
Ar
r
:
''
,
accessorialService
:
''
,
accessorialService
:
''
,
endTime
:
''
,
endTime
:
''
,
medicalServiceId
:
''
//
medicalServiceId: ''
}
}
const
form
=
{
const
form
=
{
...
...
src/views/goods/rules.js
浏览文件 @
d434f006
...
@@ -99,7 +99,6 @@ const rules = {
...
@@ -99,7 +99,6 @@ const rules = {
goodsType:[
goodsType:[
{ required: true, message: "
请选择商品类型
", trigger: "
change
" }
{ required: true, message: "
请选择商品类型
", trigger: "
change
" }
],
],
optPrice: [
optPrice: [
{ required: true, message: "
请输入零售价
", trigger: "
blur
" },
{ required: true, message: "
请输入零售价
", trigger: "
blur
" },
],
],
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录