包装入库
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<view class="zd_content">
|
<view class="zd_content">
|
||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper">
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">设备号</view>
|
<view class="filter_label">静置时间</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val1">
|
<input type="text" class="filter_input" v-model="val1">
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -4,9 +4,15 @@
|
|||||||
<view class="zd_content">
|
<view class="zd_content">
|
||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper">
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">设备号</view>
|
<view class="filter_label">托盘编码</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val1">
|
<search-box v-model="val1" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">物料数量</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="number" class="filter_input" v-model="val2">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -15,20 +21,20 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>困料位置</th>
|
<th>起点1</th>
|
||||||
<th>设备号</th>
|
<th>终点1</th>
|
||||||
<th>静置时间</th>
|
<th>起点2</th>
|
||||||
<th>剩余静置时间</th>
|
<th>终点2</th>
|
||||||
<th>预计完成时间</th>
|
<th>任务状态</th>
|
||||||
</tr>
|
</tr>
|
||||||
</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">
|
||||||
<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.point_name3}}</td>
|
||||||
<td>{{e.timeDifferenceMinutes}}</td>
|
<td>{{e.point_name4}}</td>
|
||||||
<td>{{e.estimatedCompletionTimeString}}</td>
|
<td>{{e.task_status}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -37,51 +43,50 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" @tap="_forcedRestingShow">刷新</button>
|
<button class="submit-button" @tap="_forcedRestingShow">刷新</button>
|
||||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !pkId}" :disabled="disabled" @tap="toSure">确认</button>
|
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="toSure">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import {forcedRestingShow, forcedRestingSubmit} from '@/utils/getData2.js'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {dateTimeFtt} from '@/utils/utils.js'
|
import {manualSortingPackingTaskShow, manualSortingPackingTask} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar
|
NavBar,
|
||||||
|
SearchBox
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
val1: '',
|
val1: '',
|
||||||
|
val2: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
pkId: '',
|
|
||||||
pkObj: {},
|
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this._forcedRestingShow()
|
this._manualSortingPackingTaskShow()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** grid查询 */
|
/** grid查询 */
|
||||||
async _forcedRestingShow () {
|
async _manualSortingPackingTaskShow () {
|
||||||
let res = await forcedRestingShow()
|
let res = await manualSortingPackingTaskShow()
|
||||||
this.dataList = [...res]
|
this.dataList = [...res]
|
||||||
},
|
},
|
||||||
/** 确认 */
|
/** 确认 */
|
||||||
async toSure () {
|
async toSure () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.pkId) {
|
if (!this.val1 || !this.val2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await forcedRestingSubmit(this.val1, this.pkId)
|
let res = await manualSortingPackingTask(this.val1, this.val2)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
this.pkId = ''
|
|
||||||
this.pkObj = {}
|
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this._forcedRestingShow()
|
this.val2 = ''
|
||||||
|
this._manualSortingPackingTaskShow()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -89,10 +94,6 @@
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
},
|
|
||||||
toCheck (e) {
|
|
||||||
this.pkId = this.pkId === e.group_id ? '' : e.group_id
|
|
||||||
this.pkObj = this.pkId === e.group_id ? e : {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user