From facb9e5928d8efbf3a474728053850722c4d2da1 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Thu, 12 Jun 2025 13:09:12 +0800 Subject: [PATCH] clear --- pages/DispatchManage/TaskManage.vue | 10 ++++++++++ pages/ProductManage/EmptyPipeOutStore.vue | 1 + pages/ProductManage/ZjDelivery.vue | 4 ++++ pages/ProductManage/ZjInStore.vue | 1 + pages/ProductManage/ZjOutStore.vue | 2 ++ pages/SecondPhase/EmptyVehicleInStore.vue | 1 + pages/SecondPhase/finished/ReturnToStore.vue | 1 + pages/SecondPhase/finished/abnorToStore.vue | 1 + pages/SecondPhase/lvt/EmptyBox.vue | 1 + pages/SecondPhase/point/ErrorOutUnlock.vue | 2 ++ pages/SecondPhase/point/ManPass.vue | 2 ++ pages/SecondPhase/production/BakeProcess.vue | 8 ++++++++ pages/SecondPhase/production/SurfaceProcess.vue | 2 ++ pages/SecondPhase/slitting/CacheCut.vue | 2 ++ pages/SecondPhase/slitting/CallShaft.vue | 1 + pages/SecondPhase/slitting/DoInitShaft.vue | 1 + pages/SecondPhase/slitting/EmptyAxisReturn.vue | 1 + pages/SecondPhase/slitting/PaperBind.vue | 1 + pages/SecondPhase/slitting/ShaftSave.vue | 1 + pages/SecondPhase/slitting/SlittingCutting.vue | 1 + pages/SecondPhase/slitting/StockingArea.vue | 2 ++ pages/SecondPhase/slitting/UpperShaftCut.vue | 1 + pages/SecondPhase/slitting/UpperShaftCut2.vue | 1 + pages/SecondPhase/slitting/ZjDelivery.vue | 4 ++++ pages/SecondPhase/slitting/ZjInStore.vue | 1 + pages/SecondPhase/slitting/ZjOutStore.vue | 4 ++++ pages/WarehouseManage/CustomerLabelPrint.vue | 2 +- pages/WarehouseManage/ErrorOutUnlock.vue | 2 ++ pages/WarehouseManage/ProdDeliveryConfirm.vue | 1 + pages/WarehouseManage/SemifinishedOutStore.vue | 1 + pages/WarehouseManage/XuniDeliveryConfirm.vue | 1 + 31 files changed, 63 insertions(+), 1 deletion(-) diff --git a/pages/DispatchManage/TaskManage.vue b/pages/DispatchManage/TaskManage.vue index 310b838..2335eed 100644 --- a/pages/DispatchManage/TaskManage.vue +++ b/pages/DispatchManage/TaskManage.vue @@ -106,6 +106,7 @@ let res = await againLssued(this.pkObj) this.disabled1 = false this.pkId = '' + this.toClear() this._taskTaskQuery() uni.showToast({ title: res.message, @@ -126,6 +127,7 @@ let res = await taskConfirm(this.pkObj) this.disabled2 = false this.pkId = '' + this.toClear() this._taskTaskQuery() uni.showToast({ title: res.message, @@ -134,6 +136,14 @@ } catch (e) { this.disabled2 = false } + }, + toClear () { + this.val1 = '' + this.dataList = [] + this.disabled1 = false + this.disabled2 = false + this.pkId = '' + this.pkObj = {} } } } diff --git a/pages/ProductManage/EmptyPipeOutStore.vue b/pages/ProductManage/EmptyPipeOutStore.vue index 4f813b7..41d9619 100644 --- a/pages/ProductManage/EmptyPipeOutStore.vue +++ b/pages/ProductManage/EmptyPipeOutStore.vue @@ -111,6 +111,7 @@ this.disabled = false this.pkId = '' this.pkObj = {} + this.dataList = [] this._queryPaperTubeInfo() uni.showToast({ title: res.message, diff --git a/pages/ProductManage/ZjDelivery.vue b/pages/ProductManage/ZjDelivery.vue index 697c32c..1dc17c0 100644 --- a/pages/ProductManage/ZjDelivery.vue +++ b/pages/ProductManage/ZjDelivery.vue @@ -199,6 +199,7 @@ let res = await needVehicle(this.checkArr[0]) this.disabled1 = false this.checkArr = [] + this.dataList = [] this._queryMaterialInfo() uni.showToast({ title: res.message, @@ -219,6 +220,7 @@ let res = await shippingConfirm(this.checkArr, this.val3, this.val1) this.disabled2 = false this.checkArr = [] + this.dataList = [] this.val1 = '' this.val2 = '' this.val3 = '' @@ -255,6 +257,7 @@ this.val1 = '' this.val2 = '' this.val3 = '' + this.dataList = [] this._queryMaterialInfo() uni.showToast({ title: res.message, @@ -284,6 +287,7 @@ this.val1 = '' this.val2 = '' this.val3 = '' + this.dataList = [] this._queryMaterialInfo() uni.showToast({ title: res.message, diff --git a/pages/ProductManage/ZjInStore.vue b/pages/ProductManage/ZjInStore.vue index 6c7b761..4406989 100644 --- a/pages/ProductManage/ZjInStore.vue +++ b/pages/ProductManage/ZjInStore.vue @@ -160,6 +160,7 @@ this.disabled = false this.pkId = '' this.pkObj = {} + this.dataList = [] this.index1 = '' this.index3 = '' this._queryMaterialInfo() diff --git a/pages/ProductManage/ZjOutStore.vue b/pages/ProductManage/ZjOutStore.vue index 0222fe9..dd7467c 100644 --- a/pages/ProductManage/ZjOutStore.vue +++ b/pages/ProductManage/ZjOutStore.vue @@ -234,6 +234,7 @@ let res = await outConfirm(this.index1, this.checkArr, this.isV) this.disabled1 = false this.checkArr = [] + this.dataList = [] this.isV = '0' this.index1 = '' this.index5 = '' @@ -265,6 +266,7 @@ let res = await disuseConfirm(this.index1) this.disabled3 = false this.checkArr = [] + this.dataList = [] this.index1 = '' this.index5 = '' this._queryMaterialInfo() diff --git a/pages/SecondPhase/EmptyVehicleInStore.vue b/pages/SecondPhase/EmptyVehicleInStore.vue index 77f100c..9e8fc28 100644 --- a/pages/SecondPhase/EmptyVehicleInStore.vue +++ b/pages/SecondPhase/EmptyVehicleInStore.vue @@ -73,6 +73,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/finished/ReturnToStore.vue b/pages/SecondPhase/finished/ReturnToStore.vue index e336463..116aec4 100644 --- a/pages/SecondPhase/finished/ReturnToStore.vue +++ b/pages/SecondPhase/finished/ReturnToStore.vue @@ -75,6 +75,7 @@ }) this.val1 = '' this.disabled = false + this.clearUp() } catch (e) { this.disabled = false } diff --git a/pages/SecondPhase/finished/abnorToStore.vue b/pages/SecondPhase/finished/abnorToStore.vue index 292e21c..fa7944e 100644 --- a/pages/SecondPhase/finished/abnorToStore.vue +++ b/pages/SecondPhase/finished/abnorToStore.vue @@ -82,6 +82,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/lvt/EmptyBox.vue b/pages/SecondPhase/lvt/EmptyBox.vue index 56e674d..2a3aca6 100644 --- a/pages/SecondPhase/lvt/EmptyBox.vue +++ b/pages/SecondPhase/lvt/EmptyBox.vue @@ -100,6 +100,7 @@ this.index = e }, async _queryBoxIvt () { + this.dataList = [] try { let res = await queryBoxIvt(this.val1, this.val2, this.val3) this.dataList = [...res.data] diff --git a/pages/SecondPhase/point/ErrorOutUnlock.vue b/pages/SecondPhase/point/ErrorOutUnlock.vue index 3d3759b..3409559 100644 --- a/pages/SecondPhase/point/ErrorOutUnlock.vue +++ b/pages/SecondPhase/point/ErrorOutUnlock.vue @@ -65,6 +65,8 @@ } try { let res = await abnormalOut(this.val1, this.val2) + this.val1 = '' + this.val2 = '' this.disabled1 = false uni.showToast({ title: res.message, diff --git a/pages/SecondPhase/point/ManPass.vue b/pages/SecondPhase/point/ManPass.vue index 18d4357..604d153 100644 --- a/pages/SecondPhase/point/ManPass.vue +++ b/pages/SecondPhase/point/ManPass.vue @@ -65,6 +65,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false @@ -81,6 +82,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false this.btn_active = false } catch (e) { diff --git a/pages/SecondPhase/production/BakeProcess.vue b/pages/SecondPhase/production/BakeProcess.vue index 08fb102..c871b23 100644 --- a/pages/SecondPhase/production/BakeProcess.vue +++ b/pages/SecondPhase/production/BakeProcess.vue @@ -133,6 +133,10 @@ title: res.message, icon: 'none' }) + this.val1 = '' + this.val2 = '' + this.val3 = '' + this.val4 = '' this.disabled3 = false } catch (e) { this.disabled3 = false @@ -150,6 +154,10 @@ title: res.message, icon: 'none' }) + this.val1 = '' + this.val2 = '' + this.val3 = '' + this.val4 = '' this.disabled4 = false } catch (e) { this.disabled4 = false diff --git a/pages/SecondPhase/production/SurfaceProcess.vue b/pages/SecondPhase/production/SurfaceProcess.vue index f2fdebd..bd88763 100644 --- a/pages/SecondPhase/production/SurfaceProcess.vue +++ b/pages/SecondPhase/production/SurfaceProcess.vue @@ -69,6 +69,7 @@ title: res.message, icon: 'none' }) + this.cleanUp() } catch (e) { this.disabled = false } @@ -82,6 +83,7 @@ title: res.message, icon: 'none' }) + this.cleanUp() } catch (e) { this.disabled = false } diff --git a/pages/SecondPhase/slitting/CacheCut.vue b/pages/SecondPhase/slitting/CacheCut.vue index 674063c..ce4968f 100644 --- a/pages/SecondPhase/slitting/CacheCut.vue +++ b/pages/SecondPhase/slitting/CacheCut.vue @@ -150,6 +150,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false @@ -162,6 +163,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/slitting/CallShaft.vue b/pages/SecondPhase/slitting/CallShaft.vue index fdb2af7..7a36e68 100644 --- a/pages/SecondPhase/slitting/CallShaft.vue +++ b/pages/SecondPhase/slitting/CallShaft.vue @@ -196,6 +196,7 @@ try { let res = await forcedFeedShaft(this.index1, deviceT, this.index2, upLT, this.upL, upRT, this.upR, lowLT, this.lowL, lowRT, this.lowR) this.disabled = false + this.dataList = [] uni.showToast({ title: res.message, icon: 'none' diff --git a/pages/SecondPhase/slitting/DoInitShaft.vue b/pages/SecondPhase/slitting/DoInitShaft.vue index 362e1dd..dda2ddb 100644 --- a/pages/SecondPhase/slitting/DoInitShaft.vue +++ b/pages/SecondPhase/slitting/DoInitShaft.vue @@ -74,6 +74,7 @@ title: res.message, icon: 'none' }) + this.index = '' this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/slitting/EmptyAxisReturn.vue b/pages/SecondPhase/slitting/EmptyAxisReturn.vue index 0da2db6..bfe1906 100644 --- a/pages/SecondPhase/slitting/EmptyAxisReturn.vue +++ b/pages/SecondPhase/slitting/EmptyAxisReturn.vue @@ -153,6 +153,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/slitting/PaperBind.vue b/pages/SecondPhase/slitting/PaperBind.vue index 21dfa64..36c0bd9 100644 --- a/pages/SecondPhase/slitting/PaperBind.vue +++ b/pages/SecondPhase/slitting/PaperBind.vue @@ -127,6 +127,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/slitting/ShaftSave.vue b/pages/SecondPhase/slitting/ShaftSave.vue index dab90bb..4a09cc0 100644 --- a/pages/SecondPhase/slitting/ShaftSave.vue +++ b/pages/SecondPhase/slitting/ShaftSave.vue @@ -52,6 +52,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/slitting/SlittingCutting.vue b/pages/SecondPhase/slitting/SlittingCutting.vue index 4764045..55fa780 100644 --- a/pages/SecondPhase/slitting/SlittingCutting.vue +++ b/pages/SecondPhase/slitting/SlittingCutting.vue @@ -99,6 +99,7 @@ title: res.message, icon: 'none' }) + this.clearUp() } catch (e) { console.log(e) } diff --git a/pages/SecondPhase/slitting/StockingArea.vue b/pages/SecondPhase/slitting/StockingArea.vue index 833e881..b22885f 100644 --- a/pages/SecondPhase/slitting/StockingArea.vue +++ b/pages/SecondPhase/slitting/StockingArea.vue @@ -63,6 +63,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false @@ -80,6 +81,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/slitting/UpperShaftCut.vue b/pages/SecondPhase/slitting/UpperShaftCut.vue index 360827e..2ebc7fc 100644 --- a/pages/SecondPhase/slitting/UpperShaftCut.vue +++ b/pages/SecondPhase/slitting/UpperShaftCut.vue @@ -136,6 +136,7 @@ title: res.message, icon: 'none' }) + this.clearUp() this.disabled = false } catch (e) { this.disabled = false diff --git a/pages/SecondPhase/slitting/UpperShaftCut2.vue b/pages/SecondPhase/slitting/UpperShaftCut2.vue index 370ddf3..617c6c6 100644 --- a/pages/SecondPhase/slitting/UpperShaftCut2.vue +++ b/pages/SecondPhase/slitting/UpperShaftCut2.vue @@ -98,6 +98,7 @@ title: res.message, icon: 'none' }) + this.clearUp() } catch (e) { console.log(e) } diff --git a/pages/SecondPhase/slitting/ZjDelivery.vue b/pages/SecondPhase/slitting/ZjDelivery.vue index 30670de..5425b3b 100644 --- a/pages/SecondPhase/slitting/ZjDelivery.vue +++ b/pages/SecondPhase/slitting/ZjDelivery.vue @@ -182,6 +182,8 @@ }, /** 初始化查询 */ async _queryMaterialInfo () { + this.dataList = [] + this.checkArr = [] let res = await queryMaterialInfo3(this.val1, this.val2, this.index1, this.index2) if (this.val2) { res.data.map(el => { @@ -205,6 +207,7 @@ try { let res = await needVehicle(this.checkArr[0]) this.disabled1 = false + this.dataList = [] this.checkArr = [] this._queryMaterialInfo() uni.showToast({ @@ -225,6 +228,7 @@ try { let res = await shippingConfirm(this.checkArr, this.val3, this.val1) this.disabled2 = false + this.dataList = [] this.checkArr = [] this.val1 = '' this.val2 = '' diff --git a/pages/SecondPhase/slitting/ZjInStore.vue b/pages/SecondPhase/slitting/ZjInStore.vue index 823b09b..713edd6 100644 --- a/pages/SecondPhase/slitting/ZjInStore.vue +++ b/pages/SecondPhase/slitting/ZjInStore.vue @@ -144,6 +144,7 @@ }, /** 初始化查询 */ async _queryMaterialInfo () { + this.dataList = [] let res = await queryMaterialInfo5(this.index3, this.index2) this.dataList = [...res.data] }, diff --git a/pages/SecondPhase/slitting/ZjOutStore.vue b/pages/SecondPhase/slitting/ZjOutStore.vue index 08e25d5..aaa170d 100644 --- a/pages/SecondPhase/slitting/ZjOutStore.vue +++ b/pages/SecondPhase/slitting/ZjOutStore.vue @@ -216,6 +216,8 @@ }, /** 初始化查询 */ async _queryMaterialInfo () { + this.checkArr = [] + this.dataList = [] let res = await queryMaterialInfo4(this.index5, this.index2) res.data.map(el => { this.$set(el, 'checked', false) @@ -241,6 +243,7 @@ let res = await outConfirm(this.index1, this.checkArr, this.isV) this.disabled1 = false this.checkArr = [] + this.dataList = [] this.isV = '0' this.index1 = '' this.index5 = '' @@ -272,6 +275,7 @@ let res = await disuseConfirm(this.index1) this.disabled3 = false this.checkArr = [] + this.dataList = [] this.index1 = '' this.index5 = '' this._queryMaterialInfo() diff --git a/pages/WarehouseManage/CustomerLabelPrint.vue b/pages/WarehouseManage/CustomerLabelPrint.vue index a6dec3f..802416c 100644 --- a/pages/WarehouseManage/CustomerLabelPrint.vue +++ b/pages/WarehouseManage/CustomerLabelPrint.vue @@ -75,7 +75,6 @@ title: '', val1: '', dataList: [], - disabled1: false, disabled2: false }; }, @@ -116,6 +115,7 @@ let res = await customerPrint(this.val1, this.$store.getters.setPrintName) this.disabled2 = false this.val1 = '' + this.dataList = [] uni.showToast({ title: res.message, icon: 'none' diff --git a/pages/WarehouseManage/ErrorOutUnlock.vue b/pages/WarehouseManage/ErrorOutUnlock.vue index 3d3759b..22ebb25 100644 --- a/pages/WarehouseManage/ErrorOutUnlock.vue +++ b/pages/WarehouseManage/ErrorOutUnlock.vue @@ -66,6 +66,8 @@ try { let res = await abnormalOut(this.val1, this.val2) this.disabled1 = false + this.val1 = '' + this.val2 = '' uni.showToast({ title: res.message, icon: 'none' diff --git a/pages/WarehouseManage/ProdDeliveryConfirm.vue b/pages/WarehouseManage/ProdDeliveryConfirm.vue index 5266079..906270d 100644 --- a/pages/WarehouseManage/ProdDeliveryConfirm.vue +++ b/pages/WarehouseManage/ProdDeliveryConfirm.vue @@ -105,6 +105,7 @@ let res = await stoutConfirm(this.val1) this.disabled1 = false this.val1 = '' + this.dataList = [] this._stivtDtlQuery() uni.showToast({ title: res.message, diff --git a/pages/WarehouseManage/SemifinishedOutStore.vue b/pages/WarehouseManage/SemifinishedOutStore.vue index 71559db..fc38fa1 100644 --- a/pages/WarehouseManage/SemifinishedOutStore.vue +++ b/pages/WarehouseManage/SemifinishedOutStore.vue @@ -125,6 +125,7 @@ this.disabled = false this.pkId = '' this.pkObj = {} + this.dataList = [] this._outcoolIOQuery() uni.showToast({ title: res.message, diff --git a/pages/WarehouseManage/XuniDeliveryConfirm.vue b/pages/WarehouseManage/XuniDeliveryConfirm.vue index ae6ff4f..948f801 100644 --- a/pages/WarehouseManage/XuniDeliveryConfirm.vue +++ b/pages/WarehouseManage/XuniDeliveryConfirm.vue @@ -121,6 +121,7 @@ this.disabled1 = false this.val1 = '' this.val2 = '' + this.dataList = [] this._virtualivtQuery() uni.showToast({ title: res.message,