page
This commit is contained in:
@@ -33,8 +33,10 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/management/ZlOperate",
|
"path": "pages/management/ZlOperate",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom",
|
||||||
}
|
"enablePullDownRefresh": true,
|
||||||
|
"onReachBottomDistance": 50
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/management/HcxErrorHandle",
|
"path": "pages/management/HcxErrorHandle",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.instruct_uuid}"></view>
|
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.instruct_uuid}"></view>
|
||||||
</td>
|
</td>
|
||||||
<td>{{e.instructorder_no}}</td>
|
<td>{{e.instructoperate_num}}</td>
|
||||||
<td>{{e.wcsdevice_code}}</td>
|
<td>{{e.wcsdevice_code}}</td>
|
||||||
<td>{{e.vehicle_code}}</td>
|
<td>{{e.vehicle_code}}</td>
|
||||||
<td>{{e.startpoint_code}}</td>
|
<td>{{e.startpoint_code}}</td>
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
<td>{{e.mes_no}}</td>
|
<td>{{e.mes_no}}</td>
|
||||||
<td>{{e.startpoint_code}}</td>
|
<td>{{e.startpoint_code}}</td>
|
||||||
<td>{{e.nextpoint_code}}</td>
|
<td>{{e.nextpoint_code}}</td>
|
||||||
<td>{{e.invehicle_code}}</td>
|
<td>{{e.vehicle_code}}</td>
|
||||||
<td>{{e.outvehicle_code}}</td>
|
<td>{{e.outvehicle_code}}</td>
|
||||||
<td>{{e.status_name}}</td>
|
<td>{{e.status_name}}</td>
|
||||||
<td>{{e.processmaterial_code}}</td>
|
<td>{{e.processmaterial_code}}</td>
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
},
|
},
|
||||||
totalCount: 0,
|
totalCount: 0,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10
|
pageSize: 5
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -192,8 +192,8 @@
|
|||||||
/** 初始化查询 */
|
/** 初始化查询 */
|
||||||
async _instPageQuery () {
|
async _instPageQuery () {
|
||||||
let form = {
|
let form = {
|
||||||
nPageStart: this.pageNum + '',
|
page: this.pageNum + '',
|
||||||
nPageRecordNum: this.pageSize + '',
|
size: this.pageSize + '',
|
||||||
status: this.index1,
|
status: this.index1,
|
||||||
inst_num: this.instNum,
|
inst_num: this.instNum,
|
||||||
agv_num: this.agvNum,
|
agv_num: this.agvNum,
|
||||||
@@ -204,8 +204,8 @@
|
|||||||
end_date: this.endDate || ''
|
end_date: this.endDate || ''
|
||||||
}
|
}
|
||||||
let res = await instPageQuery(form)
|
let res = await instPageQuery(form)
|
||||||
this.totalCount = res.totalElements
|
this.totalCount = res.size
|
||||||
if (res.totalElements > 0) {
|
if (res.size > 0) {
|
||||||
const dataMap = res.content
|
const dataMap = res.content
|
||||||
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
||||||
this.reload = false
|
this.reload = false
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
this.status = 'noMore'
|
this.status = 'noMore'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toSure (type) {
|
async toSure (type) {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.pkId) {
|
if (!this.pkId) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -239,11 +239,17 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this._instOperation(type)
|
try {
|
||||||
},
|
|
||||||
async _instOperation (type) {
|
|
||||||
let res = await instOperation(type)
|
let res = await instOperation(type)
|
||||||
this.dataList = [...res]
|
this.disabled = false
|
||||||
|
this.toSearch()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
toRadio (e) {
|
toRadio (e) {
|
||||||
this.pkId = this.pkId === e.instruct_uuid ? '' : e.instruct_uuid
|
this.pkId = this.pkId === e.instruct_uuid ? '' : e.instruct_uuid
|
||||||
@@ -255,5 +261,7 @@
|
|||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '../../common/style/mixin.styl';
|
@import '../../common/style/mixin.styl';
|
||||||
.grid-wrap
|
.grid-wrap
|
||||||
height: calc(100% - 337px); /** 42+ 15*8+ 35*5 */
|
height: auto
|
||||||
|
overflow: auto
|
||||||
|
// height: calc(100% - 337px); /** 42+ 15*8+ 35*5 */
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user