diff --git a/pages/ftdl/fixedpoint-work.vue b/pages/ftdl/fixedpoint-work.vue index 0618966..7a88f2c 100644 --- a/pages/ftdl/fixedpoint-work.vue +++ b/pages/ftdl/fixedpoint-work.vue @@ -16,8 +16,8 @@ 起点 - - + + @@ -32,15 +32,15 @@ 终点 - - + + - + @@ -57,13 +57,14 @@ data() { return { title: '', - val1: '', - val2: '', - // options: [{text:'堆叠托盘', value:'11111111'},{text:'料箱',value: '22222222'},{text:'白色EPH',value: '33333333'}], options: [], index: '', options2: [], index2: '', + options3: [], + index3: '', + options4: [], + index4: '', disabled: false }; }, @@ -108,30 +109,42 @@ this._getPointnByRegion2() }, async _getPointnByRegion1 () { - let res = await getPointnByRegion(this.index) - if (res.code === '200') { - this.val1 = res.data[0].point_code + try { + let res = await getPointnByRegion(this.index) + if (res) { + this.options3 = res.data + } else { + this.options3 =[] + } + } catch (e) { + this.options3 = [] } }, async _getPointnByRegion2 () { - let res = await getPointnByRegion(this.index2) - if (res.code === '200') { - this.val2 = res.data[0].point_code + try { + let res = await getPointnByRegion(this.index2) + if (res) { + this.options4 = res.data + } else { + this.options4 =[] + } + } catch (e) { + this.options4 = [] } }, clearUp () { - this.val1 = '' - this.val2 = '' + this.index3 = '' + this.index4 = '' this.disabled = false }, async _sendPointTask () { this.disabled = true - if (!this.val1 || !this.val2) { + if (!this.index3 || !this.index4) { this.disabled = false return } try { - let res = await sendPointTask(this.val1, this.val2) + let res = await sendPointTask(this.index3, this.index4) if (res.code === '200') { uni.showToast({ title: res.message, diff --git a/pages/ftdl/work-manage.vue b/pages/ftdl/work-manage.vue index fd436cd..189769c 100644 --- a/pages/ftdl/work-manage.vue +++ b/pages/ftdl/work-manage.vue @@ -20,28 +20,20 @@ - + - - - - - + - - - - - - + +
载具号任务号 起点 终点 状态作业号作业类型设备号当前步骤异常信息载具号
{{e.task_type}} {{e.task_code}}{{e.vehicle_code}}{{e.status}} {{e.point_code1}} {{e.point_code2}}{{e.create_time}}{{e.create_time}}{{e.create_time}}{{e.task_status}}{{e.vehicle_code}}