diff --git a/pages/ftdlDTY/man-get-goods.vue b/pages/ftdlDTY/man-get-goods.vue index df80b05..5f3c482 100644 --- a/pages/ftdlDTY/man-get-goods.vue +++ b/pages/ftdlDTY/man-get-goods.vue @@ -22,7 +22,7 @@ {{$t('filter.col')}} - + @@ -76,7 +76,7 @@ --> - + @@ -95,8 +95,7 @@ return { title: '', val1: '', - options: [], - index: '', + val2: '', dataList: [], reload: false, status: 'more', @@ -120,20 +119,17 @@ try { let res = await getColsByPoint(this.val1) if (res) { - this.options = res.data + this.val2 = res.data.col } else { - this.options =[] + this.val2 = '' } } catch (e) { - this.options = [] + this.val2 = '' } }, - selectChange (e) { - this.index = e - }, clearUp () { this.val1 = '' - this.index = '' + this.val2 = '' this.dataList = [] this.disabled = false }, @@ -199,7 +195,7 @@ } }, async handleConfirm() { - if (!this.index) { + if (!this.val2) { return } const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?") @@ -210,12 +206,12 @@ async _cleanCol () { this.disabled = true try { - let res = await cleanCol(this.index) + let res = await cleanCol(this.val1, this.val2) uni.showToast({ title: res.message, icon: 'none' }) - this.index = '' + this.val2 = '' this.dataList = [] this.disabled = false } catch (e) {