change
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<!-- 解包退料 -->
|
||||
<!-- 解包下料 -->
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
@@ -30,14 +30,14 @@
|
||||
</view>
|
||||
<button class="mini-btn" type="primary" size="mini" @tap="_getWeight">获取重量</button>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<!-- <view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">托盘编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<search-box v-model="val1"/>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">料桶编码</span>
|
||||
@@ -86,7 +86,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': !this.index2}" @tap="seachList">查询工单</button>
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': !this.index2 || !this.val3 || !this.val1 || !this.val2 || !this.pkId}" @tap="xlconfirm">确认下料</button>
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': !this.index2 || !this.val3 || !this.val2 || !this.pkId}" @tap="xlconfirm">确认下料</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -199,7 +199,7 @@
|
||||
let res = await getOrderList(this.index2, '2')
|
||||
if (res.code === '200') {
|
||||
// this.dataList = res.data
|
||||
this.taskList = res.data.map(item => ({
|
||||
this.dataList = res.data.map(item => ({
|
||||
...item,
|
||||
workorder_status_name: this.statusMap[item.workorder_status] || ''
|
||||
}))
|
||||
@@ -252,13 +252,13 @@
|
||||
}
|
||||
let res = await jbGetVehicleCode(this.index2)
|
||||
if (res.code === '200') {
|
||||
this.val1 = res.data.tp_code
|
||||
// this.val1 = res.data.tp_code
|
||||
this.val2 = res.data.lt_code
|
||||
}
|
||||
},
|
||||
xlconfirm () {
|
||||
this.disabled = true
|
||||
if (!this.index2 || !this.val3 || !this.val1 || !this.val2 || !this.pkId) {
|
||||
if (!this.index2 || !this.val3 || !this.val2 || !this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
let res = await getOrderList(this.index2, '2')
|
||||
if (res.code === '200') {
|
||||
// this.dataList = res.data
|
||||
this.taskList = res.data.map(item => ({
|
||||
this.dataList = res.data.map(item => ({
|
||||
...item,
|
||||
workorder_status_name: this.statusMap[item.workorder_status] || ''
|
||||
}))
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
let res = await getOrderList(this.index2, '1')
|
||||
if (res.code === '200') {
|
||||
// this.dataList = res.data
|
||||
this.taskList = res.data.map(item => ({
|
||||
this.dataList = res.data.map(item => ({
|
||||
...item,
|
||||
workorder_status_name: this.statusMap[item.workorder_status] || ''
|
||||
}))
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !index}" @tap="seachList">刷新</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !index || !pkId}" @tap="_intoRegion">进入区域</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !index || !pkId}" @tap="_outRegion">退出区域</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !index}" @tap="_intoRegion">进入区域</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !index}" @tap="_outRegion">退出区域</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -149,7 +149,7 @@
|
||||
},
|
||||
async _intoRegion () {
|
||||
this.disabled = true
|
||||
if (!index || !pkId) {
|
||||
if (!index) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
@@ -174,7 +174,7 @@
|
||||
},
|
||||
async _outRegion () {
|
||||
this.disabled2 = true
|
||||
if (!index || !pkId) {
|
||||
if (!index) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<!-- <button class="zd-col-11 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_checkStruct">检查站点</button> -->
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !val2}" :disabled="disabled" @tap="_checkStruct">刷新数据</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !val2}" :disabled="disabled" @tap="_jbGetLtInfo">刷新数据</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !val1}" :disabled="disabled3" @tap="_checkStruct">空桶取出</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val2 || flag === '2'}" :disabled="disabled2" @tap="_confirmSet">确认放置</button>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user