呼叫木盘,空盘入库
This commit is contained in:
89
pages/modules/call-full-mater.vue
Normal file
89
pages/modules/call-full-mater.vue
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<nav-bar title="呼叫满料"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper grid-wraper">
|
||||||
|
<view class="slide_new">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>起点</th>
|
||||||
|
<th>终点</th>
|
||||||
|
<th>任务状态</th>
|
||||||
|
<th>备注</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{'checked': e.group_id === pkId}">
|
||||||
|
<td>{{e.point_name1}}</td>
|
||||||
|
<td>{{e.point_name2}}</td>
|
||||||
|
<td>{{e.task_status}}</td>
|
||||||
|
<td>{{e.remark}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="submit-bar">
|
||||||
|
<button class="submit-button" @tap="_callingMaterialTaskShow">刷新</button>
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure">呼叫满料</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import {callingMaterialTaskShow, callingMaterialTask} from '@/utils/getData1.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList: [],
|
||||||
|
pkId: '',
|
||||||
|
pkObj: {},
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._callingMaterialTaskShow()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** grid查询 */
|
||||||
|
async _callingMaterialTaskShow () {
|
||||||
|
let res = await callingMaterialTaskShow()
|
||||||
|
this.dataList = [...res]
|
||||||
|
},
|
||||||
|
/** 呼叫满料 */
|
||||||
|
async toSure () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.pkId) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await callingMaterialTask()
|
||||||
|
this.disabled = false
|
||||||
|
this.pkId = ''
|
||||||
|
this.pkObj = {}
|
||||||
|
this._callingMaterialTaskShow()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toCheck (e) {
|
||||||
|
this.pkId = this.pkId === e.group_id ? '' : e.group_id
|
||||||
|
this.pkObj = this.pkId === e.group_id ? e : {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
89
pages/modules/call-mupan.vue
Normal file
89
pages/modules/call-mupan.vue
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<nav-bar title="呼叫木盘"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper grid-wraper">
|
||||||
|
<view class="slide_new">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>起点</th>
|
||||||
|
<th>终点</th>
|
||||||
|
<th>任务状态</th>
|
||||||
|
<th>备注</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{'checked': e.group_id === pkId}">
|
||||||
|
<td>{{e.point_name1}}</td>
|
||||||
|
<td>{{e.point_name2}}</td>
|
||||||
|
<td>{{e.task_status}}</td>
|
||||||
|
<td>{{e.remark}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="submit-bar">
|
||||||
|
<button class="submit-button" @tap="_callingWoodenPalletTaskShow">刷新</button>
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure">呼叫木盘</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import {callingWoodenPalletTaskShow, callingWoodenPalletTask} from '@/utils/getData1.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList: [],
|
||||||
|
pkId: '',
|
||||||
|
pkObj: {},
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._callingWoodenPalletTaskShow()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** grid查询 */
|
||||||
|
async _callingWoodenPalletTaskShow () {
|
||||||
|
let res = await callingWoodenPalletTaskShow()
|
||||||
|
this.dataList = [...res]
|
||||||
|
},
|
||||||
|
/** 呼叫木盘 */
|
||||||
|
async toSure () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.pkId) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await callingWoodenPalletTask()
|
||||||
|
this.disabled = false
|
||||||
|
this.pkId = ''
|
||||||
|
this.pkObj = {}
|
||||||
|
this._callingWoodenPalletTaskShow()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toCheck (e) {
|
||||||
|
this.pkId = this.pkId === e.group_id ? '' : e.group_id
|
||||||
|
this.pkObj = this.pkId === e.group_id ? e : {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{'checked': e.group_id === pkId}">
|
<tr v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{'checked': e.group_id === pkId}">
|
||||||
<td>{{e.point_code}}</td>
|
<td>{{e.point_name1}}</td>
|
||||||
<td>{{e.device_code}}</td>
|
<td>{{e.point_name2}}</td>
|
||||||
<td>{{e.standing_time}}</td>
|
<td>{{e.task_status}}</td>
|
||||||
<td>{{e.timeDifferenceMinutes}}</td>
|
<td>{{e.remark}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" @tap="_emptyDiskIntoStorageShow">刷新</button>
|
<button class="submit-button" @tap="_emptyDiskIntoStorageShow">刷新</button>
|
||||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure">确认</button>
|
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure">空盘入库</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
let res = await emptyDiskIntoStorageShow()
|
let res = await emptyDiskIntoStorageShow()
|
||||||
this.dataList = [...res]
|
this.dataList = [...res]
|
||||||
},
|
},
|
||||||
/** 确认 */
|
/** 空盘入库 */
|
||||||
async toSure () {
|
async toSure () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.pkId) {
|
if (!this.pkId) {
|
||||||
|
|||||||
@@ -42,8 +42,34 @@ export const sendTask = (vcode, spcode) => request({
|
|||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 人工分拣-空盘入库
|
* 人工分拣
|
||||||
*/
|
*/
|
||||||
|
// 呼叫木盘
|
||||||
|
// 呼叫木盘刷新
|
||||||
|
export const callingWoodenPalletTaskShow = () => request({
|
||||||
|
url:'api/pda/manualSorting/callingWoodenPalletTaskShow',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
// 呼叫木盘任务
|
||||||
|
export const callingWoodenPalletTask = () => request({
|
||||||
|
url:'api/pda/manualSorting/callingWoodenPalletTask',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// 呼叫满料
|
||||||
|
// 呼叫满料刷新
|
||||||
|
export const callingMaterialTaskShow = () => request({
|
||||||
|
url:'api/pda/manualSorting/callingMaterialTaskShow',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
// 呼叫满料确认
|
||||||
|
export const callingMaterialTask = () => request({
|
||||||
|
url:'/api/pda/manualSorting/callingMaterialTask',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
|
// 空盘入库
|
||||||
// 空盘入库刷新
|
// 空盘入库刷新
|
||||||
export const emptyDiskIntoStorageShow = () => request({
|
export const emptyDiskIntoStorageShow = () => request({
|
||||||
url:'api/pda/manualSorting/emptyDiskIntoStorageShow',
|
url:'api/pda/manualSorting/emptyDiskIntoStorageShow',
|
||||||
@@ -51,6 +77,6 @@ export const emptyDiskIntoStorageShow = () => request({
|
|||||||
})
|
})
|
||||||
// 空盘入库确认
|
// 空盘入库确认
|
||||||
export const emptyDiskIntoStorageTask = () => request({
|
export const emptyDiskIntoStorageTask = () => request({
|
||||||
url:'/api/pda/manualSorting/emptyDiskIntoStorageTask',
|
url:'api/pda/manualSorting/emptyDiskIntoStorageTask',
|
||||||
data: {}
|
data: {}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user