From 9e346bda123bba64e6eeebe0dff503bf84658af2 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 19 二月 2025 15:06:29 +0800 Subject: [PATCH] 1.生产报工优化 2.PDA样式调整 3.返回按钮取消 4.检验标识样式调整 --- H5/Js/Scbg.js | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 48 insertions(+), 2 deletions(-) diff --git a/H5/Js/Scbg.js b/H5/Js/Scbg.js index 1704dd3..b12a9e1 100644 --- a/H5/Js/Scbg.js +++ b/H5/Js/Scbg.js @@ -80,6 +80,7 @@ if (staf.length > 0) { this.stafName = staf[0].staffName; this.stafId = staf[0].staffNo; + this.$refs.barcode.focus(); } else { this.$toast("鏈壘鍒板尮閰嶇殑 staffName"); } @@ -87,9 +88,51 @@ //this.$toast(item.name); }, - getBarcode(value) { + getStaff() { - this.barcode = value; + var that = this; + that.isLoading = true; + that.AxiosHttp("post", 'MesStaff/GetList', { + //name: that.userInfo.loginAccount, + }, false) + .then(function (res) { + var json = res; + if (json.status == 0) { + that.actions = json.data.tbBillList.map(item => { + return { name: item.staffName } + }); + + that.stafList = json.data.tbBillList; + } + else { + that.$toast.fail(json.message); + } + that.isLoading = false; + }) + .catch(function (error) { + that.isLoading = false; + that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + console.log(error); + }); + // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧� + // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧� + + let staf = that.stafList.filter(it => it.staffNo === that.stafId); + + if (staf.length > 0) { + that.stafName = staf[0].staffName; + that.stafId = staf[0].staffNo; + that.$refs.barcode.focus(); + } else { + that.$toast("鏈壘鍒板尮閰嶇殑 鐢ㄦ埛鍚嶇О"); + } + //this.GetMesItemBlDetailByBillNo(); + //this.$toast(item.name); + + }, + getBarcode() { + + //this.barcode = value; var that = this; @@ -129,10 +172,13 @@ that.itemName = entity.itemName; //鐗╂枡鍚嶇О that.itemModel = entity.itemModel; //鐗╂枡鍨嬪彿 that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); + that.$refs.barcode.focus(); that.barcode = null; } else { that.$toast.fail(json.message); + that.$refs.barcode.focus(); + that.barcode = null; } that.isLoading = false; }) -- Gitblit v1.9.3