|
|
@ -264,6 +264,7 @@ import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse";
|
|
|
|
import {getLocalBusType, getLocalJoinBusType} from "../../api/basic/busLocalType";
|
|
|
|
import {getLocalBusType, getLocalJoinBusType} from "../../api/basic/busLocalType";
|
|
|
|
import DialogSelectUnit from "./DialogSelectUnit";
|
|
|
|
import DialogSelectUnit from "./DialogSelectUnit";
|
|
|
|
import selectRlDialog from "./DialogSelectRl";
|
|
|
|
import selectRlDialog from "./DialogSelectRl";
|
|
|
|
|
|
|
|
import A from "../../plugin/KeyScaner"
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
const formJson = {
|
|
|
|
corpOrderId: "",
|
|
|
|
corpOrderId: "",
|
|
|
@ -688,6 +689,19 @@ export default {
|
|
|
|
event.preventDefault();
|
|
|
|
event.preventDefault();
|
|
|
|
event.stopPropagation();
|
|
|
|
event.stopPropagation();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var inputer = document.getElementById("inputer");
|
|
|
|
|
|
|
|
window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点
|
|
|
|
|
|
|
|
sc.onInput = function (text) {
|
|
|
|
|
|
|
|
//onInput事件在检测到回车键按下或在连续输入后超过500ms没有继续输入时触发
|
|
|
|
|
|
|
|
inputer.innerText += (text + "\n");
|
|
|
|
|
|
|
|
console.log("--------" + text);
|
|
|
|
|
|
|
|
// this.formData.code =
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
inputer.focus();//别忘了给要监听的节点放置焦点,如果是div一类默认不具备焦点的节点需要给它加上“tabindex”属性。不建议传入document、Body等全局节点,可能会影响其它输入控件的流畅性。
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.formData.code = '';
|
|
|
|
this.formData.code = '';
|
|
|
|