|
|
|
|
@ -221,146 +221,148 @@
|
|
|
|
|
<text class="item-tip">{{ item.groupDesc }} ({{ item.qty?parseFloat(item.qty).toFixed(2):'0.00'}})</text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="item-header" @click="toggleDetail(index)">
|
|
|
|
|
<text class="item-title">{{ item.assemcode }} ({{ item.qty?parseFloat(item.qty).toFixed(2):'0.00' }})</text>
|
|
|
|
|
<!-- <text class="status-badge" :class="getStatusClass(item.status)">{{item.status}}</text> -->
|
|
|
|
|
<uni-icons :type="expandedIndex === index ? 'arrowup' : 'arrowdown'" size="16" color="#999"></uni-icons>
|
|
|
|
|
<view v-for="(row, ii) in item.items">
|
|
|
|
|
<view class="item-header" @click="toggleDetail(ii)">
|
|
|
|
|
<text class="item-title">{{ row.assemcode }} ({{ row.qty?parseFloat(row.qty).toFixed(2):'0.00' }})</text>
|
|
|
|
|
<uni-icons :type="expandedIndex === ii ? 'arrowup' : 'arrowdown'" size="16" color="#999"></uni-icons>
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="expandedIndex === index" class="item-content">
|
|
|
|
|
<view v-if="expandedIndex === ii" class="item-content">
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">工程编号:</text>
|
|
|
|
|
<text class="value">{{ item.project }}</text>
|
|
|
|
|
<text class="value">{{ row.project }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">安装托盘表号:</text>
|
|
|
|
|
<text class="value">{{ item.instno }}</text>
|
|
|
|
|
<text class="value">{{ row.instno }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">制作图号:</text>
|
|
|
|
|
<text class="value">{{ item.dwgno }}</text>
|
|
|
|
|
<text class="value">{{ row.dwgno }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">分段号:</text>
|
|
|
|
|
<text class="value">{{ item.section }}</text>
|
|
|
|
|
<text class="value">{{ row.section }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">规格:</text>
|
|
|
|
|
<text class="value">{{ item.spec }}</text>
|
|
|
|
|
<text class="value">{{ row.spec }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">材质:</text>
|
|
|
|
|
<text class="value">{{ item.grd }}</text>
|
|
|
|
|
<text class="value">{{ row.grd }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">数量:</text>
|
|
|
|
|
<text class="value">{{ item.qty }}</text>
|
|
|
|
|
<text class="value">{{ row.qty }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">重量:</text>
|
|
|
|
|
<text class="value">{{ item.weight }}</text>
|
|
|
|
|
<text class="value">{{ row.weight }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">表面处理:</text>
|
|
|
|
|
<text class="value">{{ item.treatment }}</text>
|
|
|
|
|
<text class="value">{{ row.treatment }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">涂装代码:</text>
|
|
|
|
|
<text class="value">{{ item.paintcode }}</text>
|
|
|
|
|
<text class="value">{{ row.paintcode }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">修改类型:</text>
|
|
|
|
|
<text class="value">{{ item.modifyType }}</text>
|
|
|
|
|
<text class="value">{{ row.modifyType }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">修改卡号:</text>
|
|
|
|
|
<text class="value">{{ item.modifyKh }}</text>
|
|
|
|
|
<text class="value">{{ row.modifyKh }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">修改通知单号:</text>
|
|
|
|
|
<text class="value">{{ item.modifyDwgno }}</text>
|
|
|
|
|
<text class="value">{{ row.modifyDwgno }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">修改日期:</text>
|
|
|
|
|
<text class="value">{{ item.modifyDate }}</text>
|
|
|
|
|
<text class="value">{{ row.modifyDate }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">生产状态:</text>
|
|
|
|
|
<text class="value">{{ item.status }}</text>
|
|
|
|
|
<text class="value">{{ row.status }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">状态日期:</text>
|
|
|
|
|
<text class="value">{{ item.statusDate }}</text>
|
|
|
|
|
<text class="value">{{ row.statusDate }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">制作单位:</text>
|
|
|
|
|
<text class="value">{{ item.manuDept }}</text>
|
|
|
|
|
<text class="value">{{ row.manuDept }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">处理单位:</text>
|
|
|
|
|
<text class="value">{{ item.treatDept }}</text>
|
|
|
|
|
<text class="value">{{ row.treatDept }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">配送单位:</text>
|
|
|
|
|
<text class="value">{{ item.deliverDept }}</text>
|
|
|
|
|
<text class="value">{{ row.deliverDept }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">工装托盘编号:</text>
|
|
|
|
|
<text class="value">{{ item.palletNo }}</text>
|
|
|
|
|
<text class="value">{{ row.palletNo }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">工装托盘转运记录ID:</text>
|
|
|
|
|
<text class="value">{{ item.deliveryId }}</text>
|
|
|
|
|
<text class="value">{{ row.deliveryId }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">配送单号:</text>
|
|
|
|
|
<text class="value">{{ item.deliveryNo }}</text>
|
|
|
|
|
<text class="value">{{ row.deliveryNo }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">配送车辆:</text>
|
|
|
|
|
<text class="value">{{ item.deliveryCar }}</text>
|
|
|
|
|
<text class="value">{{ row.deliveryCar }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">配送日期:</text>
|
|
|
|
|
<text class="value">{{ item.deliveryDate }}</text>
|
|
|
|
|
<text class="value">{{ row.deliveryDate }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">配送备注:</text>
|
|
|
|
|
<text class="value">{{ item.deliveryRemark }}</text>
|
|
|
|
|
<text class="value">{{ row.deliveryRemark }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">需求日期:</text>
|
|
|
|
|
<text class="value">{{ item.requireRate }}</text>
|
|
|
|
|
<text class="value">{{ row.requireRate }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">需求单位:</text>
|
|
|
|
|
<text class="value">{{ retType(item.requireDepartCode,2) }}</text>
|
|
|
|
|
<text class="value">{{ retType(row.requireDepartCode,2) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">配送地址:</text>
|
|
|
|
|
<text class="value">{{ item.requireAddress }}</text>
|
|
|
|
|
<text class="value">{{ row.requireAddress }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">接收人员:</text>
|
|
|
|
|
<text class="value">{{ item.requireName }}</text>
|
|
|
|
|
<text class="value">{{ row.requireName }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">接收人员电话:</text>
|
|
|
|
|
<text class="value">{{ item.requirePhone }}</text>
|
|
|
|
|
<text class="value">{{ row.requirePhone }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="detail-row">
|
|
|
|
|
<text class="label">实际接收日期:</text>
|
|
|
|
|
<text class="value">{{ item.receiveDate }}</text>
|
|
|
|
|
<text class="value">{{ row.receiveDate }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">实际接收人员:</text>
|
|
|
|
|
<text class="value">{{ item.receiveName }}</text>
|
|
|
|
|
<text class="value">{{ row.receiveName }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="detail-row">
|
|
|
|
|
<text class="label">实际接收备注:</text>
|
|
|
|
|
<text class="value">{{ item.receiveRemark }}</text>
|
|
|
|
|
<text class="value">{{ row.receiveRemark }}</text>
|
|
|
|
|
</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
@ -451,44 +453,50 @@
|
|
|
|
|
palletNo: this.pallet.palletNo
|
|
|
|
|
});
|
|
|
|
|
if(res.success){
|
|
|
|
|
if(res.data)
|
|
|
|
|
if(res.data&&res.data.length>0)
|
|
|
|
|
{
|
|
|
|
|
this.pallet["instdetailList"]=res.data;
|
|
|
|
|
// this.pallet["instdetailList"]=[{
|
|
|
|
|
// "id": "b0ce28eb-cf71-466f-952f-17b7663c29f2",
|
|
|
|
|
// "project": "T300K-106",
|
|
|
|
|
// "instno": "9201FP12010MV",
|
|
|
|
|
// "dwgno": "9201MP12MVM",
|
|
|
|
|
// "section": "9201",
|
|
|
|
|
// "assemcode": "40-CW02-L3S-05",
|
|
|
|
|
// "spec": "21.3*2.11",
|
|
|
|
|
// "grd": "A312 TP316",
|
|
|
|
|
// "qty": "1.000000",
|
|
|
|
|
// "weight": "0.6500",
|
|
|
|
|
// "treatment": "钝化",
|
|
|
|
|
// "status": "配送出库",
|
|
|
|
|
// "statusDate": "2026/01/07",
|
|
|
|
|
// "manuDept": "九作业区",
|
|
|
|
|
// "treatDept": "永合机电",
|
|
|
|
|
// "deliverDept": "集配组",
|
|
|
|
|
// "palletNo": "",
|
|
|
|
|
// "deliveryCar": "284",
|
|
|
|
|
// "deliveryDate": "2026/01/07",
|
|
|
|
|
// "deliveryRemark": "协商 (刘文禄 2026/01/06)",
|
|
|
|
|
// "requireDate": "2026/01/05",
|
|
|
|
|
// "requireDepartCode": "P30000",
|
|
|
|
|
// "requireAddress": "分段二部装焊厂房(钢加配送)",
|
|
|
|
|
// "requireName": "郝名远",
|
|
|
|
|
// "requirePhone": "13500795290",
|
|
|
|
|
// "groupDesc": "T300K-106 9201FP12010MV",
|
|
|
|
|
// "uniStr": "T300K-106 9201FP12010MV 40-CW02-L3S-05\n21.3*2.11 A312 TP316 1.000000"
|
|
|
|
|
// }]
|
|
|
|
|
this.pallet["instdetailList"]=[];
|
|
|
|
|
res.data.forEach(cell=>{
|
|
|
|
|
var findx = -1;
|
|
|
|
|
findx = this.pallet["instdetailList"].findIndex(item => item.groupDesc === cell.groupDesc);
|
|
|
|
|
if(findx<0){
|
|
|
|
|
var add = {
|
|
|
|
|
...cell,
|
|
|
|
|
items:[cell],
|
|
|
|
|
};
|
|
|
|
|
this.pallet["instdetailList"].push(add);
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
this.pallet["instdetailList"][findx].items.push(cell);
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.pallet["instdetailList"].forEach((cell,idx)=>{
|
|
|
|
|
cell["qty"]=this.getQty(cell.items);
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// this.pallet["instdetailList"]=res.data;
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getQty(items){
|
|
|
|
|
var num=0
|
|
|
|
|
if (items&&items.length>0) {
|
|
|
|
|
items.forEach(cell=>{
|
|
|
|
|
num=num+1.0*(cell.qty?cell.qty:0);
|
|
|
|
|
});
|
|
|
|
|
return num.toFixed(2);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toggleDetail(index) {
|
|
|
|
|
if (this.expandedIndex === index) {
|
|
|
|
|
this.expandedIndex = null;
|
|
|
|
|
@ -719,6 +727,7 @@
|
|
|
|
|
padding: 12rpx;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
border: 1rpx solid #007aff;
|
|
|
|
|
background: #e2eefa;
|
|
|
|
|
}
|
|
|
|
|
.item-title {
|
|
|
|
|
display: flex;
|
|
|
|
|
|