futian.liu
2023-12-09 b0254fc60807423cd748f057ed0393ab0e784fce
admin-web/src/views/departmentitem/itemdis/distribution/index.vue
@@ -91,8 +91,7 @@
import myImport from '@/views/components/myImport';
import edit from './edit';
import detail from './detail';
import {getBaseUrl} from '@/utils/base';
import listPage from '../../../mixins/listPage';
import listPage from '@/views/mixins/listPage';
import {getUserDetail} from "@/utils/auth";
export default {
@@ -115,7 +114,7 @@
        },
        {
          type: 'select',
          dataIndex: 'inAgencyId',
          dataIndex: 'departmentId',
          label: '分发部门',
          placeholder: '请选择',
          optionsConfig: {
@@ -136,7 +135,7 @@
          optionsConfig: {
            label: 'goodsName',
            value: 'id',
            url: SettingIplatform.apiBaseURL + '/pc/base/goods/template/query/goodsTemplate',
            url: SettingIplatform.apiBaseURL + `/pc/base/goods/template/query/goodsTemplate?tenantId=${getUserDetail().tenantId}`,
          },
        },
        {
@@ -173,17 +172,14 @@
        qryType: 1,
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        departmentId: this.userInfo.tenantId,
        ...this.filterFrom,
      }).then((res) => {
        this.list = res.datas;
        this.total = res.totalRows;
        this.loading = false;
      });
    },
    fifterForm(params) {
      this.filterFrom = Object.assign(this.filterFrom, params);
      this.search(1);
    },
    }
  },
};
</script>