From 9b6bd0c014b73456edb095ee53b22324437ae646 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期三, 09 七月 2025 10:59:45 +0800 Subject: [PATCH] 现场问题修改 --- src/views/tms/InboundOrderList.vue | 55 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 29 insertions(+), 26 deletions(-) diff --git a/src/views/tms/InboundOrderList.vue b/src/views/tms/InboundOrderList.vue index fda2a46..891dcca 100644 --- a/src/views/tms/InboundOrderList.vue +++ b/src/views/tms/InboundOrderList.vue @@ -6,7 +6,7 @@ <a-row :gutter="24"> <a-col :md="6" :sm="8"> <a-form-item label="鍏ュ簱鐢宠鍗曠紪鍙�"> - <a-input placeholder="璇疯緭鍏ュ叆搴撶敵璇峰崟缂栧彿" v-model="queryParam.inboundNum" /> + <j-input placeholder="璇疯緭鍏ュ叆搴撶敵璇峰崟缂栧彿" v-model="queryParam.inboundNum" /> </a-form-item> </a-col> <a-col :md="6" :sm="8"> @@ -18,7 +18,7 @@ /> </a-form-item> </a-col> - <a-col :md="6" :sm="8"> + <!-- <a-col :md="6" :sm="8"> <a-form-item label="缁忔墜浜�"> <j-search-select-tag placeholder="璇烽�夋嫨缁忔墜浜�" @@ -26,7 +26,7 @@ dict="sys_user,realname,id,del_flag!=1" /> </a-form-item> - </a-col> + </a-col> --> </a-row> </a-form> </div> @@ -49,6 +49,7 @@ :dataSource="dataSource" :pagination="ipagination" :loading="loading" + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}" @change="handleTableChange" > <!--鐘舵�佹爮涓�у睍绀�--> @@ -72,8 +73,8 @@ <script> import { JeecgListMixin } from '@/mixins/JeecgListMixin' -import InboundOrderModel from './modules/inbound/InboundOrderModel' -import InboundDetailList from './modules/inbound/InboundDetailList' +import InboundOrderModel from './modules/inboundOrder/InboundOrderModel' +import InboundDetailList from './modules/inboundOrder/InboundDetailList' import { requestPut } from '@/api/manage' import JDictSelectTag from '@/components/dict/JDictSelectTag' import JSearchSelectTag from '@/components/dict/JSearchSelectTag' @@ -93,10 +94,8 @@ description: '鍏ュ簱鐢宠鍗�', url: { list: '/tms/inboundOrder/list', - toolingStorageStatus: '/tooling/storage/toolingStorageStatus', - importExcelUrl: 'tooling/storage/importExcel', - exportXlsUrl: '/tooling/storage/exportXls', - takeBack: '/tooling/storage/takeBack', + importExcelUrl: '/tms/inboundOrder/importExcel', + exportXlsUrl: '/tms/inboundOrder/exportXls', edit:'/tms/inboundOrder/edit', submit:'/tms/inboundOrder/submit' }, @@ -154,11 +153,6 @@ dataIndex: 'orderStatus_dictText', }, { - title: '鍊熺敤鍗曞彿', - align: 'center', - dataIndex: 'borrowNum', - }, - { title: '瀹℃壒鎰忚', align: 'center', dataIndex: 'approvalOpinion', @@ -171,6 +165,7 @@ scopedSlots: { customRender: 'action' }, }, ], + loading:false } }, computed: { @@ -190,23 +185,28 @@ return { on: { click: (e) => { - //灏嗗綋鍓嶉�変腑鐨勮褰曚紶鍒板瓙椤甸潰 - this.$bus.$emit('getToolingStorageData', record) + this.onSelectChange(record.id.split(","), [record]); //鐐瑰嚮褰撳墠琛屽彉鑹� - let oldList = document.querySelectorAll('.checked-td-of-add-table') - if (oldList) { - for (let j = 0; j < oldList.length; j++) { - oldList[j].classList.remove('checked-td-of-add-table') - } - } - let children = e.target.parentNode.children - for (let i = 0; i < children.length; i++) { - children[i].classList.add('checked-td-of-add-table') - } + // let oldList = document.querySelectorAll('.checked-td-of-add-table') + // if (oldList) { + // for (let j = 0; j < oldList.length; j++) { + // oldList[j].classList.remove('checked-td-of-add-table') + // } + // } + // let children = e.target.parentNode.children + // for (let i = 0; i < children.length; i++) { + // children[i].classList.add('checked-td-of-add-table') + // } }, }, } }, + onSelectChange(selectedRowKeys, selectionRows) { + this.selectedRowKeys = selectedRowKeys; + this.selectionRows = selectionRows; + //灏嗗綋鍓嶉�変腑鐨勮褰曚紶鍒板瓙椤甸潰 + this.$bus.$emit('getToolingStorageData', this.selectionRows[0]) + }, handleEdit: function (record) { this.$refs.modalForm.edit(record) this.$refs.modalForm.title = '缂栬緫' @@ -219,6 +219,7 @@ }, handleSubmit(record) { let that = this; + that.loading = true getAction(that.url.submit, { id:record.id}).then((res) => { if (res.success) { that.$message.success(res.message); @@ -226,6 +227,8 @@ } else { that.$message.warning(res.message); } + }).finally(() => { + that.loading = false }) }, }, -- Gitblit v1.9.3