| | |
| | | </el-col> |
| | | </el-row> |
| | | <!--添加/编辑弹窗--> |
| | | <edit v-if="editSetting.show" :setting="editSetting" @close="editSetting.show = false" @search="refreshData" /> |
| | | <edit |
| | | v-if="editSetting.show" |
| | | :setting="editSetting" |
| | | @close="editSetting.show = false" |
| | | @search="refreshData" |
| | | /> |
| | | </el-card> |
| | | </el-container> |
| | | </el-container> |
| | |
| | | import { getTree } from '@/api/foudation/classification'; |
| | | import myImport from '@/views/components/myImport'; |
| | | import { getBaseUrl } from '@/utils/base'; |
| | | import {getType} from '@/api/system/dict/type' |
| | | import {getDicts} from '@/api/system/dict/data' |
| | | import { getType } from '@/api/system/dict/type'; |
| | | import { getDicts } from '@/api/system/dict/data'; |
| | | |
| | | export default { |
| | | name: 'index', |
| | |
| | | // 获取机构树 |
| | | this.initTreeData(); |
| | | // 类别字典 |
| | | getDicts('GOODS_PRICE').then(res=>{ |
| | | this.items[1].options = res.map(v=>{ |
| | | v.label=v.dict_label |
| | | v.value=v.dict_value |
| | | return v |
| | | }) |
| | | }) |
| | | getDicts('GOODS_PRICE').then((res) => { |
| | | this.items[1].options = res.map((v) => { |
| | | v.label = v.dict_label; |
| | | v.value = v.dict_value; |
| | | return v; |
| | | }); |
| | | }); |
| | | }, |
| | | methods: { |
| | | //导入 |
| | |
| | | .catch(() => {}); |
| | | }, |
| | | showAdd() { |
| | | if (!this.editSetting.orgId) { |
| | | this.$message.warning('请先选择左侧机构') |
| | | } else { |
| | | this.editSetting.pid = this.p.id; |
| | | // if (!this.editSetting.orgId) { |
| | | // this.$message.warning('请先选择左侧机构') |
| | | // } else { |
| | | if (this.p && this.p) { |
| | | this.editSetting.pid = this.p.id; |
| | | } |
| | | this.editSetting.id = null; |
| | | this.editSetting.info = null; |
| | | this.editSetting.title = '新增'; |
| | | this.editSetting.show = true; |
| | | } |
| | | // } |
| | | }, |
| | | showAudit(row) { |
| | | this.editSetting.id = row.id; |
| | |
| | | // 查询table列表 |
| | | search(pageNum) { |
| | | if (pageNum != undefined) { |
| | | this.$refs.myTable.search({pageNum}); |
| | | this.$refs.myTable.search({ pageNum }); |
| | | } else { |
| | | this.$refs.myTable.search(); |
| | | } |
| | | }, |
| | | refreshData() { |
| | | this.initTreeData() |
| | | this.search() |
| | | this.initTreeData(); |
| | | this.search(); |
| | | }, |
| | | fifterForm(params) { |
| | | this.filterFrom = Object.assign(this.filterFrom, params); |