關于物料條碼生成的實現
企業內對管理的物料(產品、零件、材料等)都可能需要對其進行條碼打印。打印條碼后,貼在物料上,后期可以通過條碼槍來識別該物料。是制造業企業內部物料流轉的重要識別手段
Mobox數據平臺可以通過數據建模來管理各種物料,因此系統提供了一個物料條碼自定義格式打印的功能點。一下是一個例子(給一個產品打條碼)
產品數據對象的條碼定義(界面樣式)
?新建一個樣式
設置自由布局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”: “產品編號” }, { “type”: “attr”, “value”: “S_GDS_CODE” }, { “type”: “text”, “value”: “產品名稱” }, { “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”: “數量” }, { “type”: “attr”, “value”: “S_ITEM_CODE” }, { “type”: “text”, “value”: “單位” }, { “type”: “attr”, “value”: “S_ITEM_NAME” } ], [ { “type”: “text”, “value”: “SAP批次號” }, { “type”: “attr”, “value”: “S_ITEM_CODE” }, { “type”: “text”, “value”: “可追溯批量號” }, { “type”: “attr”, “value”: “S_ITEM_NAME” } ] ] } |
3000功能點里面的頁面按鈕定義
為產品維護的3000功能點里面加入,條碼生成的 頁面按鈕
設置頁面按鈕,綁定條碼
注意,目前版本 支持支持頁面按鈕 (不支持 行按鈕)
打印條碼