搬运
This commit is contained in:
@@ -3,6 +3,18 @@
|
|||||||
<nav-bar title="搬运任务"></nav-bar>
|
<nav-bar title="搬运任务"></nav-bar>
|
||||||
<view class="zd_content">
|
<view class="zd_content">
|
||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper">
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">起始区域</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index3" :localdata="options3" @change="selectChange3"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">目标区域</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index4" :localdata="options4" @change="selectChange4"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">起始点位</view>
|
<view class="filter_label">起始点位</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
@@ -26,7 +38,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import {pointSearch, taskCarry} from '@/utils/getData1.js'
|
import {regionSearch, pointSearch, taskCarry} from '@/utils/getData1.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar
|
NavBar
|
||||||
@@ -39,11 +51,15 @@
|
|||||||
index1: '',
|
index1: '',
|
||||||
options2: [],
|
options2: [],
|
||||||
index2: '',
|
index2: '',
|
||||||
|
options3: [],
|
||||||
|
index3: '',
|
||||||
|
options4: [],
|
||||||
|
index4: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this._pointSearch1('SSX')
|
this._regionSearch3('')
|
||||||
this._pointSearch2('YL')
|
this._regionSearch4('')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectChange1 (e) {
|
selectChange1 (e) {
|
||||||
@@ -52,6 +68,30 @@
|
|||||||
selectChange2 (e) {
|
selectChange2 (e) {
|
||||||
this.index2 = e
|
this.index2 = e
|
||||||
},
|
},
|
||||||
|
selectChange3 (e) {
|
||||||
|
this.index3 = e
|
||||||
|
this._pointSearch1(e)
|
||||||
|
},
|
||||||
|
selectChange4 (e) {
|
||||||
|
this.index4 = e
|
||||||
|
this._pointSearch2(e)
|
||||||
|
},
|
||||||
|
async _regionSearch3 (a) {
|
||||||
|
let res = await regionSearch(a)
|
||||||
|
this.options3 = [...res]
|
||||||
|
this.options3.map(el => {
|
||||||
|
this.$set(el, 'value', el.region_code)
|
||||||
|
this.$set(el, 'text', el.region_name)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async _regionSearch4 (a) {
|
||||||
|
let res = await regionSearch(a)
|
||||||
|
this.options4 = [...res]
|
||||||
|
this.options4.map(el => {
|
||||||
|
this.$set(el, 'value', el.region_code)
|
||||||
|
this.$set(el, 'text', el.region_name)
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 点位查询1 */
|
/** 点位查询1 */
|
||||||
async _pointSearch1 (a) {
|
async _pointSearch1 (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a)
|
||||||
|
|||||||
Reference in New Issue
Block a user