| | |
| | | return [[ |
| | | {type: 'checkbox'}, |
| | | {field: 'id', hide: true, title: '主键id'}, |
| | | {field: 'salesOrderCode', sort: true, title: '订单编号',width: 160}, |
| | | {field: 'salesOrderCode', sort: true, title: '订单编号',width: 160, templet: '#scoreTpl'}, |
| | | {field: 'customerNo', sort: true, title: '客户编号',width: 120}, |
| | | {field: 'cargoNo', sort: true, title: '货号',width: 120}, |
| | | {field: 'productCode', sort: true, title: '产品编号',width: 160}, |
| | |
| | | Feng.error("已拆分下发订单禁止重复拆分"); |
| | | return; |
| | | } |
| | | // if (checkRows.data.state !== "1") { |
| | | // Feng.error("已拆分下发订单禁止重复拆分"); |
| | | // return; |
| | | // } |
| | | // window.location.href = Feng.ctxPath + '/salesOrder/split?id=' + checkRows.data[0].id |
| | | |
| | | }); |
| | | |
| | | /** |
| | |
| | | */ |
| | | SalesOrder.jumpEditPage = function (data) { |
| | | window.location.href = Feng.ctxPath + '/salesOrder/edit?id=' + data.id |
| | | }; |
| | | |
| | | SalesOrder.distributeDetails = function (data) { |
| | | layer.open({ |
| | | type: 2, |
| | | area: ['1000px', '600px'], |
| | | title: '拆分详情', |
| | | content: Feng.ctxPath + '/salesOrder/distributeDetails', |
| | | success: function (layero, index) { |
| | | window.salesOrderCode = data; |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | |
| | | */ |
| | | SalesOrder.distribute = function (data) { |
| | | layer.alert(data); |
| | | |
| | | }; |
| | | |
| | | /** |
| | |
| | | SalesOrder.jumpEditPage(data); |
| | | } else if (layEvent === 'delete') { |
| | | SalesOrder.onDeleteItem(data); |
| | | } else if (layEvent === 'clickScore') { |
| | | SalesOrder.distributeDetails(data.salesOrderCode); |
| | | } |
| | | }); |
| | | }); |