diff --git a/src/App.vue b/src/App.vue index 2305bec2..963e459c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,6 @@ export default { onLaunch: function() { - console.log('App Launch') // 隐藏顶部电池,时间等信息 // #ifdef APP-PLUS // 隐藏顶部电池,时间等信息 @@ -29,10 +28,8 @@ }; }, onShow: function() { - console.log('App Show') }, onHide: function() { - console.log('App Hide') }, } diff --git a/src/api/request2.js b/src/api/request2.js index 750772b6..b49c8a03 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -1342,6 +1342,9 @@ export function getIssueJobList(params) { data: params, }); } +/** + * 发料生产线查询 + */ export function getIssueJobByProductionline() { return request({ url: baseApi + "/wms/issue-job-main/getIssueJobByProductionline", @@ -1349,6 +1352,17 @@ export function getIssueJobByProductionline() { data: {}, }); } + +/** + * 发料接收生产线查询 + */ +export function getProductionReceiptJobByProductionline() { + return request({ + url: baseApi + "/wms/productionreceipt-job-main/getProductionreceiptJobByProductionline", + method: "get", + data: {}, + }); +} /** * 发料任务明细 diff --git a/src/common/directory.js b/src/common/directory.js index e922c360..2ad8acfb 100644 --- a/src/common/directory.js +++ b/src/common/directory.js @@ -22,6 +22,7 @@ let countStageList = []; let locationAreaTypeList = []; let businessList = []; let countScopeTypeList = []; +let priorityList = [] @@ -64,6 +65,7 @@ export function clearCacheData() { locationAreaTypeList = [] businessList = [] countScopeTypeList = [] + priorityList = [] } //获取字典信息 @@ -79,7 +81,6 @@ export function getDirectoryInfo(type) { } } } - return result } @@ -614,5 +615,22 @@ export function getPackUnitName(value) { return resultInfo } - +//获取优先级 +export function getPriorityName(value) { + console.log(344,value) + var resultInfo = ""; + if (priorityList.length == 0) { + priorityList = getDirectoryInfo("priority") + } + console.log(455,priorityList) + if (priorityList.length > 0) { + for (let item of priorityList) { + if (item.value == value) { + resultInfo = item.label + break; + } + } + } + return resultInfo +} locationAreaTypeList \ No newline at end of file diff --git a/src/common/style/new_style.css b/src/common/style/new_style.css index 92388b7c..cb624456 100644 --- a/src/common/style/new_style.css +++ b/src/common/style/new_style.css @@ -2144,6 +2144,12 @@ button::after { padding: 5px; } +.card_level { + color: #0689da; + padding: 5px; + font-size: 30rpx; +} + .card_supportCode { color: #DA8910; padding: 5px; diff --git a/src/mycomponents/balance/level.vue b/src/mycomponents/balance/level.vue new file mode 100644 index 00000000..57c2a22e --- /dev/null +++ b/src/mycomponents/balance/level.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/src/mycomponents/job/jobComMainDetailCard.vue b/src/mycomponents/job/jobComMainDetailCard.vue index b37077f0..3fe53d6a 100644 --- a/src/mycomponents/job/jobComMainDetailCard.vue +++ b/src/mycomponents/job/jobComMainDetailCard.vue @@ -9,8 +9,13 @@ - - + + + + + + + @@ -27,8 +32,8 @@ import location from '@/mycomponents/balance/location.vue' import toLocation from '@/mycomponents/balance/toLocation.vue' import batch from '@/mycomponents/balance/batch.vue' - import jobComMainCard from '@/mycomponents/job/jobComMainCard.vue' import itemCompareQty from '@/mycomponents/item/itemCompareQty.vue' + import level from '@/mycomponents/balance/level.vue' export default { components: { @@ -36,8 +41,8 @@ location, toLocation, batch, - jobComMainCard, itemCompareQty, + level }, data() { return {}; diff --git a/src/mycomponents/scan/winComScanBalanceLocation.vue b/src/mycomponents/scan/winComScanBalanceLocation.vue new file mode 100644 index 00000000..807fddf8 --- /dev/null +++ b/src/mycomponents/scan/winComScanBalanceLocation.vue @@ -0,0 +1,315 @@ + + + + + \ No newline at end of file diff --git a/src/mycomponents/scan/winScanPackLevel.vue b/src/mycomponents/scan/winScanPackLevel.vue new file mode 100644 index 00000000..dec3bf0b --- /dev/null +++ b/src/mycomponents/scan/winScanPackLevel.vue @@ -0,0 +1,159 @@ + + + + + \ No newline at end of file diff --git a/src/pages/count/job/countJob.vue b/src/pages/count/job/countJob.vue index 0deb5e36..4085bd11 100644 --- a/src/pages/count/job/countJob.vue +++ b/src/pages/count/job/countJob.vue @@ -157,11 +157,11 @@ value: this.status }) - // filters.push({ - // column: "countSplitType", - // action: "==", - // value: "locationCode" - // }) + filters.push({ + column: "countSplitType", + action: "==", + value: "locationCode" + }) filters.push({ column: "isOpenCount", @@ -312,11 +312,11 @@ value: code }) - // filters.push({ - // column: "countSplitType", - // action: "==", - // value: "locationCode" - // }) + filters.push({ + column: "countSplitType", + action: "==", + value: "locationCode" + }) filters.push({ column: "isOpenCount", @@ -371,11 +371,17 @@ value: '1,2' }) - // filters.push({ - // column: "countSplitType", - // action: "==", - // value: "locationCode" - // }) + filters.push({ + column: "countSplitType", + action: "==", + value: "locationCode" + }) + + filters.push({ + column: "isOpenCount", + action: "==", + value: "TRUE" + }) filters.push({ column: "countSplitCode", diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue index 6a018045..e575b476 100644 --- a/src/pages/fg/coms/comReceiptPopup.vue +++ b/src/pages/fg/coms/comReceiptPopup.vue @@ -171,7 +171,9 @@ workStationCode: "", planDate: '', showDateSelect:false, - planDateList:[] + planDateList:[], + fgLocationCode:"", + rawLocationCode:"" } }, props: { @@ -216,6 +218,8 @@ this.planDate="" this.showDateSelect =false this.planDateList=[] + this.fgLocationCode="" + this.rawLocationCode="" }, @@ -269,8 +273,9 @@ planQty: this.planQty, goodQty: this.goodQty, planNumber: this.planNumber, - workStationCode: this.workStationCode - + workStationCode: this.workStationCode, + fgLocationCode:this.fgLocationCode, + rawLocationCode:this.rawLocationCode }; this.closeRequestPopup(); this.$emit("confirm", item); @@ -289,6 +294,9 @@ this.productionLineName = data[0].label + "—" + data[1].label this.productionLineCode = data[0].value this.workStationCode = data[1].value + var parent =this.productLineList.filter(res=>res.value==this.productionLineCode) + var fgLocation =parent[0].children.filter(children=>children.value==this.workStationCode) + this.fgLocationCode= fgLocation[0].fgLocationCode; this.clearItemCode() this.clearPackUnit() @@ -360,8 +368,7 @@ uni.hideLoading() if (res.data && res.data.length > 0) { res.data.forEach(item => { - item.label = item.itemCode + "(" + item.planQty + this.getUomInfo(item.uom) + ")" + "(" + - dateFormatData(item.planDate) + ")" + item.label = item.itemCode + "(" + item.planQty + this.getUomInfo(item.uom) + ")" item.value = item }) this.itemCodeList = res.data @@ -385,6 +392,26 @@ //清除其他数据 this.clearPackUnit(); + uni.showLoading({ + title: "加载中", + mask: true + }) + getPackUnitByItemCode(this.itemCode).then(res => { + uni.hideLoading() + if (res.data && res.data.list.length > 0) { + res.data.list.forEach(item => { + item.value = item.packUnit + item.label = getPackUnitName(item.packUnit) + "(" + item.packQty + this + .getUomInfo(item.uom) + ")"; + }) + this.packUnitList = res.data.list + var defaultData =res.data.list.filter(item=>item.defaultPackageunit=="TRUE") + this.confirmSelectPackUnit(defaultData) + } + + }).catch(error => { + uni.hideLoading() + }) }, clearPackUnit(){ diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index 3433fa4a..aaae94eb 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -12,6 +12,12 @@ + + 完工库位 + {{dataContent.fgLocationCode}} + + + 计划数 {{dataContent.planQty}}{{dataContent.uom}} @@ -202,6 +208,7 @@ batch: result.batch, packUnit: result.packUnit, workStationCode: result.workStationCode, + fgLocationCode:result.fgLocationCode, subList: [] } }, diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 2d7d8d3f..ce10f123 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -212,7 +212,6 @@ }) }else{ if(rightItem.component=='inventorymove-HoldToScrap'){ - console.log(rightItem.component) } this.menusCount[rightItem.component.split('-')[0]].forEach((item)=>{ if(item.businessType ==rightItem.component.split('-')[1] ){ @@ -360,7 +359,7 @@ "inventory_status", "container_type", "pack_unit", "unplanned_receipt_reason", "unplanned_issue_reason", "scrap_reason", "inspect_failed_reason", "request_status", "inspect_type", "next_action", "sample_method", "transfer_mode", - "count_stage", "inspect_result", "area_type","count_scope_type" + "count_stage", "inspect_result", "area_type","count_scope_type","priority" ] } getDictionaryItem(params).then(res => { diff --git a/src/pages/issue/coms/comIssueRequestPopup.vue b/src/pages/issue/coms/comIssueRequestPopup.vue index 41628e0b..6c5bacd4 100644 --- a/src/pages/issue/coms/comIssueRequestPopup.vue +++ b/src/pages/issue/coms/comIssueRequestPopup.vue @@ -23,7 +23,20 @@ @confirm="confirmWareHouse"> - + + + + 优先级 + + + + + 位置: @@ -67,6 +80,7 @@ + @@ -136,7 +150,21 @@ maxlength: 10, stdPackInfo: undefined, wareHouseList: [], - showWareHouse: false + showWareHouse: false, + priorityList: [{ + value: 0, + text: "低" + }, + { + value: 1, + text: "中" + }, + { + value: 2, + text: "高" + }, + ], + priority:1,//优先级 } }, props: { @@ -207,6 +235,7 @@ this.itemCode = "请扫描物料信息"; this.rawLocationCode = "" this.positionInfo = "请选择位置" + this.priority = '' this.fromWarehouseCode = "请选择仓库代码" this.workshopCode = "" //车间 this.workShopName = "" @@ -241,6 +270,10 @@ }, confirm() { + if (this.priority === '') { + this.showErrorMessage("请输入优先级", "priority") + return + } if (this.positionInfo == "请选择位置") { this.showErrorMessage("请选择位置") return @@ -286,6 +319,7 @@ fgLocationCode: this.fgLocationCode, fromWarehouseCode: this.fromWarehouseCode, toWarehouseCode: this.fromWarehouseCode, + priority : this.priority, itemCode: this.itemCode, itemName: this.itemName, uom: this.uom, diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue index ea21b09e..16a826ee 100644 --- a/src/pages/issue/job/issueJob.vue +++ b/src/pages/issue/job/issueJob.vue @@ -132,7 +132,6 @@ methods: { getIssueJobByProductionline() { getIssueJobByProductionline().then(res => { - console.log('生产线', res) if (res.code == 0) { this.productionlineList = res.data.map(item => ({ value: item.value, diff --git a/src/pages/issue/request/issueRequestCreate.vue b/src/pages/issue/request/issueRequestCreate.vue index fe896681..63a82335 100644 --- a/src/pages/issue/request/issueRequestCreate.vue +++ b/src/pages/issue/request/issueRequestCreate.vue @@ -107,7 +107,6 @@ //确定需求信息 requestConfirm(action, item) { - if (this.detailSource.subList.length == 0) { this.detailSource = { workshopCode: item.workshopCode, @@ -119,6 +118,7 @@ toLocationCode: item.rawLocationCode, fromWarehouseCode:item.fromWarehouseCode, useOnTheWay:this.useOnTheWay, + priority : item.priority, totalQty: 0, subList: [] } @@ -153,7 +153,7 @@ qty: item.qty, uom: item.uom } - + this.detailSource.priority =item.priority this.detailSource.subList.push(subItem) } else { diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue index 50a47626..3bc1ebd2 100644 --- a/src/pages/issue/request/issueScanRequest.vue +++ b/src/pages/issue/request/issueScanRequest.vue @@ -4,7 +4,7 @@ - + @@ -37,7 +37,7 @@ import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue' import comScanIssuePack from '@/pages/issue/coms/comScanIssuePack.vue' import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue' - import winScanPack from '@/mycomponents/scan/winScanPack.vue' + import winScanPackLevel from '@/mycomponents/scan/winScanPackLevel.vue' export default { name: 'issueRequestSubmit', @@ -46,7 +46,7 @@ jobDetailPopup, comScanIssuePack, comIssueRequestCreator, - winScanPack + winScanPackLevel }, data() { return { @@ -93,11 +93,11 @@ }, 400) }, - getScanResult(data){ + getScanResult(result){ this.detailSource = { subList:[] } - var labelInfo = data.label; + var labelInfo = result.label; var data = { itemCode:labelInfo.itemCode, @@ -112,6 +112,7 @@ this.detailSource.workStationCode=labelInfo.workStationCode; this.detailSource.warehouseCode = labelInfo.warehouseCode; this.detailSource.workshopCode = labelInfo.workshopCode; + this.detailSource.priority =result.priorityCode this.submit(); }, diff --git a/src/pages/package/coms/comScanPackagePack.vue b/src/pages/package/coms/comScanPackagePack.vue index dee3d843..063c6061 100644 --- a/src/pages/package/coms/comScanPackagePack.vue +++ b/src/pages/package/coms/comScanPackagePack.vue @@ -1,97 +1,6 @@