|
@@ -1,30 +1,34 @@
|
|
|
<template>
|
|
|
- <template-page ref="pageRef" :getList="getList" :exportList="exportList" :columnParsing="columnParsing">
|
|
|
- </template-page>
|
|
|
+ <template-page ref="pageRef" :get-list="getList" :export-list="exportList" :column-parsing="columnParsing" :options-evens-group="optionsEvensGroup" />
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
|
|
|
-import { getcustomerFrontList, partsNewInExport } from '@/api/stock'
|
|
|
+import { getcustomerFrontList, partsNewInExport, kunCunImportData, kunCunTiaoImportData } from '@/api/stock'
|
|
|
export default {
|
|
|
components: { TemplatePage },
|
|
|
mixins: [import_mixin],
|
|
|
data() {
|
|
|
return {
|
|
|
// 事件组合
|
|
|
- optionsEvensGroup: [
|
|
|
+ optionsEvensGroup: [[
|
|
|
[
|
|
|
- [
|
|
|
- {
|
|
|
- name: '批量删除',
|
|
|
- click: this.dels,
|
|
|
- isRole: this.$checkBtnRole('del', this.$route.meta.roles)
|
|
|
- }
|
|
|
- ]
|
|
|
+ {
|
|
|
+ name: '导入',
|
|
|
+ render: this.importButton(kunCunImportData, '库存初始化')
|
|
|
+ }
|
|
|
]
|
|
|
],
|
|
|
+ [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '导入',
|
|
|
+ render: this.importButton(kunCunTiaoImportData, '库存调整')
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ ]],
|
|
|
// 表格属性
|
|
|
tableAttributes: {
|
|
|
// 启用勾选列
|