其他入库

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-form-item label="入库仓库">
<el-select <el-select
style="width: 500px" style="width: 500px"
v-model="form.no" v-model="form.warehouseNo"
placeholder="请选择" placeholder="请选择"
clearable clearable
> >
@ -21,11 +21,11 @@
<el-form-item label="物料信息"> <el-form-item label="物料信息">
<div v-if="chooselist.length>0"> <div v-if="chooselist.length>0">
<div v-for="(item,index) in chooselist" :key="index" style="margin-top: 10px"> <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> <el-input v-model="item.qty" style="width: 100px;margin-left: 50px" placeholder="入库数量"></el-input>
</div> </div>
</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>
<el-form-item label="容器编码"> <el-form-item label="容器编码">
<el-input style="width: 500px" v-model="form.containerNo" placeholder="请扫描或录入容器编码"></el-input> <el-input style="width: 500px" v-model="form.containerNo" placeholder="请扫描或录入容器编码"></el-input>
@ -217,7 +217,7 @@ export default {
methods: { methods: {
// //
handleNodeClick(data) { handleNodeClick(data) {
this.searchForm.chiff=data.value this.searchForm.classify=data.value
this.paging.page=1 this.paging.page=1
this.queryTable() this.queryTable()
}, },
@ -243,19 +243,30 @@ export default {
}, },
// //
onSubmit(){ onSubmit(){
if(!this.form.no){ if(!this.form.warehouseNo){
this.$message.error('请选择入库仓库!') this.$message.error('请选择入库仓库!')
return; return;
} }
if(this.chooselist.length==0){
this.$message.error('请选择物料!')
return;
}
if(!this.form.containerNo){
this.$message.error('请输入容器编码!')
return;
}
const obj={ const obj={
no:this.form.no, syncType:"A",
orderType:11, orderType:11,
orderDate:'2024-05-30',
containerNo:this.form.containerNo, containerNo:this.form.containerNo,
detail:this.chooselist detail:this.chooselist,
} }
// console.log('',obj)
InitInOrder(obj).then((res)=>{ 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.form={}
this.chooselist=[] this.chooselist=[]
}, },
//
handleCommand(command) {
this.$message('click on item ' + command);
},
// //
handleselection(row){ handleselection(row){
this.handleSelect = row this.handleSelect = row
}, },
chooseGoods(){
if(!this.form.warehouseNo){
this.$message.error('请选择入库仓库!')
return;
}
this.dialogVisible = true
},
// //
choose(){ choose(){
this.chooselist=[] this.chooselist=[]
@ -279,9 +293,8 @@ export default {
lineId:0, lineId:0,
goodsNo:item.goodNo, goodsNo:item.goodNo,
goodName:item.goodName, goodName:item.goodName,
specifications:item.specifications, unitMsr:item.specifications,
unitMsr:'kg', warehouseNo:this.form.warehouseNo,
warehouseNo:102
} }
this.chooselist.push(newItem) this.chooselist.push(newItem)
}) })

Loading…
Cancel
Save