|
|
@@ -72,12 +72,7 @@
|
|
|
<van-button v-if="item.operationTime==null && item.count==0" size="mini" type="primary" plain @click="jump(item)" :loading="jumpLoading" loading-text="加载中...">跳过</van-button>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
- <div class="wave">
|
|
|
- <div v-for="wave in item.binds" class="wave-item">
|
|
|
- <div>{{ wave.waveNo }}</div>
|
|
|
- <div>格口:{{ wave.bin }},数量:{{ wave.quantity }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <WaveInfo :binds="item.binds" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</van-col>
|
|
|
@@ -136,6 +131,7 @@ import { containerDef } from '@/views/outbound/picking/list/hooks/containerDef'
|
|
|
import { getCarrierList } from '@/hooks/basic/carrier'
|
|
|
import { basicStore } from '@/store/modules/basic'
|
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
+import WaveInfo from '@/views/outbound/picking/components/WaveInfo.vue'
|
|
|
onUnmounted(() => {
|
|
|
closeListener()
|
|
|
})
|
|
|
@@ -210,7 +206,12 @@ const loadData = async (pickingCode) => {
|
|
|
if (!taskMap.value[location]) {
|
|
|
taskMap.value[location] = { location, list: [],scanLocation:'',scanBarcode:'' }
|
|
|
}
|
|
|
- taskMap.value[location].list.push(item)
|
|
|
+ //将有操作时间的放到后边
|
|
|
+ if (item.operationTime) {
|
|
|
+ taskMap.value[location].list.push(item);
|
|
|
+ } else {
|
|
|
+ taskMap.value[location].list.unshift(item);
|
|
|
+ }
|
|
|
})
|
|
|
locationList.value = Object.values(taskMap.value)
|
|
|
// 将已拣货的数据放到一个数组
|
|
|
@@ -512,6 +513,16 @@ const _setPickingDetail=(params,type)=>{
|
|
|
onScan(2)
|
|
|
}
|
|
|
}
|
|
|
+ //对有操作时间的进行排序放到下边
|
|
|
+ list.sort((a, b) => {
|
|
|
+ if (a.operationTime && !b.operationTime) {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ if (!a.operationTime && b.operationTime) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+ });
|
|
|
if(type==1){
|
|
|
locationList.value[activeIndex.value].list.forEach(items=>{
|
|
|
if(items.line==params[0].line){
|