Files
Wx_AUTS_Prod/Web/pages/OUtBoxBarCode/OUtBoxBarCode.wxml
2025-11-26 17:42:45 +08:00

233 lines
11 KiB
Plaintext

<!--logs.wxml-->
<wxs module="filter" src="../../utils/filters.wxs"></wxs>
<cu-custom bgColor="bg-gradual-blue" isBack="true">
<view slot="content">AUTS数据中心-出货装车</view>
<view slot="contents"> {{DBname}} </view>
</cu-custom>
<view class="padding-sm bg-white radius shadow shadow-lg" style="width: {{ScreenTotalW}}rpx;height:{{ScreenTotalH}}rxp;">
<!--
<scroll-view class="scroll-view_H">
<block wx:for="{{arrScannedCodes}}" wx:key="this">
<view style="width: 100%;" >
{{item}}
</view>
</block>
</scroll-view> -->
<!-- 外箱码信息显示 -->
<scroll-view id="parent" class="scroll-view_H" scroll-y="true" style="height:{{ScreenTotalH-710}}rpx;" scroll-top="{{scrollTop}}">
<block wx:for="{{OutBoxCodeList}}" wx:key="this">
<!--1. 当前外箱序号,状态,号码,机型数量区域-->
<view id="{{item.id}}" bindtap="ColorBox_BarCode">
<!--序号,图标-->
<view class="nav_imet_lists_1 .solids-top .solids-right .solids-bottom .solids-left"
style="text-align: center; background-color:{{show===item.id?'#f1f1f1' :'' }};">
<view style="font-weight: 800;" class="{{item.status==-1?'.light .bg-red':(item.status==0?'':'.light .bg-green')}}">
<span class="text-black ">
<span style="display: {{item.status!=1?'none':'inline'}};"> {{(OutBoxCodeList.length)-(index)}}</span>
<span style="display: {{item.status==1?'none':'inline'}};" class="{{item.status==-1?'.cuIcon-close':(item.status==0?'.cuIcon-loading2':'.cuIcon-check')}}"></span>
</span>
</view>
</view>
<!--外箱码-->
<view class="nav_imet_lists_2 .solids-top .solids-bottom "
style="font-size: 12px;background-color:{{show===item.id?'#f1f1f1' :'' }};">
<view style="font-size: 12px;"
class="{{item.status==-1?'.light .bg-red':(item.status==0?'':'.light .bg-green')}}" id="{{item.id}}"
id="outboxlistitem_{{item.id}}" bind:longpress="copyText">
<block wx:if="{{isCopyingTextDomID==('outboxlistitem_' + item.id)}}">
<span class="long-press-selecting">{{item.id}}</span>
</block>
<block wx:else>
<span style="color: #7f6000;font-weight: 900;">{{filter.SubString(item.id,0,2)}}</span>
<span style="color: #2e75b6; font-weight: 500;">{{filter.SubString(item.id,2,6)}}</span>
<span style="color: #7f6000;font-weight: 900;">{{filter.SubString(item.id,6,10)}}</span>
<span style="color: #2e75b6 ;font-weight: 500;">{{filter.SubString(item.id,10,14)}}</span>
<span style="color: #7f6000; font-weight: 900;">{{filter.SubString(item.id,14,18)}}</span>
<span style="color: #2e75b6 ;font-weight: 500;">{{filter.SubString(item.id,18,22)}}</span>
</block>
</view>
</view>
<!--机型和数量-->
<view class="nav_imet_lists_3 .solids-top .solids-bottom .solids-right" style="font-size: 12px; background-color:{{show===item.id?'#f1f1f1' :'' }};">
<view class="{{item.status==-1?'.light .bg-red':(item.status==0?'':'.light .bg-green')}}">
<span class=".text-blue">
{{item.ProjectName}}
<!-- {{
item.projectid==0 ? "":
(item.projectid==1 ? "Mars" :
(item.projectid == 2 ? "Phobos" :
(item.projectid == 3 ? "ZimaPro" :
(item.projectid == 4 ? "Shipping" : "ZimaMotor"))))
}} -->
</span>
<span class="text-black ">
({{item.bclist.length}})
</span>
</view>
</view>
</view>
<!--2. 当前外箱删除按钮-->
<view class="nav_imet_lists_4 .solids-top .solids-right .solids-bottom .solids-left" hidden="{{shows}}" style="text-align: center;">
<view class=".bg-red" style="font-weight: 800; " id="{{item.id}}" bindtap="Edit">
<span>删</span>
</view>
</view>
<!--3. 隐藏区域1。 错误时,显示错误信息。正确时,显示装箱人,装箱时间 -->
<view wx:if="{{show===item.id}}">
<view class="nav_imet_listsnasas" wx:if="{{item.status==-1}}">
<view class=".solids-bottom .solids-left solids-right ">
<span style="font-size: 10px;">
错误信息:{{item.errmsg}}
</span>
</view>
</view>
<view class="nav_imet_listsna" wx:if="{{item.status==1}}">
<view class=".solids-bottom .solids-left solids-right ">
<span style="font-size: 10px;">
装箱人:{{item.operator}}
</span>
</view>
</view>
<view class="nav_imet_listsnas" wx:if="{{item.status==1}}">
<view class=".solids-bottom .solids-left solids-right ">
<span style="font-size: 10px;">
装箱:{{filter.TimeFormat(item.operatetime)}}
</span>
</view>
</view>
</view>
<!--4. 隐藏区域2。 当前外箱下面的彩箱列表 -->
<view wx:if="{{show==item.id}}" id="{{item.id}}" bindtap="ColorBox_BarCode">
<scroll-view id="child" class="scroll-view_H" scroll-y="true" style="max-height: 300px; margin-bottom: 40px;">
<block wx:for="{{item.bclist}}" wx:key="this">
<view class="nav_imet" style="margin-left: 15px;">
<view class="nav_imet_lists">
<view class=".solids-bottom .solids-left solids-right " id="colorboxlistitem_{{item.ColorBox}}" bind:longpress="copyText">
<block wx:if="{{isCopyingTextDomID==('colorboxlistitem_' + item.ColorBox)}}">
<span class="long-press-selecting">{{item.ColorBox}}</span>
</block>
<block wx:else>
<span style="font-size: 10px; color: #7f6000;font-weight: 900;">{{filter.SubString(item.ColorBox,0,1)}}</span>
<span style="font-size: 10px; color: #2e75b6;font-weight: 500;">{{filter.SubString(item.ColorBox,1,5)}}</span>
<span style="font-size: 10px; color: #7f6000;font-weight: 900;">{{filter.SubString(item.ColorBox,5,9)}}</span>
<span style="font-size: 10px; color: #2e75b6;font-weight: 500;">{{filter.SubString(item.ColorBox,9,13)}}</span>
<span style="font-size: 10px; color: #7f6000;font-weight: 900;">{{filter.SubString(item.ColorBox,13,17)}}</span>
<span style="font-size: 10px; color: #2e75b6;font-weight: 500;">{{filter.SubString(item.ColorBox,17,21)}}</span>
</block>
</view>
</view>
</view>
</block>
</scroll-view>
</view>
<!-- 清理浮动 -->
<view style="clear: both;"></view>
</block>
</scroll-view>
<!-- 按钮区域 -->
<view style="width: 100%;" style="height: 100px;">
<button class="bg-green cu-btn" bindtap="CheckOut" hidden="{{shows}}" disabled="{{isok}}" style="margin-left: 20px;"> 结单</button>
<button class="bg-green cu-btn btnyshi_2" bindtap="scanCodeEvent" hidden="{{shows}}" style="margin-left: 20px;height: 60px;"> <span>(扫码)</span></button>
<button class="bg-green cu-btn" bindtap="rgluru" hidden="{{shows}}" style="margin-left: 10px; font-size: 12px;">人工录入</button>
<button class="bg-green cu-btn" bindtap="CheckGxing" hidden="{{shows}}" style="margin-left: 10px;">更新</button>
</view>
<!-- 订单信息显示 -->
<scroll-view class="scroll-view_H">
<view class="weathers_imet .bg-white .solid .shadow-blur" style="height: 150px;">
<view class="weathers_imet_lists">
<view style="margin-left: 7%; font-weight: 900;" id="shiplistitem_{{listers.ShippingCode}}" bind:longpress="copyText">
<span>单号:</span>
<block wx:if="{{isCopyingTextDomID==('shiplistitem_' + listers.ShippingCode)}}">
<span class="long-press-selecting">{{listers.ShippingCode}}</span>
</block>
<block wx:else>
<span style="color: #7f6000;">{{filter.SubString(listers.ShippingCode,0,2)}}</span>
<span style="color: #2e75b6">{{filter.SubString(listers.ShippingCode,2,6)}}</span>
<span style="color: #7f6000;">{{filter.SubString(listers.ShippingCode,6,10)}}</span>
<span style="color: #2e75b6">{{filter.SubString(listers.ShippingCode,10,14)}}</span>
<span style="color: #7f6000;">{{filter.SubString(listers.ShippingCode,14)}}</span>
</block>
</view>
<view style="margin-left: 7%;">
<span>
MO:{{listers.MO}}
</span>
</view>
<view style="margin-left: 7%;">
<span>
创建:{{filter.TimeFormat(listers.CreateDateTime)}}
</span>
</view>
<view style="margin-left: 7%;">
<span>
开始:{{filter.TimeFormat(listers.StartDateTime)}}
</span>
</view>
<view style="margin-left: 7%;">
<span>
凭证:{{listers.Voucher}}
</span>
</view>
<view style="margin-left: 7%;">
<span>
运输方式:{{listers.ShippingType}}
</span>
</view>
<view style="font-weight: 900; margin-left: 7%;">
<span>
备注:{{listers.Remark}}
</span>
</view>
</view>
<view class="weathers_imet_list">
<view style="margin-left: 7%;">
<span>
状态:<span class=" {{(listers.Status === 1 ? '.text-red ' : (listers.Status===2?'.text-yellow ':'.text-green'))}}">
{{(listers.Status === 1 ? '未装箱' : (listers.Status === 2 ? "装箱中" : "已完成"))}}
</span>
</span>
</view>
<view style="margin-left: 7%;">
<span class=".text-blue" style="font-weight: 900;">
机型:{{listers.ProjectName}}
</span>
</view>
<view style="font-weight: 900; margin-left: 7%;">
<span style="color: gray;">
数量:{{listers.QTY}}/<span style="color: gray;">已装:{{listers.bandingnum}}</span></span>
</view>
<view style="margin-left: 7%;">
<span>
创建人:{{listers.Creator}}
</span>
</view>
<view style="margin-left: 7%;">
<span>
客户:{{listers.Customer}}</span>
</view>
</view>
</view>
</scroll-view>
<!-- 人工录入信息弹框 -->
<van-popup show="{{ showrgluru }}" round position="bottom" custom-style="height: 20%">
<form>
<view class="cu-form-group radius shadow shadow-lg bg-white margin-top">
<span class="title" style="border-right: 1px solid grey;">外箱码</span>
<input type="text" placeholder="请输入外箱码" model:value="{{rglurOutBoxCode}}"></input>
</view>
</form>
<button class="cu-btn bg-red" style="margin-left: 70px; width: 100px; margin-top: 10px;" bindtap="qux">取消</button>
<button class="cu-btn bg-cyan " style="margin-left: 40px; width: 100px; margin-top: 10px;" bindtap="qr">确认</button>
</van-popup>
</view>