From b6b2c379bd92f076acd16801b1442604ea21fc5d Mon Sep 17 00:00:00 2001 From: cuilei <ray_tsu1@163.com> Date: 星期三, 27 八月 2025 17:30:52 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/tms/ToolVerificationList.vue | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 174 insertions(+), 0 deletions(-) diff --git a/src/views/tms/ToolVerificationList.vue b/src/views/tms/ToolVerificationList.vue new file mode 100644 index 0000000..a643dce --- /dev/null +++ b/src/views/tms/ToolVerificationList.vue @@ -0,0 +1,174 @@ +<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 + :md="6" + :sm="8" + > + <a-form-item label="閲忓叿缂栧彿"> + <j-input placeholder="璇疯緭鍏ラ噺鍏风紪鍙�" v-model="queryParam.toolCode" /> + </a-form-item> + </a-col> + <a-col + :md="6" + :sm="8" + > + <a-form-item label="鍞竴缂栫爜"> + <j-input placeholder="璇疯緭鍏ュ敮涓�缂栫爜" v-model="queryParam.onlyCode" /> + </a-form-item> + </a-col> + + <a-col :md="6" :sm="8"> + <a-space> + <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button> + <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button> + </a-space> + </a-col> + </a-row> + </a-form> + </div> + <!-- 鏌ヨ鍖哄煙-END --> + + <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> + + <!-- table鍖哄煙-begin --> + <div> + + <a-table + ref="table" + size="middle" + :scroll="{x:true}" + bordered + rowKey="id" + :columns="columns" + :dataSource="dataSource" + :pagination="ipagination" + :loading="loading" + :rowSelection="null" + class="j-table-force-nowrap" + @change="handleTableChange"> + + </a-table> + </div> + </a-card> +</template> + +<script> + + import '@/assets/less/TableExpand.less' + import { mixinDevice } from '@/utils/mixin' + import { JeecgListMixin } from '@/mixins/JeecgListMixin' + import { getAction } from '../../api/manage' + + export default { + name: 'ToolVerificationList', + mixins:[JeecgListMixin, mixinDevice], + components: { + }, + 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: 'toolCode', + }, + { + title:'鍞竴缂栫爜', + align:"center", + dataIndex: 'onlyCode', + }, + { + title:'閲忓叿鍚嶇О', + align:"center", + dataIndex: 'toolName' + }, + { + title:'瑙勬牸', + align:"center", + dataIndex: 'toolModel' + }, + { + title:'璁¢噺鍙�', + align:"center", + dataIndex: 'measureNumber' + }, + { + title:'搴撲綅鍙�', + align:"center", + dataIndex: 'warehouseCode' + }, + { + title:'涓嬫妫�瀹氭棩鏈�', + align:"center", + dataIndex: 'nextVerificationDate' + }, + ], + url: { + list: "/tms/toolVerificationRecord/queryPageList", + delete: "/tms/toolVerificationRecord/delete", + deleteBatch: "/tms/toolVerificationRecord/deleteBatch", + exportXlsUrl: "/tms/toolVerificationRecord/exportXls", + importExcelUrl: "tms/toolVerificationRecord/importExcel", + + }, + dictOptions:{}, + superFieldList:[], + } + }, + created() { + this.getSuperFieldList(); + }, + computed: { + importExcelUrl: function(){ + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; + }, + }, + methods: { + searchReset() { + this.queryParam = {} + this.loadData(1); + }, + filterOption(input, option) { + return ( + option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + ); + }, + initDictConfig(){ + }, + getSuperFieldList(){ + let fieldList=[]; + fieldList.push({type:'string',value:'tenantId',text:'绉熸埛鍙�'}) + fieldList.push({type:'string',value:'createdBy',text:'鍒涘缓浜�'}) + fieldList.push({type:'date',value:'createdTime',text:'鍒涘缓鏃堕棿'}) + fieldList.push({type:'string',value:'updatedBy',text:'鏇存柊浜�'}) + fieldList.push({type:'date',value:'updatedTime',text:'鏇存柊鏃堕棿'}) + fieldList.push({type:'string',value:'onlyCode',text:'鍞竴缂栫爜'}) + fieldList.push({type:'string',value:'measureNumber',text:'璁¢噺鍙�'}) + fieldList.push({type:'date',value:'nextVerificationDate',text:'涓嬫妫�瀹氭棩鏈�'}) + fieldList.push({type:'date',value:'verificationReportDate',text:'妫�瀹氭姤鍛婃棩鏈�'}) + fieldList.push({type:'string',value:'personResponsible',text:'璐d换浜�'}) + fieldList.push({type:'string',value:'result',text:'妫�瀹氱粨鏋滃強鎰忚'}) + this.superFieldList = fieldList + } + } + } +</script> +<style scoped> + @import '~@assets/less/common.less'; +</style> \ No newline at end of file -- Gitblit v1.9.3