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); } } }