futian.liu
2023-12-21 8cbe2b4e7c708fb6fef901915b8081a19c49213b
admin-web/src/views/foundation/store/index.vue
@@ -15,6 +15,7 @@
          </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>
@@ -31,13 +32,14 @@
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 {
      // 搜索框
@@ -100,6 +102,12 @@
        orgId: '',
        show: false,
      },
      personSetting: {
        title: '',
        id: '',
        orgId: '',
        show: false,
      },
      // 表格数据
      table: {
        showIndex: true, // 是否显示序号
@@ -125,11 +133,11 @@
        },
        // 列信息
        columns: [
          {title: '名称仓库', field: 'warehouseName', align: 'left',},
          {title: '编号', field: 'warehouseCode', align: 'center'},
          {title: '类型', field: 'classificationName', align: 'center', },
          {title: '地址', field: 'adress', align: 'center', },
          // {title: '所属机构', field: 'summary', align: 'left',},
          {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: 'agencyName', align: 'left',minWidth: 140 },
          {
            field: 'states',
            title: '状态',
@@ -161,7 +169,7 @@
        // 操作信息
        operation: {
          show: true, // 显示操作列
          width: '150', // 列宽
          width: 240, // 列宽
          attr: [
            {
              title: '编辑',
@@ -175,12 +183,13 @@
                this.del(row);
              },
            },
            // {
            //   title: '仓库员',
            //   events: (row) => {
            //     this.showAudit(row);
            //   },
            // }
            {
              title: '库管员',
              type:'primary',
              events: (row) => {
                this.showPerson(row);
              },
            }
          ],
        },
        paging: {
@@ -270,6 +279,12 @@
      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({}, {