Commit 9e56310b authored by xiaoyan's avatar xiaoyan

fix: 理货修改包装类型和混箱

parent 623e6a1d
......@@ -65,7 +65,7 @@
<!-- 关联单 -->
<view v-if="order.guanLianOrderStatusVOList&&order.guanLianOrderStatusVOList.length>0" style="color:red;fontWeight:bold;" @tap="relatedClick(order.orderId)">{{$t('关联单')}}</view>
<!-- 混箱 -->
<view v-if="order.goodsList&&order.goodsList.length>1" style="color:red;fontWeight:bold;" @tap="showWarehouseLogs(order)">{{$t('混箱')}}</view>
<view v-if="order.goodsList&&order.goodsList.length>0&&order.goodsList.some(v => v.mixStatus === 1)" style="color:red;fontWeight:bold;" @tap="showWarehouseLogs(order)">{{$t('混箱')}}</view>
</view>
<view style="width:12%;">{{ order.volume | toFixed }}</view>
<view style="width:12%;">{{ order.weight | toFixed }}</view>
......
......@@ -151,7 +151,7 @@ export const getChannelList = (params = {}) => {
}
/**
* 获得空运待装列表
* 获得空运待装列表
*/
export function preloadPageAir(params) {
return http('/ecw/box-preload-goods/preloadPageAir', params, {
......
......@@ -105,7 +105,7 @@
<view class="cu-item">
<view class="content">
<text>{{$t('可出特性')}}:</text>
<text>{{ order.attrNameList ? order.attrNameList.join(',') : '' }}</text>
<text>{{ order.attrNameList ? order.attrNameList.filter(v => v).join(',') : '' }}</text>
</view>
</view>
</view>
......
......@@ -45,14 +45,18 @@
</view>
<!-- 包装类型 -->
<view style="color:red;fontWeight:bold;">
<text v-for="(prod, index) in uniqueArr(order.goodsList)" :key="prod.orderItemId">
<dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="prod.unit" />{{ index!== uniqueArr(order.goodsList).length-1 ? ',':'' }}
<text v-for="(prod, index) in order.goodsList" :key="prod.orderItemId">
<text v-for="(unit, unitIdx) in prod.units.split(',')">
<dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="unit" />
{{ unitIdx!== prod.units.split(',').length-1 ? ',':'' }}
</text>
{{ index!== order.goodsList.length-1 ? ',':'' }}
</text>
</view>
<!-- 关联单 -->
<view v-if="order.guanLianOrderStatusVOList&&order.guanLianOrderStatusVOList.length>0" style="color:red;fontWeight:bold;" @tap="relatedClick(order.orderId)">{{$t('关联单')}}</view>
<!-- 混箱 -->
<view v-if="order.goodsList&&order.goodsList.length>1" style="color:red;fontWeight:bold;" @tap="showWarehouseList(order)">{{$t('混箱')}}</view>
<view v-if="order.goodsList&&order.goodsList.length>0&&order.goodsList.some(v => v.mixStatus === 1)" style="color:red;fontWeight:bold;" @tap="showWarehouseList(order)">{{$t('混箱')}}</view>
</view>
<view style="width:15%;">{{ order.volume | toFixed }}</view>
<view style="width:15%;">{{ order.weight | toFixed }} kg</view>
......@@ -539,7 +543,7 @@ export default {
toPatch() {
const { boxInfo } = this.loadData;
uni.navigateTo({
url: `../mergePkg/patch?id=${this.shipmentId}&selfNo=${boxInfo.selfNo}`,
url: `../loading/patch?id=${this.shipmentId}&destWarehouseId=${boxInfo.destWarehouseId}`,
});
},
/* 理货完成 */
......
......@@ -43,8 +43,8 @@
</view>
<view class="padding-sm" :id="'order-' + order.orderNo" :class="'order-' + order.orderNo == heightLightId ? 'bg-yellow' : 'bg-white'" v-for="(order, key) in v.sectionOrderList" :key="key">
<view class="flex text-center">
<view class="text-break text-blue" style="width:20%;" @tap="showOrderDetail(true, order.orderId)">
<view>{{ order.orderNo }}</view>
<view class="text-break text-blue" style="width:20%;">
<view @tap="showOrderDetail(true, order.orderId)">{{ order.orderNo }}</view>
<view style="color:blue;fontWeight:bold;">
{{ order.isExternalWarehouse === 1 ? ('('+$t('外部仓')+')') : ''}}
</view>
......@@ -57,14 +57,18 @@
</view>
<!-- 包装类型 -->
<view style="color:red;fontWeight:bold;">
<text v-for="(prod, index) in uniqueArr(order.goodsList)" :key="prod.orderItemId">
<dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="prod.unit" />{{ index!== uniqueArr(order.goodsList).length-1 ? ',':'' }}
<text v-for="(prod, index) in order.goodsList" :key="prod.orderItemId">
<text v-for="(unit, unitIdx) in prod.units.split(',')">
<dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="unit" />
{{ unitIdx!== prod.units.split(',').length-1 ? ',':'' }}
</text>
{{ index!== order.goodsList.length-1 ? ',':'' }}
</text>
</view>
<!-- 关联单 -->
<view v-if="order.guanLianOrderStatusVOList&&order.guanLianOrderStatusVOList.length>0" style="color:red;fontWeight:bold;" @tap="relatedClick(order.orderId)">{{$t('关联单')}}</view>
<!-- 混箱 -->
<view v-if="order.goodsList&&order.goodsList.length>1" style="color:red;fontWeight:bold;" @tap="showWarehouseList(order)">{{$t('混箱')}}</view>
<view v-if="order.goodsList&&order.goodsList.length>0&&order.goodsList.some(v => v.mixStatus === 1)" style="color:red;fontWeight:bold;" @tap="showWarehouseList(order)">{{$t('混箱')}}</view>
</view>
<view style="width:15%;">{{ order.volume | toFixed }}</view>
<view style="width:15%;">{{ order.weight | toFixed }} kg</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment