diff --git a/src/views/emis/emisTmsScanRecord/outgoingScan.vue b/src/views/emis/emisTmsScanRecord/outgoingScan.vue
index 22b9dacb..4cf0b768 100644
--- a/src/views/emis/emisTmsScanRecord/outgoingScan.vue
+++ b/src/views/emis/emisTmsScanRecord/outgoingScan.vue
@@ -66,6 +66,9 @@
v-hasPermi="['emis:emisTmsScanRecord:batchScan']"
>批量扫描
+
+ 轨迹已结束
+
@@ -159,7 +162,7 @@ export default {
emisTmsScanRecordList: [],
queryParams:{},
tableHeight: 200,
-
+ blLastTrack:0,
// 是否显示弹出层
open: false,
// 表单校验
@@ -416,29 +419,33 @@ export default {
});
// 检查
- let scanInfo = {scanType:"20",opType:2,scanData:scanData}
- console.log(scanInfo)
-
+ let scanInfo = {scanType:"20",opType:2,scanData:scanData, blLastTrack:this.blLastTrack?1:0}
+ let count = 0;
doScan(scanInfo).then(response => {
- console.log(response);
let scanRstItem = response.data.scanResult[0];
- console.log(scanRstItem);
- if(scanRstItem.result != 'success'){
- this.$modal.msgError(scanRstItem.message);
- return;
- }
+ let scanRstItems = response.data.scanResult;
+ // if(scanRstItem.result != 'success'){
+ // this.$modal.msgError(scanRstItem.message);
+ // return;
+ // }
let newList = [];
this.emisTmsScanRecordList.forEach(item => {
- if(this.ids.indexOf(item.billCode) > -1){
- this.dataMap[item.billCode]=null;
- }else{
+ // item.billcode 在 scanResultItem 里面result 不是成功 就加入newList
+ let scanRstItemResult = scanRstItems.find(scanRstItem => scanRstItem.billCode == item.billCode);
+ if (scanRstItemResult.result != 'success') {
+ if (count == 0) {
+ this.$modal.msgError(scanRstItem.message);
+ }
+ count++;
newList.push(item);
}
})
this.ids = [];
this.selection = null;
this.emisTmsScanRecordList = newList;
- this.$modal.msgSuccess(scanRstItem.message);
+ if(newList.length == 0){ // 所有都成功
+ this.$modal.msgSuccess("上传成功");
+ }
});
diff --git a/src/views/emis/emisTmsScanRecord/scanRecordQuery.vue b/src/views/emis/emisTmsScanRecord/scanRecordQuery.vue
index 699c55d6..801271b1 100644
--- a/src/views/emis/emisTmsScanRecord/scanRecordQuery.vue
+++ b/src/views/emis/emisTmsScanRecord/scanRecordQuery.vue
@@ -56,6 +56,12 @@
+
+
+
+
+
+
@@ -162,7 +168,12 @@
-
+
+
+ 已结束
+ 未结束
+
+
@@ -305,6 +316,7 @@ export default {
queryType:"1",// 选择运单类型,默认为 运单号:1,订单号:0
// scanType:"",
isSubBill:"",
+ blLastTrack:null,
},
// 修改参数
modifyParams:{
diff --git a/src/views/emis/emisWaybillAjustApply/WaybillAjustApplyList.vue b/src/views/emis/emisWaybillAjustApply/WaybillAjustApplyList.vue
index f23bb840..5d549af2 100644
--- a/src/views/emis/emisWaybillAjustApply/WaybillAjustApplyList.vue
+++ b/src/views/emis/emisWaybillAjustApply/WaybillAjustApplyList.vue
@@ -208,7 +208,7 @@
-
+