no message
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<span class="filter_label">点位</span>
|
<span class="filter_label">点位</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<search-box v-model="val1" />
|
<search-box v-model="val1" @handleChange="handleChange" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
<th>起点</th>
|
<th>起点</th>
|
||||||
<th>终点</th>
|
<th>终点</th>
|
||||||
<th>任务类型</th>
|
<th>任务类型</th>
|
||||||
|
<th>状态</th>
|
||||||
<th>载具号</th>
|
<th>载具号</th>
|
||||||
<th>创建时间</th>
|
<th>创建时间</th>
|
||||||
<th>更新时间</th>
|
<th>更新时间</th>
|
||||||
@@ -38,7 +39,8 @@
|
|||||||
<tr v-for="(e, i) in dataList" :key="i">
|
<tr v-for="(e, i) in dataList" :key="i">
|
||||||
<td>{{e.point_code1}}</td>
|
<td>{{e.point_code1}}</td>
|
||||||
<td>{{e.point_code2}}</td>
|
<td>{{e.point_code2}}</td>
|
||||||
<td>{{e.vehicle_type}}</td>
|
<td>{{options1 | findByValue(e.vehicle_type)}}</td>
|
||||||
|
<td>{{options2 | findByValue(e.task_status)}}</td>
|
||||||
<td>{{e.vehicle_code}}</td>
|
<td>{{e.vehicle_code}}</td>
|
||||||
<td>{{e.create_time}}</td>
|
<td>{{e.create_time}}</td>
|
||||||
<td>{{e.update_time}}</td>
|
<td>{{e.update_time}}</td>
|
||||||
@@ -60,7 +62,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {taskTubeVehicle, fullTubeVehicleIn, emptyTubeVehicleOut} from '@/utils/getData3.js'
|
import {getTubeVehicleInfo, taskTubeVehicle, fullTubeVehicleIn, emptyTubeVehicleOut} from '@/utils/getData3.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -72,7 +74,9 @@
|
|||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
options1: [{value: '010823', text: '备货区托盘入库'}, {value: '010824', text: '备货区托盘出库'}],
|
||||||
|
options2: [{value: '04', text: '起点终点确认'}, {value: '05', text: '下发'}, {value: '06', text: '执行中'}, {value: '071', text: '取货完成,执行中'}, {value: '07', text: '完成'}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -82,7 +86,21 @@
|
|||||||
this._taskTubeVehicle()
|
this._taskTubeVehicle()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**查询物料下拉框*/
|
handleChange (e) {
|
||||||
|
if (e) {
|
||||||
|
this._getTubeVehicleInfo(e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _getTubeVehicleInfo (e) {
|
||||||
|
try {
|
||||||
|
const res = getTubeVehicleInfo(e)
|
||||||
|
if (res && res.status === 200) {
|
||||||
|
this.val2 = res.data
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.val2 = ''
|
||||||
|
}
|
||||||
|
},
|
||||||
async _taskTubeVehicle () {
|
async _taskTubeVehicle () {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
try {
|
try {
|
||||||
@@ -110,6 +128,7 @@
|
|||||||
})
|
})
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this._taskTubeVehicle()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
@@ -128,6 +147,7 @@
|
|||||||
})
|
})
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this._taskTubeVehicle()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -630,3 +630,7 @@ export const emptyTubeVehicleOut = (point, code) => request({
|
|||||||
url:'api/pda/slitter/emptyTubeVehicleOut',
|
url:'api/pda/slitter/emptyTubeVehicleOut',
|
||||||
data: {point_code: point, vehicle_code: code}
|
data: {point_code: point, vehicle_code: code}
|
||||||
})
|
})
|
||||||
|
export const getTubeVehicleInfo = (point) => request({
|
||||||
|
url:'api/pda/slitter/getTubeVehicleInfo',
|
||||||
|
data: {point_code: point}
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user