1
Jianw
2025-07-09 88e26a2a960dbbc148332772448b79b9877102d8
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
--[[
    编码: WMS-85-21
    名称: 选SKU前
    作者:HAN  
    日期:2025-5-17
 
    级别:固定 (说明本段代码在项目中不太会变化)
    
    函数: BeforeQuerySKU
 
    功能:
        -- 在新增码盘单操作中,弹出界面里需要选择 容器编号,该脚本用来组织弹出容器查询界面前的 action
 
 
    更改记录:
 
--]]
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require("oi_base_mobox")
 
function BeforeQuerySKU ( strLuaDEID ) 
    local nRet, strRetInfo
 
    -- 设置 action 的参数
    local action = {
        {
            action_type = "open_data_query_dlg",
            value = {        
                multi_choice = false,               -- 不多选
                cls_name = "SKU",                   -- 选择的数据类标识
                grid_style = "艾默生-选择面板用",     -- 选择面板中 GridStyle
                condition = "",
                order = "S_ITEM_CODE" 
            }
        }
    }
 
    nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
    if (nRet ~= 0) then 
        lua.Stop( strLuaDEID, strRetInfo )
        return
    end    
end