From a10a0543c7856f6cc1770481ee7660103379d45a Mon Sep 17 00:00:00 2001 From: xiangxy Date: Thu, 13 Nov 2025 17:55:30 +0800 Subject: [PATCH] change --- pages/zw/ltzp.vue | 20 ++++++++++---------- pages/zw/materbox-instore.vue | 2 ++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/pages/zw/ltzp.vue b/pages/zw/ltzp.vue index 93380a9..36c820c 100644 --- a/pages/zw/ltzp.vue +++ b/pages/zw/ltzp.vue @@ -71,7 +71,7 @@ @@ -120,10 +120,10 @@ index: '', // options1: [{text:'t1', value: 't1'}, {text:'t2', value: 't2'}], // index1: '', - materialCode: '', + vehicleCode: '', selectedIndex: 0, - materialOptions: [], - // materialOptions: [ + vehicleOptions: [], + // vehicleOptions: [ // 'TB-001', // 'TB-002', // 'TB-003', @@ -154,7 +154,7 @@ onPickerChange(e) { const index = e.detail.value this.selectedIndex = index - this.materialCode = this.materialOptions[index] + this.vehicleCode = this.vehicleOptions[index] }, selectChange (e) { this.index = e @@ -179,12 +179,12 @@ try { let res = await vehiclelist() if (res) { - this.materialOptions = res.data.map(item => item.value); + this.vehicleOptions = res.data.map(item => item.value); } else { - this.materialOptions = [] + this.vehicleOptions = [] } } catch (e) { - this.materialOptions = [] + this.vehicleOptions = [] } }, toJump () { @@ -235,7 +235,7 @@ async _combination () { try { let selobj = this.options.find(item => item.value === this.index) - let res = await combination(this.currentData.vehicle_code, this.currentData.pcsn, this.currentData.material_id, selobj.value, selobj.text, this.currentData.single_weight) + let res = await combination(this.vehicleCode, this.currentData.pcsn, this.currentData.material_id, selobj.value, selobj.text, this.currentData.single_weight) uni.showToast({ title: res.message, icon: 'none' diff --git a/pages/zw/materbox-instore.vue b/pages/zw/materbox-instore.vue index 26216b2..6a98187 100644 --- a/pages/zw/materbox-instore.vue +++ b/pages/zw/materbox-instore.vue @@ -155,6 +155,8 @@ clearUp2 () { this.index = '' this.val2 = '' + this.currentData = {} + this._structList() this.disabled2 = false }, clearUp3 () {