石广澎
2024-01-05 b2429057ae17e9f5b357435b0bff5f6cc0040b69
admin-web/src/views/departmentitem/itemdis/disDetails/index.vue
@@ -29,6 +29,7 @@
import edit from './edit';
import detail from '../distribution/detail';
import * as DateFormatter from "@/utils/DateFormatter";
import {getUserDetail} from "@/utils/auth";
export default {
  name: 'index',
@@ -45,43 +46,17 @@
          defaultValue: '',
        },
        {
          type: 'cascader',
          dataIndex: 'agencyId',
          label: '机构',
          placeholder: '请选择',
          cascader: [
            {key: 'inWarehouseId', queryKey: 'tenantId'},
            {key: 'goodsTemplateId', queryKey: 'agencyId'}
          ],
          optionsConfig: {url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null},
          defaultValue: '',
          options: [],
        },
        {
          type: 'select',
          dataIndex: 'inWarehouseId',
          label: '部门',
          placeholder: '请选择',
          optionsConfig: {
            url: `/pc/fin/sys/tenant/department/list/all`,
            label: 'name',
            value: 'id',
          },
          defaultValue: '',
          options: [],
        },
        {
          type: 'select',
          dataIndex: 'goodsTemplateId',
          label: '物品名称',
          placeholder: '请输入',
          placeholder: '请选择',
          defaultValue: '',
          options: [],
          cascader: [{key: 'goodsModelId', queryKey: 'goodsTemplatesId'}],
          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}`,
          },
        },
        {
@@ -98,8 +73,21 @@
          },
        },
        {
          type: 'select',
          dataIndex: 'departmentId',
          label: '部门',
          placeholder: '请选择',
          optionsConfig: {
            url: `/pc/fin/sys/tenant/department/list/all?tenantId=${getUserDetail().tenantId}`,
            label: 'name',
            value: 'id',
          },
          defaultValue: '',
          options: [],
        },
        {
          type: 'text',
          dataIndex: 'name',
          dataIndex: 'operatorName',
          label: '创建人',
          placeholder: '请输入',
          defaultValue: '',
@@ -165,7 +153,7 @@
          },
          {title: '规格型号', field: 'goodsModelName', align: 'left', minWidth: 130},
          {title: '分发数量', field: 'goodsCount', align: 'center'},
          {title: '所属机构', field: 'tenantName', align: 'left', minWidth: 130},
          /*{title: '所属机构', field: 'tenantName', align: 'left', minWidth: 130},*/
          {title: '部门', field: 'departmentName', align: 'left', minWidth: 130},
          {title: '分发人', field: 'operatorName', align: 'center'},
          {
@@ -231,7 +219,7 @@
    // 查询table列表
    search(pageNum) {
      if (pageNum != undefined) {
        this.$refs.myTable.search(pageNum);
        this.$refs.myTable.search({pageNum});
      } else {
        this.$refs.myTable.search();
      }