--[[
|
编码: JX-19-17
|
名称:
|
作者:
|
日期:2025-03-04
|
|
函数: CellChange
|
功能:
|
|
更改记录:
|
|
--]]
|
|
m3 = require("oi_base_mobox")
|
wms_base = require( "wms_base" )
|
wms_wh = require( "wms_wh" )
|
|
function CellChange(strLuaDEID)
|
local nRet, strRetInfo
|
local attrs
|
|
-- 获取表头界面中的输入条码
|
nRet, attrs = m3.GetSysInputParameter(strLuaDEID)
|
if (nRet ~= 0) then
|
mobox.setInfo(strLuaDEID, "获取当前输入面板里的属性失败! " .. attrs)
|
return
|
end
|
|
local input_attr = m3.KeyValueAttrsToObjAttr(attrs)
|
local cell_no = input_attr.S_CELL_NO --料格号
|
local cntr_code = input_attr.S_CNTR_CODE -- 容器号
|
local item_code = input_attr.S_ITEM_CODE -- 物料编码
|
|
|
local action = {}
|
-- 设置主页面物料编码输入框为空
|
action[1] = {
|
action_type = "set_dlg_attr",
|
value = {
|
lua.KeyValueObj("S_ITEM_CODE", "")
|
}
|
}
|
|
action[2] = {
|
action_type = "set_dlg_current_edit_attr",
|
value = "S_ITEM_CODE"
|
}
|
|
-- 执行动作
|
nRet, strRetInfo = mobox.setAction(strLuaDEID, lua.table2str(action))
|
if (nRet ~= 0) then
|
mobox.setInfo(strLuaDEID, "setAction失败! " .. strRetInfo .. ' action = ' .. lua.table2str(action))
|
return
|
end
|
|
|
|
end
|