Browse Source

首页增加待盘点信息

ljx 1 year ago
parent
commit
de8b11de53
1 changed files with 27 additions and 0 deletions
  1. 27 0
      ruoyi-ui/src/views/index.vue

+ 27 - 0
ruoyi-ui/src/views/index.vue

@@ -203,6 +203,28 @@
         </template>
       </el-table-column>
     </el-table>
+    <h3>待盘点信息</h3>
+    <el-table
+      :data="inventoryList"
+      height="260"
+      border
+      style="width: 100%"
+      :default-sort="{ prop: 'applicationDate', order: 'descending' }"
+    >
+    <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="资产盘点记录编号" align="center" prop="id" />
+      <el-table-column label="单据编号" align="center" prop="orderNumber" />
+      <el-table-column label="任务名称" align="center" prop="name" />
+      <el-table-column label="盘点部门" align="center" prop="inventoryDepartment" />
+      <el-table-column label="盘点人" align="center" prop="inventoryBy" />
+      <el-table-column label="盘点日期" align="center" prop="inventoryDate" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.inventoryDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="盘点位置" align="center" prop="inventoryLocation" />
+      <el-table-column label="备注" align="center" prop="remark" />
+    </el-table>
     <!-- 【调整】资产信息 -->
     <el-dialog
       title="资产调整"
@@ -223,6 +245,7 @@
 
 <script>
 import { listOrder, auditOrder } from "@/api/order/order";
+import { listInventory } from "@/api/inventory/inventory";
 
 export default {
   dicts: ["asset_order_type", "asset_record_status"],
@@ -236,6 +259,7 @@ export default {
       form: {},
       // 资产单据表格数据
       orderList: [],
+      inventoryList: [],
       // 资产原信息
       openAdjustment: false,
       adjustmentOriginalAssetInfo: null,
@@ -257,6 +281,9 @@ export default {
     /** 查询资产单据列表 */
     getList() {
       this.loading = true;
+      listInventory(this.queryParams).then(response => {
+        this.inventoryList = response.rows;
+      });
       listOrder(this.queryParams).then((response) => {
         this.orderList = response.rows;
         this.total = response.total;