關(guān)于物料條碼生成的實(shí)現(xiàn)
企業(yè)內(nèi)對(duì)管理的物料(產(chǎn)品、零件、材料等)都可能需要對(duì)其進(jìn)行條碼打印。打印條碼后,貼在物料上,后期可以通過條碼槍來識(shí)別該物料。是制造業(yè)企業(yè)內(nèi)部物料流轉(zhuǎn)的重要識(shí)別手段
Mobox數(shù)據(jù)平臺(tái)可以通過數(shù)據(jù)建模來管理各種物料,因此系統(tǒng)提供了一個(gè)物料條碼自定義格式打印的功能點(diǎn)。一下是一個(gè)例子(給一個(gè)產(chǎn)品打條碼)
產(chǎn)品數(shù)據(jù)對(duì)象的條碼定義(界面樣式)
?新建一個(gè)樣式
設(shè)置自由布局json描述
Json 格式1 (2行)
{
“styles”: { “width”: “650px”, “height”: “360px”, “font-size”: “14px”, “text-align”: “center” }, “colgroup”: [ “14%”, “36%”, “14%”, “36%” ], “rowgroup”: [ “70%”, “30%” ], “thead”: [], “tbody”: [ [ { “type”: “text”, “value”: “條碼” }, { “span”: [ 1, 3 ], “type”: “attr-barcode”, “value”: [ { “type”: “attr”, “value”: “S_GDS_CODE” } ], “compose”: true } ], [ { “type”: “text”, “value”: “產(chǎn)品編號(hào)” }, { “type”: “attr”, “value”: “S_GDS_CODE” }, { “type”: “text”, “value”: “產(chǎn)品名稱” }, { “type”: “attr”, “value”: “S_GDS_NAME” } ] ] } |
Json 格式2 (4行)
{
“styles”: { “width”: “650px”, “height”: “360px”, “font-size”: “14px”, “text-align”: “center” }, “colgroup”: [ “14%”, “36%”, “14%”, “36%” ], “rowgroup”: [ “25%”, “25%”, “25%”, “25%” ], “thead”: [], “tbody”: [ [ { “type”: “text”, “value”: “條碼” }, { “span”: [ 1, 3 ], “type”: “attr-barcode”, “value”: [ { “type”: “attr”, “value”: “S_B_CODE” }, { “type”: “text”, “value”: “-” }, { “type”: “attr”, “value”: “S_B_SUPPLIER” } ], “compose”: true } ], [ { “type”: “text”, “value”: “物料編碼” }, { “type”: “attr”, “value”: “S_ITEM_CODE” }, { “type”: “text”, “value”: “物料名稱” }, { “type”: “attr”, “value”: “S_ITEM_NAME” } ], [ { “type”: “text”, “value”: “數(shù)量” }, { “type”: “attr”, “value”: “S_ITEM_CODE” }, { “type”: “text”, “value”: “單位” }, { “type”: “attr”, “value”: “S_ITEM_NAME” } ], [ { “type”: “text”, “value”: “SAP批次號(hào)” }, { “type”: “attr”, “value”: “S_ITEM_CODE” }, { “type”: “text”, “value”: “可追溯批量號(hào)” }, { “type”: “attr”, “value”: “S_ITEM_NAME” } ] ] } |
3000功能點(diǎn)里面的頁(yè)面按鈕定義
為產(chǎn)品維護(hù)的3000功能點(diǎn)里面加入,條碼生成的 頁(yè)面按鈕
設(shè)置頁(yè)面按鈕,綁定條碼
注意,目前版本 支持支持頁(yè)面按鈕 (不支持 行按鈕)
打印條碼