手持修改

RS2509
jheng 2026-01-22 20:38:04 +08:00
parent 0f05d5f6b4
commit 1b52659752
1 changed files with 13 additions and 2 deletions

View File

@ -9,7 +9,8 @@
<uni-forms-item label="托盘条码" name="palletCode"> <uni-forms-item label="托盘条码" name="palletCode">
<!-- <view class="flex"> --> <!-- <view class="flex"> -->
<view class="flex-twice padding-0 radius"> <view class="flex-twice padding-0 radius">
<uni-easyinput v-model="formData.palletCode" placeholder="请输入或扫描托盘编号" @blur="queryPltInfo" /> <uni-easyinput ref="palletCodeInput" v-model="formData.palletCode" placeholder="请输入或扫描托盘编号"
@blur="queryPltInfo" />
</view> </view>
<view class="flex-sub padding-0 margin-xs radius"> <view class="flex-sub padding-0 margin-xs radius">
<view class="cu-capsule radius" v-if="billInfo.nowQty>0"> <view class="cu-capsule radius" v-if="billInfo.nowQty>0">
@ -160,7 +161,7 @@
}, },
// //
billInfo: { billInfo: {
nowQty: 0, // nowQty: "", //
checkPltInfos: [] // checkPltInfos: [] //
}, },
//table //table
@ -338,6 +339,15 @@
inventoryConfirm(this.formData).then(response => { inventoryConfirm(this.formData).then(response => {
console.log("response", response) console.log("response", response)
this.$modal.msgSuccess("盘点确认成功") this.$modal.msgSuccess("盘点确认成功")
this.formData.palletCode = "";
this.billInfo.checkPltInfos = [];
//
this.$nextTick(() => {
// 1uni-easyinput
if (this.$refs.palletCodeInput) {
this.$refs.palletCodeInput.focus();
}
});
}) })
}) })
} }
@ -374,6 +384,7 @@
console.log("billInfo", billInfo) console.log("billInfo", billInfo)
if (billInfo) { if (billInfo) {
this.billInfo = billInfo.data; this.billInfo = billInfo.data;
this.billInfo.checkPltInfos[0].actQty = null;
}; };
} }
} }