Commit d53de9f0 by zhangtw

导入

parent a0e2485f
...@@ -259,12 +259,16 @@ import { ...@@ -259,12 +259,16 @@ import {
} from '@/api/key-dm-inbound' } from '@/api/key-dm-inbound'
import MaterialSelector from '@/view/key-person/key_dm_conf/materialSelector.vue' import MaterialSelector from '@/view/key-person/key_dm_conf/materialSelector.vue'
import { normalizeVisitTimeValue } from '@/view/key-person/key_dm_conf/dates.js' import { normalizeVisitTimeValue } from '@/view/key-person/key_dm_conf/dates.js'
import axios from 'axios'
export default { export default {
name: 'key-dm-inbound-index', name: 'key-dm-inbound-index',
components: { MaterialSelector }, components: { MaterialSelector },
data () { data () {
return { return {
// 表单验证规则
inboundRules: {
},
importShow: false, importShow: false,
impBtnDisabled: false, impBtnDisabled: false,
// 时间范围数组 // 时间范围数组
...@@ -490,11 +494,12 @@ export default { ...@@ -490,11 +494,12 @@ export default {
created () { this.fetchList('inbound') }, created () { this.fetchList('inbound') },
methods: { methods: {
showImport () { showImport () {
// 简单权限控制:可根据需要替换 // // 简单权限控制:可根据需要替换
const info = this.$store.state.user.otherUserInfo || {} // const info = this.$store.state.user.otherUserInfo || {}
const areaId = info.area_id || '' // const areaId = info.area_id || ''
if (areaId && areaId.startsWith('2201')) return true // if (areaId && areaId.startsWith('2201')) return true
return false // return false
return true
}, },
async tplDownload () { async tplDownload () {
// 下载入库导入模板 // 下载入库导入模板
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论