diff --git a/src/views/inventory/InvProductPlaceModify.vue b/src/views/inventory/InvProductPlaceModify.vue index 14193e9f..00dbf768 100644 --- a/src/views/inventory/InvProductPlaceModify.vue +++ b/src/views/inventory/InvProductPlaceModify.vue @@ -35,35 +35,48 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + @@ -208,8 +221,8 @@ export default { return; } if (this.list.length === 0) { - //this.$message.error(this.formData.invSpaceCode); - this.$message.error("请录入需要上架的物资数据"); + this.$message.error(this.formData.invSpaceCode); + //this.$message.error("请录入需要上架的物资数据"); return; } this.$confirm("是否确认保存当前数据?", "提示", { @@ -317,6 +330,9 @@ export default { invProduct.invSpaceCode = item.code; invProduct.invSpaceName = item.name; }); + },clearSpaceInput() { + this.formData.invSpaceName = null; // 清空 formData.invSpaceName 的值 + this.$message.error(this.formData.invSpaceName); }, getInvList() { getInvListByUser() @@ -427,6 +443,7 @@ export default { inputer.focus();//别忘了给要监听的节点放置焦点,如果是div一类默认不具备焦点的节点需要给它加上“tabindex”属性。不建议传入document、Body等全局节点,可能会影响其它输入控件的流畅性。 }, + };