Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
dd0dd36b
提交
dd0dd36b
编写于
3月 17, 2022
作者:
shuang.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复联调问题
上级
65720b19
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
42 行增加
和
27 行删除
+42
-27
create-good-new.scss
src/views/goods/create-good-new.scss
+10
-16
create-good-new.vue
src/views/goods/create-good-new.vue
+29
-8
goods-manage.vue
src/views/goods/goods-manage.vue
+3
-3
未找到文件。
src/views/goods/create-good-new.scss
浏览文件 @
dd0dd36b
.create-shop-wrapper
{
.create-shop-wrapper
-new
{
.create-shop-content
{
.create-shop-content
{
background
:
#fff
;
background
:
#fff
;
padding
:
10px
;
padding
:
10px
;
...
@@ -40,8 +40,7 @@
...
@@ -40,8 +40,7 @@
}
}
}
}
}
}
}
.
required-label
.
el-form-item__label
:
:
before
{
.
required-label
.
el-form-item__label
:
:
before
{
content
:
"*"
;
content
:
"*"
;
color
:
#f56c6c
;
color
:
#f56c6c
;
margin-right
:
4px
;
margin-right
:
4px
;
...
@@ -217,20 +216,14 @@
...
@@ -217,20 +216,14 @@
margin-right
:
15px
;
margin-right
:
15px
;
position
:
relative
;
position
:
relative
;
}
}
.el-input-number__decrease
,
.el-input-number__increase
{
//.el-input-number__increase {
// right: 1px;
// border-radius: 0 4px 4px 0;
// border-left: 1px solid #449284;
//}
.el-input-number__decrease
,
.el-input-number__increase
{
position
:
absolute
;
position
:
absolute
;
z-index
:
1
;
z-index
:
1
;
top
:
1px
;
top
:
1px
;
width
:
40px
;
width
:
40px
;
height
:
auto
;
height
:
auto
;
text-align
:
center
;
text-align
:
center
;
background
:
#449284
;
background
:
#449284
!
important
;
color
:
#606266
;
color
:
#606266
;
cursor
:
pointer
;
cursor
:
pointer
;
font-size
:
13px
;
font-size
:
13px
;
...
@@ -279,8 +272,9 @@
...
@@ -279,8 +272,9 @@
margin-bottom
:
25px
;
margin-bottom
:
25px
;
}
}
}
}
.add-btn.is-disabled
{
.add-btn.is-disabled
{
background
:
#fff
!
important
;
background
:
#fff
!
important
;
border
:
1px
solid
#DCDFE6
!
important
;
border
:
1px
solid
#DCDFE6
!
important
;
color
:
#606266
!
important
;
color
:
#606266
!
important
;
}
}
\ No newline at end of file
}
src/views/goods/create-good-new.vue
浏览文件 @
dd0dd36b
<
template
>
<
template
>
<div
class=
"create-shop-wrapper"
>
<div
class=
"create-shop-wrapper
-new
"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
:curmbThird=
"curmbThird"
:jumPathThird=
"jumPathThird"
></bread-crumb>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
:curmbThird=
"curmbThird"
:jumPathThird=
"jumPathThird"
></bread-crumb>
<div
class=
"create-shop-content screenSet"
id=
"screenSet"
>
<div
class=
"create-shop-content screenSet"
id=
"screenSet"
>
<el-row
class=
"step-content"
>
<el-row
class=
"step-content"
>
...
@@ -386,7 +386,7 @@
...
@@ -386,7 +386,7 @@
</el-dialog>
</el-dialog>
</div>
</div>
<!-- 添加药品 -->
<!-- 添加药品 -->
<el-dialog
title=
"添加药品"
:visible
.
sync=
"baseAddVisible"
class=
"add-goods-dialog"
>
<el-dialog
title=
"添加药品"
:visible
.
sync=
"baseAddVisible"
class=
"add-goods-dialog"
width=
"70%"
>
<el-row
type=
"flex"
class=
"row-bg"
>
<el-row
type=
"flex"
class=
"row-bg"
>
<el-col
:span=
"21"
>
<el-col
:span=
"21"
>
<el-input
<el-input
...
@@ -426,7 +426,7 @@
...
@@ -426,7 +426,7 @@
></el-pagination>
></el-pagination>
</div>
</div>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"end"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"end"
>
<el-col
:span=
"
4
"
>
<el-col
:span=
"
6
"
>
<el-button
@
click=
"baseAddVisible = false"
>
取消
</el-button>
<el-button
@
click=
"baseAddVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"confirmAddGoods"
>
确认
</el-button>
<el-button
type=
"primary"
@
click=
"confirmAddGoods"
>
确认
</el-button>
</el-col>
</el-col>
...
@@ -497,7 +497,7 @@
...
@@ -497,7 +497,7 @@
</el-form-item>
</el-form-item>
<!-- 规格 -->
<!-- 规格 -->
<el-form-item
label=
"规格"
prop=
"size"
v-if=
"![4,5].includes(formData1.medicalCategoryId)"
>
<el-form-item
label=
"规格"
prop=
"size"
v-if=
"![4,5].includes(formData1.medicalCategoryId)"
>
<el-col
:span=
"1
6
"
>
<el-col
:span=
"1
8
"
>
<el-input
<el-input
size=
"small"
size=
"small"
v-model=
"formData1.size"
v-model=
"formData1.size"
...
@@ -706,6 +706,21 @@
...
@@ -706,6 +706,21 @@
this
.
getGoodsListAll
();
this
.
getGoodsListAll
();
},
},
methods
:
{
methods
:
{
getArr
(
arr
)
{
if
(
arr
.
length
>
0
)
{
let
newoodsList
=
[]
arr
.
forEach
(
item
=>
{
const
subArr
=
item
.
filter
(
i
=>
{
return
i
!==
-
1
;
})
console
.
log
()
newoodsList
.
push
(
subArr
)
})
return
newoodsList
;
}
else
{
return
[]
}
},
// 获取商品分类
// 获取商品分类
getGoodsListAll
()
{
getGoodsListAll
()
{
getGoodsListAll
().
then
(
res
=>
{
getGoodsListAll
().
then
(
res
=>
{
...
@@ -858,6 +873,9 @@
...
@@ -858,6 +873,9 @@
},
},
// 新增药品
// 新增药品
addNewGoods
(){
addNewGoods
(){
if
(
this
.
$refs
.
formData1
)
{
this
.
$refs
.
formData1
.
resetFields
();
}
this
.
getCategorysList
();
// 获取药品类别
this
.
getCategorysList
();
// 获取药品类别
this
.
isNewMeddialog
=
true
;
this
.
isNewMeddialog
=
true
;
},
},
...
@@ -955,7 +973,7 @@
...
@@ -955,7 +973,7 @@
});
});
}
}
const
{
goodsList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsList
,
hasRepoFlag
}
=
res
.
data
;
const
{
goodsName
,
goodsDescription
,
goodsType
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[],
contractId
,
cooperationProjectId
,
medicationId
,
goodsCategoryIdArr
,
medicationInfo
}
=
goodsList
[
0
];
const
{
goodsName
,
goodsDescription
,
goodsType
,
expressLimitFlag
,
goodsHeaderImages
=
[],
goodsVideoList
=
[],
contractId
,
cooperationProjectId
,
goodsCategoryIdArr
,
medicationInfo
}
=
goodsList
[
0
];
const
goodDet
=
goodsList
[
0
];
const
goodDet
=
goodsList
[
0
];
goodDet
.
otc1
=
goodDet
.
otc
?
'1'
:
'0'
;
goodDet
.
otc1
=
goodDet
.
otc
?
'1'
:
'0'
;
// 查询药品列表
// 查询药品列表
...
@@ -967,14 +985,15 @@
...
@@ -967,14 +985,15 @@
// this.formData1 = goodDet;
// this.formData1 = goodDet;
this
.
formData
=
goodDet
;
this
.
formData
=
goodDet
;
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
expressLimitFlag
,
contractId
,
cooperationProjectId
};
this
.
formData3
=
{
goodsName
,
goodsDescription
,
goodsHeaderImages
,
goodsVideoList
,
goodsType
,
expressLimitFlag
,
contractId
,
cooperationProjectId
};
this
.
formData3
.
goodsCategoryIdList
=
goodsCategoryIdArr
;
this
.
formData3
.
medicationId
=
medicationInfo
.
tradeMedicalLibId
;
this
.
formData3
.
goodsCategoryIdList
=
this
.
getArr
(
goodsCategoryIdArr
);
console
.
log
(
this
.
formData3
.
goodsCategoryIdList
,
'this.formData3.goodsCategoryIdListthis.formData3.goodsCategoryIdList'
)
console
.
log
(
this
.
formData3
.
goodsCategoryIdList
,
'this.formData3.goodsCategoryIdListthis.formData3.goodsCategoryIdList'
)
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
hasRepoFlag
=
hasRepoFlag
;
this
.
buyLimitDtoList
=
this
.
formData
.
buyLimitDtoList
;
this
.
buyLimitDtoList
=
this
.
formData
.
buyLimitDtoList
;
this
.
formData
.
optPrice
=
this
.
formData
.
costPrice
/
100
;
this
.
formData
.
optPrice
=
this
.
formData
.
costPrice
/
100
;
this
.
formData
.
scorePerformance
=
this
.
formData
.
scorePerformance
/
100
;
this
.
formData
.
scorePerformance
=
this
.
formData
.
scorePerformance
/
100
;
this
.
fileGoodsList
=
this
.
getImges
(
goodDet
.
goodsImgList
,
1
);
this
.
fileGoodsList
=
this
.
getImges
(
goodDet
.
goodsImgList
,
1
);
this
.
fileIntrList
=
this
.
getImges
(
goodDet
.
medicImg
List
,
2
);
this
.
fileIntrList
=
this
.
getImges
(
goodDet
.
goodsDetailImage
List
,
2
);
this
.
formData
.
stock
=
this
.
formData
.
goodsStock
;
this
.
formData
.
stock
=
this
.
formData
.
goodsStock
;
if
(
goodDet
.
goodsVideoList
.
length
>
0
)
{
if
(
goodDet
.
goodsVideoList
.
length
>
0
)
{
this
.
videoList
.
push
(
goodDet
.
goodsVideoList
[
0
]);
this
.
videoList
.
push
(
goodDet
.
goodsVideoList
[
0
]);
...
@@ -1639,4 +1658,6 @@
...
@@ -1639,4 +1658,6 @@
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
src=
"./create-good-new.scss"
></
style
>
<
style
lang=
"scss"
>
\ No newline at end of file
@import
"./create-good-new.scss"
;
</
style
>
\ No newline at end of file
src/views/goods/goods-manage.vue
浏览文件 @
dd0dd36b
...
@@ -575,10 +575,10 @@
...
@@ -575,10 +575,10 @@
},
},
handleTableArry
(
item
){
handleTableArry
(
item
){
let
str
=
' '
let
str
=
' '
if
(
item
)
{
if
(
item
.
length
>
0
&&
item
[
0
]
==
''
)
{
str
=
item
.
join
(
'/'
);
}
else
{
str
=
'--'
str
=
'--'
}
else
{
str
=
item
.
join
(
'/'
);
}
}
return
str
;
return
str
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录