From a904da0bb0764bec4261ee7f1fce103d3c155339 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 07 三月 2025 09:42:22 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/center-lims-before-ruoyi into dev

---
 src/views/CNAS/resourceDemand/standardMaterailRequistion/index.vue |  150 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 150 insertions(+), 0 deletions(-)

diff --git a/src/views/CNAS/resourceDemand/standardMaterailRequistion/index.vue b/src/views/CNAS/resourceDemand/standardMaterailRequistion/index.vue
new file mode 100644
index 0000000..dd59ccd
--- /dev/null
+++ b/src/views/CNAS/resourceDemand/standardMaterailRequistion/index.vue
@@ -0,0 +1,150 @@
+<template>
+  <div class="capacity-scope">
+    <div class="search">
+      <div>
+        <el-form :model="searchForm" ref="searchForm" size="small" :inline="true">
+          <el-form-item label="鏍囧噯鐗╄川鍚嶇О" prop="name">
+            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.name"
+              @keyup.enter.native="searchList"></el-input>
+          </el-form-item>
+          <el-form-item label="瑙勬牸鍨嬪彿" prop="model">
+            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.model"
+              @keyup.enter.native="searchList"></el-input>
+          </el-form-item>
+          <el-form-item>
+            <el-button size="medium" @click="resetSearchForm">閲� 缃�</el-button>
+            <el-button size="medium" type="primary" @click="searchList">鏌� 璇�</el-button>
+          </el-form-item>
+        </el-form>
+      </div>
+    </div>
+    <div class="table">
+      <lims-table :tableData="tableData" :column="tableColumn" :height="'calc(100vh - 250px)'" @pagination="pagination"
+        :page="page" :tableLoading="tableLoading"></lims-table>
+    </div>
+  </div>
+</template>
+
+<script>
+import limsTable from '@/components/Table/lims-table.vue'
+import {
+  getPageSubstanceRecord
+} from '@/api/cnas/resourceDemand/standardMaterailRequistion/standardMaterailRequistion'
+
+export default {
+  components: {
+    limsTable
+    // TableCard,
+    // ZTTable,
+  },
+  data() {
+    return {
+      searchForm: {
+        name: '',
+        model: '',
+      },
+      tableColumn: [
+        {
+          label: '鏍囧噯鐗╄川鍚嶇О',
+          prop: 'name',
+          minWidth: '120'
+        },
+        {
+          label: '瑙勬牸鍨嬪彿',
+          prop: 'model',
+          minWidth: '100'
+        },
+        {
+          label: '鍑哄巶缂栧彿',
+          prop: 'factoryNum',
+          minWidth: '100'
+        },
+        {
+          label: '鏁伴噺',
+          prop: 'factoryNum',
+          minWidth: '100'
+        },
+        {
+          label: '棰嗙敤浜�',
+          prop: 'borrowUser',
+          minWidth: '100'
+        },
+        {
+          label: '棰嗙敤鏃ユ湡',
+          prop: 'borrowDate',
+          minWidth: '100'
+        },
+        {
+          label: '褰掕繕浜�',
+          prop: 'returnIntegrity',
+          minWidth: '100'
+        },
+        {
+          label: '褰掕繕鏃ユ湡',
+          prop: 'returnDate',
+          minWidth: '100'
+        },
+        {
+          label: '褰掕繕鏃剁姸鎬�',
+          prop: 'returnIntegrity',
+          minWidth: '100'
+        }
+      ],
+      tableData: [],
+      tableLoading: false,
+      page: {
+        total: 0,
+        size: 10,
+        current: 1
+      },
+      total: 0,
+      formDia: false,
+      borrowDia: false,
+      returnDia: false,
+    }
+  },
+  mounted() {
+    this.searchList()
+  },
+  methods: {
+    // 鏌ヨ鍒楄〃
+    searchList() {
+      this.tableLoading = true
+      getPageSubstanceRecord({
+        ...this.page,
+        ...this.searchForm
+      }).then(res => {
+        this.tableLoading = false
+        if (res.code === 200) {
+          this.tableData = res.data.records
+          this.page.total = res.data.total
+        }
+      }).catch(err => {
+        this.tableLoading = false
+      })
+    },
+    // 閲嶇疆鏌ヨ鏉′欢
+    resetSearchForm() {
+      this.searchForm.name = '';
+      this.searchForm.model = '';
+      this.searchList()
+    },
+    // 鍒嗛〉鍒囨崲
+    pagination(page) {
+      this.page.size = page.limit
+      this.searchList();
+    },
+  }
+}
+</script>
+<style scoped>
+.capacity-scope {
+  padding: 20px !important;
+}
+
+.search {
+  height: 46px;
+  display: flex;
+  justify-content: space-between;
+}
+</style>

--
Gitblit v1.9.3