RS2509
jheng 2026-01-16 19:18:07 +08:00
parent 86e5fda2ee
commit 0f05d5f6b4
1 changed files with 25 additions and 21 deletions

View File

@ -8,19 +8,19 @@
<uni-forms ref="form" :model="formData" labelWidth="80px"> <uni-forms ref="form" :model="formData" labelWidth="80px">
<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 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">
<view class='cu-tag bg-blue '> <view class='cu-tag bg-blue '>
库存数量{{billInfo.nowQty}} 库存数量{{billInfo.nowQty}}
</view> </view>
<!-- <view class="cu-tag line-blue"> <!-- <view class="cu-tag line-blue">
{{billInfo.totalSurplusQty}} {{billInfo.totalSurplusQty}}
</view> --> </view> -->
</view>
</view> </view>
</view>
<!-- </view> --> <!-- </view> -->
</uni-forms-item> </uni-forms-item>
<!-- <uni-forms-item label="实际数量" name="actQty"> <!-- <uni-forms-item label="实际数量" name="actQty">
@ -56,6 +56,10 @@
<view class="flex-sub padding-0 margin-xs radius">盘点单据号</view> <view class="flex-sub padding-0 margin-xs radius">盘点单据号</view>
<view class="flex-twice padding-0 margin-xs radius">{{item.invoiceCode}}</view> <view class="flex-twice padding-0 margin-xs radius">{{item.invoiceCode}}</view>
</view> </view>
<view class="flex">
<view class="flex-sub padding-0 margin-xs radius">盘点明细号</view>
<view class="flex-twice padding-0 margin-xs radius">{{item.itemCode}}</view>
</view>
<view class="flex"> <view class="flex">
<view class="flex-sub padding-0 margin-xs radius">托盘号</view> <view class="flex-sub padding-0 margin-xs radius">托盘号</view>
<view class="flex-twice padding-0 margin-xs radius">{{item.palletCode}}</view> <view class="flex-twice padding-0 margin-xs radius">{{item.palletCode}}</view>
@ -130,9 +134,9 @@
return { return {
// //
formData: { formData: {
palletCode: "",// palletCode: "", //
//actQty: "",// //actQty: "",//
details: []// details: [] //
}, },
rules: { rules: {
palletCode: { palletCode: {
@ -156,8 +160,8 @@
}, },
// //
billInfo: { billInfo: {
nowQty: 0,// nowQty: 0, //
checkPltInfos: []// checkPltInfos: [] //
}, },
//table //table
searchVal: '', searchVal: '',
@ -170,7 +174,7 @@
total: 0, total: 0,
loading: false, loading: false,
//tabe //tabe
selectedIndexs:[], selectedIndexs: [],
// //
tableClumns: [{ tableClumns: [{
dataIndex: "itemCode", dataIndex: "itemCode",
@ -326,13 +330,13 @@
// //
formSubmit: function(ref) { formSubmit: function(ref) {
// formaData // formaData
var details = this.getSelectDetail() var details = this.getSelectDetail()
if(details && details.length>0){ if (details && details.length > 0) {
this.$refs.form.validate().then(res => { this.$refs.form.validate().then(res => {
console.log("数据校验通过", res) console.log("数据校验通过", res)
this.formData.details = details this.formData.details = details
inventoryConfirm(this.formData).then(response => { inventoryConfirm(this.formData).then(response => {
console.log("response",response) console.log("response", response)
this.$modal.msgSuccess("盘点确认成功") this.$modal.msgSuccess("盘点确认成功")
}) })
}) })