Browse Source

导入模板

dev
0.0 2 years ago
parent
commit
9c438c2e1a
  1. 12
      src/mixins/JeecgListMixin.js
  2. 1
      src/views/description/ProcessDescriptionList.vue
  3. 1
      src/views/materialstorage/ProcessMaterialStorageList.vue
  4. 1
      src/views/merchandisenews/ProcessMerchandiseNewsList.vue
  5. 1
      src/views/supplier/ProcessSupplierList.vue
  6. 6
      src/views/suppliesstronger/ProcessSuppliesStrongerList.vue
  7. 1
      src/views/unitwaste/ProcessUnitWasteWarehouseCodeList.vue
  8. 2
      src/views/waste/ProcessWasteList.vue
  9. 2
      src/views/waste/ProcessWasteListCable.vue
  10. 6
      src/views/wastematerials/ProcessWasteMaterialsList.vue

12
src/mixins/JeecgListMixin.js

@ -275,12 +275,12 @@ export const JeecgListMixin = {
if (fileName ==="废旧物资库表"){
param.materialName = "废旧物资库表"
}
// if (fileName ==="电缆模板"){
// param.materialName = "电缆模板"
// }
// if (fileName ==="废旧物资库表导入模板"){
// param.materialName = "废旧物资库表导入模板"
// }
if (fileName ==="电缆模板"){
param.materialName = "电缆模板"
}
if (fileName ==="废旧物资库表导入模板"){
param.materialName = "废旧物资库表导入模板"
}
if (fileName ==="用户信息导入模板"){
param.realname = "用户信息导入模板"
}

1
src/views/description/ProcessDescriptionList.vue

@ -44,6 +44,7 @@
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('品名分类')">导出</a-button>
<a-button type="primary" icon="download" @click="downloadFile('http://182.92.73.21:9090/file/temp/品名分类导入模板_1667997006232.xlsx')">品名分类导入模板</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>

1
src/views/materialstorage/ProcessMaterialStorageList.vue

@ -50,6 +50,7 @@
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('物资储存地址表')">导出</a-button>
<a-button type="primary" icon="download" @click="downloadFile('http://182.92.73.21:9090/file/temp/物资储存位置导入模板_1667998262940.xlsx')">物资储存地址导入模板</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>

1
src/views/merchandisenews/ProcessMerchandiseNewsList.vue

@ -80,6 +80,7 @@
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('物资清单表')">导出</a-button>
<a-button type="primary" icon="download" @click="downloadFile('http://182.92.73.21:9090/file/temp/物资清单表导入模板_1667997828733.xls')">物资清单表导入模板</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>

1
src/views/supplier/ProcessSupplierList.vue

@ -51,6 +51,7 @@
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('供应商信息')">导出</a-button>
<a-button type="primary" icon="download" @click="downloadFile('http://182.92.73.21:9090/file/temp/供应商信息模板_1667996750026.xls')">供应商导入模板</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>

6
src/views/suppliesstronger/ProcessSuppliesStrongerList.vue

@ -35,9 +35,9 @@
<div class="table-operator">
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
<a-button type="primary" icon="download" @click="handleExportXls('物资总库')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">导入</a-button>-->
<!-- </a-upload>-->
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a-dropdown v-if="selectedRowKeys.length > 0">

1
src/views/unitwaste/ProcessUnitWasteWarehouseCodeList.vue

@ -41,6 +41,7 @@
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('单位、废旧库房编码')">导出</a-button>
<a-button type="primary" icon="download" @click="downloadFile('http://182.92.73.21:9090/file/temp/单位、废旧库房编码导入模板_1667998491286.xlsx')">废旧库房导入模板</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>

2
src/views/waste/ProcessWasteList.vue

@ -50,7 +50,7 @@
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('废旧物资库表')">导出</a-button>
<!-- <a-button type="primary" icon="download" @click="handleExportXls('废旧物资库表导入模板')">导入模板</a-button>-->
<a-button type="primary" icon="download" @click="handleExportXls('废旧物资库表导入模板')">废旧物资库导入模板</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>

2
src/views/waste/ProcessWasteListCable.vue

@ -52,7 +52,7 @@
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('电缆')">导出</a-button>
<!-- <a-button type="primary" icon="download" @click="handleExportXls('电缆模板')">导入模板</a-button>-->
<a-button type="primary" icon="download" @click="handleExportXls('电缆模板')">电缆导入模板</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>

6
src/views/wastematerials/ProcessWasteMaterialsList.vue

@ -33,9 +33,9 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button type="primary" icon="download" @click="handleExportXls('账外物资库')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">导入</a-button>-->
<!-- </a-upload>-->
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload">重置</a-button>
</div>

Loading…
Cancel
Save