|
@@ -598,7 +598,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
async getGoods(categoryId,goodsName,type){
|
|
async getGoods(categoryId,goodsName,type){
|
|
- if(!this.formData.storageId){return this.$message.warning('请先选择入库仓库!')}
|
|
|
|
|
|
+ if(!this.formData.storageId){return this.$message.warning('请先选择出库仓库!')}
|
|
const that = this
|
|
const that = this
|
|
if(type == 1){
|
|
if(type == 1){
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
@@ -662,7 +662,7 @@
|
|
this.dataList[this.isEdit].qty = '',
|
|
this.dataList[this.isEdit].qty = '',
|
|
this.dataList[this.isEdit].goodsCategoryId = e.categoryId
|
|
this.dataList[this.isEdit].goodsCategoryId = e.categoryId
|
|
this.dataList[this.isEdit].goodsCategoryName = e.categoryName
|
|
this.dataList[this.isEdit].goodsCategoryName = e.categoryName
|
|
- if(!this.formData.storageId){return this.$message.warning('请先选择入库仓库!')}
|
|
|
|
|
|
+ if(!this.formData.storageId){return this.$message.warning('请先选择出库仓库!')}
|
|
getGoods({websitId: this.formData.websitId,categoryId: e.categoryId,type: 'M',orderEnginBaseId: this.formData.orderEnginBaseId,saleType: this.formData.salesType,storageId: this.formData.storageId}).then(res => {
|
|
getGoods({websitId: this.formData.websitId,categoryId: e.categoryId,type: 'M',orderEnginBaseId: this.formData.orderEnginBaseId,saleType: this.formData.salesType,storageId: this.formData.storageId}).then(res => {
|
|
this.dataList[this.isEdit].goodsList = res.data
|
|
this.dataList[this.isEdit].goodsList = res.data
|
|
})
|
|
})
|