手持修改
parent
0f05d5f6b4
commit
1b52659752
|
|
@ -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(() => {
|
||||||
|
// 方式1:兼容uni-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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue