| | |
| | | |
| | | function getMatCols() { |
| | | return [ |
| | | {field: 'matnr', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('商品编号_品号') : '商品编号(品号)', width: 180} |
| | | {field: 'matnr', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('商品编号_品号') : '商品编号(品号)', width: 180} |
| | | // {field: 'id', align: 'center',title: 'ID'} |
| | | // ,{field: 'uuid', align: 'center',title: '编号'} |
| | | // ,{field: 'tagId$', align: 'center',title: '所属归类'} |
| | | ,{field: 'maktx', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('商品名称_品名') : '商品名称(品名)', width: 200} |
| | | ,{field: 'maktx', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('商品名称_品名') : '商品名称(品名)', width: 200} |
| | | // ,{field: 'name', align: 'center',title: '别名'} |
| | | ,{field: 'specs', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('规格') : '规格'} |
| | | ,{field: 'model', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('代码') : '代码', hide: true} |
| | | ,{field: 'color', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('颜色') : '颜色', hide: true} |
| | | ,{field: 'brand', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('品牌') : '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单位') : '单位', hide: false} |
| | | ,{field: 'price', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单价') : '单价', hide: true} |
| | | ,{field: 'sku', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('sku') : 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单位量') : '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('条码') : '条码', hide: true} |
| | | ,{field: 'origin', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('产地') : '产地', hide: true} |
| | | ,{field: 'manu', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('厂家') : '厂家', hide: true} |
| | | ,{field: 'manuDate', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('生产日期') : '生产日期', hide: true} |
| | | ,{field: 'itemNum', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('品项数') : '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('安全库存量') : '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单箱净重') : '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单箱毛重') : '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单箱体积') : '单箱体积', hide: true} |
| | | ,{field: 'threeCode', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('箱子尺寸') : '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('供应商') : '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('供应商编码') : '供应商编码', hide: true} |
| | | ,{field: 'beBatch$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('是否批次') : '是否批次', hide: true} |
| | | ,{field: 'deadTime', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('保质期') : '保质期', hide: true} |
| | | ,{field: 'deadWarn', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('预警天数') : '预警天数', hide: true} |
| | | ,{field: 'source$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('制购') : '制购', hide: true} |
| | | ,{field: 'check$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('要求检验') : '要求检验', hide: true} |
| | | ,{field: 'danger$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('危险品') : '危险品', hide: true} |
| | | ,{field: 'specs', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('规格') : '规格'} |
| | | ,{field: 'model', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('代码') : '代码', hide: true} |
| | | ,{field: 'color', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('颜色') : '颜色', hide: true} |
| | | ,{field: 'brand', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('品牌') : '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单位') : '单位', hide: false} |
| | | ,{field: 'price', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单价') : '单价', hide: true} |
| | | ,{field: 'sku', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('sku') : 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单位量') : '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('条码') : '条码', hide: true} |
| | | ,{field: 'origin', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('产地') : '产地', hide: true} |
| | | ,{field: 'manu', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('厂家') : '厂家', hide: true} |
| | | ,{field: 'manuDate', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('生产日期') : '生产日期', hide: true} |
| | | ,{field: 'itemNum', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('品项数') : '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('安全库存量') : '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单箱净重') : '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单箱毛重') : '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单箱体积') : '单箱体积', hide: true} |
| | | ,{field: 'threeCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('箱子尺寸') : '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('供应商') : '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('供应商编码') : '供应商编码', hide: true} |
| | | ,{field: 'beBatch$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('是否批次') : '是否批次', hide: true} |
| | | ,{field: 'deadTime', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('保质期') : '保质期', hide: true} |
| | | ,{field: 'deadWarn', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('预警天数') : '预警天数', hide: true} |
| | | ,{field: 'source$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('制购') : '制购', hide: true} |
| | | ,{field: 'check$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('要求检验') : '要求检验', hide: true} |
| | | ,{field: 'danger$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('危险品') : '危险品', hide: true} |
| | | // ,{field: 'status$', align: 'center',title: '状态'} |
| | | // ,{field: 'createBy$', align: 'center',title: '添加人员'} |
| | | // ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | ,{field: 'updateBy$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('修改人员') : '修改人员', hide: true} |
| | | ,{field: 'updateTime$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('修改时间') : '修改时间', hide: true} |
| | | ,{field: 'memo', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('备注') : '备注', hide: true} |
| | | ,{field: 'updateBy$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('修改人员') : '修改人员', hide: true} |
| | | ,{field: 'updateTime$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('修改时间') : '修改时间', hide: true} |
| | | ,{field: 'memo', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('备注') : '备注', hide: true} |
| | | ]; |
| | | } |
| | | var matCols = getMatCols(); |
| | | |
| | | function getDetlCols() { |
| | | return [ |
| | | {field: 'matnr', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('商品编号_品号') : '商品编号(品号)', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('商品名称_品名') : '商品名称(品名)', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单据编号') : '单据编号', hide: false} |
| | | ,{field: 'batch', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('批号') : '批号', sort:true} |
| | | ,{field: 'anfme', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('数量') : '数量', hide: false} |
| | | ,{field: 'zpallet', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('托盘条码') : '托盘条码', hide: false} |
| | | {field: 'matnr', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('商品编号_品号') : '商品编号(品号)', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('商品名称_品名') : '商品名称(品名)', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单据编号') : '单据编号', hide: false} |
| | | ,{field: 'batch', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('批号') : '批号', sort:true} |
| | | ,{field: 'anfme', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('数量') : '数量', hide: false} |
| | | ,{field: 'zpallet', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('托盘条码') : '托盘条码', hide: false} |
| | | |
| | | ,{field: 'specs', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('规格') : '规格', hide: false} |
| | | ,{field: 'model', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('代码') : '代码', hide: true} |
| | | ,{field: 'color', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('颜色') : '颜色', hide: true} |
| | | ,{field: 'brand', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('品牌') : '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单位') : '单位', hide: false} |
| | | ,{field: 'price', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单价') : '单价', hide: true} |
| | | ,{field: 'sku', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('sku') : 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单位量') : '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('条码') : '条码', hide: true} |
| | | ,{field: 'origin', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('产地') : '产地', hide: true} |
| | | ,{field: 'manu', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('厂家') : '厂家', hide: true} |
| | | ,{field: 'manuDate', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('生产日期') : '生产日期', hide: true} |
| | | ,{field: 'itemNum', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('品项数') : '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('安全库存量') : '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单箱净重') : '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单箱毛重') : '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('单箱体积') : '单箱体积', hide: true} |
| | | ,{field: 'threeCode', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('箱子尺寸') : '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('供应商') : '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('供应商编码') : '供应商编码', hide: true} |
| | | ,{field: 'beBatch$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('是否批次') : '是否批次', hide: true} |
| | | ,{field: 'deadTime', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('保质期') : '保质期', hide: true} |
| | | ,{field: 'deadWarn', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('预警天数') : '预警天数', hide: true} |
| | | ,{field: 'source$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('制购') : '制购', hide: true} |
| | | ,{field: 'check$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('要求检验') : '要求检验', hide: true} |
| | | ,{field: 'danger$', align: 'center',title: typeof I18n !== 'undefined' ? I18n.t('危险品') : '危险品', hide: true} |
| | | ,{field: 'specs', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('规格') : '规格', hide: false} |
| | | ,{field: 'model', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('代码') : '代码', hide: true} |
| | | ,{field: 'color', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('颜色') : '颜色', hide: true} |
| | | ,{field: 'brand', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('品牌') : '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单位') : '单位', hide: false} |
| | | ,{field: 'price', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单价') : '单价', hide: true} |
| | | ,{field: 'sku', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('sku') : 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单位量') : '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('条码') : '条码', hide: true} |
| | | ,{field: 'origin', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('产地') : '产地', hide: true} |
| | | ,{field: 'manu', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('厂家') : '厂家', hide: true} |
| | | ,{field: 'manuDate', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('生产日期') : '生产日期', hide: true} |
| | | ,{field: 'itemNum', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('品项数') : '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('安全库存量') : '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单箱净重') : '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单箱毛重') : '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('单箱体积') : '单箱体积', hide: true} |
| | | ,{field: 'threeCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('箱子尺寸') : '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('供应商') : '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('供应商编码') : '供应商编码', hide: true} |
| | | ,{field: 'beBatch$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('是否批次') : '是否批次', hide: true} |
| | | ,{field: 'deadTime', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('保质期') : '保质期', hide: true} |
| | | ,{field: 'deadWarn', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('预警天数') : '预警天数', hide: true} |
| | | ,{field: 'source$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('制购') : '制购', hide: true} |
| | | ,{field: 'check$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('要求检验') : '要求检验', hide: true} |
| | | ,{field: 'danger$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('危险品') : '危险品', hide: true} |
| | | ]; |
| | | } |
| | | var detlCols = getDetlCols(); |