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/ToolVerificationRecordList.vue | 223 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 223 insertions(+), 0 deletions(-) diff --git a/src/views/tms/ToolVerificationRecordList.vue b/src/views/tms/ToolVerificationRecordList.vue new file mode 100644 index 0000000..76d4c4d --- /dev/null +++ b/src/views/tms/ToolVerificationRecordList.vue @@ -0,0 +1,223 @@ +<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 --> + + <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> + <div class="table-operator"> + <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button> + </div> + + <!-- 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"> + + <span slot="action" slot-scope="text, record"> + <a @click="handleDetail(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 @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> + </span> + + </a-table> + </div> + + <tool-verification-record-modal ref="modalForm" @ok="modalFormOk"></tool-verification-record-modal> + </a-card> +</template> + +<script> + + import '@/assets/less/TableExpand.less' + import { mixinDevice } from '@/utils/mixin' + import { JeecgListMixin } from '@/mixins/JeecgListMixin' + import ToolVerificationRecordModal from './modules/verification/ToolVerificationRecordModal' + import { getAction } from '../../api/manage' + + export default { + name: 'ToolVerificationRecordList', + mixins:[JeecgListMixin, mixinDevice], + components: { + ToolVerificationRecordModal + }, + 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: 'verificationReportDate' + }, + { + title:'妫�瀹氱粨鏋滃強鎰忚', + align:"center", + dataIndex: 'result' + }, + { + title:'璐d换浜�', + align:"center", + dataIndex: 'personResponsible' + }, + // { + // title:'鍒涘缓浜�', + // align:"center", + // dataIndex: 'createBy' + // }, + // { + // title:'鍒涘缓鏃堕棿', + // align:"center", + // dataIndex: 'createTime' + // }, + { + title: '鎿嶄綔', + dataIndex: 'action', + align:"center", + fixed:"right", + width:147, + scopedSlots: { customRender: 'action' } + } + ], + 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