diff --git a/src/mycomponents/detail/comLableDetailCard.vue b/src/mycomponents/detail/comLableDetailCard.vue
new file mode 100644
index 00000000..22411a59
--- /dev/null
+++ b/src/mycomponents/detail/comLableDetailCard.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/customerReturn/job/returnDetail.vue b/src/pages/customerReturn/job/returnDetail.vue
index 637d4376..7993f2d6 100644
--- a/src/pages/customerReturn/job/returnDetail.vue
+++ b/src/pages/customerReturn/job/returnDetail.vue
@@ -16,10 +16,12 @@
-
-
+
@@ -41,7 +43,7 @@
-
+
@@ -75,9 +77,9 @@
} from '@/common/detail.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
- import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
+ import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import locationCompare from '@/mycomponents/location/locationCompare.vue'
- import comDetailCard from "@/mycomponents/detail/comDetailCard.vue"
+ import comLableDetailCard from "@/mycomponents/detail/comLableDetailCard .vue"
import detailInfoPopup from '@/pages/customerReturn/coms/detailInfoPopup.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
@@ -85,9 +87,9 @@
components: {
jobTop,
winScanButton,
- winScanPackAndLocation,
+ winScanPack,
locationCompare,
- comDetailCard,
+ comLableDetailCard ,
detailInfoPopup
},
data() {
@@ -181,7 +183,6 @@
that.jobContent = res.data;
that.subList = res.data.subList;
that.jobStatus = res.data.status
-
that.detailSource = getDataSource(that.subList)
that.fromLocationCode = that.subList[0].fromLocationCode
that.jobToLocationCode = that.subList[0].toLocationCode
@@ -225,25 +226,7 @@
},
openScanPopup() {
- let fromlocationCode = '';
- let fromlocationList = [];
- for (var i = 0; i < this.detailSource.length; i++) {
- let item = this.detailSource[i];
- item.subList.forEach(l => {
- //重复的库位不往里面插入
- var location = fromlocationList.find(res => res == l.fromLocationCode)
- if (location == undefined) {
- fromlocationList.push(l.fromLocationCode);
- }
- //来源库位赋默认值
- if (fromlocationCode == '') {
- if (!l.scaned) {
- fromlocationCode = l.fromLocationCode;
- }
- }
- })
- }
- this.$refs.scanPopup.openScanPopupForJob(fromlocationCode, fromlocationList, this.jobContent);
+ this.$refs.scanPopup.openScanPopup();
},
closeScanPopup() {
@@ -253,11 +236,9 @@
getScanResult(result) {
try {
var packingNumber = result.package.number;
- var batch = result.balance.batch;
- var qty = result.balance.qty;
- var itemCode = result.balance.itemCode;
- var locationCode = result.balance.locationCode;
- var inventoryStatus = result.balance.inventoryStatus;
+ var batch = result.label.batch;
+ var qty = result.label.qty;
+ var itemCode = result.label.itemCode;
var detail = this.detailSource.find(r => r.itemCode == itemCode);
if (detail == undefined) {
@@ -273,45 +254,12 @@
if (itemDetail.scaned) {
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]已经扫描")
} else {
- let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
- let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
-
-
- if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- if (this.jobContent.allowModifyInventoryStatus == "TRUE") {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续退货?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.balance.qty)
- itemDetail.inventoryStatus = result.balance.inventoryStatus;
- itemDetail.balance = result.balance;
- itemDetail.balance.balanceQty = Number(result.balance.qty)
- itemDetail.balance.packQty = Number(result.package.packQty)
- itemDetail.balance.packUnit = result.package.packUnit
- this.calcHandleQty();
- } else {
- this.scanPopupGetFocus();
- }
- });
- } else {
- this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' +
- itemStatus +
- ']不一致,不允许转移!', res => {
- this.scanPopupGetFocus();
- });
- }
-
- } else {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.balance.qty)
- itemDetail.toInventoryStatus = result.balance.inventoryStatus;
- itemDetail.balance = result.balance;
- itemDetail.balance.balanceQty = Number(result.balance.qty)
- itemDetail.balance.packQty = Number(result.package.packQty)
- itemDetail.balance.packUnit = result.package.packUnit
- this.calcHandleQty();
- }
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.label.qty)
+ itemDetail.packQty = Number(result.package.packQty)
+ itemDetail.packUnit = result.package.packUnit
+ this.calcHandleQty();
+
}
}
}
@@ -405,7 +353,7 @@
customerReturnJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功\n生成客户退货记录:" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成客户退货记录:\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
@@ -499,13 +447,13 @@
scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
- this.$refs.scanPopup.packGetFocus();
+ this.$refs.scanPopup.getfocus();
}
},
scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
- this.$refs.scanPopup.packLoseFocus();
+ this.$refs.scanPopup.losefocus();
}
},
diff --git a/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue b/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
index 6f69f982..bd31d00b 100644
--- a/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
+++ b/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
@@ -17,7 +17,7 @@
-
+