其他入库

master
zhaoxiaomin 2 years ago
parent 34d3d8cd5a
commit 484f418afe
  1. 45
      src/views/warehousing/otherStore/index.vue

@ -5,7 +5,7 @@
<el-form-item label="入库仓库">
<el-select
style="width: 500px"
v-model="form.no"
v-model="form.warehouseNo"
placeholder="请选择"
clearable
>
@ -21,11 +21,11 @@
<el-form-item label="物料信息">
<div v-if="chooselist.length>0">
<div v-for="(item,index) in chooselist" :key="index" style="margin-top: 10px">
<span>{{ item.goodName+'-'+item.goodsNo+'-'+item.specifications }}</span>
<span>{{ item.goodName+'-'+item.goodsNo+'-'+item.unitMsr }}</span>
<el-input v-model="item.qty" style="width: 100px;margin-left: 50px" placeholder="入库数量"></el-input>
</div>
</div>
<el-button style="margin-top: 20px" @click="dialogVisible = true">选择物料</el-button>
<el-button style="margin-top: 20px" @click="chooseGoods()">选择物料</el-button>
</el-form-item>
<el-form-item label="容器编码">
<el-input style="width: 500px" v-model="form.containerNo" placeholder="请扫描或录入容器编码"></el-input>
@ -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)
})

Loading…
Cancel
Save