Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
0f8fa15c
提交
0f8fa15c
编写于
9月 17, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release' into develop-3.18.0
上级
c31c3a01
777354e3
变更
3
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
1314 行增加
和
1124 行删除
+1314
-1124
index.js
src/utils/goods/index.js
+10
-0
create-good.vue
src/views/goods/create-good.vue
+23
-4
create-shop.vue
src/views/shop/create-shop.vue
+1281
-1120
未找到文件。
src/utils/goods/index.js
浏览文件 @
0f8fa15c
...
@@ -123,3 +123,13 @@ export const getGoodsIdList = (params) => {
...
@@ -123,3 +123,13 @@ export const getGoodsIdList = (params) => {
description
:
'商品ID列表查询'
,
description
:
'商品ID列表查询'
,
})
})
};
};
export
const
getTypeCodeList
=
()
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`basic-data/constants/app?typeCodeList=P306`
),
method
:
"get"
,
description
:
"获取适用人群类别"
,
});
};
src/views/goods/create-good.vue
浏览文件 @
0f8fa15c
...
@@ -540,7 +540,7 @@
...
@@ -540,7 +540,7 @@
v-model=
"formData2.suitableArr"
v-model=
"formData2.suitableArr"
:multiple=
"true"
:multiple=
"true"
placeholder=
"请选择"
placeholder=
"请选择"
size=
"small
"
class=
"suitableList-select
"
>
>
<el-option
<el-option
v-for=
"(item,index) in suitableList"
v-for=
"(item,index) in suitableList"
...
@@ -859,7 +859,7 @@
...
@@ -859,7 +859,7 @@
let
vm
=
null
;
let
vm
=
null
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu-util"
;
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu-util"
;
import
{
updateGoods
,
updateStock
,
dosageAll
,
getDeparts
,
getGoodsList
,
getGoodDetails
,
updateGoodsV2
,
getHospitalInfoByStoreId
,
getCheckPackageIdList
}
from
'@/utils/goods'
;
import
{
updateGoods
,
updateStock
,
dosageAll
,
getDeparts
,
getGoodsList
,
getGoodDetails
,
updateGoodsV2
,
getHospitalInfoByStoreId
,
getCheckPackageIdList
,
getTypeCodeList
}
from
'@/utils/goods'
;
import
Cropper
from
'@/components/common/cropper.vue'
import
Cropper
from
'@/components/common/cropper.vue'
import
{
originRules1
,
originRules2
,
originRules
}
from
'./rules'
;
import
{
originRules1
,
originRules2
,
originRules
}
from
'./rules'
;
...
@@ -947,8 +947,8 @@
...
@@ -947,8 +947,8 @@
checkPackageIdList
:
[{
name
:
'其他'
,
content
:
0
}],
checkPackageIdList
:
[{
name
:
'其他'
,
content
:
0
}],
hospitalTypeList
:
[{
label
:
'村卫生室'
,
value
:
1
},{
label
:
'乡镇卫生院/中心'
,
value
:
2
}],
// 医疗机构类型
hospitalTypeList
:
[{
label
:
'村卫生室'
,
value
:
1
},{
label
:
'乡镇卫生院/中心'
,
value
:
2
}],
// 医疗机构类型
checkTypeList
:
[{
label
:
'常规检测'
,
value
:
1
}],
// 检测类型
checkTypeList
:
[{
label
:
'常规检测'
,
value
:
1
}],
// 检测类型
suitableList
:
[{
label
:
'儿童'
,
value
:
'1'
},{
label
:
'青年'
,
value
:
'2'
},{
label
:
'中年'
,
value
:
'4'
},{
label
:
'老年'
,
value
:
'8'
},{
label
:
'40-74岁的结直肠癌高风险人群'
,
value
:
'10'
}],
// 适用人群
//
suitableList: [{label:'儿童',value:'1'},{label:'青年',value:'2'},{label:'中年',value:'4'},{label:'老年',value:'8'},{label:'40-74岁的结直肠癌高风险人群',value:'10'}], // 适用人群
suitableList
:
[],
// 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段
...
@@ -1017,6 +1017,7 @@
...
@@ -1017,6 +1017,7 @@
this
.
isEdit
=
id
!=
'add'
;
this
.
isEdit
=
id
!=
'add'
;
this
.
curmbThird
=
this
.
title
;
this
.
curmbThird
=
this
.
title
;
this
.
formData
.
storeId
=
Number
(
storeId
)
||
''
;
this
.
formData
.
storeId
=
Number
(
storeId
)
||
''
;
this
.
getTypeCodeList
();
this
.
getLever
(
0
,
1
)
this
.
getLever
(
0
,
1
)
dosageAll
().
then
((
res
)
=>
{
dosageAll
().
then
((
res
)
=>
{
this
.
doseAll
=
res
.
data
this
.
doseAll
=
res
.
data
...
@@ -1047,11 +1048,26 @@
...
@@ -1047,11 +1048,26 @@
}
}
},
},
methods
:
{
methods
:
{
// 获取适用人群
getTypeCodeList
()
{
return
getTypeCodeList
().
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
suitableList
=
[];
for
(
const
item
of
res
.
data
)
{
this
.
suitableList
.
push
({
label
:
item
.
value
,
value
:
item
.
no
+
''
})
}
}
}).
catch
((
err
)
=>
{})
},
//eidt状态
//eidt状态
async
getDetailByEdit
(
id
,
goodsType
){
async
getDetailByEdit
(
id
,
goodsType
){
this
.
goodsId
=
id
;
this
.
goodsId
=
id
;
if
(
goodsType
==
337
){
if
(
goodsType
==
337
){
this
.
isCheckServe
=
true
;
this
.
isCheckServe
=
true
;
await
this
.
getTypeCodeList
();
const
res
=
await
getGoodDetails
(
id
);
const
res
=
await
getGoodDetails
(
id
);
console
.
log
(
`========================>`
,
res
);
console
.
log
(
`========================>`
,
res
);
if
(
res
.
code
!=
'000000'
){
if
(
res
.
code
!=
'000000'
){
...
@@ -1790,6 +1806,9 @@
...
@@ -1790,6 +1806,9 @@
}
}
}
}
}
}
.suitableList-select
{
width
:
445px
;
}
.el-button--text
{
.el-button--text
{
color
:
#449284
;
color
:
#449284
;
font-size
:
14px
;
font-size
:
14px
;
...
...
src/views/shop/create-shop.vue
浏览文件 @
0f8fa15c
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录