diff --git a/api/request2.js b/api/request2.js
index 4cc6b412..dd80377e 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -807,7 +807,7 @@ export function getIssueJobDetail(id) {
*/
export function takeIssueJob(id) {
return request({
- url: baseApi + "/wms/purchasereceipt-job-main/accept?id=" + id,
+ url: baseApi + "/wms/issue-job-main/accept?id=" + id,
method: "put",
data: {},
});
@@ -820,12 +820,24 @@ export function takeIssueJob(id) {
*/
export function cancleTakeIssueJob(id) {
return request({
- url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id,
- method: "get",
+ url: baseApi + "/wms/issue-job-main/abandon?id=" + id,
+ method: "put",
data: {},
});
}
+/**
+ * 发料任务 提交
+ * @param {*} params
+ */
+export function issueJobSubmit(params) {
+ return request({
+ url: baseApi + "/wms/issue-job-main/execute",
+ method: "put",
+ data: params,
+ });
+}
+
/**
* 生产收料 任务列表
@@ -1958,8 +1970,8 @@ export function issueRequestSubmit(params) {
*/
export function issueRecordSubmit(params) {
return request({
- url: baseApi + "/wms/purchasereturn-request-main/submit",
- method: "put",
+ url: baseApi + "/wms/issue-record-main/create",
+ method: "post",
data: params,
});
}
diff --git a/mycomponents/balance/handleBalance.vue b/mycomponents/balance/handleBalance.vue
index f5dce70a..73c4e49b 100644
--- a/mycomponents/balance/handleBalance.vue
+++ b/mycomponents/balance/handleBalance.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/mycomponents/balance/recommendBalance.vue b/mycomponents/balance/recommendBalance.vue
index a0adcb27..ef40ad8d 100644
--- a/mycomponents/balance/recommendBalance.vue
+++ b/mycomponents/balance/recommendBalance.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/mycomponents/package/packageBalance.vue b/mycomponents/package/packageBalance.vue
index dd4cdbbf..8fab758b 100644
--- a/mycomponents/package/packageBalance.vue
+++ b/mycomponents/package/packageBalance.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/mycomponents/package/packageHandle.vue b/mycomponents/package/packageHandle.vue
index a3513fc3..ecb42742 100644
--- a/mycomponents/package/packageHandle.vue
+++ b/mycomponents/package/packageHandle.vue
@@ -9,7 +9,7 @@
-
+
diff --git a/mycomponents/recommend/recommendBalance.vue b/mycomponents/recommend/recommendBalance.vue
index 407f87b8..df79f681 100644
--- a/mycomponents/recommend/recommendBalance.vue
+++ b/mycomponents/recommend/recommendBalance.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/pages/count/record/countRecord.vue b/pages/count/record/countRecord.vue
index ef7374db..302094d2 100644
--- a/pages/count/record/countRecord.vue
+++ b/pages/count/record/countRecord.vue
@@ -162,8 +162,8 @@
this.$forceUpdate();
},
selectedItem(item) {
- if (item.locationCode != this.FromLocationCode) {
- this.showErrorMessage("来源库位[" + this.FromLocationCode + "]无库存")
+ if (item.locationCode != this.fromLocationCode) {
+ this.showErrorMessage("来源库位[" + this.fromLocationCode + "]无库存")
return;
}
},
diff --git a/pages/demo/demo.vue b/pages/demo/demo.vue
index 7f2c7454..3df5a596 100644
--- a/pages/demo/demo.vue
+++ b/pages/demo/demo.vue
@@ -226,7 +226,7 @@
库位 location
-
+
@@ -459,7 +459,7 @@
packingNumber: "516456579",
batch: "20230510",
- FromLocationCode: "B0101",
+ fromLocationCode: "B0101",
locationCode: "B0101",
record: {
qty: 1000
diff --git a/pages/issue-按批次推荐/coms/comIssueDetailCard.vue b/pages/issue-按批次推荐/coms/comIssueDetailCard.vue
index 0059807a..80dcf056 100644
--- a/pages/issue-按批次推荐/coms/comIssueDetailCard.vue
+++ b/pages/issue-按批次推荐/coms/comIssueDetailCard.vue
@@ -16,7 +16,7 @@
-
+
diff --git a/pages/issue-按批次推荐/coms/comIssueRecommend.vue b/pages/issue-按批次推荐/coms/comIssueRecommend.vue
index 6b6bd970..c9256fd9 100644
--- a/pages/issue-按批次推荐/coms/comIssueRecommend.vue
+++ b/pages/issue-按批次推荐/coms/comIssueRecommend.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/pages/issue-按批次推荐/coms/comScanIssuePack.vue b/pages/issue-按批次推荐/coms/comScanIssuePack.vue
index 1080be58..0c2c39aa 100644
--- a/pages/issue-按批次推荐/coms/comScanIssuePack.vue
+++ b/pages/issue-按批次推荐/coms/comScanIssuePack.vue
@@ -132,9 +132,9 @@
if (location != undefined) {
location.Items.forEach(item => {
item.Locations.forEach(f => {
- list.push(f.FromLocationCode)
+ list.push(f.fromLocationCode)
})
- this.fromLocationCode = item.Locations[0].FromLocationCode;
+ this.fromLocationCode = item.Locations[0].fromLocationCode;
})
return list;
} else {
diff --git a/pages/issue-按批次推荐/job/issueDetail.vue b/pages/issue-按批次推荐/job/issueDetail.vue
index 775791e2..64951b0a 100644
--- a/pages/issue-按批次推荐/job/issueDetail.vue
+++ b/pages/issue-按批次推荐/job/issueDetail.vue
@@ -207,7 +207,7 @@
} else {
item.qty += detail.qty
//在零件下查找库位
- let location = item.Locations.find(r => r.FromLocationCode == detail.FromLocationCode);
+ let location = item.Locations.find(r => r.fromLocationCode == detail.fromLocationCode);
if (location == undefined) {
location = that.createLocationInfo(detail);
item.Locations.push(location);
@@ -240,7 +240,7 @@
createLocationInfo(detail) {
let location = {
- FromLocationCode: detail.FromLocationCode,
+ fromLocationCode: detail.fromLocationCode,
qty: detail.qty,
uom: detail.uom,
handleQty: 0,
@@ -357,7 +357,7 @@
})
} else {
- let fromLocation = item.Locations.find(r => r.FromLocationCode == locationCode);
+ let fromLocation = item.Locations.find(r => r.fromLocationCode == locationCode);
let batch = fromLocation.Batchs.find(r => r.Bacth == result.label.batch)
if (batch == undefined || batch == null) {
if (jobContent.AllowModifyBach == 1) {
diff --git a/pages/issue/coms/comIssueDetailCard.vue b/pages/issue/coms/comIssueDetailCard.vue
index 3430b1de..4152252e 100644
--- a/pages/issue/coms/comIssueDetailCard.vue
+++ b/pages/issue/coms/comIssueDetailCard.vue
@@ -1,15 +1,20 @@
-
-
-
+
+
+
+ 生产线 : {{item.productionLineCode}}
+
+
+ 工位 : {{item.workStationCode}}
+
@@ -22,7 +27,7 @@
+ :isShowLocation="false" :isShowPack="false">
@@ -47,7 +52,7 @@
-
+
@@ -63,14 +68,14 @@
import location from '@/mycomponents/balance/location.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import detailInfoPopup from '@/pages/productionReceipt/coms/detailInfoPopup.vue'
-
+
import {
getDetailOption,
getEditRemoveOption
} from '@/common/array.js';
export default {
- emits:['updateData'],
+ emits: ['updateData'],
components: {
itemQty,
recommend,
diff --git a/pages/issue/coms/comIssueRecommend.vue b/pages/issue/coms/comIssueRecommend.vue
index 6b6bd970..c9256fd9 100644
--- a/pages/issue/coms/comIssueRecommend.vue
+++ b/pages/issue/coms/comIssueRecommend.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/pages/issue/coms/comIssueRequestCreator.vue b/pages/issue/coms/comIssueRequestCreator.vue
index 92c3727d..05188a72 100644
--- a/pages/issue/coms/comIssueRequestCreator.vue
+++ b/pages/issue/coms/comIssueRequestCreator.vue
@@ -7,13 +7,11 @@
- 车间 : {{dataContent.workShopName}} ({{dataContent.workShopCode}})
+ 车间 : {{dataContent.workShopName}} ({{dataContent.workshopCode}})
+
- 生产线 : {{dataContent.productionLineName}}({{dataContent.productionLineCode}})
-
-
- 工位 : {{dataContent.workStationName}} ({{dataContent.workStationCode}})
+ 总数量 : {{dataContent.totalQty}}
@@ -23,6 +21,12 @@
+
+ 生产线 : {{item.productionLineName}}({{item.productionLineCode}})
+
+
+ 工位 : {{item.workStationName}} ({{item.workStationCode}})
+
物品代码 : {{item.itemCode}}
diff --git a/pages/issue/coms/comIssueRequestPopup.vue b/pages/issue/coms/comIssueRequestPopup.vue
index d97f3f66..8d155672 100644
--- a/pages/issue/coms/comIssueRequestPopup.vue
+++ b/pages/issue/coms/comIssueRequestPopup.vue
@@ -94,13 +94,12 @@
data() {
return {
// itemCode: 'CE115F11161AG',
- workShopCode: "", //车间
+ workshopCode: "", //车间
workShopName: "",
productionLineCode: "",//生产线
productionLineName:"",
workStationCode: "",//工位
workStationName:"",
-
itemCode: '',
itemName: "",
qty: 0,
@@ -115,102 +114,7 @@
positionInfo: "请选择位置",
show: false,
isModifiedPosition: true,
- positionList:[
- {
- "children": [
- {
- "children": [
- {
- "label": "",
- "value": ""
- }
- ],
- "label": "生产线1",
- "value": "111"
- }
- ],
- "label": "车间1",
- "value": "111"
- },
- {
- "children": [
- {
- "children": [
- {
- "label": "测试",
- "value": "测试111"
- }
- ],
- "label": "222",
- "value": "222"
- }
- ],
- "label": "333",
- "value": "222"
- },
- {
- "children": [
- {
- "children": [
- {
- "label": "",
- "value": ""
- }
- ],
- "label": "",
- "value": ""
- }
- ],
- "label": "3333",
- "value": "333"
- },
- {
- "children": [
- {
- "children": [
- {
- "label": "",
- "value": ""
- }
- ],
- "label": "",
- "value": ""
- }
- ],
- "label": "测试1111",
- "value": "测试111"
- },
- {
- "children": [
- {
- "children": [
- {
- "label": "工位1",
- "value": "station1"
- },
- {
- "label": "工位2",
- "value": "station2"
- }
- ],
- "label": "车间1-生产线1",
- "value": "line1"
- },
- {
- "children": [
- {
- "label": "",
- "value": ""
- }
- ],
- "label": "车间1-生产线2",
- "value": "line2"
- }
- ],
- "label": "车间1",
- "value": "work1"
- }
-],
+ positionList:[],
list: [{
value: 1,
label: '车间1',
@@ -287,7 +191,7 @@
openRequestPopup(editPosition) {
if(this.positionList.length==0){
getWorkShopLineStation().then(res=>{
- // this.positionList =res
+ this.positionList =res
}).catch(error=>{
})
@@ -370,7 +274,7 @@
callback(action) {
let item = {
positionInfo: this.positionInfo,
- workShopCode: this.workShopCode,//车间
+ workshopCode: this.workshopCode,//车间
workShopName: this.workShopName,
productionLineCode: this.productionLineCode,//生产线
productionLineName:this.productionLineName,
@@ -416,19 +320,14 @@
},
confirmSelect(e) {
-
this.positionInfo = e[0].label + "-" + e[1].label + "-" + e[2].label
- var positionInfoValue = e[0].value + "-" + e[1].value + "-" + e[2].value
console.log("位置",this.positionInfo)
- console.log("位置value",positionInfoValue)
- this.workShopCode = e[0].value
+ this.workshopCode = e[0].value
this.productionLineCode = e[1].value
this.workStationCode = e[2].value
this.workShopName= e[0].label
this.productionLineName = e[1].label
this.workStationName = e[2].label
-
-
},
getItemCodeListByProLine(lineCode) {
diff --git a/pages/issue/coms/comScanIssuePack.vue b/pages/issue/coms/comScanIssuePack.vue
index 347a2486..11fd1462 100644
--- a/pages/issue/coms/comScanIssuePack.vue
+++ b/pages/issue/coms/comScanIssuePack.vue
@@ -11,24 +11,31 @@
background-color: #fff;
margin-left: 20rpx;
margin-right: 20rpx;
+ padding:20rpx;
border-radius: 8rpx;">
- 需求库位
+ 位置 :
-
-
+
+
+
+ {{positionInfo}}
+
+
+
+
- 发料库位
+ 来源库位
{
- that.requestLocationList.push(res.toLocationCode)
- })
+ that.toLocation = that.dataContent[0];
+ that.toLocationCode = that.dataContent[0].toLocationCode;
that.fromLocationList = that.getFromLocationList();
}
},
getFromLocationList() {
let list = [];
- let location = this.dataContent.find(r => r.toLocationCode == this.requestLocationCode);
-
+ let location = this.dataContent.find(r => r.toLocationCode == this.toLocationCode);
if (location != undefined) {
location.Items.forEach(item => {
item.Locations.forEach(f => {
- list.push(f.FromLocationCode)
+ list.push(f.fromLocationCode)
})
})
this.fromLocationCode = list[0];
@@ -197,28 +207,12 @@
}
},
- toLocationUpdate(tolocation) {
- let toLocation = this.requestLocationList.find(r => r == tolocation);
- if (toLocation == undefined) {
- this.requestLocation = null;
- this.requestLocationCode = '';
- this.showErrorMessage('需求库位【' + tolocation + '】不存在')
- } else {
- this.getFromLocationList();
- }
- },
-
onScan(result) {
try {
let that = this;
- if (that.requestLocation == null) {
- that.showErrorMessage('请选择需求库位', res => {
- that.$refs.toLocationCombox.onFocus();
- });
- return;
- }
+
if (that.fromLocationCode == '') {
- that.showErrorMessage('请选择发料库位', res => {
+ that.showErrorMessage('请选择来源库位', res => {
that.$refs.toLocationCombox.onFocus();
});
return;
@@ -226,7 +220,7 @@
let itemCode = result.label.itemCode;
let packingCode = result.label.packingNumber;
let lot = result.label.batch;
- let item = that.requestLocation.Items.find(r => r.itemCode == itemCode);
+ let item = that.toLocation.Items.find(r => r.itemCode == itemCode);
if (item == undefined) {
that.showErrorMessage('未查找到零件【' + itemCode + '】的发料明细',
res => {
@@ -272,7 +266,7 @@
let itemCode = label.itemCode;
let packingCode = label.packingNumber;
let lot = label.batch;
- let item = that.requestLocation.Items.find(r => r.itemCode == itemCode);
+ let item = that.toLocation.Items.find(r => r.itemCode == itemCode);
let fromLocation = item.Locations.find(l => l.fromLocationCode == that.fromLocationCode);
if (fromLocation != undefined) {
let batch = fromLocation.Batchs.find(r => r.batch == lot);
@@ -364,7 +358,7 @@
uom: balance.uom,
inventoryStatus: balance.inventoryStatus,
balance: balance,
- toLocationCode: this.requestLocationCode
+ toLocationCode: this.toLocationCode
}
return record;
},
@@ -427,7 +421,7 @@
record.qty = 0;
this.issueRecord.splice(index, 1)
- let item = this.requestLocation.Items.find(r => r.itemCode == record.itemCode);
+ let item = this.toLocation.Items.find(r => r.itemCode == record.itemCode);
if (item != undefined) {
item.Locations.forEach(l => {
let batch = l.Batchs.find(b => b.packingNumber == record.packingNumber && b
diff --git a/pages/issue/job/issueDetail.vue b/pages/issue/job/issueDetail.vue
index 1946e6d2..5435b274 100644
--- a/pages/issue/job/issueDetail.vue
+++ b/pages/issue/job/issueDetail.vue
@@ -2,6 +2,10 @@
+
+ 车间代码 : {{jobContent.workShopCode}}
+
+
@@ -142,7 +146,7 @@
that.jobContent = res.data;
that.subList = res.data.subList;
that.detailSource = getDataSource(that.detailSource, that.subList)
- // that.fromLocationCode = that.subList[0].FromLocationCode
+ // that.fromLocationCode = that.subList[0].fromLocationCode
// that.toLocationCode = that.subList[0].toLocationCode
// that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.resizeCollapse();
diff --git a/pages/issue/js/issue.js b/pages/issue/js/issue.js
index 55842f6a..e61d7cfe 100644
--- a/pages/issue/js/issue.js
+++ b/pages/issue/js/issue.js
@@ -25,7 +25,7 @@ export function createDetailInfo(location, detail) {
} else {
item.qty += detail.qty
//在零件下查找库位
- let location = item.Locations.find(r => r.FromLocationCode == detail.FromLocationCode);
+ let location = item.Locations.find(r => r.fromLocationCode == detail.fromLocationCode);
if (location == undefined) {
location = createLocationInfo(detail);
item.Locations.push(location);
@@ -46,6 +46,8 @@ export function createItemInfo(detail) {
let item = {
itemCode: detail.itemCode,
itemName: detail.itemName,
+ productionLineCode:detail.productionLineCode,
+ workStationCode:detail.workStationCode,
stdPackQty: detail.stdPackQty,
stdPackUnit: detail.stdPackUnit,
qty: detail.qty,
@@ -60,7 +62,7 @@ export function createItemInfo(detail) {
export function createLocationInfo(detail) {
let location = {
- FromLocationCode: detail.FromLocationCode,
+ fromLocationCode: detail.fromLocationCode,
qty: detail.qty,
uom: detail.uom,
handleQty: 0,
diff --git a/pages/issue/record/issueRecord.vue b/pages/issue/record/issueRecord.vue
index 2d024c2b..b65c5db6 100644
--- a/pages/issue/record/issueRecord.vue
+++ b/pages/issue/record/issueRecord.vue
@@ -1,184 +1,218 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/issue/request/issueRequest.vue b/pages/issue/request/issueRequest.vue
index 0bad554e..35b582f3 100644
--- a/pages/issue/request/issueRequest.vue
+++ b/pages/issue/request/issueRequest.vue
@@ -193,8 +193,11 @@
},
openScanDetailPopup() {
+ // uni.navigateTo({
+ // url: "../request/issueRequestSubmit?fromType=" + this.fromType
+ // })
uni.navigateTo({
- url: "../request/issueRequestSubmit?fromType=" + this.fromType
+ url: "../record/issueRecord?fromType=" + this.fromType
})
},
diff --git a/pages/issue/request/issueRequestSubmit.vue b/pages/issue/request/issueRequestSubmit.vue
index 10915c8b..c82c7510 100644
--- a/pages/issue/request/issueRequestSubmit.vue
+++ b/pages/issue/request/issueRequestSubmit.vue
@@ -18,7 +18,7 @@
-
+
@@ -27,7 +27,6 @@