1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| --[[
| 编码: WMS-25-21
| 名称: 入库单明细-新增小窗口-选货品前
| 作者:HAN
| 日期:2025-1-29
|
| 级别:固定 (说明本段代码在项目中不太会变化)
|
| 函数: BeforeSelectItem
|
| 功能:
| 弹出货品查询面板
|
| 更改记录:
|
| --]]
|
| json = require ("json")
| mobox = require ("OILua_JavelinExt")
| m3 = require("oi_base_mobox")
|
| function BeforeSelectItem ( strLuaDEID )
| local nRet, strRetInfo
|
| nRet, run_paramter = m3.GetRuntimeParam(strLuaDEID)
| if (nRet ~= 0) then
| lua.Stop( strLuaDEID, run_paramter )
| return
| end
| local master = run_paramter.master
| if master == nil then
| lua.Stop( strLuaDEID, "系统没有在环境参数中定义master对象信息!" )
| return
| end
|
| lua.DebugEx( strLuaDEID, "run_paramter", run_paramter )
|
| local action = {
| {
| action_type = "open_data_query_dlg",
| value = {
| multi_choice = true,
| cls_name = "SKU",
| grid_style = "basis-选择面板用",
| condition = "",
| order = "S_ITEM_CODE"
| }
| }
| }
| nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
| if (nRet ~= 0) then lua.Error( strLuaDEID, debug.getinfo(1), strRetInfo ) end
| end
|
|