From 8e451b57702434dcf0ec9deb2e7398d235970260 Mon Sep 17 00:00:00 2001 From: cuilei <ray_tsu1@163.com> Date: 星期二, 26 八月 2025 16:50:31 +0800 Subject: [PATCH] 报工查询页面、产线选择下拉框调整 --- src/views/mes/MesWorkReportingList.vue | 136 +++++++++++++++++++++++++++++--------------- 1 files changed, 89 insertions(+), 47 deletions(-) diff --git a/src/views/mes/MesWorkReportingList.vue b/src/views/mes/MesWorkReportingList.vue index 142f6f5..68ffbb0 100644 --- a/src/views/mes/MesWorkReportingList.vue +++ b/src/views/mes/MesWorkReportingList.vue @@ -4,6 +4,60 @@ <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="浜х嚎"> + <j-search-select-tag placeholder="璇烽�夋嫨" v-model="queryParam.factoryId" + dict="base_factory,factory_name,id,del_flag=0 and factory_category = '3'" + ></j-search-select-tag> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="璁㈠崟鍙�"> + <j-search-select-tag placeholder="璇疯緭鍏ヨ鍗曞彿" v-model="queryParam.orderId" + dict="mes_production_order,order_code,id" + ></j-search-select-tag> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="宸ュ崟鍙�"> + <j-search-select-tag placeholder="璇疯緭鍏ュ伐鍗曞彿" v-model="queryParam.workOrderId" + dict="mes_production_work_order,work_order_code,id,del_flag=0 and work_order_status != 'NEW'" + ></j-search-select-tag> + </a-form-item> + </a-col> + <template v-if="toggleSearchStatus"> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="鎵规鍙�"> + <j-input placeholder="璇疯緭鍏ユ壒娆″彿" v-model="queryParam.batchNumber"></j-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="鎵樺彿"> + <j-input placeholder="璇疯緭鍏ユ墭鍙�" v-model="queryParam.palletNumber"></j-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="鎶ュ伐浜�"> + <j-select-user-by-dep placeholder="璇疯緭鍏ユ姤宸ヤ汉" v-model="queryParam.reporter"></j-select-user-by-dep> + </a-form-item> + </a-col><a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="绾胯竟浠�"> + <j-search-select-tag placeholder="璇疯緭鍏ョ嚎杈逛粨鍚嶇О" v-model="queryParam.warehouseId" + dict="base_line_side_warehouse,warehouse_name,id,del_flag=0 and warehouse_status = '1'" + ></j-search-select-tag> + </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="info" @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> @@ -11,13 +65,6 @@ <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> <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> - <!-- 楂樼骇鏌ヨ鍖哄煙 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> <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> @@ -28,10 +75,10 @@ <!-- 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> +<!-- <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" @@ -43,7 +90,7 @@ :dataSource="dataSource" :pagination="ipagination" :loading="loading" - :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" + :rowSelection="null" class="j-table-force-nowrap" @change="handleTableChange"> @@ -123,24 +170,19 @@ } }, { - title:'鍒犻櫎鏍囪', + title:'鐢熶骇璁㈠崟鍙�', align:"center", - dataIndex: 'delFlag' + dataIndex: 'orderId_dictText' }, { - title:'璁㈠崟ID', + title:'鎺掍骇宸ュ崟鍙�', align:"center", - dataIndex: 'orderId' + dataIndex: 'workOrderId_dictText' }, { - title:'宸ュ崟ID', + title:'浜х嚎', align:"center", - dataIndex: 'workOrderId' - }, - { - title:'浜х嚎ID', - align:"center", - dataIndex: 'factoryId' + dataIndex: 'factoryId_dictText' }, { title:'鎵规鍙�', @@ -158,6 +200,11 @@ dataIndex: 'quantity' }, { + title:'绾胯竟浠�', + align:"center", + dataIndex: 'warehouseId_dictText' + }, + { title:'鎶ュ伐浜�', align:"center", dataIndex: 'reporter' @@ -167,32 +214,27 @@ align:"center", dataIndex: 'reportTime' }, - { - title:'绾胯竟浠揑D', - align:"center", - dataIndex: 'warehouseId' - }, - { - title:'鎴愬搧涓嬬嚎鎵撳嵃鐘舵��', - align:"center", - dataIndex: 'printStatus_dictText' - }, - { - title: '鎿嶄綔', - dataIndex: 'action', - align:"center", - fixed:"right", - width:147, - scopedSlots: { customRender: 'action' } - } + // { + // title:'鎴愬搧涓嬬嚎鎵撳嵃鐘舵��', + // align:"center", + // dataIndex: 'printStatus_dictText' + // }, + // { + // title: '鎿嶄綔', + // dataIndex: 'action', + // align:"center", + // fixed:"right", + // width:147, + // scopedSlots: { customRender: 'action' } + // } ], url: { - list: "/mesworkreporting/mesWorkReporting/list", - delete: "/mesworkreporting/mesWorkReporting/delete", - deleteBatch: "/mesworkreporting/mesWorkReporting/deleteBatch", - exportXlsUrl: "/mesworkreporting/mesWorkReporting/exportXls", - importExcelUrl: "mesworkreporting/mesWorkReporting/importExcel", - + list: "/mes/mesWorkReporting/list", + delete: "/mes/mesWorkReporting/delete", + deleteBatch: "/mes/mesWorkReporting/deleteBatch", + exportXlsUrl: "/mes/mesWorkReporting/exportXls", + importExcelUrl: "mes/mesWorkReporting/importExcel", + }, dictOptions:{}, superFieldList:[], -- Gitblit v1.9.3