提交 b9d75792 编写于 作者: chendeli's avatar chendeli

规整编辑商品参数

上级 1a32e714
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
</el-form-item> </el-form-item>
<el-form-item label="药品说明书" class="required-label"> <el-form-item label="药品说明书" class="required-label">
<el-upload <el-upload
v-model="formData.specification_url"
class="bg-uploader" class="bg-uploader"
action="#" action="#"
:show-file-list="false" :show-file-list="false"
...@@ -675,7 +675,9 @@ ...@@ -675,7 +675,9 @@
}); });
} }
const {goodsList} = res.data const {goodsList} = res.data
this.formData = {...goodsList[0]} this.formData = Object.assign(this.formData,{...goodsList[0]})
this.fileGoodsList = this.getImges(goodsList[0].goodsImgList)
this.fileIntrList = this.getImges(goodsList[0].medicImgList)
this.isMedic = this.formData.goodsType == 5 ? true : false this.isMedic = this.formData.goodsType == 5 ? true : false
if(this.isMedic){ if(this.isMedic){
this.getLever(5,2) this.getLever(5,2)
...@@ -686,6 +688,16 @@ ...@@ -686,6 +688,16 @@
}) })
}, },
getImges(d){
let a = [];
if(d.length > 0){
for(let i=0;i<d.length;i++){
a.push({url:d[i].goodsImgUrl,imageUrl:d[i].goodsImgUrl})
}
}
return a;
},
//快速录入 //快速录入
fastInput(){ fastInput(){
///medications/query/{approvalnumber} ///medications/query/{approvalnumber}
...@@ -1152,6 +1164,7 @@ ...@@ -1152,6 +1164,7 @@
} }
.sp-c{ .sp-c{
line-height: 30px; line-height: 30px;
height: 30px;
width:92px; width:92px;
text-align: center; text-align: center;
color: #666; color: #666;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册