提交 dcd4a03e 编写于 作者: ping zhang's avatar ping zhang

input type

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