| | |
| | | }); |
| | | } |
| | | useProdRoute.setItemCode(itemCode); |
| | | useProdRoute.setname(itemCode); |
| | | if (useProdRoute.curProdRotTree.some((q) => q.name == itemCode)) { |
| | | data.treeData = useProdRoute.curProdRotTree.filter((q) => q.name == itemCode)[0].treeInfo; |
| | | } |
| | |
| | | { name: 'auditadd', icon: 'search|svg' }, |
| | | { name: 'printadd', icon: 'search|svg' }, |
| | | { name: 'pkgadd', icon: 'search|svg' }, |
| | | { name: 'labeladd', icon: 'search|svg' }, |
| | | { name: 'labeladd', icon: 'template|svg' }, |
| | | ]; |
| | | }, |
| | | /** |
| | |
| | | label: '删除', |
| | | handler: () => { |
| | | console.log('点击了删除', node); |
| | | DeleteProdRoute({ rotId: node.id, rotCode: node.code, prodCode: args[1] }).then( |
| | | DeleteProdRoute({ rotId: node.id, rotCode: node.code, prodCode: args[1], custCode: node.cust }).then( |
| | | (action) => { |
| | | if (action.IsSuccessed) { |
| | | emit('deletenode', node); |