diff --git a/api/request2.js b/api/request2.js
index 4bdd9c61..f525bb05 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -109,6 +109,16 @@ export function getWarehouseCodeList(pageNo,pageSize) {
});
}
+//获取产品标签信息inventorylabel
+export function getInventoryLabel (code){
+
+ return request({
+ url: baseApi + "/api/pda/label/inventorylabel/by-code?code="+code,
+ method: "get",
+ data: {},
+ });
+}
+
/**
* 获取消息列表
* @param {*}
diff --git a/common/style/new_style.css b/common/style/new_style.css
index 0ff8e4ab..83a2cd46 100644
--- a/common/style/new_style.css
+++ b/common/style/new_style.css
@@ -2089,6 +2089,17 @@ button::after {
padding: 5px;
}
+.card_container {
+ color: #0076F6;
+ padding: 5px;
+}
+
+
+.card_container_content {
+ font-size: 32rpx;
+ padding: 5px;
+}
+
.card_business {
color: #F1A532;
padding: 5px;
diff --git a/common/style/pdabasic.css b/common/style/pdabasic.css
index 7b7f368a..d3b92cec 100644
--- a/common/style/pdabasic.css
+++ b/common/style/pdabasic.css
@@ -733,7 +733,7 @@ page {
.page-header .header_item {
/* padding-left: 10rpx; */
padding: 5rpx 10rpx;
- font-size:15px ;
+ font-size:32rpx ;
}
.page-header .header_job_top {
diff --git a/mycomponents/container/container.vue b/mycomponents/container/container.vue
new file mode 100644
index 00000000..cf510da1
--- /dev/null
+++ b/mycomponents/container/container.vue
@@ -0,0 +1,24 @@
+
+
+ 托码
+ {{container}}
+
+
+
+
+
+
diff --git a/mycomponents/qty/stdPackQty.vue b/mycomponents/qty/stdPackQty.vue
index 45202997..7ab4cf07 100644
--- a/mycomponents/qty/stdPackQty.vue
+++ b/mycomponents/qty/stdPackQty.vue
@@ -1,14 +1,14 @@
- {{Number(dataContent.stdPackQty)}}•{{getStdPackUnit(dataContent.uom)}}
+ {{Number(dataContent.stdPackQty)}}•{{getStdPackUnit(dataContent.stdPackUnit)}}
+
+
diff --git a/pages/purchaseReceipt/coms/comReceiptDetailCard.vue b/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
index 558edb41..72bb2983 100644
--- a/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
+++ b/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
@@ -6,7 +6,7 @@
-
+
@@ -14,6 +14,7 @@
+
diff --git a/pages/purchaseReceipt/coms/comReceiptJobCard.vue b/pages/purchaseReceipt/coms/comReceiptJobCard.vue
index 1465fafb..8c8ddfd2 100644
--- a/pages/purchaseReceipt/coms/comReceiptJobCard.vue
+++ b/pages/purchaseReceipt/coms/comReceiptJobCard.vue
@@ -1,11 +1,11 @@
-
+
发货单号 : {{dataContent.asnNumber}}
diff --git a/pages/purchaseReceipt/job/receiptDetail.vue b/pages/purchaseReceipt/job/receiptDetail.vue
index 64f20358..fff77293 100644
--- a/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/pages/purchaseReceipt/job/receiptDetail.vue
@@ -7,6 +7,8 @@
+
@@ -25,9 +27,9 @@
-
+
+
@@ -36,7 +38,7 @@
-
+
@@ -75,7 +77,7 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
- import winScanPack from '@/mycomponents/scan/winScanPack.vue'
+ import winScanPackAndCont from '@/mycomponents/scan/winScanPackAndCont.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import comReceiptDetailCard from '@/pages/purchaseReceipt/coms/comReceiptDetailCard.vue'
@@ -85,7 +87,7 @@
name: 'receipt_detail',
components: {
winScanButton,
- winScanPack,
+ winScanPackAndCont,
comReceiptDetailCard,
requiredLocation,
comMessage,
@@ -101,10 +103,11 @@
detailSource: [], //绑定在页面上的数据源
toLocationTypeList: [],
toLocationCode: '',
+ jobToLocationCode: "",
toLocationInfo: {},
businessTypeInfo: {},
managementList: [],
- jobStatus:""
+ jobStatus: ""
};
},
onLoad(option) {
@@ -130,7 +133,7 @@
onBackPress(e) {
//已经接收但是没提交任务
if (e.from == 'backbutton') {
- if (this.jobStatus=="2") {
+ if (this.jobStatus == "2") {
//取消承接任务
cancleTakePurchaseReceiptJob(this.id).then(res => {
uni.navigateBack();
@@ -186,8 +189,10 @@
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes);
// that.jobContent.toLocationTypeList = that.toLocationTypeList;
that.subList = res.data.subList;
+ that.subList[0].containerNumber = "CN-00000001";
+ that.subList[1].containerNumber = "CN-00000001";
that.jobStatus = res.data.status
- that.toLocationCode = that.subList[0].toLocationCode
+ that.jobToLocationCode = that.subList[0].toLocationCode
that.detailSource = getDataSource(that.subList)
} else {
that.showMessage('列表数据为0');
@@ -203,30 +208,57 @@
getScanResult(result) {
try {
- var packingNumber = result.label.packingNumber;
- 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) {
- this.showMessage("物料号【" + itemCode + "】不在列表中")
- } else {
- var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch == batch);
- if (itemDetail == undefined) {
- this.showMessage("箱码【" + packingNumber + "】、批次【" + batch + "】不在列表中")
+ this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
+ return;
+ }
+ if (result.label.labelType == "ContainerLabel") {
+ var containerNumber = result.label.container;
+ var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber);
+ if (itemDetail.length == 0) {
+ this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】不在列表中")
} else {
- if (itemDetail.scaned) {
- this.showMessage("箱码【" + packingNumber + "】已经扫描")
+ if (itemDetail[0].scaned) {
+ this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】已经扫描")
} else {
- itemDetail.scaned = true;
+ itemDetail.forEach(item => {
+ item.scaned = true;
+ item.handleQty = item.qty;
+ item.toLocationCode = this.toLocationCode;
+ })
this.detailSource[0].subList.sort(compareAsc('scaned')); //按扫描信息排序
- itemDetail.handleQty = Number(result.label.qty);
- itemDetail.toLocationCode = this.toLocationCode;
- itemDetail.labelQty = Number(result.label.qty);
calcHandleQty(this.detailSource);
this.continueScan()
this.$forceUpdate()
- var list = this.detailSource[0].subList;
+ }
+ }
+ } else if (result.label.labelType == "PurchaseLabel") {
+ var packingNumber = result.label.packingNumber;
+ var batch = result.label.batch;
+ var qty = result.label.qty;
+ var detail = this.detailSource.find(r => r.itemCode == itemCode);
+ if (detail == undefined) {
+ this.showMessage("物料号【" + itemCode + "】不在列表中")
+ } else {
+ var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch ==
+ batch);
+ if (itemDetail == undefined) {
+ this.showMessage("箱码【" + packingNumber + "】、批次【" + batch + "】不在列表中")
+ } else {
+ if (itemDetail.scaned) {
+ this.showMessage("箱码【" + packingNumber + "】已经扫描")
+ } else {
+ itemDetail.scaned = true;
+ this.detailSource[0].subList.sort(compareAsc('scaned')); //按扫描信息排序
+ itemDetail.handleQty = Number(result.label.qty);
+ itemDetail.toLocationCode = this.toLocationCode;
+ itemDetail.labelQty = Number(result.label.qty);
+ calcHandleQty(this.detailSource);
+ this.continueScan()
+ this.$forceUpdate()
+ }
}
}
}
@@ -252,14 +284,24 @@
},
scanLocationCode(location, code) {
- this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
- this.toLocationCode = code
- this.detailSource.forEach(item => {
- item.subList.forEach(detail => {
- detail.toLocationCode = code
- })
- })
- })
+ if(this.jobContent.allowModifyLocation == 'TRUE'){
+ this.toLocationCode = code;
+ }else {
+ if(code==this.jobToLocationCode){
+ this.toLocationCode =code;
+ }else {
+ this.showErrorMessage("任务设置中不允许修改库位,扫描的库位【"+code+"】与推荐的库位【"+this.jobToLocationCode+"】不一致")
+ }
+ }
+
+ // this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
+ // this.toLocationCode = code
+ // this.detailSource.forEach(item => {
+ // item.subList.forEach(detail => {
+ // detail.toLocationCode = code
+ // })
+ // })
+ // })
},
commit() {
@@ -317,7 +359,7 @@
if (res.data) {
this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data)
} else {
- this.showErrorMessage("提交失败[" + res.msg+"]")
+ this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
diff --git a/pages/query/container.vue b/pages/query/container.vue
index defebb34..c0d5a2c6 100644
--- a/pages/query/container.vue
+++ b/pages/query/container.vue
@@ -7,7 +7,7 @@
-
+
@@ -27,8 +27,8 @@
、
-
-
+
+
@@ -94,7 +94,8 @@
tabIndex: 0,
};
},
- onLoad() {},
+ onLoad() {
+ },
onNavigationBarButtonTap(e) {
if (e.index === 0) {
goHome();
@@ -106,6 +107,7 @@
},
methods: {
openScanPopup() {
+ var test =this.$refs;
this.$refs.scanPopup.openScanPopup();
},
closeScanPopup() {
@@ -116,7 +118,10 @@
this.summarys = [];
this.balances = [];
this.occupieds = [];
- this.getItemInfo(code);
+ this.containerNumber = code.number;
+ this.containerInfo = code;
+ this.tabChange(0)
+ // this.getItemInfo(code.number);
},
getItemInfo(code) {
@@ -124,7 +129,6 @@
title: "正在查询器具信息...",
mask: true
});
-
getContainerByNumber(code).then(res => {
uni.hideLoading();
if (res.data.list.length > 0) {
@@ -133,7 +137,7 @@
this.containerInfo = res.data.list[0];
this.tabChange(0)
} else {
- this.showMessage('未查找到物料【' + code + '】');
+ this.showMessage('未查找到器具【' + code + '】');
}
}).catch(error => {
@@ -161,7 +165,7 @@
this.$refs.paging.complete(this.summarysList);
} else {
this.$refs.paging.complete(false);
- this.showMessage('未查找到器具【' + this.containerNumber + '】');
+ this.showMessage('未查找到器具【' + this.containerNumber + '】的库存信息');
}
}).catch(error => {
this.$refs.paging.complete(false);
@@ -189,7 +193,7 @@
this.$refs.paging.complete(this.detailList);
} else {
this.$refs.paging.complete(false);
- this.showMessage('未查找到器具【' + this.containerNumber + '】');
+ this.showMessage('未查找到器具【' + this.containerNumber + '】的库存信息');
}
}).catch(error => {
this.$refs.paging.complete(false);
@@ -249,7 +253,7 @@
this.$refs.paging.reload(true);
},
showMessage(message) {
- this.$refs.comMessage.showWarningMessage(message, res => {
+ this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
this.afterCloseMessage()
}