增加导入
This commit is contained in:
1 parent
b26323d1b3
commit
5f7e424ce3
3 files changed
+27
-2
No files matched your search
@@ -22,4 +22,9 @@ export default {
|
||||
inputNickNameTip: '请输入昵称',
|
||||
importUserTip: '导入用户',
|
||||
},
|
||||
supermarket: {
|
||||
index: '#',
|
||||
importSupplierTip: '导入货商',
|
||||
importErpSpuTip: '导入库存商品',
|
||||
}
|
||||
};
|
||||
@@ -41,6 +41,9 @@
|
||||
style="float: right"
|
||||
@queryTable="getDataList"
|
||||
></right-toolbar>
|
||||
<el-button plain v-auth="'sys_user_add'" class="ml10" icon="upload-filled" type="primary" @click="excelUploadRef.show()">
|
||||
{{ $t("common.importBtn") }}
|
||||
</el-button>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-table
|
||||
@@ -96,6 +99,13 @@
|
||||
|
||||
<!-- 编辑、新增 -->
|
||||
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
|
||||
<!-- temp-url="/admin/sys-file/local/file/user.xlsx"-->
|
||||
<upload-excel
|
||||
ref="excelUploadRef"
|
||||
:title="$t('supermarket.importSupplierTip')"
|
||||
url="/supermarket/smErpSupplier/import"
|
||||
@refreshDataList="getDataList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -118,7 +128,7 @@ const showSearch = ref(true);
|
||||
const selectObjs = ref([]) as any;
|
||||
const multiple = ref(true);
|
||||
const supplierType = ref<any>([]); // 货商类别
|
||||
|
||||
const excelUploadRef = ref()
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
pageList: fetchList,
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
>
|
||||
删 除
|
||||
</el-button>
|
||||
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
:export="'supermarket_supermarketSpu_export'"
|
||||
@@ -47,6 +48,9 @@
|
||||
style="float: right"
|
||||
@queryTable="getDataList"
|
||||
/>
|
||||
<el-button plain v-auth="'supermarket_supermarketSpu_export'" class="ml10" icon="upload-filled" type="primary" @click="excelUploadRef.show()">
|
||||
{{ $t("common.importBtn") }}
|
||||
</el-button>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-table
|
||||
@@ -124,6 +128,12 @@
|
||||
|
||||
<!-- 编辑、新增 -->
|
||||
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
|
||||
<upload-excel
|
||||
ref="excelUploadRef"
|
||||
:title="$t('supermarket.importErpSpuTip')"
|
||||
url="/supermarket/supermarketSpu/import"
|
||||
@refreshDataList="getDataList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -135,7 +145,7 @@ import { useDict } from "/@/hooks/dict"
|
||||
|
||||
// 引入组件
|
||||
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
|
||||
|
||||
const excelUploadRef = ref()
|
||||
const { supermarket_nature, status } = useDict("supermarket_nature", "status")
|
||||
const formDialogRef = ref() // 对话框ref引用
|
||||
const queryRef = ref() // 搜索表单ref引用
|
||||
|
||||
Reference in new issue
Block a user