diff --git a/.gitignore b/.gitignore
index e9286175..65cb4eae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/node_modules
/unpackage
+/static/config.json
diff --git a/api/httpRequest3.js b/api/httpRequest3.js
index d51a546d..aeec1a3e 100644
--- a/api/httpRequest3.js
+++ b/api/httpRequest3.js
@@ -27,27 +27,27 @@ function service(options = {}) {
if(res.data.code==0){
resolve(res.data);
}else {
- reject( res.data.msg)
+ reject("系统:"+res.data.msg)
}
}else {
- reject( res.data.msg)
+ reject("系统:"+ res.data.msg)
}
} else {
- reject(res.data.msg)
+ reject("系统:"+res.data.msg)
}
};
options.fail = (error) => {
var message = error.errMsg
if (message === 'Network Error') {
- message = '后端接口连接异常'
+ message = '接口连接异常'
} else if (message.includes('timeout')) {
- message = '系统接口请求超时'
+ message = '接口请求超时'
} else if (message.includes('Request failed with status code')) {
- message = '系统接口' + message.substr(message.length - 3) + '异常'
+ message = '接口' + message.substr(message.length - 3) + '异常'
}
- reject(message);
+ reject("系统:"+message);
};
uni.request(options);
});
diff --git a/api/request2.js b/api/request2.js
index 9311c88c..9a457bfe 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -1394,7 +1394,7 @@ export function unPlannedReceiptRequestHandle(id) {
* 计划外入库记录 提交
* @param {*} params
*/
-export function unPlannedReceiptRecordbSubmit(id, params) {
+export function unPlannedReceiptRecordbSubmit(params) {
return request({
url: baseApi + "/wms/unplannedreceipt-record-main/create",
method: "post",
@@ -1549,8 +1549,8 @@ export function unPlannedIssueRequestHandle(id) {
*/
export function unPlannedIssueRecordSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
- method: "put",
+ url: baseApi + "/wms/unplannedissue-record-main/create",
+ method: "post",
data: params,
});
}
diff --git a/mycomponents/scan/winScanPackAndLocation.vue b/mycomponents/scan/winScanPackAndLocation.vue
index 366e749f..99eb53af 100644
--- a/mycomponents/scan/winScanPackAndLocation.vue
+++ b/mycomponents/scan/winScanPackAndLocation.vue
@@ -98,7 +98,7 @@
},
headerType: {
type: String,
- default: "HPQ"
+ default: "HPQ,HMQ"
},
},
data() {
diff --git a/mycomponents/scan/winScanPackAndPosition.vue b/mycomponents/scan/winScanPackAndPosition.vue
new file mode 100644
index 00000000..8ee30ffa
--- /dev/null
+++ b/mycomponents/scan/winScanPackAndPosition.vue
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/deliver/coms/comScanDeliverPack.vue b/pages/deliver/coms/comScanDeliverPack.vue
index 42391651..fb013ada 100644
--- a/pages/deliver/coms/comScanDeliverPack.vue
+++ b/pages/deliver/coms/comScanDeliverPack.vue
@@ -45,7 +45,7 @@
-
@@ -124,6 +124,11 @@
type: String,
default: ''
},
+ headerType: {
+ type: String,
+ default: "HPQ,HMQ"
+ },
+
},
data() {
diff --git a/pages/deliver/job/deliverDetail.vue b/pages/deliver/job/deliverDetail.vue
index eb804fbb..6d090fa0 100644
--- a/pages/deliver/job/deliverDetail.vue
+++ b/pages/deliver/job/deliverDetail.vue
@@ -1,30 +1,31 @@
+
+
-
-
-
-
- 客户代码
- {{jobContent.customerCode}}
-
-
-
- 客户寄售库
- {{ toLocation.toLocationCode}}
-
-
-
-
@@ -78,7 +79,8 @@
import comDeliverDetailCard from '@/pages/deliver/coms/comDeliverDetailCard.vue'
import comScanDeliverPack from '@/pages/deliver/coms/comScanDeliverPack.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
-
+ import jobTop from '@/mycomponents/job/jobTop.vue'
+
export default {
name: 'issueDetail',
components: {
@@ -86,7 +88,8 @@
winScanButton,
comDeliverDetailCard,
comScanDeliverPack,
- comMessage
+ comMessage,
+ jobTop
},
data() {
return {
@@ -97,7 +100,8 @@
detailOptions: [],
scanOptions: [],
status:"",
- received :false
+ received :false,
+ toLocationCode:""
};
},
@@ -164,8 +168,8 @@
that.jobContent = res.data;
that.subList = res.data.subList;
that.detailSource = getDataSource(that.detailSource, that.subList)
+ that.toLocationCode =that.subList[0].toLocationCode
that.resizeCollapse();
- uni.hideLoading();
} else {
that.showMessage('列表数据为0');
}
diff --git a/pages/productionReturn/coms/comReturn.vue b/pages/productionReturn/coms/comReturn.vue
index 2915c41d..a64553a4 100644
--- a/pages/productionReturn/coms/comReturn.vue
+++ b/pages/productionReturn/coms/comReturn.vue
@@ -107,7 +107,6 @@
data() {
return {
id: '',
- scanCount: 0,
dataContent: {}, //任务内容
subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
@@ -297,7 +296,7 @@
productionReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成制品收货记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功
生成退料收货记录
" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/pages/productionReturn/coms/comReturnDetailCard.vue b/pages/productionReturn/coms/comReturnDetailCard.vue
new file mode 100644
index 00000000..1aff431e
--- /dev/null
+++ b/pages/productionReturn/coms/comReturnDetailCard.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/productionReturn/coms/comReturnRecord.vue b/pages/productionReturn/coms/comReturnRecord.vue
index 83b1873c..9eaa00dc 100644
--- a/pages/productionReturn/coms/comReturnRecord.vue
+++ b/pages/productionReturn/coms/comReturnRecord.vue
@@ -17,7 +17,7 @@
+ :isShowPack="true" :isShowLocation="false" :isShowToLocation="true">
diff --git a/pages/productionReturn/coms/returnDetailInfoPopup.vue b/pages/productionReturn/coms/returnDetailInfoPopup.vue
new file mode 100644
index 00000000..d01fcc04
--- /dev/null
+++ b/pages/productionReturn/coms/returnDetailInfoPopup.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+ 标包数量 :
+ {{dataContent.stdPackQty}}
+
+
+ 标包单位 :
+ {{getStdPackUnitInfo(dataContent.stdPackUnit)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/productionReturn/job/returnDetail.vue b/pages/productionReturn/job/returnDetail.vue
index ac488a07..42a8aa97 100644
--- a/pages/productionReturn/job/returnDetail.vue
+++ b/pages/productionReturn/job/returnDetail.vue
@@ -7,17 +7,37 @@
-
-
+
+
+
+ 车间
+ {{jobContent.workshopCode}}
+
+
+ 生产线
+ {{titleInfo.productionLineCode}}
+
+
+ 工位
+ {{ titleInfo.workStationCode }}
+
+
+ 原材料库
+ {{ titleInfo.toLocationCode}}
+
+
+
+
+
+
-
-
+
+
@@ -29,8 +49,8 @@
style="background-color:ghostwhite; width: 100%; ">
+ :isShowEdit="jobContent.allowModifyLocation=='TRUE'" @getLocation='scanLocationCode'
+ :locationTypeList="toLocationTypeList">
@@ -78,7 +98,7 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
- import comDetailCard from "@/mycomponents/detail/comDetailCard.vue"
+ import comReturnDetailCard from "@/pages/productionReturn/coms/comReturnDetailCard.vue"
import detailInfoPopup from '@/pages/productionReturn/coms/detailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
@@ -91,7 +111,7 @@
requiredLocation,
// winScanPackAndLocation,
winScanPack,
- comDetailCard,
+ comReturnDetailCard,
detailInfoPopup,
comMessage,
jobTop
@@ -109,9 +129,10 @@
detailSource: [], //绑定在页面上的数据源
fromLocationCode: '',
toLocationCode: '',
- tolocationTypeList: [],
+ toLocationTypeList: [],
toLocationInfo: {},
- businessTypeInfo: {}
+ businessTypeInfo: {},
+ titleInfo: ""
};
},
onLoad(option) {
@@ -192,6 +213,7 @@
that.fromLocationCode = that.subList[0].fromLocationCode
that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
+ that.titleInfo = that.subList[0];
} else {
that.showMessage('列表数据为0');
}
@@ -278,11 +300,12 @@
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.package.qty)
+ itemDetail.inventoryStatus = "OK"
itemDetail.stdPackQty = result.package.stdPackQty
itemDetail.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
-
-
+
+
//合格退料时不能查库存余额,因为生产退料时新生成的批次是000000 --nxt
// let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
// let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
diff --git a/pages/productionReturn/record/returnToStore.vue b/pages/productionReturn/record/returnToStore.vue
index efd1dc4c..b622c772 100644
--- a/pages/productionReturn/record/returnToStore.vue
+++ b/pages/productionReturn/record/returnToStore.vue
@@ -1,29 +1,497 @@
-
+
+
+
+
+
+
+ 位置 :
+
+
+ {{positionInfo}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/pages/repleinsh/job/repleinshDetail.vue b/pages/repleinsh/job/repleinshDetail.vue
index 08437cf9..429f3377 100644
--- a/pages/repleinsh/job/repleinshDetail.vue
+++ b/pages/repleinsh/job/repleinshDetail.vue
@@ -57,7 +57,7 @@
getDirectoryItemArray,
getPackingNumberAndBatch,
} from '@/common/basic.js';
-
+
import {
getDataSource
} from '@/pages/issue/js/issue.js';
@@ -173,7 +173,6 @@
that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.detailSource = getDataSource(that.detailSource, that.subList)
that.resizeCollapse();
- uni.hideLoading();
} else {
that.showMessage('列表数据为0');
}
@@ -198,6 +197,11 @@
submit() {
+ var scanCount= this.getScanCount(this.subList);
+ if(scanCount==0){
+ this.showErrorMessage("扫描数为0,请先扫描")
+ return;
+ }
uni.showLoading({
title: "提交中....",
mask: true
@@ -236,7 +240,7 @@
repleinshJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成补料记录" + res.data)
+ this.showCommitSuccessMessage("提交成功
生成补料记录
" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
@@ -431,6 +435,24 @@
})
},
+ getScanCount(subList){
+ var scanCount = 0;
+ this.detailSource.forEach(toLocationCode => {
+ toLocationCode.Items.forEach(item => {
+ item.Locations.forEach(fromLocation => {
+ fromLocation.Batchs.forEach(batch => {
+ let subItem = batch.detail;
+ if (batch.Records.length > 0) {
+ scanCount+=batch.Records.length
+ }
+ })
+ })
+ })
+ })
+ return scanCount;
+ }
+
+
}
};
diff --git a/pages/scrap/record/scrapRecord.vue b/pages/scrap/record/scrapRecord.vue
index 6b54bdbd..9150d69f 100644
--- a/pages/scrap/record/scrapRecord.vue
+++ b/pages/scrap/record/scrapRecord.vue
@@ -119,7 +119,7 @@
this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup();
} else {
- this.$refs.comMessage.showBreakMessage(res.message );
+ this.showErrorMessage(res.message)
}
});
@@ -250,11 +250,12 @@
title: "提交中....",
mask: true
});
-
+ var params = this.setParams()
+ console.log("提交参数", JSON.stringify(params));
scrapRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成报废出库记录" + res.data)
+ this.showCommitSuccessMessage("提交成功
生成报废出库记录
" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
@@ -267,6 +268,7 @@
setParams() {
var subList = []
+ var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
@@ -294,7 +296,10 @@
}
})
})
- return subList;
+ this.dataContent.subList =subList
+ this.dataContent.creator = creator;
+ return this.dataContent;
+
},
diff --git a/pages/unPlanned/job/receiptJobDetail.vue b/pages/unPlanned/job/receiptJobDetail.vue
index 43ae3769..a8a18ab0 100644
--- a/pages/unPlanned/job/receiptJobDetail.vue
+++ b/pages/unPlanned/job/receiptJobDetail.vue
@@ -87,7 +87,6 @@
data() {
return {
id: '',
- receiptJob: {},
received: false,
scanCount: 0,
jobContent: {}, //任务内容
@@ -231,6 +230,7 @@
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
itemDetail.toLocationCode = this.toLocationCode;
+ itemDetail.stdPackQty = result.package.stdPackQty
itemDetail.labelQty = Number(result.label.qty);
calcHandleQty(this.detailSource);
this.continueScan()
diff --git a/pages/unPlanned/record/issueRecord.vue b/pages/unPlanned/record/issueRecord.vue
index 5f038671..c134f140 100644
--- a/pages/unPlanned/record/issueRecord.vue
+++ b/pages/unPlanned/record/issueRecord.vue
@@ -218,21 +218,22 @@
}
var params =this.setParams()
console.log("提交" + JSON.stringify(params))
- // unPlannedIssueRecordSubmit(params).then(res => {
- // uni.hideLoading()
- // if (res.data) {
- // this.showCommitSuccessMessage("提交成功
生成采购收货记录" + res.data, )
- // } else {
- // this.showErrorMessage("提交失败[" + res.msg + "]")
- // }
- // }).catch(error => {
- // uni.hideLoading()
- // this.showErrorMessage(error)
- // })
+ unPlannedIssueRecordSubmit(params).then(res => {
+ uni.hideLoading()
+ if (res.data) {
+ this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data )
+ } else {
+ this.showErrorMessage("提交失败[" + res.msg + "]")
+ }
+ }).catch(error => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
+ })
},
setParams() {
var subList = []
+ var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
@@ -260,7 +261,10 @@
}
})
})
- return subList;
+
+ this.dataContent.subList = subList;
+ this.dataContent.creator = creator;
+ return this.dataContent;
},
reasonChange(e) {