人工移库
This commit is contained in:
@@ -63,6 +63,7 @@
|
|||||||
"menu.area-manage": "区域管制",
|
"menu.area-manage": "区域管制",
|
||||||
"menu.agv-manage": "AGV管制",
|
"menu.agv-manage": "AGV管制",
|
||||||
"menu.zd-manage": "站点管理",
|
"menu.zd-manage": "站点管理",
|
||||||
|
"menu.man-yiku": "人工移库",
|
||||||
"filter.area": "区域",
|
"filter.area": "区域",
|
||||||
"filter.point": "点位",
|
"filter.point": "点位",
|
||||||
"filter.type": "类型",
|
"filter.type": "类型",
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
"menu.area-manage": "入退場区域登録",
|
"menu.area-manage": "入退場区域登録",
|
||||||
"menu.agv-manage": "AGV せいぎょ",
|
"menu.agv-manage": "AGV せいぎょ",
|
||||||
"menu.zd-manage": "サイト管理",
|
"menu.zd-manage": "サイト管理",
|
||||||
|
"menu.man-yiku": "手動でライブラリを移動する",
|
||||||
"filter.area": "領域",
|
"filter.area": "領域",
|
||||||
"filter.point": "ポイント",
|
"filter.point": "ポイント",
|
||||||
"filter.type": "を選択してオプションを設定します。",
|
"filter.type": "を選択してオプションを設定します。",
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
"menu.area-manage": "区域管制",
|
"menu.area-manage": "区域管制",
|
||||||
"menu.agv-manage": "AGV管制",
|
"menu.agv-manage": "AGV管制",
|
||||||
"menu.zd-manage": "站点管理",
|
"menu.zd-manage": "站点管理",
|
||||||
|
"menu.man-yiku": "人工移库",
|
||||||
"filter.area": "区域",
|
"filter.area": "区域",
|
||||||
"filter.point": "点位",
|
"filter.point": "点位",
|
||||||
"filter.type": "类型",
|
"filter.type": "类型",
|
||||||
|
|||||||
@@ -526,6 +526,13 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/ftdlDTY/man-yiku",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
98
pages/ftdlDTY/man-yiku.vue
Normal file
98
pages/ftdlDTY/man-yiku.vue
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<!-- 人工移库 -->
|
||||||
|
<nav-bar :title="title"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-8">
|
||||||
|
<!-- <span class="filter_label">区域</span> -->
|
||||||
|
<span class="filter_label">{{$t('filter.start-point')}}</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-16">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-8">
|
||||||
|
<!-- <span class="filter_label">区域</span> -->
|
||||||
|
<span class="filter_label">{{$t('filter.end-point')}}</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-16">
|
||||||
|
<search-box
|
||||||
|
v-model="val2"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar">
|
||||||
|
<!-- <button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_materialTransfer">确认</button> -->
|
||||||
|
<button class="zd-col-8 button-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
||||||
|
<button class="zd-col-14 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="handleConfirm">{{$t('button.confirm')}}</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import { confirmAction } from '@/utils/utils.js'
|
||||||
|
import {materialTransfer} from '@/utils/getData4.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
clearUp () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.disabled = false
|
||||||
|
},
|
||||||
|
async handleConfirm() {
|
||||||
|
if (!this.val1 || !this.val2) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
|
||||||
|
if (isConfirmed) {
|
||||||
|
this._materialTransfer()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _materialTransfer () {
|
||||||
|
this.disabled = true
|
||||||
|
try {
|
||||||
|
let res = await materialTransfer(this.val1, this.val2)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.clearUp()
|
||||||
|
this.disabled = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
// {title: '区域管制', path: 'RF01', sonTree: [{title: '区域管制', path: '/pages/ftdlDTY/area-manage'}]}
|
// {title: '区域管制', path: 'RF01', sonTree: [{title: '区域管制', path: '/pages/ftdlDTY/area-manage'}]}
|
||||||
// ],
|
// ],
|
||||||
menuList: [
|
menuList: [
|
||||||
{title: this.$t('menu.kw-management'), path: 'RF03', sonTree: [{title: this.$t('menu.man-get-goods'), path: '/pages/ftdlDTY/man-get-goods'}, {title: this.$t('menu.man-load-goods'), path: '/pages/ftdlDTY/man-load-goods'}, {title: this.$t('menu.zd-manage'), path: '/pages/ftdlDTY/zd-manage'}]},
|
{title: this.$t('menu.kw-management'), path: 'RF03', sonTree: [{title: this.$t('menu.man-get-goods'), path: '/pages/ftdlDTY/man-get-goods'}, {title: this.$t('menu.man-load-goods'), path: '/pages/ftdlDTY/man-load-goods'}, {title: this.$t('menu.zd-manage'), path: '/pages/ftdlDTY/zd-manage'}, {title: this.$t('menu.man-yiku'), path: '/pages/ftdlDTY/man-yiku'}]},
|
||||||
{title: this.$t('menu.line-management'), path: 'RF04', sonTree: [{title: this.$t('menu.line-down-mater'), path: '/pages/ftdlDTY/line-down-mater'}]},
|
{title: this.$t('menu.line-management'), path: 'RF04', sonTree: [{title: this.$t('menu.line-down-mater'), path: '/pages/ftdlDTY/line-down-mater'}]},
|
||||||
{title: this.$t('menu.task-management'), path: 'RF07', sonTree: [{title: this.$t('menu.work-manage'), path: '/pages/ftdlDTY/work-manage'}, {title: this.$t('menu.fixedpoint-work'), path: '/pages/ftdlDTY/fixedpoint-work'}]},
|
{title: this.$t('menu.task-management'), path: 'RF07', sonTree: [{title: this.$t('menu.work-manage'), path: '/pages/ftdlDTY/work-manage'}, {title: this.$t('menu.fixedpoint-work'), path: '/pages/ftdlDTY/fixedpoint-work'}]},
|
||||||
{title: this.$t('menu.area-manage'), path: 'RF01', sonTree: [{title: this.$t('menu.area-manage'), path: '/pages/ftdlDTY/area-manage'}, {title: this.$t('menu.agv-manage'), path: '/pages/ftdlDTY/agv-manage'}]}
|
{title: this.$t('menu.area-manage'), path: 'RF01', sonTree: [{title: this.$t('menu.area-manage'), path: '/pages/ftdlDTY/area-manage'}, {title: this.$t('menu.agv-manage'), path: '/pages/ftdlDTY/agv-manage'}]}
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
_wh(22rpx, 22rpx)
|
_wh(22rpx, 22rpx)
|
||||||
_bis('../../static/image/exit.png',22rpx)
|
_bis('../../static/image/exit.png',22rpx)
|
||||||
.exit-text
|
.exit-text
|
||||||
_font(32rpx,50rpx,#fff,,right)
|
_font(24rpx,50rpx,#fff,,right)
|
||||||
padding-left 10rpx
|
padding-left 10rpx
|
||||||
.zd_home_wrapper
|
.zd_home_wrapper
|
||||||
_wh(100%, calc(100% - 238rpx))
|
_wh(100%, calc(100% - 238rpx))
|
||||||
|
|||||||
@@ -235,3 +235,10 @@ export const selectPointInfo = (rcode) => request({
|
|||||||
url:'api/hand/selectPointInfo',
|
url:'api/hand/selectPointInfo',
|
||||||
data: {region_code: rcode}
|
data: {region_code: rcode}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 人工移库
|
||||||
|
// 1.2人工移库
|
||||||
|
export const materialTransfer = (pcode1, pcode2) => request({
|
||||||
|
url:'api/hand/materialTransfer',
|
||||||
|
data: {point_code1: pcode1, point_code2: pcode2}
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user