diff --git a/src/views/warehousing/otherStore/index.vue b/src/views/warehousing/otherStore/index.vue index 6e59b5c..ef6aa57 100644 --- a/src/views/warehousing/otherStore/index.vue +++ b/src/views/warehousing/otherStore/index.vue @@ -5,7 +5,7 @@ @@ -21,11 +21,11 @@
- {{ item.goodName+'-'+item.goodsNo+'-'+item.specifications }} + {{ item.goodName+'-'+item.goodsNo+'-'+item.unitMsr }}
- 选择物料 + 选择物料
@@ -217,7 +217,7 @@ export default { methods: { //商品分类点击某个(树) handleNodeClick(data) { - this.searchForm.chiff=data.value + this.searchForm.classify=data.value this.paging.page=1 this.queryTable() }, @@ -243,19 +243,30 @@ export default { }, // 确定入库 onSubmit(){ - if(!this.form.no){ + if(!this.form.warehouseNo){ this.$message.error('请选择入库仓库!') return; } + if(this.chooselist.length==0){ + this.$message.error('请选择物料!') + return; + } + if(!this.form.containerNo){ + this.$message.error('请输入容器编码!') + return; + } const obj={ - no:this.form.no, + syncType:"A", orderType:11, + orderDate:'2024-05-30', containerNo:this.form.containerNo, - detail:this.chooselist + detail:this.chooselist, } - // console.log('确定入库',obj) InitInOrder(obj).then((res)=>{ - console.log(res) + if(res.code==200){ + this.$message.success('入库成功!') + this.reset() + } }) }, // 重置 @@ -263,14 +274,17 @@ export default { this.form={} this.chooselist=[] }, - //商品分类 - handleCommand(command) { - this.$message('click on item ' + command); - }, // 复选框 handleselection(row){ this.handleSelect = row }, + chooseGoods(){ + if(!this.form.warehouseNo){ + this.$message.error('请选择入库仓库!') + return; + } + this.dialogVisible = true + }, // 选择商品 choose(){ this.chooselist=[] @@ -279,9 +293,8 @@ export default { lineId:0, goodsNo:item.goodNo, goodName:item.goodName, - specifications:item.specifications, - unitMsr:'kg', - warehouseNo:102 + unitMsr:item.specifications, + warehouseNo:this.form.warehouseNo, } this.chooselist.push(newItem) })