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

规整编辑商品参数

上级 1a32e714
......@@ -320,7 +320,7 @@
</el-form-item>
<el-form-item label="药品说明书" class="required-label">
<el-upload
v-model="formData.specification_url"
class="bg-uploader"
action="#"
:show-file-list="false"
......@@ -675,7 +675,9 @@
});
}
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
if(this.isMedic){
this.getLever(5,2)
......@@ -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(){
///medications/query/{approvalnumber}
......@@ -1152,6 +1164,7 @@
}
.sp-c{
line-height: 30px;
height: 30px;
width:92px;
text-align: center;
color: #666;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册