From 95236edfe6c2b1f42bc5d2d900f2ee3c959de700 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 22 Oct 2025 10:22:15 +0800 Subject: [PATCH] =?UTF-8?q?2025-10-22=20=E5=9B=BA=E5=AE=9A=E8=BD=BD?= =?UTF-8?q?=E5=85=B7=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/fixedCarrier/fixedCarrier.vue | 222 +++++++----------- 1 file changed, 84 insertions(+), 138 deletions(-) diff --git a/src/views/modules/fixedCarrier/fixedCarrier.vue b/src/views/modules/fixedCarrier/fixedCarrier.vue index 3be7678..9de89bb 100644 --- a/src/views/modules/fixedCarrier/fixedCarrier.vue +++ b/src/views/modules/fixedCarrier/fixedCarrier.vue @@ -3,12 +3,12 @@ - + + :value="i.buDesc"> @@ -78,123 +78,79 @@ - - - - - - - - - {{ i.sitename }} - {{ i.buDesc }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + {{ i.sitename }} + + {{ i.buDesc }} + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 关闭 @@ -216,9 +172,8 @@ export default { data() { return { searchData: { - site: this.$store.state.user.site, userName: this.$store.state.user.name, - buNo: '', + buDesc: '', carrierNo: '', carrierTypeName: '', status: '', @@ -235,7 +190,8 @@ export default { modalDisableFlag: false, modalTitle: '新增固定载具', modalData: { - site: this.$store.state.user.site, + bu: '', + site: '', buNo: '', carrierNo: '', carrierTypeCode: '', @@ -246,7 +202,7 @@ export default { maxWeight: null, expectedLifeCycles: null, expectedLifeDays: null, - status: 1, + status: '', currentLocation: '', purchaseDate: '', createBy: this.$store.state.user.name, @@ -255,7 +211,7 @@ export default { }, userBuList: [], rules: { - buNo: [{ + bu: [{ required: true, message: ' ', trigger: ['blur','change'] @@ -308,21 +264,9 @@ export default { this.dataListLoading = true this.searchData.page = this.pageIndex this.searchData.limit = this.pageSize - fixedCarrierSearch(this.searchData).then(({data}) => { if (data && data.code === 0) { - this.dataList = data.page.list.map(item => { - // 状态描述转换 - const statusMap = { - 1: '空闲', - 2: '占用', - 3: '维修', - 4: '报废', - 5: '外借' - } - item.statusDesc = statusMap[item.status] || '' - return item - }) + this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] @@ -353,7 +297,8 @@ export default { this.modalFlag = true this.modalDisableFlag = false this.modalData = { - site: this.$store.state.user.site, + bu: this.userBuList[0].buNo, + site: '', buNo: '', carrierNo: '', carrierTypeCode: '', @@ -364,7 +309,7 @@ export default { maxWeight: null, expectedLifeCycles: null, expectedLifeDays: null, - status: 1, + status: '空闲', currentLocation: '', purchaseDate: '', createBy: this.$store.state.user.name, @@ -383,6 +328,7 @@ export default { this.modalDisableFlag = true this.modalData = { ...row, + bu: row.site + '_' + row.buNo, flag: 'update' } this.$nextTick(() => {