From b8bdbac627b1947d266e5dfcc9898170b8cbf48b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com>
Date: Mon, 4 Nov 2024 15:16:04 +0800
Subject: [PATCH] =?UTF-8?q?page/stockUp=20=E6=96=87=E4=BB=B6=E8=BF=81?=
=?UTF-8?q?=E7=A7=BB=208/8-10/25?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/stockUp/coms/comScanStockUpPack.vue | 8 +-
.../stockUp/coms/comScanStockUpPackBatch.vue | 475 ++++++++++++++++++
.../stockUp/coms/comStockUpDetailCard.vue | 6 +-
.../coms/comStockUpDetailCardBatch.vue | 129 +++++
src/pages/stockUp/job/stockUpJob.vue | 18 +-
src/pages/stockUp/job/stockUpJobDetail.vue | 10 +-
.../stockUp/job/stockUpJobDetailBatch.vue | 408 +++++++++++++++
7 files changed, 1044 insertions(+), 10 deletions(-)
create mode 100644 src/pages/stockUp/coms/comScanStockUpPackBatch.vue
create mode 100644 src/pages/stockUp/coms/comStockUpDetailCardBatch.vue
create mode 100644 src/pages/stockUp/job/stockUpJobDetailBatch.vue
diff --git a/src/pages/stockUp/coms/comScanStockUpPack.vue b/src/pages/stockUp/coms/comScanStockUpPack.vue
index b2101114..6685e71b 100644
--- a/src/pages/stockUp/coms/comScanStockUpPack.vue
+++ b/src/pages/stockUp/coms/comScanStockUpPack.vue
@@ -136,8 +136,9 @@ const openScanPopup = (content, jobcontent) => {
jobContent.value = jobcontent
initData()
positionInfo.value = `${jobContent.value.workShopCode}-${jobContent.value.subList[0].productionLineCode}-${jobContent.value.subList[0].workStationCode}`
+ show.value = true
setTimeout((res) => {
- show.value = true
+ getfocus()
}, 500)
}
const closeScanPopup = () => {
@@ -340,15 +341,14 @@ const addRecord = (batch, label, balance, packageInfo) => {
batch.Records.push(record)
issueRecord.value.unshift(record)
calcBatchHandleQty(batch)
- getfocus()
}
const getfocus = () => {
- if (!comscan.value) {
+ if (comscan.value) {
comscan.value.getfocus()
}
}
const losefocus = () => {
- if (comscan.value != undefined) {
+ if (comscan.value) {
comscan.value.losefocus()
}
}
diff --git a/src/pages/stockUp/coms/comScanStockUpPackBatch.vue b/src/pages/stockUp/coms/comScanStockUpPackBatch.vue
new file mode 100644
index 00000000..ba60b6b6
--- /dev/null
+++ b/src/pages/stockUp/coms/comScanStockUpPackBatch.vue
@@ -0,0 +1,475 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/stockUp/coms/comStockUpDetailCard.vue b/src/pages/stockUp/coms/comStockUpDetailCard.vue
index eda116f5..09da804f 100644
--- a/src/pages/stockUp/coms/comStockUpDetailCard.vue
+++ b/src/pages/stockUp/coms/comStockUpDetailCard.vue
@@ -22,7 +22,7 @@
实际
- swipeClick(event, batch, record)" style="width: 100%">
+ swipeClick(event, batch, record)" style="width: 100%">
@@ -53,7 +53,7 @@ import balanceQtyEdit from '@/mycomponents/qty/balanceQtyEdit.vue'
import location from '@/mycomponents/balance/location.vue'
import detailInfoPopup from '@/pages/productionReceipt/coms/detailInfoPopup.vue'
-import { getDetailOption, getEditRemoveOption } from '@/common/array.js'
+import { getDetailOption, getEditRemoveOption,getRemoveOption } from '@/common/array.js'
const props = defineProps({
dataContent: {
@@ -75,6 +75,7 @@ const collapse = ref()
const comMessageRef = ref()
const dataContent = ref(props.dataContent)
const balanceQtyEditRef = ref()
+const removeOptions = ref([])
dataContent.value.Items.forEach((item) => {
item.Locations.forEach((cur) => {
cur.Batchs.forEach((ele) => {
@@ -87,6 +88,7 @@ dataContent.value.Items.forEach((item) => {
onMounted(() => {
detailOptions.value = getDetailOption()
scanOptions.value = getEditRemoveOption()
+ removeOptions.value = getRemoveOption()
})
const resizeCollapse = () => {
nextTick((r) => {
diff --git a/src/pages/stockUp/coms/comStockUpDetailCardBatch.vue b/src/pages/stockUp/coms/comStockUpDetailCardBatch.vue
new file mode 100644
index 00000000..a3da2c1f
--- /dev/null
+++ b/src/pages/stockUp/coms/comStockUpDetailCardBatch.vue
@@ -0,0 +1,129 @@
+
+
+
+
+ swipeClick(event,item,index)">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/stockUp/job/stockUpJob.vue b/src/pages/stockUp/job/stockUpJob.vue
index 6f281d77..146c6a26 100644
--- a/src/pages/stockUp/job/stockUpJob.vue
+++ b/src/pages/stockUp/job/stockUpJob.vue
@@ -23,7 +23,7 @@ import { getStockUpJobList, cancleTakeStockUpJob } from '@/api/request2.js'
import { goHome, updateTitle } from '@/common/basic.js'
import { getDetailOption, getDetailGiveupOption } from '@/common/array.js'
-
+import {getManagementPrecisions} from '@/common/balance.js';
import comEmptyView from '@/mycomponents/common/comEmptyView.vue'
import jobFilter from '@/mycomponents/job/jobFilter.vue'
import comStockUpJobCard from '@/pages/stockUp/coms/comStockUpJobCard.vue'
@@ -47,6 +47,8 @@ const title = ref('')
const comMessageRef = ref()
const jobInfoPopupRef = ref()
const jobListPopupRef = ref()
+const managementType = ref('')
+const managementList = ref([])
onShow(() => {
nextTick(() => {
getList('refresh')
@@ -142,7 +144,19 @@ const getList = (type) => {
})
}
const openJobDetail = (item) => {
- proxy.$tab.navigateTo(`./stockUpJobDetail?id=${item.masterId}&status=${item.status}`)
+ getManagementPrecisions([item.itemCode], item.fromLocationCode, ret => {
+ if (ret.success) {
+ managementList.value = ret.list;
+ managementType.value = managementList.value.some(cur => cur.ManagementPrecision == 'BY_BATCH') ?
+ 'BY_BATCH' : ''
+ this.managementType.value ='BY_BATCH'
+ if (managementType.value == 'BY_BATCH') {
+ proxy.$tab.navigateTo(`./stockUpJobDetailBatch?id=${item.masterId}&status=${item.status}&title=${title.value}`)
+ } else {
+ proxy.$tab.navigateTo(`./stockUpJobDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`)
+ }
+ }
+ })
}
const selectedItem = (item) => {
openJobDetail(item)
diff --git a/src/pages/stockUp/job/stockUpJobDetail.vue b/src/pages/stockUp/job/stockUpJobDetail.vue
index 5d6d654c..53d4da3b 100644
--- a/src/pages/stockUp/job/stockUpJobDetail.vue
+++ b/src/pages/stockUp/job/stockUpJobDetail.vue
@@ -13,7 +13,13 @@
-
+
+
@@ -223,7 +229,7 @@ const submitJob = () => {
.then((res) => {
uni.hideLoading()
if (res.data) {
- showCommitSuccessMessage(`提交成功
生成备货记录${res.data}`)
+ showCommitSuccessMessage(`提交成功\n生成备货记录${res.data}`)
} else {
showErrorMessage(`提交失败[${res.msg}]`)
}
diff --git a/src/pages/stockUp/job/stockUpJobDetailBatch.vue b/src/pages/stockUp/job/stockUpJobDetailBatch.vue
new file mode 100644
index 00000000..90373fa2
--- /dev/null
+++ b/src/pages/stockUp/job/stockUpJobDetailBatch.vue
@@ -0,0 +1,408 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file