Browse Source

BUG修改

master
yejiaxing 10 months ago
parent
commit
2f1a3399c9
  1. 4
      src/views/eam/basic/deviceMoldItems/index.vue
  2. 346
      src/views/eam/basic/factoryArea/index.vue
  3. 6
      src/views/eam/basic/item/index.vue
  4. 8
      src/views/eam/basic/location/index.vue
  5. 372
      src/views/eam/basic/locationArea/index.vue
  6. 6
      src/views/eam/basic/supplier/index.vue
  7. 4
      src/views/eam/fixedAssets/index.vue

4
src/views/eam/basic/deviceMoldItems/index.vue

@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:deviceMoldItems:update'}), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:deviceMoldItems:delete'}), // defaultButtons.mainListDeleteBtn(null), //
] ]
// - // -

346
src/views/eam/basic/factoryArea/index.vue

@ -4,29 +4,16 @@
<Search :schema="FactoryArea.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> <Search :schema="FactoryArea.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
<TableHead <TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" :routeName="routeName"
:HeadButttondata="HeadButttondata" @updataTableColumns="updataTableColumns" @searchFormClick="searchFormClick" :allSchemas="FactoryArea.allSchemas" />
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="FactoryArea.allSchemas"
/>
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<Table <Table :columns="tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total total: tableObject.total
}" }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:pageSize="tableObject.pageSize" v-model:sort="tableObject.sort">
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}"> <template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span> <span>{{ row.code }}</span>
@ -39,16 +26,9 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm ref="basicFormRef" @success="formsSuccess" :rules="FactoryAreaRules"
ref="basicFormRef" :formAllSchemas="FactoryArea.allSchemas" :apiUpdate="FactoryAreaApi.updateFactoryArea"
@success="formsSuccess" :apiCreate="FactoryAreaApi.createFactoryArea" @searchTableSuccess="searchTableSuccess" :isBusiness="false" />
:rules="FactoryAreaRules"
:formAllSchemas="FactoryArea.allSchemas"
:apiUpdate="FactoryAreaApi.updateFactoryArea"
:apiCreate="FactoryAreaApi.createFactoryArea"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="FactoryArea.allSchemas" /> <Detail ref="detailRef" :isBasic="true" :allSchemas="FactoryArea.allSchemas" />
@ -57,169 +37,169 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { FactoryArea,FactoryAreaRules } from './factoryArea.data' import { FactoryArea, FactoryAreaRules } from './factoryArea.data'
import * as FactoryAreaApi from '@/api/eam/basic/factoryArea' import * as FactoryAreaApi from '@/api/eam/basic/factoryArea'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'FactoryArea' }) defineOptions({ name: 'FactoryArea' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(FactoryArea.allSchemas.tableColumns) const tableColumns = ref(FactoryArea.allSchemas.tableColumns)
// //
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
})
}
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({
getListApi: FactoryAreaApi.getFactoryAreaPage //
}) })
}
//
// const { getList, setSearchParams } = tableMethods
const updataTableColumns = (val) => {
tableColumns.value = val //
} const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
const { tableObject, tableMethods } = useTable({ defaultButtons.defaultImportBtn(null), //
getListApi: FactoryAreaApi.getFactoryAreaPage // defaultButtons.defaultExportBtn(null), //
}) defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
// defaultButtons.defaultSetBtn(null), //
const { getList, setSearchParams } = tableMethods // {
// label: '',
// // name: 'zdy',
const HeadButttondata = [ // hide: false,
defaultButtons.defaultAddBtn(null), // // type: 'primary',
defaultButtons.defaultImportBtn(null), // // icon: 'Select',
defaultButtons.defaultExportBtn(null), // // color: ''
defaultButtons.defaultFreshBtn(null), // // },
defaultButtons.defaultFilterBtn(null), // ]
defaultButtons.defaultSetBtn(null), //
// { //
// label: '', const buttonBaseClick = (val, item) => {
// name: 'zdy', if (val == 'add') { //
// hide: false, openForm('create')
// type: 'primary', } else if (val == 'export') { //
// icon: 'Select', handleExport()
// color: '' } else if (val == 'refresh') { //
// }, getList()
] } else if (val == 'filtrate') { //
} else { //
// console.log('其他按钮', item)
const buttonBaseClick = (val, item) => { }
if (val == 'add') { //
openForm('create')
}else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
} }
}
// -
// - const butttondata = [
const butttondata = [ defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListEditBtn(null), // defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListDeleteBtn(null), // ]
]
// -
// - const buttonTableClick = async (val, row) => {
const buttonTableClick = async (val, row) => { if (val == 'edit') { //
if (val == 'edit') { // console.log(row)
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type : string, row ?: any) => {
basicFormRef.value.open(type, row)
} }
}
// form
/** 添加/修改操作 */ const formsSuccess = async (formType, data) => {
const basicFormRef = ref() var isHave = FactoryArea.allSchemas.formSchema.some(function (item) {
const openForm = (type: string, row?: any) => { return item.field === 'activeTime' || item.field === 'expireTime';
basicFormRef.value.open(type, row) });
} if (isHave) {
if (data.activeTime && data.expireTime && data.activeTime >= data.expireTime) {
// form message.error('失效时间要大于生效时间')
const formsSuccess = async (formType,data) => { return;
var isHave =FactoryArea.allSchemas.formSchema.some(function (item) { }
return item.field === 'activeTime' || item.field === 'expireTime'; }
}); if (data.activeTime == 0) data.activeTime = null;
if(isHave){ if (data.expireTime == 0) data.expireTime = null;
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){ if (formType === 'create') {
message.error('失效时间要大于生效时间') await FactoryAreaApi.createFactoryArea(data)
return; message.success(t('common.createSuccess'))
} else {
await FactoryAreaApi.updateFactoryArea(data)
message.success(t('common.updateSuccess'))
} }
basicFormRef.value.dialogVisible = false
getList()
} }
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null; /** 详情操作 */
if (formType === 'create') { const detailRef = ref()
await FactoryAreaApi.createFactoryArea(data) const openDetail = (row : any, titleName : any, titleValue : any) => {
message.success(t('common.createSuccess')) detailRef.value.openDetail(row, titleName, titleValue, 'basicFactoryArea')
} else {
await FactoryAreaApi.updateFactoryArea(data)
message.success(t('common.updateSuccess'))
} }
basicFormRef.value.dialogVisible = false
getList() /** 删除按钮操作 */
} const handleDelete = async (id : number) => {
try {
/** 详情操作 */ //
const detailRef = ref() await message.delConfirm()
const openDetail = (row: any, titleName: any, titleValue: any) => { //
detailRef.value.openDetail(row, titleName, titleValue, 'basicFactoryArea') await FactoryAreaApi.deleteFactoryArea(id)
} message.success(t('common.delSuccess'))
//
/** 删除按钮操作 */ await getList()
const handleDelete = async (id: number) => { } catch { }
try {
//
await message.delConfirm()
//
await FactoryAreaApi.deleteFactoryArea(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await FactoryAreaApi.exportFactoryArea(tableObject.params)
download.excel(data, '厂区.xlsx')
} catch {
} finally {
exportLoading.value = false
} }
}
// /** 导出按钮操作 */
const searchFormClick = (searchData) => { const exportLoading = ref(false) //
tableObject.params = { const handleExport = async () => {
isSearch: true, try {
filters: searchData.filters //
await message.exportConfirm()
//
exportLoading.value = true
const data = await FactoryAreaApi.exportFactoryArea(tableObject.params)
download.excel(data, '厂区.xlsx')
} catch {
} finally {
exportLoading.value = false
}
} }
getList() //
}
/** 初始化 **/ //
onMounted(async () => { const searchFormClick = (searchData) => {
getList() tableObject.params = {
}) isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
})
</script> </script>

6
src/views/eam/basic/item/index.vue

@ -119,8 +119,6 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
openForm('create') openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { // } else if (val == 'export') { //
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
@ -133,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:item:update'}), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:item:delete'}), // defaultButtons.mainListDeleteBtn(null), //
] ]
// - // -

