From 64ea8ebecaa4a22f6fa4e10243d7f7ff396ac2b4 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 10 Sep 2024 09:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E6=96=99=E7=94=B3=E8=AF=B7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BC=98=E5=85=88=E7=BA=A7=202024/7/29=2010:37:01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 10 +- src/common/directory.js | 21 +- src/common/style/new_style.css | 6 +- src/mycomponents/balance/level.vue | 27 ++ src/mycomponents/job/jobComMainDetailCard.vue | 2 + .../scan/winComScanBalanceLocation.vue | 272 ++++++++++++++++++ src/mycomponents/scan/winScanPackLevel.vue | 140 +++++++++ src/pages/count/job/countJob.vue | 28 +- src/pages/fg/coms/comReceiptPopup.vue | 35 ++- src/pages/fg/receiptByPlan.vue | 5 + src/pages/index/index.vue | 2 +- src/pages/issue/coms/comIssueRequestPopup.vue | 38 ++- .../issue/request/issueRequestCreate.vue | 3 +- src/pages/issue/request/issueScanRequest.vue | 10 +- src/pages/package/coms/comScanPackagePack.vue | 122 ++------ .../package/job/overPackageJobDetail.vue | 5 +- .../package/record/overPackageRecord.vue | 6 +- .../job/productionReceiptJob.vue | 8 +- 18 files changed, 620 insertions(+), 120 deletions(-) create mode 100644 src/mycomponents/balance/level.vue create mode 100644 src/mycomponents/scan/winComScanBalanceLocation.vue create mode 100644 src/mycomponents/scan/winScanPackLevel.vue diff --git a/src/api/request2.js b/src/api/request2.js index 411c89d3..04766268 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -837,10 +837,18 @@ export function putawayRecordSubmit(params) { export function getIssueJobList(params) { return http.post("/wms/issue-job-detail/senior",params) } - +/** + * 发料生产线查询 + */ export function getIssueJobByProductionline() { return http.get("/issue-job-mwmsain/getIssueJobByProductionline") } +/** + * 发料接收生产线查询 + */ +export function getProductionReceiptJobByProductionline() { + return http.get("/wms/productionreceipt-job-main/getProductionreceiptJobByProductionline") +} /** * 发料任务明细 * @param {*} 任务id diff --git a/src/common/directory.js b/src/common/directory.js index 583c4e42..0e59c7e2 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 = [] } //获取字典信息 @@ -608,4 +610,21 @@ 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 +} diff --git a/src/common/style/new_style.css b/src/common/style/new_style.css index a1104795..c184661d 100644 --- a/src/common/style/new_style.css +++ b/src/common/style/new_style.css @@ -2138,7 +2138,11 @@ button::after { font-size: 32rpx; 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..e5535c65 --- /dev/null +++ b/src/mycomponents/balance/level.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/src/mycomponents/job/jobComMainDetailCard.vue b/src/mycomponents/job/jobComMainDetailCard.vue index fbffa63c..de5f6ff4 100644 --- a/src/mycomponents/job/jobComMainDetailCard.vue +++ b/src/mycomponents/job/jobComMainDetailCard.vue @@ -7,6 +7,7 @@
+
@@ -25,6 +26,7 @@ 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' const props = defineProps({ dataContent: { diff --git a/src/mycomponents/scan/winComScanBalanceLocation.vue b/src/mycomponents/scan/winComScanBalanceLocation.vue new file mode 100644 index 00000000..24d849f0 --- /dev/null +++ b/src/mycomponents/scan/winComScanBalanceLocation.vue @@ -0,0 +1,272 @@ + + + + + diff --git a/src/mycomponents/scan/winScanPackLevel.vue b/src/mycomponents/scan/winScanPackLevel.vue new file mode 100644 index 00000000..b6978759 --- /dev/null +++ b/src/mycomponents/scan/winScanPackLevel.vue @@ -0,0 +1,140 @@ + + + + + \ No newline at end of file diff --git a/src/pages/count/job/countJob.vue b/src/pages/count/job/countJob.vue index 26001469..63b23b81 100644 --- a/src/pages/count/job/countJob.vue +++ b/src/pages/count/job/countJob.vue @@ -135,11 +135,18 @@ const getList = (type) => { action: '==', value: 'locationCode' }) - // filters.push({ - // column: 'accept_user_id', - // action: '==', - // value: store.id - // }) + + filters.push({ + column: 'isOpenCount', + action: '==', + value: 'TRUE' + }) + + filters.push({ + column: 'accept_user_id', + action: '==', + value: store.id + }) const params = { filters, pageNo: pageNo.value, @@ -271,6 +278,11 @@ const getDataListByType = (code) => { action: '==', value: 'locationCode' }) + filters.push({ + column: 'isOpenCount', + action: '==', + value: 'TRUE' + }) filters.push({ column: 'accept_user_id', action: '==', @@ -319,6 +331,12 @@ const getScanResult = (result) => { action: '==', value: 'locationCode' }) + + filters.push({ + column: 'isOpenCount', + action: '==', + value: 'TRUE' + }) filters.push({ column: 'countSplitCode', action: '==', diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue index 2995b235..3adae306 100644 --- a/src/pages/fg/coms/comReceiptPopup.vue +++ b/src/pages/fg/coms/comReceiptPopup.vue @@ -138,7 +138,9 @@ export default { workStationCode: '', planDate: '', showDateSelect: false, - planDateList: [] + planDateList: [], + fgLocationCode: '', + rawLocationCode: '' } }, props: { @@ -181,6 +183,8 @@ export default { this.planDate = '' this.showDateSelect = false this.planDateList = [] + this.fgLocationCode = '' + this.rawLocationCode = '' }, closeRequestPopup() { @@ -233,7 +237,9 @@ export default { 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) @@ -252,6 +258,9 @@ export default { this.productionLineName = `${data[0].label}—${data[1].label}` this.productionLineCode = data[0].value this.workStationCode = data[1].value + const parent = this.productLineList.filter((res) => res.value == this.productionLineCode) + const fgLocation = parent[0].children.filter((children) => children.value == this.workStationCode) + this.fgLocationCode = fgLocation[0].fgLocationCode this.clearItemCode() this.clearPackUnit() }, @@ -322,7 +331,7 @@ export default { 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 @@ -346,6 +355,26 @@ export default { // 清除其他数据 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 + const 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 44b61b26..48eac642 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -9,6 +9,10 @@ + + 完工库位 + {{ dataContent.fgLocationCode }} + 计划数 {{ dataContent.planQty }}{{ dataContent.uom }} @@ -152,6 +156,7 @@ const requestConfirm = (result) => { 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 8f9d17ef..14910dd5 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -324,7 +324,7 @@ const rightScroll = async (e) => { } const getDictory = () => { const params = { - types: ['job_status', 'location_type', 'item_status', 'item_type', 'uom', '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'] + types: ['job_status', 'location_type', 'item_status', 'item_type', 'uom', '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', 'priority'] } getDictionaryItem(params) .then((res) => { diff --git a/src/pages/issue/coms/comIssueRequestPopup.vue b/src/pages/issue/coms/comIssueRequestPopup.vue index 40ecb514..f6e994af 100644 --- a/src/pages/issue/coms/comIssueRequestPopup.vue +++ b/src/pages/issue/coms/comIssueRequestPopup.vue @@ -7,7 +7,7 @@ {{ title }} - + @@ -21,8 +21,21 @@ - + + 优先级 + + + + + + + + 优先级 + + + + 位置: @@ -118,6 +131,21 @@ const maxlength = ref(10) const stdPackInfo = ref(undefined) const wareHouseList = ref([]) const showWareHouse = ref(false) +const priorityList = ref([ + { + value: 0, + text: '低' + }, + { + value: 1, + text: '中' + }, + { + value: 2, + text: '高' + } +]) +const priority = ref(1) // 优先级 const isShow = ref(false) const comMessageRef = ref() const scanPopup = ref() @@ -178,6 +206,7 @@ const initData = () => { itemCode.value = '请扫描物料信息' rawLocationCode.value = '' positionInfo.value = '请选择位置' + priority.value = '' fromWarehouseCode.value = '请选择仓库代码' workshopCode.value = '' // 车间 workShopName.value = '' @@ -212,6 +241,10 @@ const itemCodeLoseFocus = () => { } const confirm = () => { + if (priority.value === '') { + showErrorMessage('请输入优先级', 'priority') + return + } if (positionInfo.value == '请选择位置') { showErrorMessage('请选择位置') return @@ -256,6 +289,7 @@ const callback = (action) => { fgLocationCode: fgLocationCode.value, fromWarehouseCode: fromWarehouseCode.value, toWarehouseCode: fromWarehouseCode.value, + priority: priority.value, itemCode: itemCode.value, itemName: itemName.value, uom: uom.value, diff --git a/src/pages/issue/request/issueRequestCreate.vue b/src/pages/issue/request/issueRequestCreate.vue index f1fb5fac..edf7a278 100644 --- a/src/pages/issue/request/issueRequestCreate.vue +++ b/src/pages/issue/request/issueRequestCreate.vue @@ -92,6 +92,7 @@ const requestConfirm = (action, item) => { toLocationCode: item.rawLocationCode, fromWarehouseCode: item.fromWarehouseCode, useOnTheWay: useOnTheWay.value, + priority: priority.value, totalQty: 0, subList: [] } @@ -126,7 +127,7 @@ const requestConfirm = (action, item) => { qty: item.qty, uom: item.uom } - + detailSource.value.priority = item.priority detailSource.value.subList.push(subItem) } else { // 有了更新数据 diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue index a1f847a3..d20f18cf 100644 --- a/src/pages/issue/request/issueScanRequest.vue +++ b/src/pages/issue/request/issueScanRequest.vue @@ -4,7 +4,7 @@ - + @@ -26,6 +26,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' const { proxy } = getCurrentInstance() const jobContent = ref({}) // 任务内容 @@ -70,13 +71,13 @@ const goScan = () => { } }, 400) } -const getScanResult = (data) => { +const getScanResult = (result) => { detailSource.value = { subList: [] } - const labelInfo = data.label + const labelInfo = result.label - var data = { + const data = { itemCode: labelInfo.itemCode, location: labelInfo.location, qty: labelInfo.qty, @@ -88,6 +89,7 @@ const getScanResult = (data) => { detailSource.value.workStationCode = labelInfo.workStationCode detailSource.value.warehouseCode = labelInfo.warehouseCode detailSource.value.workshopCode = labelInfo.workshopCode + detailSource.value.priority = result.priorityCode submit() } diff --git a/src/pages/package/coms/comScanPackagePack.vue b/src/pages/package/coms/comScanPackagePack.vue index 5e9bda74..f63aa8c4 100644 --- a/src/pages/package/coms/comScanPackagePack.vue +++ b/src/pages/package/coms/comScanPackagePack.vue @@ -1,77 +1,7 @@