| | |
| | | title: '', |
| | | }) |
| | | |
| | | const dialogChangeToPlaceConfig = reactive({ |
| | | visible: false, |
| | | title: '', |
| | | isAdd: false, |
| | | }) |
| | | /** |
| | | * 分页数据 |
| | | */ |
| | |
| | | sort.value = row.sort |
| | | } |
| | | |
| | | const openChangToPlace = (row: any) => { |
| | | current.value = row |
| | | dialogChangeToPlaceConfig.visible = true |
| | | dialogChangeToPlaceConfig.title = '修改目标库位' |
| | | dialogChangeToPlaceConfig.isAdd = false |
| | | console.log('row', row) |
| | | } |
| | | |
| | | const contextMenu = [ |
| | | { |
| | | label: '展开详情', |
| | |
| | | divided: true, |
| | | icon: 'o', |
| | | }, |
| | | // { |
| | | // label: '向上添加', |
| | | // fn: (c: CurrentType, pageNum: number) => { |
| | | // current.value = null |
| | | // sort.value = c.index + 1 + (pageNum - 1) * 50 |
| | | // dialogConfig.visible = true |
| | | // dialogConfig.title = '添加' |
| | | // dialogConfig.isAdd = false |
| | | // }, |
| | | // divided: true, |
| | | // icon: 'up', |
| | | // }, |
| | | { |
| | | label: '修改目标库位', |
| | | fn: (c: CurrentType) => { |
| | | current.value = null |
| | | sort.value = c.row.sort |
| | | nextTick(() => openChangToPlace(c.row)) |
| | | }, |
| | | divided: true, |
| | | icon: 'up', |
| | | }, |
| | | { |
| | | label: '强制完成', |
| | | fn: async (c: CurrentType) => { |
| | |
| | | dialogConfig, |
| | | dialogConfigForQuery, |
| | | dialogSettingConfig, |
| | | dialogChangeToPlaceConfig, |
| | | tableRef, |
| | | current, |
| | | search, |
| | |
| | | onError, |
| | | onSuccess, |
| | | openDetail, |
| | | openChangToPlace, |
| | | onSearch, |
| | | onExport, |
| | | onRowClick, |