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