|
|
@ -143,10 +143,6 @@ const openForm = (type: string, row?: any) => { |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
console.log(144, formField) |
|
|
|
console.log(145, searchField) |
|
|
|
console.log(146, val) |
|
|
|
console.log(147, formRef) |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
@ -182,7 +178,7 @@ const handleExport = async () => { |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await BusinesstypeApi.exportBusinesstype(setSearchParams) |
|
|
|
download.excel(data, '仓库.xls') |
|
|
|
download.excel(data, '业务类型.xls') |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -197,7 +193,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '仓库导入模版.xls' |
|
|
|
templateTitle: '业务类型导入模版.xls' |
|
|
|
}) |
|
|
|
// 导入成功之后 |
|
|
|
const importSuccess = () => { |
|
|
@ -205,7 +201,8 @@ const importSuccess = () => { |
|
|
|
} |
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(() => { |
|
|
|
onMounted(async() => { |
|
|
|
getList() |
|
|
|
importTemplateData.templateUrl = await BusinesstypeApi.importTemplate() |
|
|
|
}) |
|
|
|
</script> |
|
|
|