This commit is contained in:
2025-09-18 09:47:48 +08:00
parent d835e52c69
commit 414db71188
5 changed files with 30 additions and 9 deletions

View File

@@ -13,6 +13,7 @@
placeholder="扫码或输入点位/载具号" placeholder="扫码或输入点位/载具号"
v-model="val1" v-model="val1"
@handleChange="handleChange" @handleChange="handleChange"
@handleDel="handleDel"
/> />
</view> </view>
</view> </view>
@@ -65,6 +66,7 @@
placeholder="扫码或输入点位/载具号" placeholder="扫码或输入点位/载具号"
v-model="val2" v-model="val2"
@handleChange="handleChange2" @handleChange="handleChange2"
@handleDel="handleDel2"
/> />
</view> </view>
</view> </view>
@@ -136,6 +138,12 @@
this.title = options.title this.title = options.title
}, },
methods: { methods: {
handleDel() {
this.dataList = []
},
handleDel2() {
this.dataList2 = []
},
handleChange (e) { handleChange (e) {
if (e) { if (e) {
this.dataList = [] this.dataList = []
@@ -148,6 +156,13 @@
this._getMoveDocumentInfo2() this._getMoveDocumentInfo2()
} }
}, },
clearUp () {
this.val1 = ''
this.val2 = ''
this.dataList = []
this.dataList2 = []
this.disabled = false
},
async _getMoveDocumentInfo () { async _getMoveDocumentInfo () {
try { try {
let res = await getMoveDocumentInfo('1', this.val1, this.mdid) let res = await getMoveDocumentInfo('1', this.val1, this.mdid)

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="zd_container"> <view class="zd_container">
<!-- 大料箱盘库 - 货位盘点 --> <!-- 大料箱盘库 - 货位盘点 -->
<nav-bar :title="title"></nav-bar> <nav-bar :title="title" :inner="true"></nav-bar>
<view class="zd_content"> <view class="zd_content">
<view class="zd_wrapper"> <view class="zd_wrapper">
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -111,8 +111,7 @@
}, },
async _getInvInfoQty () { async _getInvInfoQty () {
let res = await getInvInfoQty(this.val1) let res = await getInvInfoQty(this.val1)
this.materialData.qty1 = res.data.base_qty this.materialData.qty1 = res.data.ivt_qty
this.materialData.fac_qty = res.data.base_qty
}, },
async _materialBoxInventoryConfirm () { async _materialBoxInventoryConfirm () {
this.disabled = true this.disabled = true

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="zd_container"> <view class="zd_container">
<!-- 大料箱出库 - 货位出库 --> <!-- 大料箱出库 - 货位出库 -->
<nav-bar :title="title"></nav-bar> <nav-bar :title="title" :inner="true"></nav-bar>
<view class="zd_content"> <view class="zd_content">
<view class="zd_wrapper"> <view class="zd_wrapper">
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -19,6 +19,7 @@
<view class="zd-col-17"> <view class="zd-col-17">
<search-box <search-box
v-model="val1" v-model="val1"
@handleChange="handleChange"
/> />
</view> </view>
</view> </view>
@@ -119,6 +120,11 @@
this.val2 = '' this.val2 = ''
this.disabled = false this.disabled = false
}, },
handleChange (e) {
if (e) {
this._getInvInfoQty()
}
},
async _getInvInfoQty () { async _getInvInfoQty () {
let res = await getInvInfoQty(this.val1) let res = await getInvInfoQty(this.val1)
this.materialData.qty1 = res.data.ivt_qty this.materialData.qty1 = res.data.ivt_qty

View File

@@ -65,8 +65,8 @@
<td>{{e.supp_code}}</td> <td>{{e.supp_code}}</td>
<td>{{e.supp_name}}</td> <td>{{e.supp_name}}</td>
<td>{{e.material_spec}}</td> <td>{{e.material_spec}}</td>
<td>{{e.material_model}}</td> <td>{{e.material_mode}}</td>
<td>{{e.quality_time_day}}</td> <td>{{e.quality_time}}</td>
<td>{{e.execution_stand}}</td> <td>{{e.execution_stand}}</td>
<td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td> <td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td>
<td>{{e.bake_num}}</td> <td>{{e.bake_num}}</td>

View File

@@ -41,9 +41,9 @@
<td>{{e.material_code}}</td> <td>{{e.material_code}}</td>
<td>{{e.material_name}}</td> <td>{{e.material_name}}</td>
<td>{{e.material_spec}}</td> <td>{{e.material_spec}}</td>
<td>{{e.unit_id}}</td> <td>{{e.material_model}}</td>
<td>{{e.single_weight}}</td> <td>{{e.quality_time}}</td>
<td>{{e.pcsn}}</td> <td>{{e.execution_stand}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -167,6 +167,7 @@
icon: 'none' icon: 'none'
}) })
this.clearUp() this.clearUp()
uni.navigateBack()
} else { } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,