提交 b57f722d 编写于 作者: 张平's avatar 张平

Merge branch 'dev-youhua-20210120' into 'release'

input type 1 codereviewer:ping.zhang



See merge request !243
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
label-width="150px" label-width="150px"
label-suffix=":" label-suffix=":"
class="basic-form" class="basic-form"
> >
<div class="basic-item-icon"> <div class="basic-item-icon">
<div class="part-tit">通用信息</div> <div class="part-tit">通用信息</div>
...@@ -815,13 +815,15 @@ ...@@ -815,13 +815,15 @@
uploadImgMessage1: false,//未上传图片,校验提示语 uploadImgMessage1: false,//未上传图片,校验提示语
isMedic:false, // 商品类型选择【药品】时!!!!!!!!!!!!!!!!!!!!!!!!!!!!! isMedic:false, // 商品类型选择【药品】时!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
isCheckServe: false, // 商品类型选择【检测服务】时!!!!!!!!!!!!!!!!!!!!!!!!!!!!! isCheckServe: false, // 商品类型选择【检测服务】时!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
inputType: ''
} }
}, },
created() { created() {
vm = this; vm = this;
const { id, storeId, goodsType } = this.$route.query; const { id, storeId, goodsType, inputType } = this.$route.query;
this.goodsType = goodsType; this.goodsType = goodsType;
this.storeId = storeId; this.storeId = storeId;
this.inputType = inputType || '';
// this.formData = originForm; // this.formData = originForm;
// this.formData1 = originForm1; // this.formData1 = originForm1;
// this.formData2 = originForm2; // this.formData2 = originForm2;
...@@ -891,7 +893,7 @@ ...@@ -891,7 +893,7 @@
...this.rules, ...this.rules,
...originRules ...originRules
}; };
}else{ }else{
this.isMedic = true; this.isMedic = true;
const res = await getGoodsList({ const res = await getGoodsList({
...@@ -1206,7 +1208,7 @@ ...@@ -1206,7 +1208,7 @@
if(!this.isgoodStock){ if(!this.isgoodStock){
return; return;
} }
let isTrue = false; let isTrue = false;
formNameList.map(item=>{ formNameList.map(item=>{
this.$refs[item].validate((valid) => { this.$refs[item].validate((valid) => {
...@@ -1220,6 +1222,7 @@ ...@@ -1220,6 +1222,7 @@
}else{ }else{
this.formData.costPrice = this.formData.optPrice*100 this.formData.costPrice = this.formData.optPrice*100
this.formData.hasChanged = true; this.formData.hasChanged = true;
this.formData.inputType = this.inputType;
this.updateGoodsInfo(); this.updateGoodsInfo();
} }
......
...@@ -419,7 +419,7 @@ ...@@ -419,7 +419,7 @@
const { goodsType } = row; const { goodsType } = row;
let url = '' let url = ''
if(row == 'add'){ if(row == 'add'){
url = `/create-good?id=add&storeId=${this.searchForm.storeId}` url = `/create-good?id=add&storeId=${this.searchForm.storeId}&inputType=1`
}else{ }else{
url = `/create-good?id=${row.goodsId}&storeId=${this.searchForm.storeId}&goodsType=${goodsType}` url = `/create-good?id=${row.goodsId}&storeId=${this.searchForm.storeId}&goodsType=${goodsType}`
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册