石广澎
2023-12-01 0ff4be6c9cb9bc215acd4b4c78122da7e0d7140f
admin-web/src/views/departmentitem/itemscr/scrapping/index.vue
@@ -32,7 +32,7 @@
                        </div>
                      </div>
                      <div class="one-hed">
                        <div class="box"><span class="span-two">部门:</span>{{ item.agencyName }}</div>
                        <div class="box"><span class="span-two">部门:</span>{{ item.departmentName }}</div>
                        <div class="box"><span class="span-two">操作人:</span>{{ item.operatorName }}</div>
                        <div class="box">
                          <span class="span-two">报废时间:</span>{{ item.dealTime | formatTime }}
@@ -83,6 +83,8 @@
import edit from './edit';
import detail from './detail';
import listPage from '@/views/mixins/listPage'
import {getUserDetail} from "@/utils/auth";
import SettingIplatform from "@/utils/settingIplatform";
export default {
  name: 'index',
@@ -102,25 +104,29 @@
        },
        {
          type: 'select',
          dataIndex: 'businessFormCode',
          dataIndex: 'inAgencyId',
          label: '分发部门',
          placeholder: '请输入',
          placeholder: '请选择',
          optionsConfig: {
            url: `/pc/fin/sys/tenant/department/list/all?tenantId=${getUserDetail().tenantId}`,
            label: 'name',
            value: 'id',
          },
          defaultValue: '',
          options:[]
          options: [],
        },
        {
          type: 'text',
          dataIndex: 'goodsName',
          type: 'select',
          dataIndex: 'goodsTemplateId',
          label: '物品名称',
          placeholder: '可模糊搜索',
          defaultValue: '',
        },
        {
          type: 'text',
          dataIndex: 'createName',
          label: '报废人',
          placeholder: '请输入',
          defaultValue: '',
          options: [],
          optionsConfig: {
            label: 'goodsName',
            value: 'id',
            url: SettingIplatform.apiBaseURL + `/pc/base/goods/template/query/goodsTemplate?tenantId=${getUserDetail().tenantId}`,
          },
        },
        {
          type: 'date-picker',
@@ -149,19 +155,6 @@
        this.total = res.totalRows;
        this.loading = false;
      });
    },
    fifterForm(params) {
      this.filterFrom = Object.assign(this.filterFrom, params);
      if (this.filterFrom.startTime) {
        this.filterFrom.startTime = this.filterFrom.startTime.replace(/\-/g, '');
      }
      if (this.filterFrom.endTime) {
        this.filterFrom.endTime = this.filterFrom.endTime.replace(/\-/g, '');
      }
      if (this.filterFrom.agencyId&&this.filterFrom.agencyId.length) {
        this.filterFrom.agencyId = this.filterFrom.agencyId[this.filterFrom.agencyId.length - 1];
      }
      this.search(1);
    },
  },
};