8
src/views/eam/basic/location/index.vue

@ -119,9 +119,7 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
openForm('create') openForm('create')
} else if (val == 'import') { // } else if (val == 'export') { //
handleImport()
} else if (val == 'export') { //
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
getList() getList()
@ -133,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:location:update'}), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:location:delete'}), // defaultButtons.mainListDeleteBtn(null), //
] ]
// - // -

372
src/views/eam/basic/locationArea/index.vue

@ -4,29 +4,16 @@
<Search :schema="LocationArea.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> <Search :schema="LocationArea.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
<TableHead <TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" :routeName="routeName"
:HeadButttondata="HeadButttondata" @updataTableColumns="updataTableColumns" @searchFormClick="searchFormClick" :allSchemas="LocationArea.allSchemas" />
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="LocationArea.allSchemas"
/>
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<Table <Table :columns="tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total total: tableObject.total
}" }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:pageSize="tableObject.pageSize" v-model:sort="tableObject.sort">
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}"> <template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span> <span>{{ row.code }}</span>
@ -39,17 +26,10 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm ref="basicFormRef" @success="formsSuccess" :rules="LocationAreaRules"
ref="basicFormRef" :formAllSchemas="LocationArea.allSchemas" :searchTableParams="searchTableParams"
@success="formsSuccess" :apiUpdate="LocationAreaApi.updateLocationArea" :apiCreate="LocationAreaApi.createLocationArea"
:rules="LocationAreaRules" @searchTableSuccess="searchTableSuccess" :isBusiness="false" />
:formAllSchemas="LocationArea.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="LocationAreaApi.updateLocationArea"
:apiCreate="LocationAreaApi.createLocationArea"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="LocationArea.allSchemas" /> <Detail ref="detailRef" :isBasic="true" :allSchemas="LocationArea.allSchemas" />
@ -57,179 +37,181 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { LocationArea,LocationAreaRules } from './locationArea.data' import { LocationArea, LocationAreaRules } from './locationArea.data'
import * as LocationAreaApi from '@/api/eam/basic/locationArea' import * as LocationAreaApi from '@/api/eam/basic/locationArea'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'LocationArea' }) defineOptions({ name: 'LocationArea' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(LocationArea.allSchemas.tableColumns) const tableColumns = ref(LocationArea.allSchemas.tableColumns)
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
}
//
const searchTableParams = ref([
//{
// formField: 'productItemCode',
// searchTableTitle: '',
// searchTableAllSchemas: Itembasic.allSchemas,
// searchTablePage: ItembasicApi.getItembasicPage
//}
])
const { tableObject, tableMethods } = useTable({
getListApi: LocationAreaApi.getLocationAreaPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
} }
}
//
// - const searchTableParams = ref([
const butttondata = [ //{
defaultButtons.mainListEditBtn(null), // // formField: 'productItemCode',
defaultButtons.mainListDeleteBtn(null), // // searchTableTitle: '',
] // searchTableAllSchemas: Itembasic.allSchemas,
// searchTablePage: ItembasicApi.getItembasicPage
// - //}
const buttonTableClick = async (val, row) => { ])
if (val == 'edit') { //
openForm('update', row) const { tableObject, tableMethods } = useTable({
} else if (val == 'delete') { // getListApi: LocationAreaApi.getLocationAreaPage //
handleDelete(row.id) })
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
} }
}
// -
/** 添加/修改操作 */ const butttondata = [
const basicFormRef = ref() defaultButtons.mainListEditBtn(null), //
const openForm = (type: string, row?: any) => { defaultButtons.mainListDeleteBtn(null), //
basicFormRef.value.open(type, row) ]
}
// -
// form const buttonTableClick = (val, row) => {
const formsSuccess = async (formType,data) => { console.log('11111111111111',val, row )
var isHave =LocationArea.allSchemas.formSchema.some(function (item) { if (val == 'edit') { //
return item.field === 'activeTime' || item.field === 'expireTime'; console.log('22222', row )
}); openForm('update', row)
if(isHave){ } else if (val == 'delete') { //
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){ handleDelete(row.id)
message.error('失效时间要大于生效时间')
return;
} }
} }
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null; /** 添加/修改操作 */
if (formType === 'create') { const basicFormRef = ref()
await LocationAreaApi.createLocationArea(data) const openForm = (type : string, row ?: any) => {
message.success(t('common.createSuccess')) console.log('33333', row )
} else { basicFormRef.value.open(type, row)
await LocationAreaApi.updateLocationArea(data)
message.success(t('common.updateSuccess'))
} }
basicFormRef.value.dialogVisible = false
getList() // form
} const formsSuccess = async (formType, data) => {
var isHave = LocationArea.allSchemas.formSchema.some(function (item) {
// return item.field === 'activeTime' || item.field === 'expireTime';
const searchTableSuccess = (formField, searchField, val, formRef) => { });
nextTick(() => { if (isHave) {
const setV = {} if (data.activeTime && data.expireTime && data.activeTime >= data.expireTime) {
setV[formField] = val[0][searchField] message.error('失效时间要大于生效时间')
formRef.setValues(setV) return;
}) }
} }
if (data.activeTime == 0) data.activeTime = null;
/** 详情操作 */ if (data.expireTime == 0) data.expireTime = null;
const detailRef = ref() if (formType === 'create') {
const openDetail = (row: any, titleName: any, titleValue: any) => { await LocationAreaApi.createLocationArea(data)
detailRef.value.openDetail(row, titleName, titleValue, 'basicLocationArea') message.success(t('common.createSuccess'))
} } else {
await LocationAreaApi.updateLocationArea(data)
/** 删除按钮操作 */ message.success(t('common.updateSuccess'))
const handleDelete = async (id: number) => { }
try { basicFormRef.value.dialogVisible = false
// getList()
await message.delConfirm()
//
await LocationAreaApi.deleteLocationArea(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await LocationAreaApi.exportLocationArea(setSearchParams)
download.excel(data, '库区.xls')
} catch {
} finally {
exportLoading.value = false
} }
}
// //
const searchFormClick = (searchData) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
tableObject.params = { nextTick(() => {
isSearch: true, const setV = {}
filters: searchData.filters setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
} }
getList() //
}
/** 初始化 **/ /** 详情操作 */
onMounted(async () => { const detailRef = ref()
getList() const openDetail = (row : any, titleName : any, titleValue : any) => {
}) detailRef.value.openDetail(row, titleName, titleValue, 'basicLocationArea')
}
/** 删除按钮操作 */
const handleDelete = async (id : number) => {
try {
//
await message.delConfirm()
//
await LocationAreaApi.deleteLocationArea(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch { }
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await LocationAreaApi.exportLocationArea(setSearchParams)
download.excel(data, '库区.xls')
} catch {
} finally {
exportLoading.value = false
}
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
})
</script> </script>

6
src/views/eam/basic/supplier/index.vue

@ -119,8 +119,6 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
openForm('create') openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { // } else if (val == 'export') { //
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
@ -133,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:supplier:update'}), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:supplier:delete'}), // defaultButtons.mainListDeleteBtn(null), //
] ]
// - // -

4
src/views/eam/fixedAssets/index.vue

@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:fixedAssets:update'}), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:fixedAssets:delete'}), // defaultButtons.mainListDeleteBtn(null), //
] ]
// - // -

Loading…
Cancel
Save