Browse Source

BUG修改

master
yejiaxing 10 months ago
parent
commit
3f7c237ad4
  1. 22
      src/views/eam/basic/deviceItem/index.vue
  2. 4
      src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts
  3. 22
      src/views/eam/basic/deviceMoldItems/index.vue
  4. 22
      src/views/eam/basic/item/index.vue
  5. 22
      src/views/eam/basic/location/index.vue
  6. 8
      src/views/eam/basic/location/location.data.ts
  7. 8
      src/views/eam/basic/locationArea/locationArea.data.ts
  8. 22
      src/views/eam/basic/supplier/index.vue
  9. 6
      src/views/eam/fixedAssets/index.vue

22
src/views/eam/basic/deviceItem/index.vue

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:deviceItem:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:deviceItem:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:deviceItem:export'}), //
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -211,21 +211,6 @@ const handleExport = async () => {
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '设备备件关系导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
@ -238,7 +223,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await DeviceItemApi.importTemplate()
})
</script>

4
src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts

@ -29,7 +29,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
form: {
component: 'SelectV2'
component: 'Select'
},
},
{
@ -38,7 +38,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
form: {
component: 'SelectV2'
component: 'Select'
},
},
{

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

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:deviceMoldItems:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:deviceMoldItems:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:deviceMoldItems:export'}), //
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -211,21 +211,6 @@ const handleExport = async () => {
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '项记录表(设备 模具 保养 维修 巡检点检)导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
@ -238,7 +223,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await DeviceMoldItemsApi.importTemplate()
})
</script>

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

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:item:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:item:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:item:export'}), //
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -211,21 +211,6 @@ const handleExport = async () => {
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '备件导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
@ -238,7 +223,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await ItemApi.importTemplate()
})
</script>

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

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:location:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:location:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:location:export'}), //
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -211,21 +211,6 @@ const handleExport = async () => {
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '库位导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
@ -238,7 +223,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await LocationApi.importTemplate()
})
</script>

8
src/views/eam/basic/location/location.data.ts

@ -45,9 +45,9 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
field: 'type',
sort: 'custom',
isSearch: true,
form: {
component: 'SelectV2'
},
form: {
component: 'Select'
},
},
{
label: '是否账内账外默认TRUE账内FALSE账外',
@ -84,4 +84,4 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right'
}
}
]))
]))

8
src/views/eam/basic/locationArea/locationArea.data.ts

@ -38,9 +38,9 @@ export const LocationArea = useCrudSchemas(reactive<CrudSchema[]>([
field: 'type',
sort: 'custom',
isSearch: true,
form: {
component: 'SelectV2'
},
form: {
component: 'Select'
},
},
{
label: '创建时间',
@ -77,4 +77,4 @@ export const LocationArea = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right'
}
}
]))
]))

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

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:supplier:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:supplier:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:supplier:export'}), //
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -211,21 +211,6 @@ const handleExport = async () => {
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '供应商导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
@ -238,7 +223,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await SupplierApi.importTemplate()
})
</script>

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

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:fixedAssets:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:fixedAssets:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:fixedAssets:export'}), //
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save