压机搬运
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {unpackShelfInfo, getCbjPoint, cbjqlTask, hnWorkOrder,cbjmlTask,cbjqkTask} from '@/utils/mork2.js'
|
||||
import {unpackShelfInfo, getCbjPoint, cbjqlTask, hnWorkOrder,cbjmlTask,cbjqkTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -132,6 +132,7 @@
|
||||
data() {
|
||||
return {
|
||||
tab: 1,
|
||||
title: '',
|
||||
options1: [],
|
||||
index1: '',
|
||||
dataList1: [],
|
||||
|
||||
@@ -2,6 +2,12 @@
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd-row jccenter">
|
||||
<view class="zd-col-16 zd-row">
|
||||
<view class="tab-item" :class="{'tab-item_active': tab === 1}" @tap="tab=1">回库</view>
|
||||
<view class="tab-item" :class="{'tab-item_active': tab === 2}" @tap="tab=2">点对点</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-5">
|
||||
@@ -12,9 +18,34 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="tab === 2" class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>点位编码</th>
|
||||
<th>产品牌号</th>
|
||||
<th>入库时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="e.pointCode" @click="toChose(e)" :class="{'checked': e.pointCode === pkId}">
|
||||
<td>{{e.pointCode}}</td>
|
||||
<td>{{e.materialCode}}</td>
|
||||
<td>{{e.instorageTime}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-22 button-primary" :class="{'button-info': !index1}" :disabled="disabled" @tap="toPop">强制回货架</button>
|
||||
<view v-show="tab === 1" class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="index1 = ''">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1}" :disabled="disabled" @tap="toPop">强制回货架</button>
|
||||
</view>
|
||||
<view v-show="tab === 2" class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="index1 = ''">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1 || !pkId}" :disabled="disabled" @tap="_yzqlTask">请求上料位</button>
|
||||
</view>
|
||||
<view class="zd_content msg_wrapper" :class="show ? 'popshow' : 'pophide'">
|
||||
<view class="pop-line"></view>
|
||||
@@ -37,7 +68,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {yjslwPointList, qzhhjTask} from '@/utils/getData2.js'
|
||||
import {yjslwPointList, qzhhjTask,packShelfInfo,yzqlTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -45,11 +76,14 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tab: 1,
|
||||
title: '',
|
||||
options1: [],
|
||||
index1: '',
|
||||
show: false,
|
||||
disabled: false
|
||||
disabled: false,
|
||||
dataList: [],
|
||||
pkId: ''
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -57,6 +91,7 @@
|
||||
},
|
||||
created () {
|
||||
this._yjslwPointList()
|
||||
this._packShelfInfo()
|
||||
},
|
||||
methods: {
|
||||
/** 下拉框*/
|
||||
@@ -69,13 +104,13 @@
|
||||
this.show = true
|
||||
}
|
||||
},
|
||||
/** 强制回货架 */
|
||||
async _qzhhjTask () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await qzhhjTask(this.index1)
|
||||
this.show = false
|
||||
this.disabled = false
|
||||
this.index1 = ''
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
@@ -83,7 +118,32 @@
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
},
|
||||
/** 查询货架上已拆包料盅信息 */
|
||||
async _packShelfInfo () {
|
||||
let res = await packShelfInfo()
|
||||
this.dataList = [...res]
|
||||
},
|
||||
toChose (e) {
|
||||
this.pkId = this.pkId === e.pointCode ? '' : e.pointCode
|
||||
},
|
||||
/** 困料货架点对点到布料机上料位 */
|
||||
async _yzqlTask () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await yzqlTask(this.pkId, this.index1)
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this._packShelfInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user