| | |
| | | page: true, |
| | | height: '450px;', |
| | | cellMinWidth: 100, |
| | | cols: [ |
| | | // [ |
| | | // { type: 'numbers' }, |
| | | // { field: 'matnr', title: '商品编码', width: 160 }, |
| | | // { field: 'maktx', title: '商品名称', width: 160 }, |
| | | // { field: 'standby1', title: '供应商编码', width: 160 }, |
| | | // { field: 'threeCode', title: 'BS Code', width: 160 }, |
| | | // { field: 'tag$', title: '物料种类' }, |
| | | // { field: 'anfme', title: '数量' }, |
| | | // { field: 'workQty', title: '作业数量' }, |
| | | // { field: 'qty', title: '完成数量', style: 'font-weight: bold' }, |
| | | // { field: 'specs', title: '规格' } |
| | | // ] |
| | | getCol() |
| | | |
| | | ], |
| | | cols: [[ |
| | | {field: 'matnr', title: '商品编码', width: 160}, |
| | | {field: 'maktx', title: '商品名称', width: 160}, |
| | | {field: 'tag$', align: 'center', title: '零件类型'}, |
| | | {field: 'standby1', title: '供应商编码', width: 120}, |
| | | {field: 'anfme', title: '数量'}, |
| | | {field: 'workQty', title: '作业数量'}, |
| | | {field: 'qty', title: '完成数量', style: 'font-weight: bold'}, |
| | | {field: 'weight', align: 'center',title: '重量', hide: false }, |
| | | {field: 'volume', align: 'center',title: '尺寸', hide: false}, |
| | | {field: 'specs', title: '规格'} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | |
| | | }); |
| | | |
| | | function getCol() { |
| | | var cols = []; |
| | | var cols = [{field: 'locNo$', align: 'center', title: '库位号'},]; |
| | | cols.push.apply(cols, cacheCols); |
| | | return cols; |
| | | } |
| | |
| | | }, |
| | | color: ['#10B4E8', '#E0E0E0', '#FF0000'], |
| | | tooltip: {trigger: 'item'}, |
| | | series: [{name: '数量', type: 'pie', radius: ['75%', '80%'], label: {normal: {show: false}}}] |
| | | series: [{ |
| | | name: '数量', |
| | | type: 'pie', |
| | | radius: ['75%', '80%'], |
| | | label: {normal: {show: false}} |
| | | }] |
| | | }; |
| | | traceCharts.setOption(traceOptions); |
| | | // 赋值 |
| | |
| | | { |
| | | data: [ |
| | | {name: '已作业', value: res.data.wrkQty}, |
| | | {name: '未作业', value: res.data.totalQty-res.data.wrkQty-res.data.lackQty}, |
| | | { |
| | | name: '未作业', |
| | | value: res.data.totalQty - res.data.wrkQty - res.data.lackQty |
| | | }, |
| | | {name: '库存不足', value: res.data.lackQty}, |
| | | ] |
| | | } |