From bac10733d14f935a026ea9c3f8beeb9fd7b5d803 Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期一, 26 五月 2025 10:30:52 +0800
Subject: [PATCH] 刀具刃磨/  工具盘点/工具报损

---
 src/views/tms/lossBound/LossboundDetailList.vue |  180 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 180 insertions(+), 0 deletions(-)

diff --git a/src/views/tms/lossBound/LossboundDetailList.vue b/src/views/tms/lossBound/LossboundDetailList.vue
new file mode 100644
index 0000000..bc54001
--- /dev/null
+++ b/src/views/tms/lossBound/LossboundDetailList.vue
@@ -0,0 +1,180 @@
+<template>
+  <a-card :bordered="false" :class="'cust-erp-sub-tab'">
+    <!-- 鏌ヨ鍖哄煙 -->
+
+    <!--    </div>-->
+    <!-- 鏌ヨ鍖哄煙-END -->
+
+    <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+    <div class="table-operator" v-if="mainId">
+
+    </div>
+
+    <!-- table鍖哄煙-begin -->
+    <div>
+
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :scroll="{x:true}"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="null"
+        @change="handleTableChange">
+
+      </a-table>
+    </div>
+
+<!--    <lossboundDetail-modal ref="modalForm" @ok="modalFormOk" :mainId="mainId"></lossboundDetail-modal>-->
+  </a-card>
+</template>
+
+<script>
+
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import LossboundDetailModal from './modules/LossboundDetailModal'
+
+export default {
+  name: 'LossboundDetailList',
+  mixins: [JeecgListMixin],
+  components: { LossboundDetailModal },
+  props: {
+    mainId: {
+      type: String,
+      default: '',
+      required: false
+    }
+  },
+  watch: {
+    mainId: {
+      immediate: true,
+      handler(val) {
+        if (!this.mainId) {
+          this.clearList()
+        } else {
+          this.queryParam['lossBoundId'] = val
+          this.loadData(1)
+        }
+      }
+    }
+  },
+  data() {
+    return {
+      description: '鎶ユ崯绠$悊椤甸潰',
+      disableMixinCreated: true,
+      // 琛ㄥご
+      columns: [
+        {
+          title: '#',
+          dataIndex: '',
+          key: 'rowIndex',
+          width: 60,
+          align: 'center',
+          customRender: function(t, r, index) {
+            return parseInt(index) + 1
+          }
+        },
+        {
+          title: '鍒�鍏风紪鍙�',
+          align: 'center',
+          dataIndex: 'toolCode'
+        },
+        {
+          title: '宸ュ叿绫诲瀷',
+          align: 'center',
+          dataIndex: 'applicationType_dictText'
+        },
+        {
+          title: '鎶ユ崯鍘熷洜',
+          align: 'center',
+          dataIndex: 'lossReason'
+        },
+        {
+          title: '鎶ユ崯鏁伴噺',
+          align: 'center',
+          dataIndex: 'lossNumber'
+        },
+        {
+          title: '涓枃鍚嶇О',
+          align: 'center',
+          dataIndex: 'chineseName'
+        },
+        {
+          title: '鍨嬪彿/鍥惧彿',
+          align: 'center',
+          dataIndex: 'toolModel'
+        },
+        {
+          title: '鍒�鍏锋潗鏂�',
+          align: 'center',
+          dataIndex: 'toolMaterial'
+        },
+        {
+          title: '闆朵欢鏉愭枡',
+          align: 'center',
+          dataIndex: 'partMaterial'
+        },
+        {
+          title: '鍘傚',
+          align: 'center',
+          dataIndex: 'supplierId'
+        },
+        {
+          title: '瀛樺偍浣嶇疆(搴撲綅鍙�)',
+          align: 'center',
+          dataIndex: 'positionCode'
+        },
+
+        {
+          title: '鍒涘缓鏃堕棿',
+          align: 'center',
+          dataIndex: 'createTime'
+        },
+        {
+          title: '澶囨敞',
+          align: 'center',
+          dataIndex: 'remark'
+        }
+        // {
+        //   title: '鎿嶄綔',
+        //   dataIndex: 'action',
+        //   align:"center",
+        //   fixed:"right",
+        //   width:147,
+        //   scopedSlots: { customRender: 'action' },
+        // }
+      ],
+      url: {
+        list: '/tms/toolsLossBound/listlossboundDetailByMainId',
+        delete: '/tms/toolsLossBound/deleteLootboundDetail',
+        deleteBatch: '/tms/toolsLossBound/deleteBatchLossboundDetail',
+        exportXlsUrl: '/tms/toolsLossBound/exportLossboundDetail',
+        importUrl: '/tms/toolsLossBound/importLossboundDetail'
+      },
+    }
+  },
+  created() {
+  },
+  computed: {
+    importExcelUrl() {
+      return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`
+    }
+  },
+  methods: {
+    clearList() {
+      this.dataSource = []
+      this.selectedRowKeys = []
+      this.ipagination.current = 1
+    }
+
+  }
+}
+</script>
+<style scoped>
+@import '~@assets/less/common.less';
+</style>

--
Gitblit v1.9.3