| | |
| | | const getTableRow = (row,type) =>{ |
| | | switch (type) { |
| | | case 'edit' :{ |
| | | alert('我接收到子组件传送的编辑信息') |
| | | // router.push({path: '/main/productStock/OrderAllocation', query: { id: row.id }}) |
| | | alert('调拨成功后,跳转回库存查询页面') |
| | | router.push({path: '/main/productStock/ProductStockList'}); |
| | | return; |
| | | break |
| | | } |
| | | case 'back':{ |
| | | router.push({path: '/main/productStock/FinishedProductRework', query: { id: row.id }}) |
| | | return; |
| | | break |
| | | } |
| | | case 'out' :{ |
| | | //alert('我接收到子组件传送的编辑信息') |
| | | router.push({path: '/main/productStock/FinishedGoodsIssue', query: { id: row.id }}) |
| | | return; |
| | | break |
| | | } |
| | | } |
| | |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {'name': '确认调拨',status: 'primary','code':'edit'}, |
| | | {'name': '调拨记录'} |
| | | {'name': '调拨记录','code':'record'} |
| | | ], |
| | | import: false, |
| | | export: true, |
| | |
| | | if($grid){ |
| | | switch (code){ |
| | | case 'edit':{ |
| | | alert('我接收到子组件传送的编辑信息') |
| | | // router.push({path: '/main/productStock/OrderAllocation'}); |
| | | // return; |
| | | alert('调拨成功后,跳转回库存查询页面') |
| | | router.push({path: '/main/productStock/ProductStockList'}); |
| | | return; |
| | | break |
| | | } |
| | | case 'out':{ |
| | | router.push({path: '/main/productStock/FinishedGoodsIssue'}); |
| | | case 'record':{ |
| | | router.push({path: '/main/productStock/TransferRecord'}); |
| | | return; |
| | | break; |
| | | } |
| | |
| | | > |
| | | <!-- @toolbar-button-click="toolbarButtonClickEvent"--> |
| | | <!-- 下拉显示所有信息插槽--> |
| | | <template #content="{ row}"> |
| | | <template #content="{ row }"> |
| | | <ul class="expand-wrapper"> |
| | | <li v-for="(item,key,index) in row"> |
| | | <span style="font-weight: bold">{{key+': '}}</span> |
| | | <span>{{ item }}</span> |
| | | <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined "> |
| | | <span style="font-weight: bold">{{item.title+': '}}</span> |
| | | <span>{{ row[item.field] }}</span> |
| | | </li> |
| | | </ul> |
| | | </template> |