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

storeId默认值为空

上级 62ae6ce7
...@@ -535,7 +535,7 @@ ...@@ -535,7 +535,7 @@
costPrice:'', costPrice:'',
decrStock:'',//减少库存 decrStock:'',//减少库存
incrStock:'',//增加库存 incrStock:'',//增加库存
storeId: null, storeId: '',
}, },
showCropper: false, showCropper: false,
currentOption: { currentOption: {
...@@ -641,7 +641,7 @@ ...@@ -641,7 +641,7 @@
//this.jumPathThird = '/create-good?id=add&storeId=46' //this.jumPathThird = '/create-good?id=add&storeId=46'
this.title = id == 'add' ? '新增商品' : '编辑商品' this.title = id == 'add' ? '新增商品' : '编辑商品'
this.curmbThird = this.title this.curmbThird = this.title
this.formData.storeId = Number(storeId) || 0; this.formData.storeId = Number(storeId) || '';
this.getLever(0,1) this.getLever(0,1)
dosageAll().then((res)=>{ dosageAll().then((res)=>{
this.doseAll = res.data this.doseAll = res.data
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
showNewFlag: false, showNewFlag: false,
searchForm: { searchForm: {
storeName: '', storeName: '',
storeId: 0, storeId: '',
storeType: 0, storeType: 0,
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
if (this.searchForm.id) { if (this.searchForm.id) {
params.storeId = this.searchForm.id; params.storeId = this.searchForm.id;
}else { }else {
params.storeId = 0; params.storeId = '';
} }
if (this.searchForm.type) { if (this.searchForm.type) {
params.storeType = this.searchForm.type; params.storeType = this.searchForm.type;
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
resetForm() { resetForm() {
this.searchForm = { this.searchForm = {
storeName: '', storeName: '',
storeId: 0, storeId: '',
storeType: 0, storeType: 0,
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册