2026-01-05 17:01:08 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="zd_container">
|
|
|
|
|
<!-- 空载具堆叠 -->
|
2026-01-09 18:05:06 +08:00
|
|
|
<nav-bar :title="title"></nav-bar>
|
2026-01-05 17:01:08 +08:00
|
|
|
<view class="zd_content">
|
|
|
|
|
<view class="zd_wrapper">
|
|
|
|
|
<view class="zd-row border-bottom">
|
|
|
|
|
<view class="zd-col-7">
|
|
|
|
|
<span class="filter_label">载具点位</span>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zd-col-24 filter_select">
|
2026-01-08 10:56:44 +08:00
|
|
|
<search-box v-model="val1" />
|
2026-01-05 17:01:08 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zd_wrapper grid-wraper">
|
|
|
|
|
<view class="slide_new">
|
|
|
|
|
<table>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>序号</th>
|
|
|
|
|
<th>堆叠位</th>
|
|
|
|
|
<th>当前托盘数</th>
|
|
|
|
|
<th>待堆叠</th>
|
|
|
|
|
<th>剩余可堆叠</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2026-01-08 10:56:44 +08:00
|
|
|
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.point_code === pkId}" @tap="toCheck(e)">
|
2026-01-05 17:01:08 +08:00
|
|
|
<td>{{i+1}}</td>
|
2026-01-08 10:56:44 +08:00
|
|
|
<td>{{e.point_code}}</td>
|
|
|
|
|
<td>{{e.vehicle_qty}}</td>
|
|
|
|
|
<td>{{e.execution_task}}</td>
|
|
|
|
|
<td>{{e.remaining_qty}}</td>
|
2026-01-05 17:01:08 +08:00
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zd-row submit-bar">
|
2026-01-08 10:56:44 +08:00
|
|
|
<button class="zd-col-24 button-primary" :class="{'button-info': !val1 || !pkId}" @tap="_callStackPlates">呼叫堆叠</button>
|
2026-01-05 17:01:08 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import NavBar from '@/components/NavBar.vue'
|
|
|
|
|
import SearchBox from '@/components/SearchBox.vue'
|
2026-01-08 10:56:44 +08:00
|
|
|
import {queryPointDtl, callStackPlates} from '@/utils/getData3.js'
|
2026-01-05 17:01:08 +08:00
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
NavBar,
|
|
|
|
|
SearchBox
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
|
val1: '',
|
|
|
|
|
dataList: [],
|
|
|
|
|
pkId: '',
|
|
|
|
|
pkObj: {}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onLoad (options) {
|
|
|
|
|
this.title = options.title
|
2026-01-08 10:56:44 +08:00
|
|
|
this._queryPointDtl()
|
2026-01-05 17:01:08 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2026-01-08 10:56:44 +08:00
|
|
|
async _queryPointDtl () {
|
2026-01-05 17:01:08 +08:00
|
|
|
try {
|
2026-01-08 10:56:44 +08:00
|
|
|
let res = await queryPointDtl(this.val1)
|
2026-01-05 17:01:08 +08:00
|
|
|
if (res && res.data.length > 0) {
|
|
|
|
|
this.dataList = [...res.data]
|
|
|
|
|
} else {
|
|
|
|
|
this.dataList = []
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
this.dataList = []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toCheck (e) {
|
2026-01-08 10:56:44 +08:00
|
|
|
this.pkId = this.pkId === e.point_code ? '' : e.point_code
|
|
|
|
|
this.pkObj = this.pkId === e.point_code ? e : {}
|
2026-01-05 17:01:08 +08:00
|
|
|
},
|
2026-01-08 10:56:44 +08:00
|
|
|
async _callStackPlates () {
|
|
|
|
|
this.disabled = true
|
|
|
|
|
if (!this.val1 || !this.pkId) {
|
|
|
|
|
this.disabled = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
let res = await callStackPlates(this.val1, this.pkObj)
|
|
|
|
|
if (res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.message,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.toEmpty()
|
|
|
|
|
this.disabled = false
|
|
|
|
|
} catch (e) {
|
|
|
|
|
this.disabled = false
|
2026-01-05 17:01:08 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|