|
@@ -1,14 +1,27 @@
|
|
<template>
|
|
<template>
|
|
- <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents"
|
|
|
|
- :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
|
|
|
|
- :exportList="exportList">
|
|
|
|
|
|
+ <template-page
|
|
|
|
+ ref="pageRef"
|
|
|
|
+ :get-list="getList"
|
|
|
|
+ :table-attributes="tableAttributes"
|
|
|
|
+ :table-events="tableEvents"
|
|
|
|
+ :options-evens-group="optionsEvensGroup"
|
|
|
|
+ :moreParameters="moreParameters"
|
|
|
|
+ :column-parsing="columnParsing"
|
|
|
|
+ :exportList="exportList"
|
|
|
|
+ >
|
|
</template-page>
|
|
</template-page>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
-import { websitStockListP, websitStockListPExport, websitStockImportP, } from "@/api/inventoryManagement";
|
|
|
|
|
|
+import {
|
|
|
|
+ websitStockListP,
|
|
|
|
+ websitStockListPExport,
|
|
|
|
+ websitStockImportP,
|
|
|
|
+ websitStockMakeNewImportP,
|
|
|
|
+ websitStockMakeOldImportP
|
|
|
|
+} from '@/api/inventoryManagement'
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
export default {
|
|
export default {
|
|
@@ -26,7 +39,7 @@ export default {
|
|
'selection-change': this.selectionChange
|
|
'selection-change': this.selectionChange
|
|
},
|
|
},
|
|
// 勾选选中行
|
|
// 勾选选中行
|
|
- recordSelected: [],
|
|
|
|
|
|
+ recordSelected: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -34,10 +47,37 @@ export default {
|
|
optionsEvensGroup() {
|
|
optionsEvensGroup() {
|
|
return [
|
|
return [
|
|
[
|
|
[
|
|
|
|
+ // [
|
|
|
|
+ // this.optionsEvensAuth('template', {
|
|
|
|
+ // click: () => {
|
|
|
|
+ // commonTemplateDownload({ name: '配件网点库存.xlsx' }, `${this.$route.meta.title}`)
|
|
|
|
+ // .then(res => {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '下载成功',
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // .catch(err => {
|
|
|
|
+ // this.$message.error('下载失败')
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // ],
|
|
|
|
+ // [
|
|
|
|
+ // this.optionsEvensAuth('imp', ({ moduleName }) => {
|
|
|
|
+ // return {
|
|
|
|
+ // name: moduleName,
|
|
|
|
+ // render: () => {
|
|
|
|
+ // return this.importButton(websitStockImportP, moduleName)
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // ]
|
|
|
|
+
|
|
[
|
|
[
|
|
- this.optionsEvensAuth("template", {
|
|
|
|
|
|
+ this.optionsEvensAuth('pdpjxjwdkcxz', {
|
|
click: () => {
|
|
click: () => {
|
|
- commonTemplateDownload({ name: '配件网点库存.xlsx' }, `${this.$route.meta.title}`)
|
|
|
|
|
|
+ commonTemplateDownload({ name: '配件盘点网点库存.xlsx' }, `${this.$route.meta.title}`)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.$message({
|
|
this.$message({
|
|
message: '下载成功',
|
|
message: '下载成功',
|
|
@@ -48,25 +88,51 @@ export default {
|
|
this.$message.error('下载失败')
|
|
this.$message.error('下载失败')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- }),
|
|
|
|
|
|
+ })
|
|
],
|
|
],
|
|
[
|
|
[
|
|
- this.optionsEvensAuth("imp", ({ moduleName }) => {
|
|
|
|
|
|
+ this.optionsEvensAuth('pdpjxjwdkc', ({ moduleName }) => {
|
|
return {
|
|
return {
|
|
name: moduleName,
|
|
name: moduleName,
|
|
render: () => {
|
|
render: () => {
|
|
- return this.importButton(websitStockImportP, moduleName)
|
|
|
|
|
|
+ return this.importButton(websitStockMakeNewImportP, moduleName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }),
|
|
|
|
|
|
+ })
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ this.optionsEvensAuth('pdpjjjwdkcxz', {
|
|
|
|
+ click: () => {
|
|
|
|
+ commonTemplateDownload({ name: '配件盘点网点库存.xlsx' }, `${this.$route.meta.title}`)
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '下载成功',
|
|
|
|
+ type: 'success'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(err => {
|
|
|
|
+ this.$message.error('下载失败')
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
],
|
|
],
|
|
|
|
+ [
|
|
|
|
+ this.optionsEvensAuth('pdpjjjwdkc', ({ moduleName }) => {
|
|
|
|
+ return {
|
|
|
|
+ name: moduleName,
|
|
|
|
+ render: () => {
|
|
|
|
+ return this.importButton(websitStockMakeOldImportP, moduleName)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ ]
|
|
]
|
|
]
|
|
]
|
|
]
|
|
},
|
|
},
|
|
// 更多参数
|
|
// 更多参数
|
|
moreParameters() {
|
|
moreParameters() {
|
|
return []
|
|
return []
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 列表请求函数
|
|
// 列表请求函数
|
|
@@ -80,7 +146,7 @@ export default {
|
|
// 监听勾选变化
|
|
// 监听勾选变化
|
|
selectionChange(data) {
|
|
selectionChange(data) {
|
|
this.recordSelected = data
|
|
this.recordSelected = data
|
|
- },
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|