liang 3 жил өмнө
parent
commit
834c8c0b17

+ 53 - 0
src/api/materialManagement/archives.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询物资档案列表
+export function listArchives(query) {
+  return request({
+    url: '/materialManagement/archives/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询物资档案详细
+export function getArchives(id) {
+  return request({
+    url: '/materialManagement/archives/' + id,
+    method: 'get'
+  })
+}
+
+// 新增物资档案
+export function addArchives(data) {
+  return request({
+    url: '/materialManagement/archives',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改物资档案
+export function updateArchives(data) {
+  return request({
+    url: '/materialManagement/archives',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除物资档案
+export function delArchives(id) {
+  return request({
+    url: '/materialManagement/archives/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出物资档案
+export function exportArchives(query) {
+  return request({
+    url: '/materialManagement/archives/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/materialManagement/distribution.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询物资发放列表
+export function listDistribution(query) {
+  return request({
+    url: '/materialManagement/distribution/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询物资发放详细
+export function getDistribution(id) {
+  return request({
+    url: '/materialManagement/distribution/' + id,
+    method: 'get'
+  })
+}
+
+// 新增物资发放
+export function addDistribution(data) {
+  return request({
+    url: '/materialManagement/distribution',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改物资发放
+export function updateDistribution(data) {
+  return request({
+    url: '/materialManagement/distribution',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除物资发放
+export function delDistribution(id) {
+  return request({
+    url: '/materialManagement/distribution/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出物资发放
+export function exportDistribution(query) {
+  return request({
+    url: '/materialManagement/distribution/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/materialManagement/materialRegistration.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询物资入库登记列表
+export function listMaterialRegistration(query) {
+  return request({
+    url: '/materialManagement/materialRegistration/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询物资入库登记详细
+export function getMaterialRegistration(id) {
+  return request({
+    url: '/materialManagement/materialRegistration/' + id,
+    method: 'get'
+  })
+}
+
+// 新增物资入库登记
+export function addMaterialRegistration(data) {
+  return request({
+    url: '/materialManagement/materialRegistration',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改物资入库登记
+export function updateMaterialRegistration(data) {
+  return request({
+    url: '/materialManagement/materialRegistration',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除物资入库登记
+export function delMaterialRegistration(id) {
+  return request({
+    url: '/materialManagement/materialRegistration/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出物资入库登记
+export function exportMaterialRegistration(query) {
+  return request({
+    url: '/materialManagement/materialRegistration/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/materialManagement/propertyChange.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询营具物资变更列表
+export function listPropertyChange(query) {
+  return request({
+    url: '/materialManagement/propertyChange/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询营具物资变更详细
+export function getPropertyChange(id) {
+  return request({
+    url: '/materialManagement/propertyChange/' + id,
+    method: 'get'
+  })
+}
+
+// 新增营具物资变更
+export function addPropertyChange(data) {
+  return request({
+    url: '/materialManagement/propertyChange',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改营具物资变更
+export function updatePropertyChange(data) {
+  return request({
+    url: '/materialManagement/propertyChange',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除营具物资变更
+export function delPropertyChange(id) {
+  return request({
+    url: '/materialManagement/propertyChange/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出营具物资变更
+export function exportPropertyChange(query) {
+  return request({
+    url: '/materialManagement/propertyChange/export',
+    method: 'get',
+    params: query
+  })
+}

+ 446 - 0
src/views/materialManagement/archives/index.vue

@@ -0,0 +1,446 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="物品类型" prop="wuPinType">
+        <el-select v-model="queryParams.wuPinType" placeholder="请选择物品类型" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="物品名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入物品名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="物资规格" prop="materialSpecification">
+        <el-input
+          v-model="queryParams.materialSpecification"
+          placeholder="请输入物资规格"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="物资型号" prop="materialXh">
+        <el-input
+          v-model="queryParams.materialXh"
+          placeholder="请输入物资型号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="营具类型" prop="yingJuType">
+        <el-select v-model="queryParams.yingJuType" placeholder="请选择营具类型" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="责任单位" prop="responsibilityUnit">
+        <el-input
+          v-model="queryParams.responsibilityUnit"
+          placeholder="请输入责任单位"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="责任人" prop="personLiable">
+        <el-input
+          v-model="queryParams.personLiable"
+          placeholder="请输入责任人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="总数量" prop="materialTotal">
+        <el-input
+          v-model="queryParams.materialTotal"
+          placeholder="请输入总数量"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="库存数量" prop="materialInventory">
+        <el-input
+          v-model="queryParams.materialInventory"
+          placeholder="请输入库存数量"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="在用数量" prop="inUseTotal">
+        <el-input
+          v-model="queryParams.inUseTotal"
+          placeholder="请输入在用数量"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="创建人" prop="createName">
+        <el-input
+          v-model="queryParams.createName"
+          placeholder="请输入创建人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="库房" prop="warehouse">
+        <el-input
+          v-model="queryParams.warehouse"
+          placeholder="请输入库房"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="单位id" prop="unitId">
+        <el-input
+          v-model="queryParams.unitId"
+          placeholder="请输入单位id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="责任人id" prop="personLiableId">
+        <el-input
+          v-model="queryParams.personLiableId"
+          placeholder="请输入责任人id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['materialManagement:archives:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['materialManagement:archives:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['materialManagement:archives:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleExport"
+          v-hasPermi="['materialManagement:archives:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="archivesList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="主键id" align="center" prop="id" />
+      <el-table-column label="物品类型" align="center" prop="wuPinType" />
+      <el-table-column label="物品名称" align="center" prop="name" />
+      <el-table-column label="物资规格" align="center" prop="materialSpecification" />
+      <el-table-column label="物资型号" align="center" prop="materialXh" />
+      <el-table-column label="营具类型" align="center" prop="yingJuType" />
+      <el-table-column label="责任单位" align="center" prop="responsibilityUnit" />
+      <el-table-column label="责任人" align="center" prop="personLiable" />
+      <el-table-column label="总数量" align="center" prop="materialTotal" />
+      <el-table-column label="库存数量" align="center" prop="materialInventory" />
+      <el-table-column label="在用数量" align="center" prop="inUseTotal" />
+      <el-table-column label="创建人" align="center" prop="createName" />
+      <el-table-column label="库房" align="center" prop="warehouse" />
+      <el-table-column label="单位id" align="center" prop="unitId" />
+      <el-table-column label="责任人id" align="center" prop="personLiableId" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['materialManagement:archives:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['materialManagement:archives:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改物资档案对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="物品类型" prop="wuPinType">
+          <el-select v-model="form.wuPinType" placeholder="请选择物品类型">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="物品名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入物品名称" />
+        </el-form-item>
+        <el-form-item label="物资规格" prop="materialSpecification">
+          <el-input v-model="form.materialSpecification" placeholder="请输入物资规格" />
+        </el-form-item>
+        <el-form-item label="物资型号" prop="materialXh">
+          <el-input v-model="form.materialXh" placeholder="请输入物资型号" />
+        </el-form-item>
+        <el-form-item label="营具类型" prop="yingJuType">
+          <el-select v-model="form.yingJuType" placeholder="请选择营具类型">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="责任单位" prop="responsibilityUnit">
+          <el-input v-model="form.responsibilityUnit" placeholder="请输入责任单位" />
+        </el-form-item>
+        <el-form-item label="责任人" prop="personLiable">
+          <el-input v-model="form.personLiable" placeholder="请输入责任人" />
+        </el-form-item>
+        <el-form-item label="总数量" prop="materialTotal">
+          <el-input v-model="form.materialTotal" placeholder="请输入总数量" />
+        </el-form-item>
+        <el-form-item label="库存数量" prop="materialInventory">
+          <el-input v-model="form.materialInventory" placeholder="请输入库存数量" />
+        </el-form-item>
+        <el-form-item label="在用数量" prop="inUseTotal">
+          <el-input v-model="form.inUseTotal" placeholder="请输入在用数量" />
+        </el-form-item>
+        <el-form-item label="创建人" prop="createName">
+          <el-input v-model="form.createName" placeholder="请输入创建人" />
+        </el-form-item>
+        <el-form-item label="库房" prop="warehouse">
+          <el-input v-model="form.warehouse" placeholder="请输入库房" />
+        </el-form-item>
+        <el-form-item label="单位id" prop="unitId">
+          <el-input v-model="form.unitId" placeholder="请输入单位id" />
+        </el-form-item>
+        <el-form-item label="责任人id" prop="personLiableId">
+          <el-input v-model="form.personLiableId" placeholder="请输入责任人id" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listArchives, getArchives, delArchives, addArchives, updateArchives, exportArchives } from "@/api/materialManagement/archives";
+
+export default {
+  name: "Archives",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 导出遮罩层
+      exportLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 物资档案表格数据
+      archivesList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        wuPinType: null,
+        name: null,
+        materialSpecification: null,
+        materialXh: null,
+        yingJuType: null,
+        responsibilityUnit: null,
+        personLiable: null,
+        materialTotal: null,
+        materialInventory: null,
+        inUseTotal: null,
+        createName: null,
+        warehouse: null,
+        unitId: null,
+        personLiableId: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询物资档案列表 */
+    getList() {
+      this.loading = true;
+      listArchives(this.queryParams).then(response => {
+        this.archivesList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        wuPinType: null,
+        name: null,
+        materialSpecification: null,
+        materialXh: null,
+        yingJuType: null,
+        responsibilityUnit: null,
+        personLiable: null,
+        materialTotal: null,
+        materialInventory: null,
+        inUseTotal: null,
+        createName: null,
+        createTime: null,
+        warehouse: null,
+        unitId: null,
+        personLiableId: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加物资档案";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getArchives(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改物资档案";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateArchives(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addArchives(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除物资档案编号为"' + ids + '"的数据项?').then(function() {
+        return delArchives(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$modal.confirm('是否确认导出所有物资档案数据项?').then(() => {
+        this.exportLoading = true;
+        return exportArchives(queryParams);
+      }).then(response => {
+        this.$download.name(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    }
+  }
+};
+</script>

+ 557 - 0
src/views/materialManagement/distribution/index.vue

@@ -0,0 +1,557 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="物品类型" prop="wuPinType">
+        <el-select v-model="queryParams.wuPinType" placeholder="请选择物品类型" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="物品名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入物品名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="物资规格" prop="materialSpecification">
+        <el-input
+          v-model="queryParams.materialSpecification"
+          placeholder="请输入物资规格"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="物资型号" prop="materialXh">
+        <el-input
+          v-model="queryParams.materialXh"
+          placeholder="请输入物资型号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="营具类型" prop="yingJuType">
+        <el-select v-model="queryParams.yingJuType" placeholder="请选择营具类型" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="责任单位" prop="responsibilityUnit">
+        <el-input
+          v-model="queryParams.responsibilityUnit"
+          placeholder="请输入责任单位"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="责任人" prop="personLiable">
+        <el-input
+          v-model="queryParams.personLiable"
+          placeholder="请输入责任人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="出库数量" prop="putOut">
+        <el-input
+          v-model="queryParams.putOut"
+          placeholder="请输入出库数量"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="创建人" prop="createName">
+        <el-input
+          v-model="queryParams.createName"
+          placeholder="请输入创建人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="发放时间" prop="putOutTime">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.putOutTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择发放时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="存放位置" prop="storageLocation">
+        <el-input
+          v-model="queryParams.storageLocation"
+          placeholder="请输入存放位置"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="购买时间" prop="buyingTime">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.buyingTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择购买时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="价值" prop="price">
+        <el-input
+          v-model="queryParams.price"
+          placeholder="请输入价值"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="库房" prop="warehouse">
+        <el-input
+          v-model="queryParams.warehouse"
+          placeholder="请输入库房"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="档案id" prop="archivesId">
+        <el-input
+          v-model="queryParams.archivesId"
+          placeholder="请输入档案id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="现有数量" prop="total">
+        <el-input
+          v-model="queryParams.total"
+          placeholder="请输入现有数量"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="发放单位" prop="outUnit">
+        <el-input
+          v-model="queryParams.outUnit"
+          placeholder="请输入发放单位"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="发放对象" prop="outPeople">
+        <el-input
+          v-model="queryParams.outPeople"
+          placeholder="请输入发放对象"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="接收人" prop="recipient">
+        <el-input
+          v-model="queryParams.recipient"
+          placeholder="请输入接收人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="入库表id" prop="registrationId">
+        <el-input
+          v-model="queryParams.registrationId"
+          placeholder="请输入入库表id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['materialManagement:distribution:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['materialManagement:distribution:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['materialManagement:distribution:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleExport"
+          v-hasPermi="['materialManagement:distribution:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="distributionList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="主键id" align="center" prop="id" />
+      <el-table-column label="物品类型" align="center" prop="wuPinType" />
+      <el-table-column label="物品名称" align="center" prop="name" />
+      <el-table-column label="物资规格" align="center" prop="materialSpecification" />
+      <el-table-column label="物资型号" align="center" prop="materialXh" />
+      <el-table-column label="营具类型" align="center" prop="yingJuType" />
+      <el-table-column label="责任单位" align="center" prop="responsibilityUnit" />
+      <el-table-column label="责任人" align="center" prop="personLiable" />
+      <el-table-column label="出库数量" align="center" prop="putOut" />
+      <el-table-column label="创建人" align="center" prop="createName" />
+      <el-table-column label="发放时间" align="center" prop="putOutTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.putOutTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="存放位置" align="center" prop="storageLocation" />
+      <el-table-column label="购买时间" align="center" prop="buyingTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.buyingTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="价值" align="center" prop="price" />
+      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="库房" align="center" prop="warehouse" />
+      <el-table-column label="档案id" align="center" prop="archivesId" />
+      <el-table-column label="现有数量" align="center" prop="total" />
+      <el-table-column label="发放单位" align="center" prop="outUnit" />
+      <el-table-column label="发放对象" align="center" prop="outPeople" />
+      <el-table-column label="接收人" align="center" prop="recipient" />
+      <el-table-column label="入库表id" align="center" prop="registrationId" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['materialManagement:distribution:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['materialManagement:distribution:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改物资发放对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="物品类型" prop="wuPinType">
+          <el-select v-model="form.wuPinType" placeholder="请选择物品类型">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="物品名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入物品名称" />
+        </el-form-item>
+        <el-form-item label="物资规格" prop="materialSpecification">
+          <el-input v-model="form.materialSpecification" placeholder="请输入物资规格" />
+        </el-form-item>
+        <el-form-item label="物资型号" prop="materialXh">
+          <el-input v-model="form.materialXh" placeholder="请输入物资型号" />
+        </el-form-item>
+        <el-form-item label="营具类型" prop="yingJuType">
+          <el-select v-model="form.yingJuType" placeholder="请选择营具类型">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="责任单位" prop="responsibilityUnit">
+          <el-input v-model="form.responsibilityUnit" placeholder="请输入责任单位" />
+        </el-form-item>
+        <el-form-item label="责任人" prop="personLiable">
+          <el-input v-model="form.personLiable" placeholder="请输入责任人" />
+        </el-form-item>
+        <el-form-item label="出库数量" prop="putOut">
+          <el-input v-model="form.putOut" placeholder="请输入出库数量" />
+        </el-form-item>
+        <el-form-item label="创建人" prop="createName">
+          <el-input v-model="form.createName" placeholder="请输入创建人" />
+        </el-form-item>
+        <el-form-item label="发放时间" prop="putOutTime">
+          <el-date-picker clearable size="small"
+            v-model="form.putOutTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择发放时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="存放位置" prop="storageLocation">
+          <el-input v-model="form.storageLocation" placeholder="请输入存放位置" />
+        </el-form-item>
+        <el-form-item label="购买时间" prop="buyingTime">
+          <el-date-picker clearable size="small"
+            v-model="form.buyingTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择购买时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="价值" prop="price">
+          <el-input v-model="form.price" placeholder="请输入价值" />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" placeholder="请输入备注" />
+        </el-form-item>
+        <el-form-item label="库房" prop="warehouse">
+          <el-input v-model="form.warehouse" placeholder="请输入库房" />
+        </el-form-item>
+        <el-form-item label="档案id" prop="archivesId">
+          <el-input v-model="form.archivesId" placeholder="请输入档案id" />
+        </el-form-item>
+        <el-form-item label="现有数量" prop="total">
+          <el-input v-model="form.total" placeholder="请输入现有数量" />
+        </el-form-item>
+        <el-form-item label="发放单位" prop="outUnit">
+          <el-input v-model="form.outUnit" placeholder="请输入发放单位" />
+        </el-form-item>
+        <el-form-item label="发放对象" prop="outPeople">
+          <el-input v-model="form.outPeople" placeholder="请输入发放对象" />
+        </el-form-item>
+        <el-form-item label="接收人" prop="recipient">
+          <el-input v-model="form.recipient" placeholder="请输入接收人" />
+        </el-form-item>
+        <el-form-item label="入库表id" prop="registrationId">
+          <el-input v-model="form.registrationId" placeholder="请输入入库表id" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listDistribution, getDistribution, delDistribution, addDistribution, updateDistribution, exportDistribution } from "@/api/materialManagement/distribution";
+
+export default {
+  name: "Distribution",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 导出遮罩层
+      exportLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 物资发放表格数据
+      distributionList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        wuPinType: null,
+        name: null,
+        materialSpecification: null,
+        materialXh: null,
+        yingJuType: null,
+        responsibilityUnit: null,
+        personLiable: null,
+        putOut: null,
+        createName: null,
+        putOutTime: null,
+        storageLocation: null,
+        buyingTime: null,
+        price: null,
+        warehouse: null,
+        archivesId: null,
+        total: null,
+        outUnit: null,
+        outPeople: null,
+        recipient: null,
+        registrationId: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询物资发放列表 */
+    getList() {
+      this.loading = true;
+      listDistribution(this.queryParams).then(response => {
+        this.distributionList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        wuPinType: null,
+        name: null,
+        materialSpecification: null,
+        materialXh: null,
+        yingJuType: null,
+        responsibilityUnit: null,
+        personLiable: null,
+        putOut: null,
+        createName: null,
+        createTime: null,
+        putOutTime: null,
+        storageLocation: null,
+        buyingTime: null,
+        price: null,
+        remark: null,
+        warehouse: null,
+        archivesId: null,
+        total: null,
+        outUnit: null,
+        outPeople: null,
+        recipient: null,
+        registrationId: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加物资发放";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getDistribution(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改物资发放";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateDistribution(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addDistribution(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除物资发放编号为"' + ids + '"的数据项?').then(function() {
+        return delDistribution(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$modal.confirm('是否确认导出所有物资发放数据项?').then(() => {
+        this.exportLoading = true;
+        return exportDistribution(queryParams);
+      }).then(response => {
+        this.$download.name(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    }
+  }
+};
+</script>

+ 497 - 0
src/views/materialManagement/materialRegistration/index.vue

@@ -0,0 +1,497 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="物品类型" prop="wuPinType">
+        <el-select v-model="queryParams.wuPinType" placeholder="请选择物品类型" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="物品名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入物品名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="物资规格" prop="materialSpecification">
+        <el-input
+          v-model="queryParams.materialSpecification"
+          placeholder="请输入物资规格"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="物资型号" prop="materialXh">
+        <el-input
+          v-model="queryParams.materialXh"
+          placeholder="请输入物资型号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="营具类型" prop="yingJuType">
+        <el-select v-model="queryParams.yingJuType" placeholder="请选择营具类型" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="责任单位" prop="responsibilityUnit">
+        <el-input
+          v-model="queryParams.responsibilityUnit"
+          placeholder="请输入责任单位"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="责任人" prop="personLiable">
+        <el-input
+          v-model="queryParams.personLiable"
+          placeholder="请输入责任人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="入库数量" prop="putInt">
+        <el-input
+          v-model="queryParams.putInt"
+          placeholder="请输入入库数量"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="创建人" prop="createName">
+        <el-input
+          v-model="queryParams.createName"
+          placeholder="请输入创建人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="入库时间" prop="storageTime">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.storageTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择入库时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="入库编号" prop="inboundNo">
+        <el-input
+          v-model="queryParams.inboundNo"
+          placeholder="请输入入库编号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="存放位置" prop="storageLocation">
+        <el-input
+          v-model="queryParams.storageLocation"
+          placeholder="请输入存放位置"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="购买时间" prop="buyingTime">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.buyingTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择购买时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="价值" prop="price">
+        <el-input
+          v-model="queryParams.price"
+          placeholder="请输入价值"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="库房(待定)" prop="warehouse">
+        <el-input
+          v-model="queryParams.warehouse"
+          placeholder="请输入库房(待定)"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="档案id" prop="archivesId">
+        <el-input
+          v-model="queryParams.archivesId"
+          placeholder="请输入档案id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['materialManagement:materialRegistration:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['materialManagement:materialRegistration:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['materialManagement:materialRegistration:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleExport"
+          v-hasPermi="['materialManagement:materialRegistration:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="materialRegistrationList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="主键id" align="center" prop="id" />
+      <el-table-column label="物品类型" align="center" prop="wuPinType" />
+      <el-table-column label="物品名称" align="center" prop="name" />
+      <el-table-column label="物资规格" align="center" prop="materialSpecification" />
+      <el-table-column label="物资型号" align="center" prop="materialXh" />
+      <el-table-column label="营具类型" align="center" prop="yingJuType" />
+      <el-table-column label="责任单位" align="center" prop="responsibilityUnit" />
+      <el-table-column label="责任人" align="center" prop="personLiable" />
+      <el-table-column label="入库数量" align="center" prop="putInt" />
+      <el-table-column label="创建人" align="center" prop="createName" />
+      <el-table-column label="入库时间" align="center" prop="storageTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.storageTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="入库编号" align="center" prop="inboundNo" />
+      <el-table-column label="存放位置" align="center" prop="storageLocation" />
+      <el-table-column label="购买时间" align="center" prop="buyingTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.buyingTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="价值" align="center" prop="price" />
+      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="库房(待定)" align="center" prop="warehouse" />
+      <el-table-column label="档案id" align="center" prop="archivesId" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['materialManagement:materialRegistration:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['materialManagement:materialRegistration:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改物资入库登记对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="物品类型" prop="wuPinType">
+          <el-select v-model="form.wuPinType" placeholder="请选择物品类型">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="物品名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入物品名称" />
+        </el-form-item>
+        <el-form-item label="物资规格" prop="materialSpecification">
+          <el-input v-model="form.materialSpecification" placeholder="请输入物资规格" />
+        </el-form-item>
+        <el-form-item label="物资型号" prop="materialXh">
+          <el-input v-model="form.materialXh" placeholder="请输入物资型号" />
+        </el-form-item>
+        <el-form-item label="营具类型" prop="yingJuType">
+          <el-select v-model="form.yingJuType" placeholder="请选择营具类型">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="责任单位" prop="responsibilityUnit">
+          <el-input v-model="form.responsibilityUnit" placeholder="请输入责任单位" />
+        </el-form-item>
+        <el-form-item label="责任人" prop="personLiable">
+          <el-input v-model="form.personLiable" placeholder="请输入责任人" />
+        </el-form-item>
+        <el-form-item label="入库数量" prop="putInt">
+          <el-input v-model="form.putInt" placeholder="请输入入库数量" />
+        </el-form-item>
+        <el-form-item label="创建人" prop="createName">
+          <el-input v-model="form.createName" placeholder="请输入创建人" />
+        </el-form-item>
+        <el-form-item label="入库时间" prop="storageTime">
+          <el-date-picker clearable size="small"
+            v-model="form.storageTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择入库时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="入库编号" prop="inboundNo">
+          <el-input v-model="form.inboundNo" placeholder="请输入入库编号" />
+        </el-form-item>
+        <el-form-item label="存放位置" prop="storageLocation">
+          <el-input v-model="form.storageLocation" placeholder="请输入存放位置" />
+        </el-form-item>
+        <el-form-item label="购买时间" prop="buyingTime">
+          <el-date-picker clearable size="small"
+            v-model="form.buyingTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择购买时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="价值" prop="price">
+          <el-input v-model="form.price" placeholder="请输入价值" />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" placeholder="请输入备注" />
+        </el-form-item>
+        <el-form-item label="库房(待定)" prop="warehouse">
+          <el-input v-model="form.warehouse" placeholder="请输入库房(待定)" />
+        </el-form-item>
+        <el-form-item label="档案id" prop="archivesId">
+          <el-input v-model="form.archivesId" placeholder="请输入档案id" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listMaterialRegistration, getMaterialRegistration, delMaterialRegistration, addMaterialRegistration, updateMaterialRegistration, exportMaterialRegistration } from "@/api/materialManagement/materialRegistration";
+
+export default {
+  name: "MaterialRegistration",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 导出遮罩层
+      exportLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 物资入库登记表格数据
+      materialRegistrationList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        wuPinType: null,
+        name: null,
+        materialSpecification: null,
+        materialXh: null,
+        yingJuType: null,
+        responsibilityUnit: null,
+        personLiable: null,
+        putInt: null,
+        createName: null,
+        storageTime: null,
+        inboundNo: null,
+        storageLocation: null,
+        buyingTime: null,
+        price: null,
+        warehouse: null,
+        archivesId: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询物资入库登记列表 */
+    getList() {
+      this.loading = true;
+      listMaterialRegistration(this.queryParams).then(response => {
+        this.materialRegistrationList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        wuPinType: null,
+        name: null,
+        materialSpecification: null,
+        materialXh: null,
+        yingJuType: null,
+        responsibilityUnit: null,
+        personLiable: null,
+        putInt: null,
+        createName: null,
+        createTime: null,
+        storageTime: null,
+        inboundNo: null,
+        storageLocation: null,
+        buyingTime: null,
+        price: null,
+        remark: null,
+        warehouse: null,
+        archivesId: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加物资入库登记";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getMaterialRegistration(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改物资入库登记";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateMaterialRegistration(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addMaterialRegistration(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除物资入库登记编号为"' + ids + '"的数据项?').then(function() {
+        return delMaterialRegistration(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$modal.confirm('是否确认导出所有物资入库登记数据项?').then(() => {
+        this.exportLoading = true;
+        return exportMaterialRegistration(queryParams);
+      }).then(response => {
+        this.$download.name(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    }
+  }
+};
+</script>

+ 451 - 0
src/views/materialManagement/propertyChange/index.vue

@@ -0,0 +1,451 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="变更后人员名称" prop="propertyId">
+        <el-input
+          v-model="queryParams.propertyId"
+          placeholder="请输入变更后人员名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="营具名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入营具名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="营具编号" prop="rukuNumber">
+        <el-input
+          v-model="queryParams.rukuNumber"
+          placeholder="请输入营具编号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更时间" prop="changeTime">
+        <el-input
+          v-model="queryParams.changeTime"
+          placeholder="请输入变更时间"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更前所属单位" prop="beforeUnitId">
+        <el-input
+          v-model="queryParams.beforeUnitId"
+          placeholder="请输入变更前所属单位"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更后所属单位" prop="afterUnitId">
+        <el-input
+          v-model="queryParams.afterUnitId"
+          placeholder="请输入变更后所属单位"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更前人员名称" prop="beforePeopleId">
+        <el-input
+          v-model="queryParams.beforePeopleId"
+          placeholder="请输入变更前人员名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更后人员名称" prop="afterPeopleId">
+        <el-input
+          v-model="queryParams.afterPeopleId"
+          placeholder="请输入变更后人员名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更后人员名称" prop="createtime">
+        <el-input
+          v-model="queryParams.createtime"
+          placeholder="请输入变更后人员名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更后人员名称" prop="updatetime">
+        <el-input
+          v-model="queryParams.updatetime"
+          placeholder="请输入变更后人员名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更前单位名称" prop="beforeUnitName">
+        <el-input
+          v-model="queryParams.beforeUnitName"
+          placeholder="请输入变更前单位名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更后单位名称" prop="afterUnitName">
+        <el-input
+          v-model="queryParams.afterUnitName"
+          placeholder="请输入变更后单位名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更前人员名称" prop="beforePeopleName">
+        <el-input
+          v-model="queryParams.beforePeopleName"
+          placeholder="请输入变更前人员名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="变更后人员名称" prop="afterPeopleName">
+        <el-input
+          v-model="queryParams.afterPeopleName"
+          placeholder="请输入变更后人员名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['materialManagement:propertyChange:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['materialManagement:propertyChange:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['materialManagement:propertyChange:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleExport"
+          v-hasPermi="['materialManagement:propertyChange:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="propertyChangeList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="变更后人员名称" align="center" prop="id" />
+      <el-table-column label="变更后人员名称" align="center" prop="propertyId" />
+      <el-table-column label="营具名称" align="center" prop="name" />
+      <el-table-column label="营具编号" align="center" prop="rukuNumber" />
+      <el-table-column label="变更时间" align="center" prop="changeTime" />
+      <el-table-column label="变更前所属单位" align="center" prop="beforeUnitId" />
+      <el-table-column label="变更后所属单位" align="center" prop="afterUnitId" />
+      <el-table-column label="变更前人员名称" align="center" prop="beforePeopleId" />
+      <el-table-column label="变更后人员名称" align="center" prop="afterPeopleId" />
+      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="备注" align="center" prop="createtime" />
+      <el-table-column label="备注" align="center" prop="updatetime" />
+      <el-table-column label="变更前单位名称" align="center" prop="beforeUnitName" />
+      <el-table-column label="变更后单位名称" align="center" prop="afterUnitName" />
+      <el-table-column label="变更前人员名称" align="center" prop="beforePeopleName" />
+      <el-table-column label="变更后人员名称" align="center" prop="afterPeopleName" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['materialManagement:propertyChange:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['materialManagement:propertyChange:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改营具物资变更对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="变更后人员名称" prop="propertyId">
+          <el-input v-model="form.propertyId" placeholder="请输入变更后人员名称" />
+        </el-form-item>
+        <el-form-item label="营具名称" prop="name">
+          <el-input v-model="form.name" placeholder="请输入营具名称" />
+        </el-form-item>
+        <el-form-item label="营具编号" prop="rukuNumber">
+          <el-input v-model="form.rukuNumber" placeholder="请输入营具编号" />
+        </el-form-item>
+        <el-form-item label="变更时间" prop="changeTime">
+          <el-input v-model="form.changeTime" placeholder="请输入变更时间" />
+        </el-form-item>
+        <el-form-item label="变更前所属单位" prop="beforeUnitId">
+          <el-input v-model="form.beforeUnitId" placeholder="请输入变更前所属单位" />
+        </el-form-item>
+        <el-form-item label="变更后所属单位" prop="afterUnitId">
+          <el-input v-model="form.afterUnitId" placeholder="请输入变更后所属单位" />
+        </el-form-item>
+        <el-form-item label="变更前人员名称" prop="beforePeopleId">
+          <el-input v-model="form.beforePeopleId" placeholder="请输入变更前人员名称" />
+        </el-form-item>
+        <el-form-item label="变更后人员名称" prop="afterPeopleId">
+          <el-input v-model="form.afterPeopleId" placeholder="请输入变更后人员名称" />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
+        </el-form-item>
+        <el-form-item label="变更前单位名称" prop="beforeUnitName">
+          <el-input v-model="form.beforeUnitName" placeholder="请输入变更前单位名称" />
+        </el-form-item>
+        <el-form-item label="变更后单位名称" prop="afterUnitName">
+          <el-input v-model="form.afterUnitName" placeholder="请输入变更后单位名称" />
+        </el-form-item>
+        <el-form-item label="变更前人员名称" prop="beforePeopleName">
+          <el-input v-model="form.beforePeopleName" placeholder="请输入变更前人员名称" />
+        </el-form-item>
+        <el-form-item label="变更后人员名称" prop="afterPeopleName">
+          <el-input v-model="form.afterPeopleName" placeholder="请输入变更后人员名称" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listPropertyChange, getPropertyChange, delPropertyChange, addPropertyChange, updatePropertyChange, exportPropertyChange } from "@/api/materialManagement/propertyChange";
+
+export default {
+  name: "PropertyChange",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 导出遮罩层
+      exportLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 营具物资变更表格数据
+      propertyChangeList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        propertyId: null,
+        name: null,
+        rukuNumber: null,
+        changeTime: null,
+        beforeUnitId: null,
+        afterUnitId: null,
+        beforePeopleId: null,
+        afterPeopleId: null,
+        createtime: null,
+        updatetime: null,
+        beforeUnitName: null,
+        afterUnitName: null,
+        beforePeopleName: null,
+        afterPeopleName: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        name: [
+          { required: true, message: "营具名称不能为空", trigger: "blur" }
+        ],
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询营具物资变更列表 */
+    getList() {
+      this.loading = true;
+      listPropertyChange(this.queryParams).then(response => {
+        this.propertyChangeList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        propertyId: null,
+        name: null,
+        rukuNumber: null,
+        changeTime: null,
+        beforeUnitId: null,
+        afterUnitId: null,
+        beforePeopleId: null,
+        afterPeopleId: null,
+        remark: null,
+        createtime: null,
+        updatetime: null,
+        beforeUnitName: null,
+        afterUnitName: null,
+        beforePeopleName: null,
+        afterPeopleName: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加营具物资变更";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getPropertyChange(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改营具物资变更";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updatePropertyChange(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addPropertyChange(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除营具物资变更编号为"' + ids + '"的数据项?').then(function() {
+        return delPropertyChange(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$modal.confirm('是否确认导出所有营具物资变更数据项?').then(() => {
+        this.exportLoading = true;
+        return exportPropertyChange(queryParams);
+      }).then(response => {
+        this.$download.name(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    }
+  }
+};
+</script>

+ 9 - 8
src/views/taishi/index.vue

@@ -950,7 +950,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">移动载体</div>
-                  <div class="s2"><b style="color: #30fdff">1</b>台</div>
+                  <div class="s2"><b style="color: #30fdff">{{smztlist[3].number}}</b>台</div>
                 </div>
               </div>
               <div class="right3-r-main-item">
@@ -959,7 +959,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">手机</div>
-                  <div class="s2"><b style="color: #2bf1b2">1</b>台</div>
+                  <div class="s2"><b style="color: #2bf1b2">{{smztlist[0].number}}</b>台</div>
                 </div>
               </div>
               <div class="right3-r-main-item">
@@ -968,7 +968,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">电脑</div>
-                  <div class="s2"><b style="color: #30aaff">1</b>台</div>
+                  <div class="s2"><b style="color: #30aaff">{{smztlist[1].number}}</b>台</div>
                 </div>
               </div>
               <div class="right3-r-main-item">
@@ -977,7 +977,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">相机</div>
-                  <div class="s2"><b style="color: #9d83ff">1</b>台</div>
+                  <div class="s2"><b style="color: #9d83ff">{{smztlist[2].number}}</b>台</div>
                 </div>
               </div>
             </div>
@@ -1019,6 +1019,7 @@ export default {
       //外出人员占比
       wclist: [],
       wylist: [],
+      smztlist:[],
       config: {
         header: ["单位", "防疫名称", "现有数量"],
         data: [
@@ -1144,10 +1145,10 @@ export default {
       this.jclist = res.data;
     });
     //涉密移动载体
-    // getNumber().then((res) => {
-    //   console.log(res)
-    //   this.smztlist=res.data;
-    // });
+    getNumber().then((res) => {
+      console.log(res.data[0].number)
+      this.smztlist=res.data;
+    });
     this.startTime();
   },
   mounted() {