| | |
| | | </el-row> |
| | | <!--添加/编辑弹窗--> |
| | | <edit v-if="editSetting.show" :setting="editSetting" @close="editSetting.show = false" @search="search"/> |
| | | <person v-if="personSetting.show" :setting="personSetting" @close="personSetting.show = false" @search="search"/> |
| | | </el-card> |
| | | </el-container> |
| | | </el-container> |
| | |
| | | import MyButton from "@/components/myButton/myButton"; |
| | | import SettingIplatform from '@/utils/settingIplatform'; |
| | | import edit from './edit' |
| | | import person from './person' |
| | | import * as finsystenant from '@/api/baseSetting/finsystenant' |
| | | import myImport from '@/views/components/myImport' |
| | | import {getBaseUrl} from '@/utils/base'; |
| | | |
| | | export default { |
| | | name: "index", |
| | | components: {MyButton, MyTableV2, edit, myImport}, |
| | | components: {MyButton, MyTableV2, edit, myImport, person}, |
| | | data() { |
| | | return { |
| | | // 搜索框 |
| | |
| | | orgId: '', |
| | | show: false, |
| | | }, |
| | | personSetting: { |
| | | title: '', |
| | | id: '', |
| | | orgId: '', |
| | | show: false, |
| | | }, |
| | | // 表格数据 |
| | | table: { |
| | | showIndex: true, // 是否显示序号 |
| | |
| | | }, |
| | | // 列信息 |
| | | columns: [ |
| | | {title: '名称仓库', field: 'warehouseName', align: 'left',}, |
| | | {title: '编号', field: 'warehouseCode', align: 'center'}, |
| | | {title: '类型', field: 'classificationName', align: 'center', }, |
| | | {title: '地址', field: 'adress', align: 'center', }, |
| | | {title: '仓库名称', field: 'warehouseName', align: 'left', minWidth: 140}, |
| | | {title: '编号', field: 'warehouseCode', align: 'center', width: 120}, |
| | | {title: '类型', field: 'classificationName', align: 'center', width: 120 }, |
| | | {title: '地址', field: 'adress', align: 'left', minWidth: 140 }, |
| | | // {title: '所属机构', field: 'summary', align: 'left',}, |
| | | { |
| | | field: 'states', |
| | |
| | | // 操作信息 |
| | | operation: { |
| | | show: true, // 显示操作列 |
| | | width: '150', // 列宽 |
| | | width: 240, // 列宽 |
| | | attr: [ |
| | | { |
| | | title: '编辑', |
| | |
| | | this.del(row); |
| | | }, |
| | | }, |
| | | // { |
| | | // title: '仓库员', |
| | | // events: (row) => { |
| | | // this.showAudit(row); |
| | | // }, |
| | | // } |
| | | { |
| | | title: '库管员', |
| | | type:'primary', |
| | | events: (row) => { |
| | | this.showPerson(row); |
| | | }, |
| | | } |
| | | ], |
| | | }, |
| | | paging: { |
| | |
| | | this.editSetting.title = '编辑'; |
| | | this.editSetting.show = true; |
| | | }, |
| | | showPerson(row) { |
| | | this.personSetting.id = row.id; |
| | | this.personSetting.info = JSON.stringify(row); |
| | | this.personSetting.title = '选择库管员'; |
| | | this.personSetting.show = true; |
| | | }, |
| | | nodeClick(param) { |
| | | param = param || {} |
| | | this.p = Object.assign({}, { |