From 26b424a1f536d84de139248ff3993a8a9bc9a205 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期五, 21 三月 2025 14:30:14 +0800
Subject: [PATCH] 设备管理备品备件管理部分功能代码提交

---
 src/views/eam/spare/EamSparePartRequisitionList.vue                 |  542 ++++++++++++
 src/views/eam/spare/modules/EamSparePartReceiveDetailModal.vue      |  120 ++
 src/views/eam/spare/modules/EamSparePartInventoryModal.vue          |  129 ++
 src/views/eam/spart/modules/EamSparePartRequisitionDetailModal.vue  |  117 ++
 src/views/eam/spare/EamSparePartInventoryList.vue                   |  200 ++++
 src/views/eam/spare/modules/EamSparePartRequisitionExamineModal.vue |   96 ++
 src/views/eam/spare/EamSparePartReceiveDetailList.vue               |  180 ++++
 src/views/eam/spare/EamSparePartsList.vue                           |  202 ++++
 src/views/eam/spare/EamSparePartScrapList.vue                       |  205 ++++
 src/views/eam/spare/EamSparePartReceiveList.vue                     |  210 ++++
 src/views/eam/spare/modules/EamSparePartReceiveModal.vue            |  135 +++
 src/views/eam/spare/modules/EamSparePartsModal.vue                  |  201 ++++
 src/views/eam/spare/modules/EamSparePartScrapModal.vue              |  132 +++
 src/views/eam/spare/modules/EamSparePartRequisitionModal.vue        |  124 ++
 14 files changed, 2,593 insertions(+), 0 deletions(-)

