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/stocktakingBound/ToolsStocktaKingBoundDetail.vue | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 224 insertions(+), 0 deletions(-) diff --git a/src/views/tms/stocktakingBound/ToolsStocktaKingBoundDetail.vue b/src/views/tms/stocktakingBound/ToolsStocktaKingBoundDetail.vue new file mode 100644 index 0000000..b6acfa5 --- /dev/null +++ b/src/views/tms/stocktakingBound/ToolsStocktaKingBoundDetail.vue @@ -0,0 +1,224 @@ +<template> + <a-card :bordered="false"> + <div> + <a-table ref="table" size="middle" bordered rowKey="id" :scroll="{ x: true }" :columns="columns" + :dataSource="dataSource" :pagination="ipagination" :loading="loading" @change="handleTableChange"> + <span slot="num" slot-scope="text, record" class="fontweight"> + {{ record.num }} + </span> + + </a-table> + <template v-for="col in columns" :slot="col.dataIndex" slot-scope="text, record, index"> + </template> + </div> + </a-card> +</template> + +<script> +import { JeecgListMixin } from '@/mixins/JeecgListMixin' +import { getAction } from '@/api/manage' +import Tooltip from 'ant-design-vue/es/tooltip' +export default { + name: "ToolsStocktaKingBoundDetail", + components: { + Tooltip, + }, + mixins: [JeecgListMixin], + props: { + mainId: { + type: String, + default: '', + required: false + } + }, + watch: { + mainId: { + immediate: true, + handler(val) { + if (!this.mainId) { + this.clearList() + } else { + this.queryParam['stocktakingBoundId'] = val; + this.queryParam['delFlag'] = 0; + this.loadData(1); + } + } + } + }, + data() { + return { + columns: [ + { + title: '#', + dataIndex: '', + key: 'rowIndex', + align: 'center', + customRender: function(t, r, index) { + return parseInt(index) + 1 + }, + width: 50 + }, + + + { + title: '鍒�鍏风紪鍙�', + dataIndex: 'toolCode', + align: 'center' + }, + { + title: '宸ュ叿绫诲瀷', + dataIndex: 'applicationType_dictText', + align: 'center', + + }, + + { + title: '涓枃鍚嶇О', + dataIndex: 'chineseName', + align: 'center' + }, + + { + title: '鍨嬪彿/鍥惧彿', + dataIndex: 'toolModel', + align: 'center' + }, + { + title: '鍒�鍏锋潗鏂�', + dataIndex: 'toolMaterial', + align: 'center' + + }, + { + title: '闆朵欢鏉愭枡', + dataIndex: 'partMaterial', + align: 'center' + }, + { + title: '鍘傚', + dataIndex: 'supplierId', + align: 'center' + + }, + { + title: '瀛樺偍浣嶇疆(搴撲綅鍙�)', + dataIndex: 'goodsShelvesId', + align: 'center' + }, + + { + title: '璐﹂潰鏁伴噺', + dataIndex: 'bookQuantity', + align: 'center' + + }, + { + title: '鍙敤鏁伴噺', + dataIndex: 'availableQuantity', + align: 'center' + + }, + { + title: '瀹炵洏鏁伴噺', + dataIndex: 'practicalQuantity', + align: 'center' + }, + { + title: '宸紓鍊�', + dataIndex: 'differenceValue', + align: 'center' + }, + { + title: '鐩樹簭鐩樼泩', + dataIndex: 'surplusDeficit_dictText', + align: 'center' + }, + { + title: '鐩樺簱鏃堕棿', + dataIndex: 'stocktakingDate', + align: 'center' + }, + { + title: '澶囨敞', + dataIndex: 'remark', + align: 'center' + } + ], + url: { + list: "/tms/toolsStocktakingBound/listToolsStocktakingBoundControllerDetailsByMainId", + }, + /* 鍒嗛〉鍙傛暟 */ + ipagination: { + current: 1, + pageSize: 20, + pageSizeOptions: ['5', '10', '20', '50'], + showTotal: (total, range) => { + return range[0] + '-' + range[1] + ' 鍏�' + total + '鏉�' + }, + showQuickJumper: true, + showSizeChanger: true, + total: 0 + }, + } + }, + created() { + }, + computed: { + }, + methods: { + clearList() { + this.dataSource = [] + this.selectedRowKeys = [] + this.ipagination.current = 1 + }, + loadData(arg) { + if (!this.url.list) { + this.$message.error("璇疯缃畊rl.list灞炴��!") + return + } + //鍔犺浇鏁版嵁 鑻ヤ紶鍏ュ弬鏁�1鍒欏姞杞界涓�椤电殑鍐呭 + if (arg === 1) { + this.ipagination.current = 1; + } + var params = this.getQueryParams();//鏌ヨ鏉′欢 + this.loading = true; + getAction(this.url.list, params).then((res) => { + if (res.success) { + this.dataSource = res.result.records || res.result; + if (res.result.total) { + this.ipagination.total = res.result.total; + } else { + this.ipagination.total = 0; + } + //update-end---author:zhangyafei Date:20201118 for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------ + } else { + this.$message.warning(res.message) + } + }).finally(() => { + this.loading = false + }) + }, + + + } +} +</script> +<style lang="less" scoped> +@import '~@assets/less/common.less'; + +.fontweight { + font-weight: bold; +} + +/deep/ .frozenRowClass { + color: #c9c9c9; +} + +.success { + color: green; +} + +.error { + color: red; +} +</style> -- Gitblit v1.9.3