|
|
|
@ -11,21 +11,17 @@ |
|
|
|
type="text" placeholder="请扫描台车编号" :border="true" /> |
|
|
|
type="text" placeholder="请扫描台车编号" :border="true" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="display: flex;line-height: 65rpx;"> |
|
|
|
<view style="display: flex;line-height: 65rpx;"> |
|
|
|
|
|
|
|
|
|
|
|
<text style="font-size: 34rpx;margin-top: 3px;width:78px;">选择物料:</text> |
|
|
|
<text style="font-size: 34rpx;margin-top: 3px;width:78px;">选择物料:</text> |
|
|
|
<select-lay :options="datalist1" style="width: 78%;padding-left: 0.5vh; " smoldName="ptName" |
|
|
|
<select-lay :options="datalist1" style="width: 78%;padding-left: 0.5vh; " smoldName="ptName" |
|
|
|
slabel="ptDesc" smodel="ptName" name="name3" svalue="id" @selectitem="queryList" |
|
|
|
slabel="ptDesc" smodel="ptName" name="name3" svalue="id" @selectitem="queryList" |
|
|
|
:value="dataForm.ptName" placeholder="请选择物料编码"> </select-lay> |
|
|
|
:value="dataForm.ptName" placeholder="请选择物料编码"> </select-lay> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;line-height: 5vh; margin-top: 2.5vh;"> |
|
|
|
<view style="display: flex;line-height: 5vh; margin-top: 2.5vh;"> |
|
|
|
<text style="font-size: 34rpx;">入库数量:</text><input |
|
|
|
<text style="font-size: 34rpx;">入库数量:</text><input |
|
|
|
style="width: 72%; text-align: left;padding-left: 15rpx;" v-model="dataForm.rerpQty" |
|
|
|
style="width: 72%; text-align: left;padding-left: 15rpx;" v-model="dataForm.rerpQty" |
|
|
|
class="barNo" type="text" placeholder="请输入入库数量" :border="true" /> |
|
|
|
class="barNo" type="text" placeholder="请输入入库数量" :border="true" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<u-button @click="handleAdd()" class="golists"><text>加入列表</text> </u-button> |
|
|
|
<u-button @click="handleAdd()" class="golists"><text>加入列表</text> </u-button> |
|
|
|
</u-form> |
|
|
|
</u-form> |
|
|
|
<!-- @input="inputQuery()" --> |
|
|
|
<!-- @input="inputQuery()" --> |
|
|
|
@ -247,7 +243,6 @@ |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
//下拉框 |
|
|
|
//下拉框 |
|
|
|
queryList(index, item) { |
|
|
|
queryList(index, item) { |
|
|
|
// console.log(item.ptPart); |
|
|
|
|
|
|
|
this.dataForm.ptPart = item.ptPart |
|
|
|
this.dataForm.ptPart = item.ptPart |
|
|
|
this.dataForm.ptName = item.ptName |
|
|
|
this.dataForm.ptName = item.ptName |
|
|
|
this.dataForm.ptDesc = item.ptDesc |
|
|
|
this.dataForm.ptDesc = item.ptDesc |
|
|
|
@ -365,20 +360,17 @@ |
|
|
|
}, 500) |
|
|
|
}, 500) |
|
|
|
|
|
|
|
|
|
|
|
}, 400) |
|
|
|
}, 400) |
|
|
|
// console.log(this.$refs); |
|
|
|
|
|
|
|
// this.$refs.input='' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//延时关闭 |
|
|
|
//延时关闭 |
|
|
|
confirm() { |
|
|
|
confirm() { |
|
|
|
// this.pickUpObj.containerCode=this.containerCode |
|
|
|
|
|
|
|
console.log(JSON.stringify(this.dataList)); |
|
|
|
console.log(JSON.stringify(this.dataList)); |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
|
|
|
|
this.$u.api.saveInPlanAndItemIn(this.dataList).then(res => { |
|
|
|
this.$u.api.saveInPlanAndItemIn(this.dataList).then(res => { |
|
|
|
if (res.code == '200') { |
|
|
|
if (res.code == '200') { |
|
|
|
// this.$u.toast("入库完成"); |
|
|
|
|
|
|
|
this.$u.toast("入库已完成,请重新扫描"); |
|
|
|
this.$u.toast("入库已完成,请重新扫描"); |
|
|
|
this.dataForm = {}, |
|
|
|
this.dataForm = {}, |
|
|
|
this.dataList = [], |
|
|
|
this.dataList = [], |
|
|
|
@ -388,10 +380,6 @@ |
|
|
|
}, 500) |
|
|
|
}, 500) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
// setTimeout(()=>{ |
|
|
|
|
|
|
|
// this.$router.go(0) |
|
|
|
|
|
|
|
// },800) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 3秒后自动关闭 |
|
|
|
// 3秒后自动关闭 |
|
|
|
this.show = false; |
|
|
|
this.show = false; |
|
|
|
|
|
|
|
|
|
|
|
|