|
@@ -15,7 +15,7 @@ import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
|
import Popu from '@/components/template/popu.vue'
|
|
|
-import { getDealerListV2, exportDealerListV2, importCustomerV2 } from '@/api/basic_data/dealer'
|
|
|
+import { getListCustomerCheckV2, exportListCustomerCheck, importListCustomerCheck, listCustomerCheckDownload } from '@/api/barcode'
|
|
|
export default {
|
|
|
components: { TemplatePage, Popu },
|
|
|
mixins: [import_mixin, add_callback_mixin],
|
|
@@ -28,7 +28,26 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '导入',
|
|
|
- render: this.importButton(importCustomerV2)
|
|
|
+ render: this.importButton(importListCustomerCheck)
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '导入模版',
|
|
|
+ click: () => {
|
|
|
+ listCustomerCheckDownload({}, `${this.$route.meta.title}`)
|
|
|
+ .then(res => {
|
|
|
+ this.$message({
|
|
|
+ message: '下载成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(_err => {
|
|
|
+ this.$message.error('下载失败')
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
]
|
|
|
]
|
|
@@ -50,10 +69,10 @@ export default {
|
|
|
// 列表请求函数
|
|
|
getList(...p) {
|
|
|
this.recordSelected = []
|
|
|
- return getDealerListV2(...p)
|
|
|
+ return getListCustomerCheckV2(...p)
|
|
|
},
|
|
|
// 列表导出函数
|
|
|
- exportList: exportDealerListV2,
|
|
|
+ exportList: exportListCustomerCheck,
|
|
|
// 表格列解析渲染数据更改
|
|
|
columnParsing(item, defaultData) {
|
|
|
return defaultData
|
|
@@ -76,5 +95,4 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
- <style lang="scss" scoped></style>
|
|
|
-
|
|
|
+<style lang="scss" scoped></style>
|