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
| --[[
| 编码: WMS-16-12
| 名称: 盘点计划-点击后
| 作者:HAN
| 日期:2025-1-29
| 级别:项目型
|
| 函数: AfterClick
|
| 功能:
| 点击【盘点计划】后根据盘点类型来显示子表的页签
| --]]
| wms_base = require( "wms_base" )
|
| function AfterClick ( strLuaDEID )
| local nRet, strRetInfo
| local count_type
| local hidden_page
|
| -- 获取 盘点计类型
| nRet, count_type = m3.GetSysCurEditDataOneAttr( strLuaDEID, "S_TYPE" )
| if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "GetSysCurEditDataOneAttr失败! "..wh_code ) end
|
| if ( count_type == "货品盘点") then
| hidden_page = '["盘点货位"]'
| else
| hidden_page = '["盘点货物"]'
| end
|
| local strAction = '[{"action_type":"hidden_page_tab","value":'..hidden_page..'}]'
| nRet, strRetInfo = mobox.setAction( strLuaDEID, strAction )
| if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end
|
| end
|
|