Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
a02e26c9
提交
a02e26c9
编写于
3月 15, 2022
作者:
shuang.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品药品关联
上级
f29b38f3
变更
11
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
2945 行增加
和
281 行删除
+2945
-281
router.js
src/router/router.js
+299
-271
common.scss
src/style/common.scss
+9
-0
index.js
src/utils/goods/index.js
+38
-0
freight-config.vue
src/views/freight/freight-config.vue
+1
-1
forms.js
src/views/goods/common/forms.js
+51
-0
mock.js
src/views/goods/common/mock.js
+234
-0
rules.js
src/views/goods/common/rules.js
+137
-0
create-good-new.scss
src/views/goods/create-good-new.scss
+281
-0
create-good-new.vue
src/views/goods/create-good-new.vue
+1868
-0
goods-manage.vue
src/views/goods/goods-manage.vue
+26
-8
order-detail.vue
src/views/goods/order-detail.vue
+1
-1
未找到文件。
src/router/router.js
浏览文件 @
a02e26c9
此差异已折叠。
点击以展开。
src/style/common.scss
浏览文件 @
a02e26c9
...
...
@@ -218,9 +218,18 @@ html,body{
border
:
1px
solid
#449284
!
important
;
opacity
:
0
.5
;
}
// .el-button--default:focus, .el-button--default:hover {
// color: #449284 !important;
// border-color: #449284 !important;
// background-color: #fff !important;
// }
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background
:
#449284
!
important
;
}
// 表格选中
.el-table__body
tr
.current-row
>
td
.el-table__cell
{
background-color
:
rgb
(
236
,
244
,
243
)
!
important
;
}
// 主题样式修改
.el-radio__input.is-checked
.el-radio__inner
{
...
...
src/utils/goods/index.js
浏览文件 @
a02e26c9
...
...
@@ -161,5 +161,43 @@ export const getCooperationProjectList = () => {
description
:
"查询合作项目"
,
});
};
export
const
getGoodsCascadeList
=
(
parentId
,
level
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`store/commodity/categorys/cascade/list?pageNo=1&pageSize=999&parentId=
${
parentId
}
&categoryLevel=
${
level
}
`
),
method
:
"get"
,
description
:
" 获取商品(药品)分类"
,
});
};
export
const
getMedList
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`store/medications/query/medicationGoodsListByPage`
),
method
:
"post"
,
data
,
description
:
"查询药品列表"
,
});
};
export
const
getCategorysList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`store/medical/categorys/list`
),
method
:
"get"
,
params
,
description
:
"查询药品类别"
,
});
};
export
const
saveMedList
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`store/admin/medical/save`
),
method
:
"post"
,
data
,
description
:
"药品保存"
,
});
};
src/views/freight/freight-config.vue
浏览文件 @
a02e26c9
...
...
@@ -606,7 +606,7 @@ export default {
}
}
// url = `/create-good?id=${row.goodsId}&storeId=${this.searchForm.storeId}&goodsType=${goodsType}&commissionFlag=${this.commissionFlag}`
let
url
=
`/create-good?id=
${
item
}
&storeId=
${
this
.
storeId
}
&goodsType=
${
goodsType
}
&commissionFlag=2`
;
let
url
=
`/create-good
-new
?id=
${
item
}
&storeId=
${
this
.
storeId
}
&goodsType=
${
goodsType
}
&commissionFlag=2`
;
// this.$store.dispatch('goodsManage/changeGoodsInfo', {...row});
this
.
$router
.
push
({
path
:
url
,
...
...
src/views/goods/common/forms.js
0 → 100644
浏览文件 @
a02e26c9
const
form1
=
{
approvalNumber
:
""
,
// 批准文号
medicCommonName
:
""
,
// 产品通用名称
barCode
:
""
,
// 条形码
medicGoodsName
:
""
,
// 商品名称
size
:
""
,
// 规格
manufacturer
:
""
,
// 生产企业
medicalCategoryId
:
""
,
// 药品分类
};
const
form
=
{
id
:
0
,
goodsName
:
""
,
goodsDescription
:
""
,
goodsHeaderImages
:
[],
goodsType
:
""
,
barCode
:
""
,
costPrice
:
0
,
decrStock
:
0
,
//减少库存
incrStock
:
""
,
//增加库存
storeId
:
""
,
optPrice
:
""
,
scorePerformance
:
0
,
goodsStock
:
0
,
stock
:
0
,
externalGoodsCode
:
""
,
leastCount
:
1
,
mostCount
:
-
1
,
incrType
:
1
,
saleType
:
1
,
minWhole
:
1
,
expressLimitFlag
:
0
,
//是否支持退货退款
};
const
form3
=
{
goodsCategoryIdList
:
[],
// 商品分类
cooperationProjectId
:
""
,
// 合作项目id
contractId
:
""
,
// 合同id
goodsName
:
""
,
// 商品名称
choiceGoods
:
false
,
goodsDescription
:
""
,
// 商品介绍
goodsHeaderImages
:
[],
goodsVideoList
:
[],
goodsDetailImages
:
[],
medicationId
:
""
,
};
export
const
originForm1
=
form1
;
export
const
originForm3
=
form3
;
export
const
originForm
=
form
;
src/views/goods/common/mock.js
0 → 100644
浏览文件 @
a02e26c9
export
const
kk
=
{
data
:
{
smallStoreList
:
[
{
id
:
14913
,
certifyId
:
null
,
tradeMedicalLibId
:
7561
,
productName
:
null
,
goodsName
:
null
,
barCode
:
"TMP7561"
,
usedFlag
:
1
,
categoryName
:
1
,
categoryIdLevel2
:
null
,
categoryIdLevel3
:
null
,
categoryIdLevel4
:
null
,
category
:
"药品"
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-03-01 13:43:01"
,
lastModifiedPerson
:
null
,
createTime
:
"2022-03-01 13:43:01"
,
},
{
id
:
14912
,
certifyId
:
null
,
tradeMedicalLibId
:
0
,
productName
:
"ahhah"
,
goodsName
:
"jaksdh"
,
barCode
:
"TMP1646104308791"
,
usedFlag
:
null
,
categoryName
:
5
,
categoryIdLevel2
:
504
,
categoryIdLevel3
:
-
1
,
categoryIdLevel4
:
-
1
,
category
:
"服务/系统服务"
,
status
:
2
,
refuseContent
:
null
,
modifiedTime
:
"2022-03-01 11:11:49"
,
lastModifiedPerson
:
"周爽"
,
createTime
:
"2022-03-01 11:11:49"
,
},
{
id
:
14911
,
certifyId
:
null
,
tradeMedicalLibId
:
7560
,
productName
:
null
,
goodsName
:
null
,
barCode
:
"TMP7560"
,
usedFlag
:
1
,
categoryName
:
1
,
categoryIdLevel2
:
null
,
categoryIdLevel3
:
null
,
categoryIdLevel4
:
null
,
category
:
"药品"
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-28 17:17:35"
,
lastModifiedPerson
:
null
,
createTime
:
"2022-02-28 17:17:35"
,
},
{
id
:
14910
,
certifyId
:
77
,
tradeMedicalLibId
:
7559
,
productName
:
"1"
,
goodsName
:
"1"
,
barCode
:
"11111"
,
usedFlag
:
1
,
categoryName
:
1
,
categoryIdLevel2
:
100
,
categoryIdLevel3
:
10001
,
categoryIdLevel4
:
100011
,
category
:
"药品/西药/抗微生物药/青霉素类"
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-27 15:32:25"
,
lastModifiedPerson
:
"金涛"
,
createTime
:
"2022-02-27 13:37:05"
,
},
{
id
:
14908
,
certifyId
:
76
,
tradeMedicalLibId
:
7548
,
productName
:
"红霉素1"
,
goodsName
:
"红霉素1"
,
barCode
:
"HMS0001"
,
usedFlag
:
1
,
categoryName
:
1
,
categoryIdLevel2
:
100
,
categoryIdLevel3
:
10001
,
categoryIdLevel4
:
100011
,
category
:
"药品/西药/抗微生物药/青霉素类"
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-27 13:28:59"
,
lastModifiedPerson
:
"金涛"
,
createTime
:
"2022-02-27 11:43:12"
,
},
{
id
:
14909
,
certifyId
:
null
,
tradeMedicalLibId
:
7558
,
productName
:
""
,
goodsName
:
""
,
barCode
:
"TMP7558"
,
usedFlag
:
1
,
categoryName
:
0
,
categoryIdLevel2
:
-
1
,
categoryIdLevel3
:
-
1
,
categoryIdLevel4
:
-
1
,
category
:
""
,
status
:
2
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-27 13:27:32"
,
lastModifiedPerson
:
"金涛"
,
createTime
:
"2022-02-27 13:27:32"
,
},
{
id
:
14906
,
certifyId
:
null
,
tradeMedicalLibId
:
7557
,
productName
:
""
,
goodsName
:
""
,
barCode
:
"TMP7557"
,
usedFlag
:
1
,
categoryName
:
null
,
categoryIdLevel2
:
null
,
categoryIdLevel3
:
null
,
categoryIdLevel4
:
null
,
category
:
""
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-24 14:55:41"
,
lastModifiedPerson
:
null
,
createTime
:
"2022-02-24 14:55:41"
,
},
{
id
:
14905
,
certifyId
:
null
,
tradeMedicalLibId
:
7556
,
productName
:
""
,
goodsName
:
""
,
barCode
:
"232332"
,
usedFlag
:
1
,
categoryName
:
1
,
categoryIdLevel2
:
null
,
categoryIdLevel3
:
null
,
categoryIdLevel4
:
null
,
category
:
"药品"
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-24 14:40:50"
,
lastModifiedPerson
:
null
,
createTime
:
"2022-02-24 14:40:50"
,
},
{
id
:
14904
,
certifyId
:
null
,
tradeMedicalLibId
:
7555
,
productName
:
""
,
goodsName
:
""
,
barCode
:
"32423"
,
usedFlag
:
1
,
categoryName
:
1
,
categoryIdLevel2
:
null
,
categoryIdLevel3
:
null
,
categoryIdLevel4
:
null
,
category
:
"药品"
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-24 14:18:15"
,
lastModifiedPerson
:
null
,
createTime
:
"2022-02-24 14:18:15"
,
},
{
id
:
14903
,
certifyId
:
null
,
tradeMedicalLibId
:
7554
,
productName
:
""
,
goodsName
:
""
,
barCode
:
"TMP7554"
,
usedFlag
:
1
,
categoryName
:
null
,
categoryIdLevel2
:
null
,
categoryIdLevel3
:
null
,
categoryIdLevel4
:
null
,
category
:
""
,
status
:
3
,
refuseContent
:
null
,
modifiedTime
:
"2022-02-23 18:57:14"
,
lastModifiedPerson
:
null
,
createTime
:
"2022-02-23 18:57:13"
,
},
],
pageNo
:
1
,
pageSize
:
10
,
totalPage
:
1490
,
totalNum
:
14893
,
},
code
:
"000000"
,
message
:
"成功"
,
requestId
:
"8ac3d50b-82ab-4c33-a460-36b9fa52d724"
,
};
export
const
params
=
{
productName
:
""
,
letterPinyin
:
""
,
goodsName
:
""
,
categoryName
:
""
,
categoryIdLevel2
:
""
,
categoryIdLevel3
:
""
,
categoryIdLevel4
:
""
,
barCode
:
""
,
status
:
""
,
goodsFlag
:
1
,
pageSize
:
10
,
pageNo
:
1
,
};
export
const
hh
=
{
filterName
:
"博尔诚"
,
applySource
:
"2"
,
letterPinyin
:
""
,
goodsName
:
""
,
categoryName
:
""
,
categoryIdLevel2
:
""
,
categoryIdLevel3
:
""
,
categoryIdLevel4
:
""
,
barCode
:
""
,
status
:
""
,
goodsFlag
:
1
,
pageSize
:
10
,
pageNo
:
1
,
};
\ No newline at end of file
src/views/goods/common/rules.js
0 → 100644
浏览文件 @
a02e26c9
const
checkBarcode
=
(
rule
,
value
,
cb
)
=>
{
const
valedBarcode
=
new
RegExp
(
"[
\\
u4E00-
\\
u9FFF]+"
,
"g"
);
if
(
value
&&
valedBarcode
.
test
(
value
))
cb
(
new
Error
(
"条形码不能输入中文"
));
cb
();
};
const
checkNumber
=
(
rule
,
value
,
cb
)
=>
{
const
val
=
String
(
value
);
const
isInt
=
/^
([
1-9
][
0-9
]
*
)
$/
;
if
(
val
&&
!
isInt
.
test
(
val
))
cb
(
new
Error
(
"请输入正整数"
));
cb
();
};
const
checkProjectStr
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
.
indexOf
(
"
\
\"
) != -1) {
//存在
callback(new Error("
请勿输入字符“
\\
”
"));
} else if (value.indexOf("
.
") != -1) {
callback(new Error("
请勿输入字符“
.
”
"));
} else {
callback();
}
};
const rules1 = {
barCode: [
{ required: true, message: "
请输入条形码
", trigger: "
submit
" },
{ validator: checkBarcode, trigger: "
submit
" },
],
medicCommonName: [
{ required: true, message: "
请输入商品通用名称
", trigger: "
blur
" },
],
medicGoodsName: [
{ required: true, message: "
请输入商品名称
", trigger: "
blur
" },
],
size: [{ required: true, message: "
请输入商品规格
", trigger: "
blur
" }],
manufacturer: [
{ required: true, message: "
请输入生产厂家
", trigger: "
blur
" },
],
medicalCategoryId: [
{ required: true, message: "
请选择药品分类
", trigger: "
change
" },
],
approvalNumber:[
{ required: true, message: "
请输入批准文号
", trigger: "
blur
" }
],
// dosageId:[
// { required: true, message: "
请选择剂型
", trigger: "
change
" }
// ],
categoryIdLevel2: [
{ required: true, message: "
请选择药品类型
", trigger: "
blur
" },
],
categoryIdLevel3: [
{ required: true, message: "
请选择一级类目
", trigger: "
blur
" },
],
categoryIdLevel4: [
{ required: true, message: "
请选择二级类目
", trigger: "
blur
" },
],
categoryIdLevel5: [
{ required: true, message: "
请选择三级类目
", trigger: "
blur
" },
],
specification_url: [
{ required: true, message: "
请上传药品说明书
", trigger: "
blur
" },
],
// otc:[
// { required: true, message: "
请选择是否是处方
", trigger: "
blur
" }
// ],
dynamicFlag: [
{ required: true, message: "
请选择内容发布权
", trigger: "
blur
" },
],
};
const rules2 = {
// barCode: [
// { required: true, message: "
请输入条形码
", trigger: "
submit
" },
// { validator: checkBarcode, trigger: "
submit
" }
// ],
checkName: [{ required: true, message: "
请输入检测名称
", trigger: "
blur
" }],
hospitalName: [
{ required: true, message: "
请输入医疗机构名称
", trigger: "
blur
" },
],
hospitalType: [
{ required: true, message: "
请选择医疗机构类型
", trigger: "
blur
" },
],
checkItem: [{ required: true, message: "
请输入检测项目
", trigger: "
blur
" }],
checkStandard: [
{ required: true, message: "
请输入检测指标
", trigger: "
blur
" },
],
useCount: [
{ required: true, message: "
请输入使用人数
", trigger: "
submit
" },
{ validator: checkNumber, trigger: "
submit
" },
],
checkType: [{ required: true, message: "
请选择检测类型
", trigger: "
blur
" }],
suitableArr: [{ required: true, message: "
请选择适用人群
", trigger: "
blur
" }],
endTime: [{ required: true, message: "
请选择商品使用日期
", trigger: "
blur
" }],
// goodsCheckImages: [
// { required: true, message: "
请上传检测说明图
", trigger: "
blur
" }
// ],
};
const rules = {
barCode: [
{ required: true, message: "
请输入条形码
", trigger: "
submit
" },
{ validator: checkBarcode, trigger: "
submit
" },
],
optPrice: [{ required: true, message: "
请输入价格
", trigger: "
blur
" }],
saleType: [{ required: true, message: "
请选择销售方式
", trigger: "
change
" }],
stock: [{ required: true, message: "
请输入库存
", trigger: "
blur
" }],
minWhole: [{ required: true, message: "
请输入最小起批
", trigger: "
blur
" }],
expressLimitFlag: [
{
required: true,
message: "
请选择是否支持售后
",
trigger: "
change
",
},
],
};
const rules3 = {
goodsName: [
{ required: true, message: "
请输入商品名称
", trigger: "
submit
" },
// { validator: checkProjectStr, trigger: "
submit
" },
],
goodsDescription: [
{ required: true, message: "
请输入商品介绍
", trigger: "
submit
" },
],
goodsHeaderImages: [
{ required: true, message: "
请上传商品头图
", trigger: "
blur
" },
],
goodsCategoryIdList: [
{ required: true, message: "
请选择商品分类
", trigger: "
change
" },
],
};
export const originRules1 = rules1;
export const originRules2 = rules2;
export const originRules3 = rules3;
export const originRules = rules;
src/views/goods/create-good-new.scss
0 → 100644
浏览文件 @
a02e26c9
.create-shop-wrapper
{
.create-shop-content
{
background
:
#fff
;
padding
:
10px
;
.step-content
{
overflow
:
hidden
;
height
:
60px
;
padding
:
10px
10px
50px
;
border-bottom
:
1px
solid
#efefef
;
.title
{
font-size
:
13px
;
color
:
#449284
;
}
}
.word-tip
{
color
:
#e6af7a
;
}
}
.suitableList-select
{
width
:
445px
;
}
.el-button--text
{
color
:
#449284
;
font-size
:
14px
;
&
:
:
after
{
content
:
''
;
position
:
relative
;
height
:
14px
;
/*border-right: 1px solid #EBEEF5;*/
border-right
:
1px
solid
#aaaaaa
;
padding-right
:
10px
;
}
&
:last-of-type
{
&
:
:
after
{
content
:
''
;
position
:
relative
;
width
:
1px
;
height
:
14px
;
border-right
:
none
;
}
}
}
}
.
required-label
.
el-form-item__label
:
:
before
{
content
:
"*"
;
color
:
#f56c6c
;
margin-right
:
4px
;
}
.basic-item-icon
{
position
:
relative
;
.show-goods-table
{
.del-goods
{
color
:
#449284
;
cursor
:
pointer
;
}
}
.require
{
position
:
absolute
;
left
:
67px
;
top
:
11px
;
color
:
#f56c6c
;
}
.error-message
{
font-size
:
12px
;
color
:
#f56c6c
;
}
.upload-message
{
position
:
absolute
;
left
:
0
;
top
:
105px
;
font-size
:
12px
;
color
:
#f56c6c
;
}
.backTip
{
font-size
:
12px
;
color
:
red
;
cursor
:
pointer
;
}
.ad-back
{
color
:
#449284
;
}
.img-delete
{
position
:
absolute
;
left
:
0px
;
top
:
0px
;
width
:
84px
;
height
:
100px
;
background
:
#000
;
opacity
:
0
.7
;
z-index
:
999
;
i
{
color
:
#fff
;
margin-top
:
39px
;
margin-left
:
0px
;
}
}
}
.word-num
{
font-size
:
12px
;
color
:
#999
;
// padding-top: 5px;
}
.line
{
margin-left
:
10px
;
width
:
20px
;
}
.bg-uploader
{
.bg-img
{
float
:
left
;
width
:
84px
;
height
:
100px
;
}
.limit-text
{
float
:
left
;
margin-left
:
10px
;
margin-top
:
-10px
;
p
{
font-size
:
12px
;
color
:
#999
;
text-align
:
left
;
}
}
}
.el-upload__tip
{
position
:
absolute
;
top
:
-6px
;
left
:
130px
;
}
.span-mt-10
{
.edit-img
{
width
:
20px
;
margin-top
:
10px
;
}
}
.p-tips
{
font-size
:
13px
;
color
:
#8C8C8C
;
line-height
:
26px
;
}
.part-tit
{
font-size
:
14px
;
padding
:
20px
0
20px
20px
;
}
.inline
{
.el-form-item
{
display
:
inline-block
;
vertical-align
:top
;
.el-radio__label
{
font-size
:
12px
;
}
}
}
.stock-com
{
width
:
158px
;
height
:
32px
;
border-radius
:
4px
;
overflow
:
hidden
;
.sp
{
display
:
inline-block
;
float
:
left
;
color
:
#fff
;
}
.sp-c
{
line-height
:
30px
;
height
:
30px
;
width
:
92px
;
text-align
:
center
;
color
:
#666
;
border-top
:
1px
solid
#449284
;
border-bottom
:
1px
solid
#449284
;
}
.sp-l
{
border-right
:
1px
solid
#449284
;
}
.sp-r
{
border-left
:
1px
solid
#449284
;
border-radius
:
0
4px
4px
0
;
}
.sp-l
,
.sp-r
{
width
:
32px
;
text-align
:
center
;
line-height
:
32px
;
font-size
:
13px
;
background
:
#449284
;
cursor
:
pointer
;
}
.opac
{
opacity
:
0
.5
;
}
}
.stock-dia
{
.stock-item
{
padding-bottom
:
20px
;
}
}
.fast-opt
{
font-size
:
12px
;
padding
:
0
10px
;
cursor
:
pointer
;
color
:
#449284
}
.file-pics
{
display
:
inline-block
;
width
:
84px
;
height
:
100px
;
float
:left
;
margin-right
:
15px
;
position
:
relative
;
}
//.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
;
z-index
:
1
;
top
:
1px
;
width
:
40px
;
height
:
auto
;
text-align
:
center
;
background
:
#449284
;
color
:
#606266
;
cursor
:
pointer
;
font-size
:
13px
;
}
.el-icon-plus
{
color
:
#ffffff
;
}
.el-icon-minus
{
color
:
#ffffff
;
}
#introVideoLecture
{
height
:
140px
;
}
.video-progress
{
width
:
20%
;
}
.el-upload-list
{
width
:
30%
;
}
.label-video
{
position
:
relative
;
.el-button
:focus
,
.el-button
:hover
{
color
:
#449284
;
border-color
:
#449284
;
background-color
:
#ecf5ff
;
}
.dl-video
{
position
:
absolute
;
top
:
50%
;
left
:
35%
;
transform
:
translate
(
-50%
,-
50%
);
}
}
.add-goods-dialog
{
.add-goods-table
{
margin-top
:
10px
;
margin-bottom
:
20px
;
}
.add-goods-search
{
margin-left
:
10px
;
}
.add-goods--pagination
{
text-align
:
right
;
margin-top
:
25px
;
margin-bottom
:
25px
;
}
}
\ No newline at end of file
src/views/goods/create-good-new.vue
0 → 100644
浏览文件 @
a02e26c9
此差异已折叠。
点击以展开。
src/views/goods/goods-manage.vue
浏览文件 @
a02e26c9
...
...
@@ -15,7 +15,7 @@
<el-input
v-model=
"id"
size=
"small"
placeholder=
"请输入商品ID"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<
!--
<
el-col
:span=
"6"
>
<el-form-item
label=
"商品类型"
>
<el-select
v-model=
"searchForm.goodsType"
...
...
@@ -30,7 +30,7 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-col>
-->
</el-row>
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-top: 10px"
>
<el-col
:span=
"6"
>
...
...
@@ -111,9 +111,17 @@
<el-table-column
prop=
"goodsId"
label=
"商品ID"
width=
"120"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"goodsName"
label=
"商品名称"
width=
"160"
align=
"center"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"type"
label=
"商品类型"
width=
"100"
align=
"center"
>
<el-table-column
prop=
"medicationName"
label=
"药品名称"
width=
"160"
align=
"center"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"goodsCategoryStrArr"
label=
"商品分类"
width=
"160"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
goodsTypeStr
}}
</span>
<p
v-for=
"(item,index) in scope.row.goodsCategoryStrArr"
:key=
"index"
>
{{
item
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"medicalCategoryStrArr"
label=
"药品分类"
width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
handleTableArry
(
scope
.
row
.
medicalCategoryStrArr
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"商品状态"
width=
"100"
align=
"center"
>
...
...
@@ -558,14 +566,23 @@
}
},
},
methods
:
{
methods
:
{
handlePreview
(){},
handleRemove
(){},
beforeRemove
(){},
handleSelectionChange
(
val
){
this
.
selectList
=
val
},
handleTableArry
(
item
){
let
str
=
' '
if
(
item
)
{
str
=
item
.
join
(
'/'
);
}
else
{
str
=
'--'
}
return
str
;
},
//批量上传
getBatchUpload
(
file
)
{
let
self
=
this
;
...
...
@@ -662,6 +679,7 @@
});
}
this
.
tableData
=
res
.
data
.
goodsList
;
this
.
totalRows
=
res
.
data
.
totalCount
;
this
.
isSSO
=
res
.
data
.
isSSO
;
})
...
...
@@ -709,9 +727,9 @@
// storeType 1: "供货商",2: "小药房",3: "医生小店"
let
url
=
''
if
(
row
==
'add'
){
url
=
`/create-good?id=add&storeId=
${
this
.
searchForm
.
storeId
}
&inputType=1&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
this
.
storeType
}
`
url
=
`/create-good
-new
?id=add&storeId=
${
this
.
searchForm
.
storeId
}
&inputType=1&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
this
.
storeType
}
`
}
else
{
url
=
`/create-good?id=
${
row
.
goodsId
}
&storeId=
${
this
.
searchForm
.
storeId
}
&goodsType=
${
goodsType
}
&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
storeType
}
`
url
=
`/create-good
-new
?id=
${
row
.
goodsId
}
&storeId=
${
this
.
searchForm
.
storeId
}
&goodsType=
${
goodsType
}
&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
storeType
}
`
}
// this.$store.dispatch('goodsManage/changeGoodsInfo', {...row});
this
.
$router
.
push
({
...
...
src/views/goods/order-detail.vue
浏览文件 @
a02e26c9
...
...
@@ -464,7 +464,7 @@
goGoodsEdit
(
row
)
{
// this.$store.dispatch('goodsManage/changeGoodsInfo', {...row});
this
.
$router
.
push
({
path
:
'/create-good'
,
path
:
'/create-good
-new
'
,
query
:
{
id
:
row
.
goodsId
,
storeId
:
this
.
storeId
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录