diff --git a/src/views/eam/spare/EamSparePartInventoryList.vue b/src/views/eam/spare/EamSparePartInventoryList.vue
new file mode 100644
index 0000000..f80555d
--- /dev/null
+++ b/src/views/eam/spare/EamSparePartInventoryList.vue
@@ -0,0 +1,200 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 鏌ヨ鍖哄煙 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="澶囧搧澶囦欢ID">
+              <a-input placeholder="璇疯緭鍏ュ鍝佸浠禝D" v-model="queryParam.sparePartId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鎵规鍙�">
+              <a-input placeholder="璇疯緭鍏ユ壒娆″彿" v-model="queryParam.batchNum"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="搴撳瓨鏁伴噺">
+              <a-input placeholder="璇疯緭鍏ュ簱瀛樻暟閲�" v-model="queryParam.inventory"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鍑哄巶鏃ユ湡(鐢熶骇鏃ユ湡)">
+              <a-input placeholder="璇疯緭鍏ュ嚭鍘傛棩鏈�(鐢熶骇鏃ユ湡)" v-model="queryParam.manufactureDate"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="渚涘簲鍟�">
+              <a-input placeholder="璇疯緭鍏ヤ緵搴斿晢" v-model="queryParam.supplier"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '鏀惰捣' : '灞曞紑' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('澶囦欢搴撳瓨淇℃伅')">瀵煎嚭</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">瀵煎叆</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>鍒犻櫎</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table鍖哄煙-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        class="j-table-force-nowrap"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">缂栬緫</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)">
+                  <a>鍒犻櫎</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table鍖哄煙-end -->
+
+    <!-- 琛ㄥ崟鍖哄煙 -->
+    <eamSparePartInventory-modal ref="modalForm" @ok="modalFormOk"></eamSparePartInventory-modal>
+  </a-card>
+</template>
+
+<script>
+  import '@assets/less/TableExpand.less'
+  import EamSparePartInventoryModal from './modules/EamSparePartInventoryModal.vue'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "EamSparePartInventoryList",
+    mixins:[JeecgListMixin],
+    components: {
+      EamSparePartInventoryModal
+    },
+    data () {
+      return {
+        description: '澶囦欢搴撳瓨淇℃伅绠$悊椤甸潰',
+        // 琛ㄥご
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '澶囧搧澶囦欢ID',
+            align:"center",
+            dataIndex: 'sparePartId'
+           },
+		   {
+            title: '鎵规鍙�',
+            align:"center",
+            dataIndex: 'batchNum'
+           },
+		   {
+            title: '搴撳瓨鏁伴噺',
+            align:"center",
+            dataIndex: 'inventory'
+           },
+		   {
+            title: '鍑哄巶鏃ユ湡(鐢熶骇鏃ユ湡)',
+            align:"center",
+            dataIndex: 'manufactureDate'
+           },
+		   {
+            title: '渚涘簲鍟�',
+            align:"center",
+            dataIndex: 'supplier'
+           },
+		   {
+            title: '鎴鏈夋晥鏈�',
+            align:"center",
+            dataIndex: 'expirationOfValidity'
+           },
+		   {
+            title: '瀛樻斁浣嶇疆',
+            align:"center",
+            dataIndex: 'location'
+           },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/eam/eamSparePartInventory/list",
+          delete: "/eam/eamSparePartInventory/delete",
+          deleteBatch: "/eam/eamSparePartInventory/deleteBatch",
+          exportXlsUrl: "eam/eamSparePartInventory/exportXls",
+          importExcelUrl: "eam/eamSparePartInventory/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/EamSparePartReceiveDetailList.vue b/src/views/eam/spare/EamSparePartReceiveDetailList.vue
new file mode 100644
index 0000000..0b8a908
--- /dev/null
+++ b/src/views/eam/spare/EamSparePartReceiveDetailList.vue
@@ -0,0 +1,180 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 鏌ヨ鍖哄煙 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鍒犻櫎鏍囪">
+              <a-input placeholder="璇疯緭鍏ュ垹闄ゆ爣璁�" v-model="queryParam.delFlag"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="澶囦欢ID">
+              <a-input placeholder="璇疯緭鍏ュ浠禝D" v-model="queryParam.partId"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="棰嗙敤/褰掕繕鏁伴噺">
+              <a-input placeholder="璇疯緭鍏ラ鐢�/褰掕繕鏁伴噺" v-model="queryParam.receiveNum"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="棰嗙敤绫诲瀷;棰嗙敤/褰掕繕">
+              <a-input placeholder="璇疯緭鍏ラ鐢ㄧ被鍨�;棰嗙敤/褰掕繕" v-model="queryParam.receiveType"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '鏀惰捣' : '灞曞紑' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('棰嗙敤鍗曟槑缁�')">瀵煎嚭</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">瀵煎叆</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>鍒犻櫎</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table鍖哄煙-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        class="j-table-force-nowrap"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">缂栬緫</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)">
+                  <a>鍒犻櫎</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table鍖哄煙-end -->
+
+    <!-- 琛ㄥ崟鍖哄煙 -->
+    <eamSparePartReceiveDetail-modal ref="modalForm" @ok="modalFormOk"></eamSparePartReceiveDetail-modal>
+  </a-card>
+</template>
+
+<script>
+  import '@assets/less/TableExpand.less'
+  import EamSparePartReceiveDetailModal from './modules/EamSparePartReceiveDetailModal.vue'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "EamSparePartReceiveDetailList",
+    mixins:[JeecgListMixin],
+    components: {
+      EamSparePartReceiveDetailModal
+    },
+    data () {
+      return {
+        description: '棰嗙敤鍗曟槑缁嗙鐞嗛〉闈�',
+        // 琛ㄥご
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '鍒犻櫎鏍囪',
+            align:"center",
+            dataIndex: 'delFlag'
+           },
+		   {
+            title: '澶囦欢ID',
+            align:"center",
+            dataIndex: 'partId'
+           },
+		   {
+            title: '棰嗙敤/褰掕繕鏁伴噺',
+            align:"center",
+            dataIndex: 'receiveNum'
+           },
+		   {
+            title: '棰嗙敤绫诲瀷;棰嗙敤/褰掕繕',
+            align:"center",
+            dataIndex: 'receiveType'
+           },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/eam/eamSparePartReceiveDetail/list",
+          delete: "/eam/eamSparePartReceiveDetail/delete",
+          deleteBatch: "/eam/eamSparePartReceiveDetail/deleteBatch",
+          exportXlsUrl: "eam/eamSparePartReceiveDetail/exportXls",
+          importExcelUrl: "eam/eamSparePartReceiveDetail/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/EamSparePartReceiveList.vue b/src/views/eam/spare/EamSparePartReceiveList.vue
new file mode 100644
index 0000000..07129f4
--- /dev/null
+++ b/src/views/eam/spare/EamSparePartReceiveList.vue
@@ -0,0 +1,210 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 鏌ヨ鍖哄煙 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鍒犻櫎鏍囪">
+              <a-input placeholder="璇疯緭鍏ュ垹闄ゆ爣璁�" v-model="queryParam.delFlag"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="棰嗙敤鍗曠紪鐮�">
+              <a-input placeholder="璇疯緭鍏ラ鐢ㄥ崟缂栫爜" v-model="queryParam.receiveCode"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="棰嗙敤浜�">
+              <a-input placeholder="璇疯緭鍏ラ鐢ㄤ汉" v-model="queryParam.receiveUser"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="棰嗙敤浜嬬敱">
+              <a-input placeholder="璇疯緭鍏ラ鐢ㄤ簨鐢�" v-model="queryParam.receiveReason"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="棰嗙敤鐘舵��">
+              <a-input placeholder="璇疯緭鍏ラ鐢ㄧ姸鎬�" v-model="queryParam.receiveStatus"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '鏀惰捣' : '灞曞紑' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('澶囧搧澶囦欢棰嗙敤鍗�')">瀵煎嚭</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">瀵煎叆</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>鍒犻櫎</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table鍖哄煙-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        class="j-table-force-nowrap"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">缂栬緫</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)">
+                  <a>鍒犻櫎</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table鍖哄煙-end -->
+
+    <!-- 琛ㄥ崟鍖哄煙 -->
+    <eamSparePartReceive-modal ref="modalForm" @ok="modalFormOk"></eamSparePartReceive-modal>
+  </a-card>
+</template>
+
+<script>
+  import '@assets/less/TableExpand.less'
+  import EamSparePartReceiveModal from './modules/EamSparePartReceiveModal.vue'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "EamSparePartReceiveList",
+    mixins:[JeecgListMixin],
+    components: {
+      EamSparePartReceiveModal
+    },
+    data () {
+      return {
+        description: '澶囧搧澶囦欢棰嗙敤鍗曠鐞嗛〉闈�',
+        // 琛ㄥご
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '鍒犻櫎鏍囪',
+            align:"center",
+            dataIndex: 'delFlag'
+           },
+		   {
+            title: '棰嗙敤鍗曠紪鐮�',
+            align:"center",
+            dataIndex: 'receiveCode'
+           },
+		   {
+            title: '棰嗙敤浜�',
+            align:"center",
+            dataIndex: 'receiveUser'
+           },
+		   {
+            title: '棰嗙敤浜嬬敱',
+            align:"center",
+            dataIndex: 'receiveReason'
+           },
+		   {
+            title: '棰嗙敤鐘舵��',
+            align:"center",
+            dataIndex: 'receiveStatus'
+           },
+		   {
+            title: '鏄惁闇�瑕佸綊杩�;鏄細瀛樺湪褰掕繕鍔ㄤ綔锛屽惁锛氱洿鎺ュ畬鎴�',
+            align:"center",
+            dataIndex: 'giveBackFlag'
+           },
+		   {
+            title: '瀹℃牳浜�',
+            align:"center",
+            dataIndex: 'approvalUser'
+           },
+		   {
+            title: '瀹℃牳鏃堕棿',
+            align:"center",
+            dataIndex: 'approvalTime'
+           },
+		   {
+            title: '澶囨敞',
+            align:"center",
+            dataIndex: 'remark'
+           },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/eam/eamSparePartReceive/list",
+          delete: "/eam/eamSparePartReceive/delete",
+          deleteBatch: "/eam/eamSparePartReceive/deleteBatch",
+          exportXlsUrl: "eam/eamSparePartReceive/exportXls",
+          importExcelUrl: "eam/eamSparePartReceive/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/EamSparePartRequisitionList.vue b/src/views/eam/spare/EamSparePartRequisitionList.vue
new file mode 100644
index 0000000..cdeeee5
--- /dev/null
+++ b/src/views/eam/spare/EamSparePartRequisitionList.vue
@@ -0,0 +1,542 @@
+<template>
+  <a-row :gutter="10">
+    <a-col :md="leftColMd" :sm="24" style="margin-bottom: 20px">
+      <a-card :bordered="false">
+        <!-- 鏌ヨ鍖哄煙 -->
+        <div class="table-page-search-wrapper">
+          <!-- 鎼滅储鍖哄煙 -->
+          <a-form layout="inline" @keyup.enter.native="searchQuery">
+            <a-row :gutter="24">
+              <a-col :md="12" :sm="8">
+                <a-form-item label="璇疯喘鍗曞彿">
+                  <j-input placeholder="璇疯緭鍏ヨ璐崟鍙�" v-model="queryParam.requisitionCode"></j-input>
+                </a-form-item>
+              </a-col>
+              <template v-if="toggleSearchStatus">
+                <a-col :xl="6" :lg="7" :md="8" :sm="24">
+                  <a-form-item label="鐢宠浜�">
+                    <a-input placeholder="璇疯緭鍏ョ敵璇蜂汉" v-model="queryParam.reportUser"></a-input>
+                  </a-form-item>
+                </a-col>
+                <a-col :xl="6" :lg="7" :md="8" :sm="24">
+                  <a-form-item label="璇疯喘鐘舵��">
+                    <a-input placeholder="璇疯緭鍏ヨ璐姸鎬�" v-model="queryParam.requisitionStatus"></a-input>
+                  </a-form-item>
+                </a-col>
+                <a-col :xl="6" :lg="7" :md="8" :sm="24">
+                  <a-form-item label="瀹℃牳浜�">
+                    <a-input placeholder="璇疯緭鍏ュ鏍镐汉" v-model="queryParam.approvalUser"></a-input>
+                  </a-form-item>
+                </a-col>
+              </template>
+              <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+                <a-col :md="12" :sm="24">
+                  <a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 21px">鏌ヨ</a-button>
+                  <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+                </a-col>
+              </span>
+            </a-row>
+          </a-form>
+        </div>
+
+        <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+        <div class="table-operator">
+          <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
+          <a-button type="primary" icon="download" @click="handleExportXls('澶囦欢璇疯喘鍗�')">瀵煎嚭</a-button>
+          <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+            <a-button type="primary" icon="import">瀵煎叆</a-button>
+          </a-upload>
+        </div>
+
+        <!-- table鍖哄煙-begin -->
+        <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+          <i class="anticon anticon-info-circle ant-alert-icon">
+          </i> 宸查�夋嫨 <a><b>{{ selectedRowKeys1.length }}</b></a>椤�
+          <a style="margin-left: 24px" @click="onClearSelected1">娓呯┖</a>
+        </div>
+        <div style="margin-top: 15px">
+          <a-table
+            style="height:500px"
+            ref="table"
+            size="middle"
+            bordered
+            rowKey="id"
+            :columns="columns"
+            :dataSource="dataSource"
+            :pagination="iPagination"
+            :loading="loading"
+            :customRow="customRow"
+            :rowSelection="{selectedRowKeys: selectedRowKeys1, onChange: onSelectChange1, type:'radio'}"
+            @change="handleTableChange">
+
+          <span slot="action" slot-scope="text, record">
+            <a @click="handleOpen(record)">鏄庣粏</a>
+            <a-divider v-if="record.requisitionStatus !== '3' && record.requisitionStatus !== '5'" type="vertical" />
+            <a-dropdown v-if="record.requisitionStatus === '1' || record.requisitionStatus === '4'">
+              <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+              <a-menu slot="overlay">
+                <a-menu-item>
+                  <a @click="handleConfirm(record)">鎻愪氦</a>
+                </a-menu-item>
+                <a-menu-item>
+                  <a @click="handleEdit(record)">缂栬緫</a>
+                </a-menu-item>
+                <a-menu-item>
+                  <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)">
+                    <a>鍒犻櫎</a>
+                  </a-popconfirm>
+                </a-menu-item>
+              </a-menu>
+            </a-dropdown>
+            <a v-if="record.requisitionStatus === '2'" @click="handleExamine(record)">瀹℃牳</a>
+          </span>
+
+          </a-table>
+        </div>
+        <!-- table鍖哄煙-end -->
+
+        <!-- 琛ㄥ崟鍖哄煙 -->
+        <eamSparePartRequisition-modal ref="modalForm" @ok="modalFormOk"></eamSparePartRequisition-modal>
+
+        <eamSparePartRequisitionExamine-modal ref="modalExamine" @ok="modalFormOk2"></eamSparePartRequisitionExamine-modal>
+
+      </a-card>
+    </a-col>
+    <a-col :md="rightColMd" :sm="24" v-if="this.rightColVal === 1">
+      <a-card :bordered="false">
+        <div style="text-align: right;">
+          <a-icon type="close-circle" @click="hideSpareDetailList" />
+        </div>
+        <!-- 鏌ヨ鍖哄煙 -->
+        <div class="table-page-search-wrapper">
+          <a-form layout="inline">
+            <a-row :gutter="24">
+              <a-col :md="9" :sm="24">
+              <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+                <a-button type="primary" @click="searchQuery2" icon="search">鏌ヨ</a-button>
+                <a-button type="primary" @click="searchReset2" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+              </span>
+              </a-col>
+
+            </a-row>
+          </a-form>
+        </div>
+
+        <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+        <div class="table-operator" :md="24" :sm="24">
+          <a-button @click="handleAdd2" type="primary" icon="plus">鏂板</a-button>
+          <a-button type="primary" icon="download" @click="handleExportXls('澶囦欢娓呰喘鍗曟槑缁�')">瀵煎嚭</a-button>
+          <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+            <a-button type="primary" icon="import">瀵煎叆</a-button>
+          </a-upload>
+          <a-dropdown v-if="selectedRowKeys2.length > 0">
+            <a-menu slot="overlay">
+              <a-menu-item key="1" @click="batchDel2">
+                <a-icon type="delete"/>
+                鎵归噺鍒犻櫎
+              </a-menu-item>
+            </a-menu>
+            <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔
+              <a-icon type="down"/>
+            </a-button>
+          </a-dropdown>
+        </div>
+
+        <!-- table鍖哄煙-begin -->
+        <div>
+          <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+            <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys2.length }}</a>椤�
+            <a style="margin-left: 24px" @click="onClearSelected2">娓呯┖</a>
+          </div>
+
+          <a-table
+            style="height:500px"
+            ref="table2"
+            size="middle"
+            bordered
+            rowKey="id"
+            :columns="columns2"
+            :dataSource="dataSource2"
+            :pagination="iPagination2"
+            :loading="loading2"
+            class="j-table-force-nowrap"
+            :rowSelection="{selectedRowKeys: selectedRowKeys2, onChange: onSelectChange2}"
+            @change="handleTableChange2">
+
+          <span slot="action" slot-scope="text, record">
+            <a-dropdown>
+              <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+              <a-menu slot="overlay">
+                <a-menu-item>
+                  <a-popconfirm @click="handleEdit2(record)">
+                    <a>缂栬緫</a>
+                  </a-popconfirm>
+                  <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete2(record.id)">
+                    <a>鍒犻櫎</a>
+                  </a-popconfirm>
+                </a-menu-item>
+              </a-menu>
+            </a-dropdown>
+          </span>
+
+          </a-table>
+        </div>
+        <!-- table鍖哄煙-end -->
+      </a-card>
+    </a-col>
+
+  </a-row>
+</template>
+
+<script>
+  import '@assets/less/TableExpand.less'
+  import EamSparePartRequisitionModal from './modules/EamSparePartRequisitionModal.vue'
+  import EamSparePartRequisitionExamineModal from './modules/EamSparePartRequisitionExamineModal.vue'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import { deleteAction, getAction, postAction } from '@api/manage'
+  import { filterObj } from '@/utils/util'
+
+  export default {
+    name: "EamSparePartRequisitionList",
+    mixins:[JeecgListMixin],
+    components: {
+      EamSparePartRequisitionModal,
+      EamSparePartRequisitionExamineModal
+    },
+    data () {
+      return {
+        description: '澶囦欢璇疯喘鍗曠鐞嗛〉闈�',
+        model1: {},
+        model2: {},
+        queryParam1: {},
+        queryParam2: {},
+        dataSource: [],
+        dataSource2: [],
+        spareRequisitionId: '',
+        iPagination: {
+          current: 1,
+          pageSize: 10,
+          pageSizeOptions: ['10', '20', '30'],
+          showTotal: (total, range) => {
+            return range[0] + '-' + range[1] + ' 鍏�' + total + '鏉�'
+          },
+          showQuickJumper: true,
+          showSizeChanger: true,
+          total: 0,
+        },
+        iPagination2: {
+          current: 1,
+          pageSize: 10,
+          pageSizeOptions: ['10', '20', '30'],
+          showTotal: (total, range) => {
+            return range[0] + '-' + range[1] + ' 鍏�' + total + '鏉�'
+          },
+          showQuickJumper: true,
+          showSizeChanger: true,
+          total: 0,
+        },
+        iSorter1: {
+          column: 'createTime',
+          order: 'desc',
+        },
+        iSorter2: {
+          column: 'createTime',
+          order: 'desc',
+        },
+        filters1: {},
+        filters2: {},
+        loading: false,
+        loading2: false,
+        selectedRowKeys1: [],
+        selectedRowKeys2: [],
+        selectionRows1: [],
+        selectionRows2: [],
+        rightColVal: 0,
+        // 楂樼骇鏌ヨ鍙傛暟
+        superQueryParams2: '',
+        // 楂樼骇鏌ヨ鎷兼帴鏉′欢
+        superQueryMatchType2: 'and',
+        // 琛ㄥご
+        columns: [
+		   {
+            title: '璇疯喘鍗曞彿',
+            align:"center",
+            dataIndex: 'requisitionCode'
+           },
+          {
+            title: '鐘舵��',
+            align:"center",
+            dataIndex: 'requisitionStatus_dictText'
+          },
+		   {
+            title: '璇疯喘浜�',
+            align:"center",
+            dataIndex: 'reportUser'
+           },
+          {
+            title: '璇疯喘鏃堕棿',
+            align:"center",
+            dataIndex: 'createTime'
+          },
+		   {
+            title: '瀹℃牳浜�',
+            align:"center",
+            dataIndex: 'approvalUser'
+           },
+		   {
+            title: '瀹℃牳鏃堕棿',
+            align:"center",
+            dataIndex: 'approvalTime'
+           },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+        // 瀛愯〃琛ㄥご
+        columns2: [
+          {
+            title: '澶囧搧澶囦欢ID',
+            align:"center",
+            dataIndex: 'partId'
+          },
+          {
+            title: '璇疯喘鏁伴噺',
+            align:"center",
+            dataIndex: 'requisitionNum'
+          },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/eam/eamSparePartRequisition/list",
+          list2: "/eam/eamSparePartRequisitionDetail/list",
+          delete: "/eam/eamSparePartRequisition/delete",
+          delete2: "/eam/eamSparePartRequisitionDetail/delete",
+          deleteBatch: "/eam/eamSparePartRequisition/deleteBatch",
+          deleteBatch2: "/eam/eamSparePartRequisitionDetail/deleteBatch",
+          exportXlsUrl: "eam/eamSparePartRequisition/exportXls",
+          exportXlsUrl2: "eam/eamSparePartRequisitionDetail/exportXls",
+          importExcelUrl: "eam/eamSparePartRequisition/importExcel",
+          importExcelUrl2: "eam/eamSparePartRequisitionDetail/importExcel",
+          submit: "eam/eamSparePartRequisition/submitSpareRequisition"
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    },
+    leftColMd() {
+      return this.selectedRowKeys1.length === 0 ? 24 : 12
+    },
+    rightColMd() {
+      return this.selectedRowKeys1.length === 0 ? 0 : 12
+    }
+  },
+    methods: {
+      customRow(record) {
+        return {
+          on: {
+            dblclick:() => {
+              this.handleOpen(record)
+            }
+          }
+        }
+      },
+      onSelectChange1(selectedRowKeys, selectionRows) {
+        this.rightColVal = 1
+        this.selectedRowKeys1 = selectedRowKeys
+        this.selectionRows1 = selectionRows
+        this.model1 = Object.assign({}, selectionRows[0])
+        this.spareRequisitionId = selectedRowKeys[0]
+        this.loadData2()
+      },
+      onSelectChange2(selectedRowKeys, selectionRows) {
+        this.selectedRowKeys2 = selectedRowKeys
+        this.selectionRows2 = selectionRows
+      },
+      /**
+       * 鐐瑰嚮褰撳墠琛岃溅闂撮�夐」鍚庤Е鍙戜簨浠�
+       * @param record 褰撳墠琛屾暟鎹�
+       */
+      handleOpen: function (record) {
+        this.rightColVal = 1
+        this.selectedRowKeys1 = [record.id]
+        this.model1 = Object.assign({}, record)
+        this.spareRequisitionId = record.id
+        this.onClearSelected2()
+        this.loadData2()
+      },
+      searchQuery2: function () {
+        this.loadData2(1)
+      },
+      searchReset2: function () {
+        this.queryParam2 = {}
+        this.loadData2(1)
+      },
+      handleTableChange2: function (pagination, filters, sorter) {
+        //鍒嗛〉銆佹帓搴忋�佺瓫閫夊彉鍖栨椂瑙﹀彂
+        if (Object.keys(sorter).length > 0) {
+          this.iSorter2.column = sorter.field
+          this.iSorter2.order = 'ascend' == sorter.order ? 'asc' : 'desc'
+        }
+        this.iPagination2 = pagination
+        this.loadData2()
+      },
+      onClearSelected2: function () {
+        this.selectedRowKeys2 = []
+        this.selectionRows2 = []
+      },
+      loadData2: function (arg) {
+        if (!this.url.list2) {
+          this.$message.error('璇疯缃畊rl.list2灞炴��!')
+          return
+        }
+        //鍔犺浇鏁版嵁 鑻ヤ紶鍏ュ弬鏁�1鍒欏姞杞界涓�椤电殑鍐呭
+        if (arg === 1) {
+          this.iPagination2.current = 1
+        }
+        if (this.currentWorkshopId === '') return
+        let params = this.getQueryParams2() //鏌ヨ鏉′欢
+        params.spareRequisitionId = this.spareRequisitionId
+        this.loading2 = true
+        getAction(this.url.list2, params).then((res) => {
+          if (res.success) {
+            this.dataSource2 = res.result.records
+            this.iPagination2.total = res.result.total
+          }else{
+            this.dataSource2=[]
+          }
+          this.loading2 = false
+        })
+      },
+      getQueryParams2() {
+        //鑾峰彇鏌ヨ鏉′欢
+        let sqp = {}
+        if (this.superQueryParams2) {
+          sqp['superQueryParams'] = encodeURI(this.superQueryParams2)
+          sqp['superQueryMatchType'] = this.superQueryMatchType2
+        }
+        var param = Object.assign(sqp, this.queryParam2, this.iSorter2, this.filters2)
+        param.field = this.getQueryField2()
+        param.pageNo = this.iPagination2.current
+        param.pageSize = this.iPagination2.pageSize
+        return filterObj(param)
+      },
+      getQueryField2() {
+        var str = 'id,'
+        this.columns2.forEach(function(value) {
+          str += ',' + value.dataIndex
+        })
+        return str
+      },
+      hideSpareDetailList: function () {
+        this.selectedRowKeys1 = []
+      },
+      handleEdit2: function(record) {
+        this.$refs.modalForm2.title = '缂栬緫'
+        // this.$refs.modalForm2.roleDisabled = true
+        this.$refs.modalForm2.edit(record)
+      },
+      handleAdd2: function () {
+        if (this.spareRequisitionId === '') {
+          this.$message.error('璇烽�夋嫨涓�涓璐崟!')
+        } else {
+          // this.$refs.modalForm2.roleDisabled = true
+          this.$refs.modalForm2.title = '鏂板'
+          this.$refs.modalForm2.edit({selectedSpareRequisitions:this.spareRequisitionId})
+        }
+      },
+      handleDelete2: function (id) {
+        if (!this.url.delete2) {
+          this.$message.error('璇疯缃畊rl.delete2灞炴��!')
+          return
+        }
+        var that = this
+        deleteAction(that.url.delete2, { spareRequisitionId: this.spareRequisitionId, spareRequisitionDetailId: id }).then((res) => {
+          if (res.success) {
+            that.$message.success(res.message)
+            that.loadData2()
+          } else {
+            that.$message.warning(res.message)
+          }
+        })
+      },
+      batchDel2: function() {
+        if (!this.url.deleteBatch2) {
+          this.$message.error('璇疯缃畊rl.deleteBatch2灞炴��!')
+          return
+        }
+        if (this.selectedRowKeys2.length <= 0) {
+          this.$message.warning('璇烽�夋嫨涓�鏉¤褰曪紒')
+          return
+        } else {
+          var ids = ''
+          for (var a = 0; a < this.selectedRowKeys2.length; a++) {
+            ids += this.selectedRowKeys2[a] + ','
+          }
+          var that = this
+          this.$confirm({
+            title: '纭鍒犻櫎',
+            content: '鏄惁鍒犻櫎閫変腑鏁版嵁?',
+            onOk: function() {
+              deleteAction(that.url.deleteBatch2, { spareRequisitionId: that.spareRequisitionId, spareRequisitionDetailIds: ids }).then((res) => {
+                if (res.success) {
+                  that.$message.success(res.message)
+                  that.loadData2()
+                  that.onClearSelected2()
+                } else {
+                  that.$message.warning(res.message)
+                }
+              })
+            }
+          })
+        }
+      },
+      onClearSelected1() {
+        this.selectedRowKeys1 = []
+        this.selectionRows1 = []
+      },
+      handleConfirm(record) {
+        if (!this.url.submit) {
+          this.$message.error('璇疯缃畊rl.submit灞炴��!')
+          return
+        }
+        var that = this
+        this.$confirm({
+          title: '纭鎻愪氦',
+          content: '纭畾鎻愪氦鍚�?',
+          onOk: function() {
+            postAction(that.url.submit, record).then((res) => {
+              if (res.success) {
+                that.$message.success(res.message)
+                that.loadData()
+                // that.onClearSelected1()
+              } else {
+                that.$message.warning(res.message)
+              }
+            })
+          }
+        })
+      },
+      handleExamine: function (record) {
+        this.$refs.modalExamine.examine(record);
+        this.$refs.modalExamine.title = "瀹℃牳";
+        this.$refs.modalExamine.disableSubmit = false;
+      },
+      modalFormOk2: function () {
+        this.loadData()
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/EamSparePartScrapList.vue b/src/views/eam/spare/EamSparePartScrapList.vue
new file mode 100644
index 0000000..6ed3c89
--- /dev/null
+++ b/src/views/eam/spare/EamSparePartScrapList.vue
@@ -0,0 +1,205 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 鏌ヨ鍖哄煙 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鍒犻櫎鏍囪">
+              <a-input placeholder="璇疯緭鍏ュ垹闄ゆ爣璁�" v-model="queryParam.delFlag"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鍗曟嵁鍙�">
+              <a-input placeholder="璇疯緭鍏ュ崟鎹彿" v-model="queryParam.scrapCode"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="搴撳瓨ID">
+              <a-input placeholder="璇疯緭鍏ュ簱瀛業D" v-model="queryParam.inventoryId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鎶ュ簾鍘熷洜">
+              <a-input placeholder="璇疯緭鍏ユ姤搴熷師鍥�" v-model="queryParam.scrapReason"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="鎶ュ簾鏁伴噺">
+              <a-input placeholder="璇疯緭鍏ユ姤搴熸暟閲�" v-model="queryParam.scrapNum"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '鏀惰捣' : '灞曞紑' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('澶囧搧澶囦欢鎶ュ簾')">瀵煎嚭</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">瀵煎叆</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>鍒犻櫎</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table鍖哄煙-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        class="j-table-force-nowrap"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">缂栬緫</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)">
+                  <a>鍒犻櫎</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table鍖哄煙-end -->
+
+    <!-- 琛ㄥ崟鍖哄煙 -->
+    <eamSparePartScrap-modal ref="modalForm" @ok="modalFormOk"></eamSparePartScrap-modal>
+  </a-card>
+</template>
+
+<script>
+  import '@assets/less/TableExpand.less'
+  import EamSparePartScrapModal from './modules/EamSparePartScrapModal.vue'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "EamSparePartScrapList",
+    mixins:[JeecgListMixin],
+    components: {
+      EamSparePartScrapModal
+    },
+    data () {
+      return {
+        description: '澶囧搧澶囦欢鎶ュ簾绠$悊椤甸潰',
+        // 琛ㄥご
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '鍒犻櫎鏍囪',
+            align:"center",
+            dataIndex: 'delFlag'
+           },
+		   {
+            title: '鍗曟嵁鍙�',
+            align:"center",
+            dataIndex: 'scrapCode'
+           },
+		   {
+            title: '搴撳瓨ID',
+            align:"center",
+            dataIndex: 'inventoryId'
+           },
+		   {
+            title: '鎶ュ簾鍘熷洜',
+            align:"center",
+            dataIndex: 'scrapReason'
+           },
+		   {
+            title: '鎶ュ簾鏁伴噺',
+            align:"center",
+            dataIndex: 'scrapNum'
+           },
+		   {
+            title: '鐢宠浜�',
+            align:"center",
+            dataIndex: 'reportUser'
+           },
+		   {
+            title: '瀹℃牳浜�',
+            align:"center",
+            dataIndex: 'approvalUser'
+           },
+		   {
+            title: '瀹℃牳鏃堕棿',
+            align:"center",
+            dataIndex: 'approvalTime'
+           },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/eam/eamSparePartScrap/list",
+          delete: "/eam/eamSparePartScrap/delete",
+          deleteBatch: "/eam/eamSparePartScrap/deleteBatch",
+          exportXlsUrl: "eam/eamSparePartScrap/exportXls",
+          importExcelUrl: "eam/eamSparePartScrap/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/EamSparePartsList.vue b/src/views/eam/spare/EamSparePartsList.vue
new file mode 100644
index 0000000..85ac3f2
--- /dev/null
+++ b/src/views/eam/spare/EamSparePartsList.vue
@@ -0,0 +1,202 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 鏌ヨ鍖哄煙 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+            <a-form-item label="澶囦欢缂栫爜">
+              <j-input placeholder="璇疯緭鍏ュ浠剁紪鐮�" v-model="queryParam.partCode"></j-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+            <a-form-item label="澶囦欢鍚嶇О">
+              <j-input placeholder="璇疯緭鍏ュ浠跺悕绉�" v-model="queryParam.partName"></j-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+            <a-form-item label="澶囦欢鍒嗙被">
+              <j-input placeholder="璇疯緭鍏ュ浠跺垎绫�" v-model="queryParam.partCategory"></j-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+            <a-form-item label="澶囦欢鍨嬪彿">
+              <j-input placeholder="璇疯緭鍏ュ浠跺瀷鍙�" v-model="queryParam.partModel"></j-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('澶囧搧澶囦欢绠$悊')">瀵煎嚭</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">瀵煎叆</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>鍒犻櫎</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table鍖哄煙-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        class="j-table-force-nowrap"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">缂栬緫</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)">
+                  <a>鍒犻櫎</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table鍖哄煙-end -->
+
+    <!-- 琛ㄥ崟鍖哄煙 -->
+    <eamSpareParts-modal ref="modalForm" @ok="modalFormOk"></eamSpareParts-modal>
+  </a-card>
+</template>
+
+<script>
+import '@assets/less/TableExpand.less'
+import EamSparePartsModal from './modules/EamSparePartsModal.vue'
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "EamSparePartsList",
+    mixins:[JeecgListMixin],
+    components: {
+      EamSparePartsModal
+    },
+    data () {
+      return {
+        description: '澶囧搧澶囦欢绠$悊绠$悊椤甸潰',
+        // 琛ㄥご
+        columns: [
+		      {
+            title: '澶囦欢缂栫爜',
+            align:"center",
+            dataIndex: 'partCode'
+          },
+          {
+            title: '澶囦欢鍚嶇О',
+            align:"center",
+            dataIndex: 'partName'
+          },
+          {
+            title: '鍒嗙被',
+            align:"center",
+            dataIndex: 'partCategory'
+          },
+          {
+            title: '鍨嬪彿',
+            align:"center",
+            dataIndex: 'partModel'
+          },
+          {
+            title: '瑙勬牸',
+            align:"center",
+            dataIndex: 'partSpecification'
+          },
+          {
+            title: '瀛樻斁浠撳簱',
+            align:"center",
+            dataIndex: 'storehouse'
+          },
+          {
+            title: '鍒堕�犲晢',
+            align:"center",
+            dataIndex: 'manufacturingEnterprise'
+          },
+          {
+            title: '鍗曚綅',
+            align:"center",
+            dataIndex: 'unit'
+          },
+          {
+            title: '鏈夋晥鏈燂紙澶╋級',
+            align:"center",
+            dataIndex: 'periodOfValidity'
+          },
+		      {
+            title: '搴撳瓨涓婇檺鍊�',
+            align:"center",
+            dataIndex: 'inventoryMax'
+          },
+		      {
+            title: '搴撳瓨涓嬮檺鍊�',
+            align:"center",
+            dataIndex: 'inventoryMin'
+          },
+		      {
+            title: '搴撳瓨棰勮鍊�',
+            align:"center",
+            dataIndex: 'inventoryWarning'
+          },
+          {
+            title: '鎿嶄綔',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/eam/eamSpareParts/list",
+          delete: "/eam/eamSpareParts/delete",
+          deleteBatch: "/eam/eamSpareParts/deleteBatch",
+          exportXlsUrl: "eam/eamSpareParts/exportXls",
+          importExcelUrl: "eam/eamSpareParts/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/modules/EamSparePartInventoryModal.vue b/src/views/eam/spare/modules/EamSparePartInventoryModal.vue
new file mode 100644
index 0000000..a0dcd77
--- /dev/null
+++ b/src/views/eam/spare/modules/EamSparePartInventoryModal.vue
@@ -0,0 +1,129 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sparePartId" label="澶囧搧澶囦欢ID">
+          <a-input placeholder="璇疯緭鍏ュ鍝佸浠禝D" v-model="model.sparePartId" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="batchNum" label="鎵规鍙�">
+          <a-input placeholder="璇疯緭鍏ユ壒娆″彿" v-model="model.batchNum" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventory" label="搴撳瓨鏁伴噺">
+          <a-input placeholder="璇疯緭鍏ュ簱瀛樻暟閲�" v-model="model.inventory" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="manufactureDate" label="鍑哄巶鏃ユ湡(鐢熶骇鏃ユ湡)">
+          <a-input placeholder="璇疯緭鍏ュ嚭鍘傛棩鏈�(鐢熶骇鏃ユ湡)" v-model="model.manufactureDate" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="supplier" label="渚涘簲鍟�">
+          <a-input placeholder="璇疯緭鍏ヤ緵搴斿晢" v-model="model.supplier" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="expirationOfValidity" label="鎴鏈夋晥鏈�">
+          <a-input placeholder="璇疯緭鍏ユ埅姝㈡湁鏁堟湡" v-model="model.expirationOfValidity" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="location" label="瀛樻斁浣嶇疆">
+          <a-input placeholder="璇疯緭鍏ュ瓨鏀句綅缃�" v-model="model.location" />
+        </a-form-model-item>
+
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+  import { httpAction } from '@api/manage'
+  import moment from "moment"
+
+  export default {
+    name: "EamSparePartInventoryModal",
+    data () {
+      return {
+        title:"鎿嶄綔",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        validatorRules:{
+        },
+        url: {
+          add: "/eam/eamSparePartInventory/add",
+          edit: "/eam/eamSparePartInventory/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        //鍒濆鍖栭粯璁ゅ��
+        this.edit({});
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+        this.$refs.form.clearValidate();
+      },
+      handleOk () {
+        const that = this;
+        // 瑙﹀彂琛ㄥ崟楠岃瘉
+         this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+          }else{
+             return false;
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/modules/EamSparePartReceiveDetailModal.vue b/src/views/eam/spare/modules/EamSparePartReceiveDetailModal.vue
new file mode 100644
index 0000000..3d8a475
--- /dev/null
+++ b/src/views/eam/spare/modules/EamSparePartReceiveDetailModal.vue
@@ -0,0 +1,120 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag" label="鍒犻櫎鏍囪">
+          <a-input-number v-model="model.delFlag"/>
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partId" label="澶囦欢ID">
+          <a-input placeholder="璇疯緭鍏ュ浠禝D" v-model="model.partId" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="receiveNum" label="棰嗙敤/褰掕繕鏁伴噺">
+          <a-input placeholder="璇疯緭鍏ラ鐢�/褰掕繕鏁伴噺" v-model="model.receiveNum" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="receiveType" label="棰嗙敤绫诲瀷;棰嗙敤/褰掕繕">
+          <a-input placeholder="璇疯緭鍏ラ鐢ㄧ被鍨�;棰嗙敤/褰掕繕" v-model="model.receiveType" />
+        </a-form-model-item>
+
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+  import { httpAction } from '@api/manage'
+  import moment from "moment"
+
+  export default {
+    name: "EamSparePartReceiveDetailModal",
+    data () {
+      return {
+        title:"鎿嶄綔",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        validatorRules:{
+        },
+        url: {
+          add: "/eam/eamSparePartReceiveDetail/add",
+          edit: "/eam/eamSparePartReceiveDetail/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        //鍒濆鍖栭粯璁ゅ��
+        this.edit({});
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+        this.$refs.form.clearValidate();
+      },
+      handleOk () {
+        const that = this;
+        // 瑙﹀彂琛ㄥ崟楠岃瘉
+         this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+          }else{
+             return false;
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/modules/EamSparePartReceiveModal.vue b/src/views/eam/spare/modules/EamSparePartReceiveModal.vue
new file mode 100644
index 0000000..e895e2d
--- /dev/null
+++ b/src/views/eam/spare/modules/EamSparePartReceiveModal.vue
@@ -0,0 +1,135 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag" label="鍒犻櫎鏍囪">
+          <a-input-number v-model="model.delFlag"/>
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="receiveCode" label="棰嗙敤鍗曠紪鐮�">
+          <a-input placeholder="璇疯緭鍏ラ鐢ㄥ崟缂栫爜" v-model="model.receiveCode" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="receiveUser" label="棰嗙敤浜�">
+          <a-input placeholder="璇疯緭鍏ラ鐢ㄤ汉" v-model="model.receiveUser" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="receiveReason" label="棰嗙敤浜嬬敱">
+          <a-input placeholder="璇疯緭鍏ラ鐢ㄤ簨鐢�" v-model="model.receiveReason" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="receiveStatus" label="棰嗙敤鐘舵��">
+          <a-input placeholder="璇疯緭鍏ラ鐢ㄧ姸鎬�" v-model="model.receiveStatus" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="giveBackFlag" label="鏄惁闇�瑕佸綊杩�;鏄細瀛樺湪褰掕繕鍔ㄤ綔锛屽惁锛氱洿鎺ュ畬鎴�">
+          <a-input placeholder="璇疯緭鍏ユ槸鍚﹂渶瑕佸綊杩�;鏄細瀛樺湪褰掕繕鍔ㄤ綔锛屽惁锛氱洿鎺ュ畬鎴�" v-model="model.giveBackFlag" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="approvalUser" label="瀹℃牳浜�">
+          <a-input placeholder="璇疯緭鍏ュ鏍镐汉" v-model="model.approvalUser" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="approvalTime" label="瀹℃牳鏃堕棿">
+          <a-input placeholder="璇疯緭鍏ュ鏍告椂闂�" v-model="model.approvalTime" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark" label="澶囨敞">
+          <a-input placeholder="璇疯緭鍏ュ娉�" v-model="model.remark" />
+        </a-form-model-item>
+
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+  import { httpAction } from '@api/manage'
+  import moment from "moment"
+
+  export default {
+    name: "EamSparePartReceiveModal",
+    data () {
+      return {
+        title:"鎿嶄綔",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        validatorRules:{
+        },
+        url: {
+          add: "/eam/eamSparePartReceive/add",
+          edit: "/eam/eamSparePartReceive/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        //鍒濆鍖栭粯璁ゅ��
+        this.edit({});
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+        this.$refs.form.clearValidate();
+      },
+      handleOk () {
+        const that = this;
+        // 瑙﹀彂琛ㄥ崟楠岃瘉
+         this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+          }else{
+             return false;
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/modules/EamSparePartRequisitionExamineModal.vue b/src/views/eam/spare/modules/EamSparePartRequisitionExamineModal.vue
new file mode 100644
index 0000000..4aee79f
--- /dev/null
+++ b/src/views/eam/spare/modules/EamSparePartRequisitionExamineModal.vue
@@ -0,0 +1,96 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    :cancel="close">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="requisitionCode" label="璇疯喘鍗曠紪鐮�">
+          <a-input placeholder="璇疯喘鍗曠紪鐮佽嚜鍔ㄧ敓鎴�" v-model="model.requisitionCode" :disabled="true" />
+        </a-form-model-item>
+      </a-form-model>
+    </a-spin>
+
+    <template slot='footer'>
+      <a-popconfirm @confirm="handleReject" title="纭灏嗗綋鍓嶅浠惰璐崟椹冲洖锛�" >
+        <a-button :loading='confirmLoading' :style="{marginRight: '8px'}" >椹冲洖</a-button>
+      </a-popconfirm>
+      <a-popconfirm @confirm="handleOk" title="纭灏嗗綋鍓嶅浠惰璐崟瀹℃牳閫氳繃锛�" >
+        <a-button type='primary' :loading='confirmLoading' :style="{marginRight: '8px'}" >閫氳繃</a-button>
+      </a-popconfirm>
+    </template>
+  </j-modal>
+</template>
+
+<script>
+import { postAction } from '@api/manage'
+
+export default {
+  name: "EamSparePartRequisitionExamineModal",
+  data () {
+    return {
+      title:"瀹℃牳",
+      visible: false,
+      model: {},
+      labelCol: {
+        xs: { span: 24 },
+        sm: { span: 5 },
+      },
+      wrapperCol: {
+        xs: { span: 24 },
+        sm: { span: 16 },
+      },
+
+      confirmLoading: false,
+      validatorRules:{
+      },
+      url: {
+        examine: "eam/eamSparePartRequisition/examineSpareRequisition"
+      },
+    }
+  },
+  created () {
+  },
+  methods: {
+    examine (record) {
+      this.model = Object.assign({}, record);
+      this.visible = true;
+    },
+    close () {
+      this.$emit('close');
+      this.visible = false;
+    },
+    handleOk () {
+      this.handleSubmit("3");
+    },
+    handleReject () {
+      this.handleSubmit("4");
+    },
+    handleSubmit(status) {
+      const that = this;
+      that.model.requisitionStatus = status;
+      postAction(that.url.examine, that.model).then((res) => {
+        if (res.success) {
+          that.$message.success(res.message);
+          that.$emit('ok');
+        } else {
+          that.$message.warning(res.message);
+        }
+      }).catch(() => {
+        that.$message.error('鎿嶄綔澶辫触锛岃绋嶅悗閲嶈瘯');
+      }).finally(() => {
+        that.confirmLoading = false;
+        that.close();
+      });
+    }
+  }
+}
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/modules/EamSparePartRequisitionModal.vue b/src/views/eam/spare/modules/EamSparePartRequisitionModal.vue
new file mode 100644
index 0000000..a6898cf
--- /dev/null
+++ b/src/views/eam/spare/modules/EamSparePartRequisitionModal.vue
@@ -0,0 +1,124 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="requisitionCode" label="璇疯喘鍗曠紪鐮�">
+          <a-input placeholder="璇疯喘鍗曠紪鐮佽嚜鍔ㄧ敓鎴�" v-model="model.requisitionCode" :disabled="true" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark" label="澶囨敞">
+          <a-textarea placeholder="璇疯緭鍏ュ娉�" v-model="model.remark" />
+        </a-form-model-item>
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+import { httpAction, getAction } from '@api/manage'
+import moment from "moment"
+
+export default {
+  name: "EamSparePartRequisitionModal",
+  data() {
+    return {
+      title: "鎿嶄綔",
+      visible: false,
+      model: {},
+      labelCol: {
+        xs: { span: 24 },
+        sm: { span: 5 },
+      },
+      wrapperCol: {
+        xs: { span: 24 },
+        sm: { span: 16 },
+      },
+
+      confirmLoading: false,
+      validatorRules: {},
+      url: {
+        add: "/eam/eamSparePartRequisition/add",
+        edit: "/eam/eamSparePartRequisition/edit",
+        generateRequisitionCode: "sys/sysBusinessCodeRule/generateBusinessCodeSeq"
+      },
+    }
+  },
+  created() {
+  },
+  methods: {
+    add() {
+      const that = this
+      let params = {
+        businessCode: "SpareRequisitionCodeRule"
+      }
+      getAction(that.url.generateRequisitionCode, params).then((res) => {
+        if (res.success) {
+          this.model = {
+            requisitionCode: res.result
+          }
+        } else {
+          that.$message.warning(res.message);
+        }
+      })
+      //鍒濆鍖栭粯璁ゅ��
+      that.edit(this.model);
+    },
+    edit(record) {
+      this.model = Object.assign({}, record);
+      this.visible = true;
+    },
+    close() {
+      this.$emit('close');
+      this.visible = false;
+      this.$refs.form.clearValidate();
+    },
+    handleOk() {
+      const that = this;
+      // 瑙﹀彂琛ㄥ崟楠岃瘉
+      this.$refs.form.validate(valid => {
+        if (valid) {
+          that.confirmLoading = true;
+          let httpurl = '';
+          let method = '';
+          if (!this.model.id) {
+            httpurl += this.url.add;
+            method = 'post';
+          } else {
+            httpurl += this.url.edit;
+            method = 'put';
+          }
+          httpAction(httpurl, this.model, method).then((res) => {
+            if (res.success) {
+              that.$message.success(res.message);
+              that.$emit('ok');
+            } else {
+              that.$message.warning(res.message);
+            }
+          }).finally(() => {
+            that.confirmLoading = false;
+            that.close();
+          })
+        } else {
+          return false;
+        }
+      })
+    },
+    handleCancel() {
+      this.close()
+    },
+
+  }
+}
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/modules/EamSparePartScrapModal.vue b/src/views/eam/spare/modules/EamSparePartScrapModal.vue
new file mode 100644
index 0000000..7ca66fe
--- /dev/null
+++ b/src/views/eam/spare/modules/EamSparePartScrapModal.vue
@@ -0,0 +1,132 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag" label="鍒犻櫎鏍囪">
+          <a-input-number v-model="model.delFlag"/>
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="scrapCode" label="鍗曟嵁鍙�">
+          <a-input placeholder="璇疯緭鍏ュ崟鎹彿" v-model="model.scrapCode" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryId" label="搴撳瓨ID">
+          <a-input placeholder="璇疯緭鍏ュ簱瀛業D" v-model="model.inventoryId" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="scrapReason" label="鎶ュ簾鍘熷洜">
+          <a-input placeholder="璇疯緭鍏ユ姤搴熷師鍥�" v-model="model.scrapReason" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="scrapNum" label="鎶ュ簾鏁伴噺">
+          <a-input placeholder="璇疯緭鍏ユ姤搴熸暟閲�" v-model="model.scrapNum" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="reportUser" label="鐢宠浜�">
+          <a-input placeholder="璇疯緭鍏ョ敵璇蜂汉" v-model="model.reportUser" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="approvalUser" label="瀹℃牳浜�">
+          <a-input placeholder="璇疯緭鍏ュ鏍镐汉" v-model="model.approvalUser" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="approvalTime" label="瀹℃牳鏃堕棿">
+          <a-input placeholder="璇疯緭鍏ュ鏍告椂闂�" v-model="model.approvalTime" />
+        </a-form-model-item>
+
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+  import { httpAction } from '@api/manage'
+  import moment from "moment"
+
+  export default {
+    name: "EamSparePartScrapModal",
+    data () {
+      return {
+        title:"鎿嶄綔",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        validatorRules:{
+        },
+        url: {
+          add: "/eam/eamSparePartScrap/add",
+          edit: "/eam/eamSparePartScrap/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        //鍒濆鍖栭粯璁ゅ��
+        this.edit({});
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+        this.$refs.form.clearValidate();
+      },
+      handleOk () {
+        const that = this;
+        // 瑙﹀彂琛ㄥ崟楠岃瘉
+         this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+          }else{
+             return false;
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spare/modules/EamSparePartsModal.vue b/src/views/eam/spare/modules/EamSparePartsModal.vue
new file mode 100644
index 0000000..ce892d3
--- /dev/null
+++ b/src/views/eam/spare/modules/EamSparePartsModal.vue
@@ -0,0 +1,201 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partCode" label="澶囦欢缂栫爜">
+              <a-input placeholder="澶囦欢缂栫爜鑷姩鐢熸垚" v-model="model.partCode" :disabled="true" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partName" label="澶囦欢鍚嶇О">
+              <a-input placeholder="璇疯緭鍏ュ浠跺悕绉�" v-model="model.partName" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partCategory" label="澶囦欢鍒嗙被">
+              <a-input placeholder="璇疯緭鍏ュ浠跺垎绫�" v-model="model.partCategory" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partModel" label="澶囦欢鍨嬪彿">
+              <a-input placeholder="璇疯緭鍏ュ浠跺瀷鍙�" v-model="model.partModel" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partSpecification" label="澶囦欢瑙勬牸">
+              <a-input placeholder="璇疯緭鍏ュ浠惰鏍�" v-model="model.partSpecification" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="storehouse" label="瀛樻斁浠撳簱">
+              <a-input placeholder="璇疯緭鍏ュ瓨鏀句粨搴�" v-model="model.storehouse" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit" label="璁¢噺鍗曚綅">
+              <a-input placeholder="璇疯緭鍏ヨ閲忓崟浣�" v-model="model.unit" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="manufacturingEnterprise" label="鍒堕�犱紒涓�">
+              <a-input placeholder="璇疯緭鍏ュ埗閫犱紒涓�" v-model="model.manufacturingEnterprise" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="periodOfValidity" label="鏈夋晥鏈�(澶�)">
+              <a-input-number style="width: 100%" :min="0" :precision="0" v-model="model.periodOfValidity"/>
+            </a-form-model-item>
+          </a-col>
+
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryWarning" label="搴撳瓨棰勮鍊�">
+              <a-input-number style="width: 100%" :min="0" v-model="model.inventoryWarning" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryMax" label="鏈�澶у璐у簱瀛�">
+              <a-input-number style="width: 100%" :min="0" v-model="model.inventoryMax" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="12">
+            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryMin" label="鏈�灏忓璐у簱瀛�">
+              <a-input-number style="width: 100%" :min="0" v-model="model.inventoryMin" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="24">
+            <a-form-model-item :labelCol="{xs: { span: 24 }, sm: { span: 3 }}" :wrapperCol="{xs: { span: 24 },sm: { span: 21 }}" prop="remark" label="澶囨敞">
+              <a-textarea placeholder="璇疯緭鍏ュ娉�" v-model="model.remark" />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+import { getAction, httpAction } from '@api/manage'
+  import moment from "moment"
+
+  export default {
+    name: "EamSparePartsModal",
+    data () {
+      return {
+        title:"鎿嶄綔",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 6 }
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 18 }
+        },
+
+        confirmLoading: false,
+        validatorRules:{
+          partName: [
+            { required: true, message: '璇疯緭鍏ュ浠跺悕绉�' }
+          ]
+        },
+        url: {
+          add: "/eam/eamSpareParts/add",
+          edit: "/eam/eamSpareParts/edit",
+          generateRequisitionCode: "sys/sysBusinessCodeRule/generateBusinessCodeSeq"
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        const that = this
+        let params = {
+          businessCode: "SparePartCodeRule"
+        }
+        getAction(that.url.generateRequisitionCode, params).then((res) => {
+          if (res.success) {
+            this.model = {
+              partCode: res.result
+            }
+          } else {
+            that.$message.warning(res.message);
+          }
+        })
+        //鍒濆鍖栭粯璁ゅ��
+        that.edit(this.model);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+        this.$refs.form.clearValidate();
+      },
+      handleOk () {
+        const that = this;
+        // 瑙﹀彂琛ㄥ崟楠岃瘉
+         this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+          }else{
+             return false;
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/eam/spart/modules/EamSparePartRequisitionDetailModal.vue b/src/views/eam/spart/modules/EamSparePartRequisitionDetailModal.vue
new file mode 100644
index 0000000..e7c17a2
--- /dev/null
+++ b/src/views/eam/spart/modules/EamSparePartRequisitionDetailModal.vue
@@ -0,0 +1,117 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    switchFullscreen
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validatorRules">
+
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag" label="鍒犻櫎鏍囪">
+          <a-input-number v-model="model.delFlag"/>
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partId" label="澶囧搧澶囦欢ID">
+          <a-input placeholder="璇疯緭鍏ュ鍝佸浠禝D" v-model="model.partId" />
+        </a-form-model-item>
+        <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="requisitionNum" label="璇疯喘鏁伴噺">
+          <a-input placeholder="璇疯緭鍏ヨ璐暟閲�" v-model="model.requisitionNum" />
+        </a-form-model-item>
+
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+  import { httpAction } from '@api/manage'
+  import moment from "moment"
+
+  export default {
+    name: "EamSparePartRequisitionDetailModal",
+    data () {
+      return {
+        title:"鎿嶄綔",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        validatorRules:{
+        },
+        url: {
+          add: "/eam/eamSparePartRequisitionDetail/add",
+          edit: "/eam/eamSparePartRequisitionDetail/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        //鍒濆鍖栭粯璁ゅ��
+        this.edit({});
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+        this.$refs.form.clearValidate();
+      },
+      handleOk () {
+        const that = this;
+        // 瑙﹀彂琛ㄥ崟楠岃瘉
+         this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+          }else{
+             return false;
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>
\ No newline at end of file

--
Gitblit v1.9.3