diff --git a/pages/management/TaskManage.vue b/pages/management/TaskManage.vue index a1f3d8b..4ac4c73 100644 --- a/pages/management/TaskManage.vue +++ b/pages/management/TaskManage.vue @@ -4,34 +4,18 @@ - - - - - - - - - - - - - - - - - - - + + + @@ -77,44 +61,23 @@ }, data() { return { - options1: [{text: 'A1', value: 'A1'}, {text: 'A2', value: 'A2'}], - index1: 'A1', - options2: [], - index2: '', val1: '', - val2: '', dataList: [], pkId: '', disabled: false }; }, created() { - this._getCacheLine('A1') + this._cacheLineOutBoxExceptionQuery() }, methods: { - /** 选择器1 */ - selectChange1(e) { - this.index1 = e - if (this.index1) { - this._getCacheLine(e) - } - this.index2 = '' - }, - /** 选择器2 */ - selectChange2(e) { - this.index2 = e - }, toSearch () { this.dataList = [] this.pkId = '' this._cacheLineOutBoxExceptionQuery() }, - async _getCacheLine (id) { - let res = await getCacheLine(id) - this.options2 = [...res] - }, async _cacheLineOutBoxExceptionQuery () { - let res = await cacheLineOutBoxExceptionQuery(this.index2, this.val1) + let res = await cacheLineOutBoxExceptionQuery() this.dataList = [...res] }, async toSure () { @@ -128,7 +91,7 @@ return } try { - let res = await cacheLineOutBoxExceptionConfirm(this.index2,this.pkId, '2', this.val2, this.index1, this.val1) + let res = await cacheLineOutBoxExceptionConfirm(this.val1) this.disabled = false this.toSearch() uni.showToast({