|
|
@@ -10,11 +10,11 @@
|
|
|
<div class="big-task-content" >
|
|
|
<div class="big-content">{{item.orderNo}}</div>
|
|
|
<div class="big-carrier"><van-notice-bar :background="'none'" :speed="10" :text="item.carrierName" /></div>
|
|
|
- <div class="big-content">{{item.itemQty}}<span style="font-size: 12px">件</span></div>
|
|
|
+ <div class="big-content">{{item.totalItemNum}}<span style="font-size: 12px">件</span></div>
|
|
|
</div>
|
|
|
<div class="big-task-button">
|
|
|
<div class="big-button" @click="onTypeOrder(item,'LOCATION_PICK')" >按库位查看</div>
|
|
|
- <div class="big-button" @click="onTypeOrder(item,'EQUIPMENT_PICK')">按设备查看</div>
|
|
|
+ <div class="big-button" @click="onTypeOrder(item,'AISLE_PICK')">按库位查看</div>
|
|
|
<div class="big-button" @click="onTypeOrder(item,'ITEM_PICK')" >按商品查看</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -30,7 +30,7 @@
|
|
|
<div class="sub-task-list" >
|
|
|
<van-checkbox class="sub-task-checkbox" v-model="isCheckAll" :indeterminate="isIndeterminate" @change="checkAllChange">全选</van-checkbox>
|
|
|
<van-checkbox-group v-model="checkedResult" @change="checkedChange">
|
|
|
- <van-checkbox class="sub-task-checkbox" v-for="(item,index) in typeTaskList" :key="index" :name="item" :disabled="(item.allowPick===false && taskType==='EQUIPMENT_PICK') || item.status!==40" >
|
|
|
+ <van-checkbox class="sub-task-checkbox" v-for="(item,index) in typeTaskList" :key="index" :name="item" :disabled="(item.allowPick===false && taskType==='AISLE_PICK') || item.status!==40" >
|
|
|
<div class="sub-task-item" v-if="taskType==='LOCATION_PICK'">
|
|
|
<div style="font-size: 13px;font-weight: bold" >{{item.location}}</div>
|
|
|
<div class="sub-task-item-content" >
|
|
|
@@ -38,8 +38,8 @@
|
|
|
</div>
|
|
|
<div class="">{{item.totalItemNum}}<span style="font-size: 12px">件</span></div>
|
|
|
</div>
|
|
|
- <div class="sub-task-item" v-if="taskType==='EQUIPMENT_PICK'">
|
|
|
- <div class="sub-task-item-content">{{item.equipment || '未绑定'}}</div>
|
|
|
+ <div class="sub-task-item" v-if="taskType==='AISLE_PICK'">
|
|
|
+ <div class="sub-task-item-content">{{item.aisleNo || '未绑定'}}</div>
|
|
|
<div class="sub-task-item-content"><span style="font-size: 12px">库位:</span>{{item.locationNum}}<span style="font-size: 12px">个</span></div>
|
|
|
<div class="sub-task-item-number">{{item.totalItemNum}}<span style="font-size: 12px">件</span></div>
|
|
|
</div>
|
|
|
@@ -63,7 +63,7 @@
|
|
|
<script setup>
|
|
|
import { ref } from 'vue'
|
|
|
import {
|
|
|
- getBigPickingEquipment,
|
|
|
+ getBigPickingAisleNo,
|
|
|
getBigPickingGoods,
|
|
|
getBigPickingList,
|
|
|
getBigPickingLocation,
|
|
|
@@ -80,7 +80,7 @@ const props = defineProps({
|
|
|
});
|
|
|
const typeMap={
|
|
|
'LOCATION_PICK':'库位',
|
|
|
- 'EQUIPMENT_PICK':'设备',
|
|
|
+ 'AISLE_PICK':'设备',
|
|
|
'ITEM_PICK':'商品'
|
|
|
}
|
|
|
const isIndeterminate=ref(false)
|
|
|
@@ -112,10 +112,12 @@ const onTypeOrder=(row,type)=>{
|
|
|
typeTaskList.value=res.data.records
|
|
|
subBigOrderTrueFalseBy.value=true
|
|
|
isIndeterminate.value = false
|
|
|
+ isCheckAll.value=false
|
|
|
}).catch(err=>{
|
|
|
typeTaskList.value=[]
|
|
|
subBigOrderTrueFalseBy.value=false
|
|
|
isIndeterminate.value = false
|
|
|
+ isCheckAll.value=false
|
|
|
}).finally(e=>{
|
|
|
closeLoading()
|
|
|
})
|
|
|
@@ -126,7 +128,7 @@ const isCheckAll = ref(false)
|
|
|
const checkedResult = ref([])
|
|
|
const checkAllChange = (val) => {
|
|
|
let filteredList=typeTaskList.value
|
|
|
- if(taskType.value==='EQUIPMENT_PICK'){
|
|
|
+ if(taskType.value==='AISLE_PICK'){
|
|
|
filteredList = typeTaskList.value.filter(item => item.allowPick !== false )
|
|
|
}else{
|
|
|
typeTaskList.value.filter(item => item.status!==40 )
|
|
|
@@ -149,7 +151,7 @@ const onBuildTask=(action)=>
|
|
|
orderBigTrueFalseBy.value=false
|
|
|
const fieldMap = {
|
|
|
'ITEM_PICK': 'lotNum',
|
|
|
- 'EQUIPMENT_PICK': 'equipment',
|
|
|
+ 'AISLE_PICK': 'aisleNo',
|
|
|
'LOCATION_PICK': 'location'
|
|
|
};
|
|
|
const field = fieldMap[taskType.value];
|
|
|
@@ -169,8 +171,8 @@ const onBuildTask=(action)=>
|
|
|
}
|
|
|
// 根据不同的拣货类型选择不同的接口
|
|
|
let api;
|
|
|
- if (field === 'equipment') {
|
|
|
- api = getBigPickingEquipment;
|
|
|
+ if (field === 'aisleNo') {
|
|
|
+ api = getBigPickingAisleNo;
|
|
|
} else if (field === 'lotNum') {
|
|
|
api = getBigPickingGoods;
|
|
|
} else if (field === 'location') {
|