| | |
| | | isAdd: false, |
| | | }) |
| | | |
| | | const dialogConfigForQuery = reactive({ |
| | | visible: false, |
| | | title: '', |
| | | isAdd: false, |
| | | }) |
| | | |
| | | const dialogSettingConfig = reactive({ |
| | | visible: false, |
| | | title: '', |
| | |
| | | dialogConfig.title = row.name |
| | | dialogConfig.isAdd = false |
| | | sort.value = row.sort |
| | | } |
| | | |
| | | //点击按钮【高级查询】 |
| | | const onAdvancedQuery = () => { |
| | | const params = tableRef.value?.getPaginationParams() |
| | | current.value = null |
| | | dialogConfigForQuery.visible = true |
| | | dialogConfigForQuery.isAdd = true |
| | | dialogConfigForQuery.title = '高级查询' |
| | | } |
| | | |
| | | const contextMenu = [ |
| | |
| | | /** |
| | | * 导出 |
| | | */ |
| | | const onExport = () => { |
| | | const params = tableRef.value?.getParams() |
| | | exportFile( |
| | | '/api/v1/HIAWms/wmsMaterialStock/export', |
| | | params, |
| | | 'wmsMaterialStock' |
| | | ) |
| | | const onExport = (data = {}) => { |
| | | // const params = tableRef.value?.getParams() |
| | | // exportFile( |
| | | // '/api/v1/HIAWms/wmsMaterialStock/export', |
| | | // params, |
| | | // 'wmsMaterialStock' |
| | | |
| | | exportFile('/api/v1/HIAWms/wmsMaterialStock/export', data, 'HIAWms') |
| | | // ) |
| | | } |
| | | |
| | | /** |
| | |
| | | sort, |
| | | wmsMaterialStockColumns, |
| | | paginationParams, |
| | | dialogConfigForQuery, |
| | | headers, |
| | | onBeforeUpload, |
| | | onError, |
| | |
| | | onConfirmWmsMaterialStock, |
| | | onCheck, |
| | | onAddWmsMaterialStock, |
| | | onAdvancedQuery, |
| | | } |
| | | } |