Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
c29c6469
提交
c29c6469
编写于
11月 03, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化提交
上级
4f1f332f
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
11 行删除
+13
-11
create-good.vue
src/views/goods/create-good.vue
+7
-5
rules.js
src/views/goods/rules.js
+6
-6
未找到文件。
src/views/goods/create-good.vue
浏览文件 @
c29c6469
...
...
@@ -1156,11 +1156,12 @@
};
const
{
goodsInfo
,
medicalService
,
buyLimitDtoList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsName
,
goodsDescription
,
goodsType
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[]
}
=
goodsInfo
;
this
.
formData
=
{...
this
.
formData
,
...
goodsInfo
};
this
.
formData2
=
medicalService
;
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData2
};
this
.
formData3
=
{
...
goodsInfo
};
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
expressLimitFlag
};
this
.
buyLimitDtoList
=
buyLimitDtoList
;
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
$set
(
this
.
formData2
,
'suitableArr'
,
this
.
formData
.
suitable
.
split
(
','
));
...
...
@@ -1202,9 +1203,10 @@
});
}
const
{
goodsList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsName
,
goodsDescription
,
goodsType
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[]
}
=
goodsList
[
0
];
this
.
formData1
=
goodsList
[
0
];
this
.
formData
=
goodsList
[
0
];
this
.
formData3
=
goodsList
[
0
]
;
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
expressLimitFlag
}
;
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
buyLimitDtoList
=
this
.
formData
.
buyLimitDtoList
;
this
.
formData
.
optPrice
=
this
.
formData
.
costPrice
/
100
;
...
...
@@ -1491,10 +1493,11 @@
// let formName = "formData";
if
(
this
.
goodsType
==
337
){
formNameList
=
[
'formData'
,
'formData2'
,
'formData3'
];
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData
2
,...
this
.
formData3
};
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData
3
,...
this
.
formData2
};
}
else
{
formNameList
=
[
'formData'
,
'formData1'
,
'formData3'
];
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData1
,...
this
.
formData3
};
this
.
formData
=
{
...
this
.
formData
,
...
this
.
formData1
,...
this
.
formData3
};
}
for
(
let
i
=
0
;
i
<
this
.
fileGoodsList
.
length
;
i
++
){
this
.
fileGoodsList
[
i
].
imageSort
=
i
+
1
...
...
@@ -1502,7 +1505,6 @@
for
(
let
j
=
0
;
j
<
this
.
fileIntrList
.
length
;
j
++
){
this
.
fileIntrList
[
j
].
imageSort
=
j
+
1
}
this
.
formData
.
categoryId
=
this
.
formData
.
goodsType
this
.
formData
.
otc
=
this
.
formData
.
otc1
==
1
?
true
:
false
this
.
isgoodStock
=
this
.
formData
.
stock
>
0
?
true
:
false
...
...
src/views/goods/rules.js
浏览文件 @
c29c6469
...
...
@@ -27,18 +27,18 @@ const rules1 = {
{ required: true, message: "
请输入条形码
", trigger: "
submit
" },
{ validator: checkBarcode, trigger: "
submit
" }
],
medicCommonName:[
{ required: true, message: "
请输入商品通用名称
", trigger: "
blur
" }
],
//
medicCommonName:[
//
{ required: true, message: "
请输入商品通用名称
", trigger: "
blur
" }
//
],
// size:[
// { required: true, message: "
请输入商品规格
", trigger: "
blur
" }
// ],
// manufacturer:[
// { required: true, message: "
请输入生产厂家
", trigger: "
blur
" }
// ],
approvalNumber:[
{ required: true, message: "
请输入批准文号
", trigger: "
blur
" }
],
//
approvalNumber:[
//
{ required: true, message: "
请输入批准文号
", trigger: "
blur
" }
//
],
// dosageId:[
// { required: true, message: "
请选择剂型
", trigger: "
change
" }
// ],
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录