diff --git a/src/views/emis/customerService/traceRecordList.vue b/src/views/emis/customerService/traceRecordList.vue index 26d62e88..c2ad1642 100644 --- a/src/views/emis/customerService/traceRecordList.vue +++ b/src/views/emis/customerService/traceRecordList.vue @@ -118,7 +118,14 @@ export default { break; } } - + // 把揽件移动到数组第一位 + const index = this.scanRecordList.findIndex(item => item.scanType == 10); + if (index !== -1) { + const item = this.scanRecordList[index]; + this.scanRecordList.splice(index, 1); + this.scanRecordList.unshift(item); + } + this.loading = false; }); diff --git a/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue b/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue index 3d3e3665..30e5c8c9 100644 --- a/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue +++ b/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue @@ -1189,8 +1189,8 @@ export default { return; } let item = billRes.rows[0]; - this.emisCoPackDetail.push(item); - if(this.coPackType=="edit"){ + if(this.coPackType=="edit") + { let packDetail = { batchNo: this.form.batchNo, billCode: item.billCode, @@ -1202,11 +1202,19 @@ export default { createBy: this.$store.getters.empCode, createTime: parseTime(new Date()) }; - let response = await addEmisTmsSiteBatchDtl(packDetail); - if(!response || response.code != 200){ - this.$modal.msgError(response && response.msg || '组批次明细新增失败') + try{ + let response = await addEmisTmsSiteBatchDtl(packDetail); + }catch(e){ + console.log('e',e) return; } + this.emisCoPackDetail.push(item); + // if(!response || response.code != 200){ + // this.$modal.msgError(response && response.msg || '组批次明细新增失败') + // return; + // } + }else{ + this.emisCoPackDetail.push(item); } } } diff --git a/src/views/emis/emisWaybill/batchWaybillRecord.vue b/src/views/emis/emisWaybill/batchWaybillRecord.vue index e8bc0978..8ec89737 100644 --- a/src/views/emis/emisWaybill/batchWaybillRecord.vue +++ b/src/views/emis/emisWaybill/batchWaybillRecord.vue @@ -566,8 +566,8 @@ export default { this.orderList = this.orderList.concat(this.tmpDataList); //拼接remark 和virtualRemark this.orderList.forEach((item,index)=>{ - if(item.blVirtual ==='是'){ - item.remark = `${item.remark && item.remark.toString().replace(/\s/g, '').length>0?item.remark+',':''}${item.masterBillCode && item.masterBillCode.toString().replace(/\s/g, '').length>0 ?'此单为虚拟单,对应主单为:'+item.masterBillCode:''}` + if(item.blVirtual ==='是' && item.transLineType ==='缅甸快递'){ + item.remark = `${item.remark && item.remark.toString().replace(/\s/g, '').length>0?item.remark+',':''}${item.masterBillCode && item.masterBillCode.toString().replace(/\s/g, '').length>0 ?'该单为虚拟单:对应主单为:'+item.masterBillCode:''}` } }) this.tmpDataList=[]; diff --git a/src/views/emis/emisWaybill/centerWaybillList.vue b/src/views/emis/emisWaybill/centerWaybillList.vue index cc62b38a..e468c616 100644 --- a/src/views/emis/emisWaybill/centerWaybillList.vue +++ b/src/views/emis/emisWaybill/centerWaybillList.vue @@ -1,6 +1,6 @@ @@ -913,6 +912,17 @@ export default { }).join(','); } }, + //格式化录单备注显示 + remarkFormat(row){ + let remark=row.remark; + if(row.blVirtual==0 && row.virtualRemark!=='' && row.virtualRemark!== null&& row.transLineType ==='002'&& row.sendDate > '2025-06-23 20:00:00'){ + if(remark && remark.trim()!==''){ + remark=remark+',' + } + remark=`${remark}该运单为主单,对应虚拟单为${this.conCatVirtualRemark(row.virtualRemark)}`; + } + return remark; + }, rowKey (row) { return row.id; }, diff --git a/src/views/emis/emisWaybill/dispatchWaybillList.vue b/src/views/emis/emisWaybill/dispatchWaybillList.vue index 2f0ec86c..55a5c210 100644 --- a/src/views/emis/emisWaybill/dispatchWaybillList.vue +++ b/src/views/emis/emisWaybill/dispatchWaybillList.vue @@ -1,6 +1,6 @@ @@ -892,6 +890,17 @@ export default { }).join(','); } }, + //格式化录单备注显示 + remarkFormat(row){ + let remark=row.remark; + if(row.blVirtual==0 && row.virtualRemark!=='' && row.virtualRemark!== null&& row.transLineType ==='002'&& row.sendDate > '2025-06-23 20:00:00'){ + if(remark && remark.trim()!==''){ + remark=remark+',' + } + remark=`${remark}该运单为主单,对应虚拟单为${this.conCatVirtualRemark(row.virtualRemark)}`; + } + return remark; + }, rowKey (row) { return row.id; }, diff --git a/src/views/emis/emisWaybill/sendWaybillList.vue b/src/views/emis/emisWaybill/sendWaybillList.vue index 82f17d31..b1592c05 100644 --- a/src/views/emis/emisWaybill/sendWaybillList.vue +++ b/src/views/emis/emisWaybill/sendWaybillList.vue @@ -1,7 +1,7 @@