diff --git a/src/api/request2.js b/src/api/request2.js index 19d43b93..e96d1c4c 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -1431,7 +1431,7 @@ export function productDismantleRecordSubmit(params) { * */ export function productDismantleJobClose(params) { - return http.put("/wms/purchasereceipt-job-main/refusal?id="+params) + return http.post("/wms/purchasereceipt-job-main/refusal",params) } /** * 制品发货 任务 diff --git a/src/common/balance.js b/src/common/balance.js index 9565bca8..532d86cf 100644 --- a/src/common/balance.js +++ b/src/common/balance.js @@ -282,11 +282,7 @@ export function byPacking(label, locationCode, fromInventoryStatuses, callback) value: locationCode }) if (fromInventoryStatuses) { - let status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," - }) - + var status = fromInventoryStatuses.join(','); filters.push({ column: "inventoryStatus", action: "in", @@ -350,11 +346,12 @@ export function byBatch(label, locationCode, fromInventoryStatuses, callback) { }) if (fromInventoryStatuses) { - let status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," - }) - + var status = fromInventoryStatuses.join(','); + filters.push({ + column: "inventoryStatus", + action: "in", + value: status + }) filters.push({ column: "inventoryStatus", action: "in", @@ -427,11 +424,12 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback) }) if (fromInventoryStatuses) { - var status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," - }) - + var status = fromInventoryStatuses.join(','); + filters.push({ + column: "inventoryStatus", + action: "in", + value: status + }) filters.push({ column: "inventoryStatus", action: "in", @@ -486,10 +484,12 @@ export function byUniqueId(label, locationCode, fromInventoryStatuses, callback) }) if (fromInventoryStatuses) { - var status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," - }) + var status = fromInventoryStatuses.join(','); + filters.push({ + column: "inventoryStatus", + action: "in", + value: status + }) filters.push({ column: "inventoryStatus", diff --git a/src/mycomponents/balance/balance.vue b/src/mycomponents/balance/balance.vue index a551224b..e3449f02 100644 --- a/src/mycomponents/balance/balance.vue +++ b/src/mycomponents/balance/balance.vue @@ -8,14 +8,19 @@ - - - - + + - - + + + + + + @@ -31,6 +36,7 @@ import batch from '@/mycomponents/balance/batch.vue' import qty from '@/mycomponents/qty/qty.vue' import compareQty from '@/mycomponents/qty/compareQty.vue' import config from '@/static/config.js' +import moveStatus from '@/mycomponents/balance/moveStatus.vue' const props = defineProps({ dataContent: { diff --git a/src/mycomponents/balance/balanceSelect.vue b/src/mycomponents/balance/balanceSelect.vue index 982c7ac2..a238f8f8 100644 --- a/src/mycomponents/balance/balanceSelect.vue +++ b/src/mycomponents/balance/balanceSelect.vue @@ -21,7 +21,11 @@ import balance from '@/mycomponents/balance/balance.vue' const balanceItems = ref([]) const openPopup = (items) => { - balanceItems.value = items; + if(Array.isArray(items)){ + balanceItems.value= items; + }else{ + balanceItems.value = [items]; + } show.value = true } diff --git a/src/mycomponents/common/comMessage.vue b/src/mycomponents/common/comMessage.vue index 84781b2c..99326381 100644 --- a/src/mycomponents/common/comMessage.vue +++ b/src/mycomponents/common/comMessage.vue @@ -57,7 +57,18 @@ const isDisabled = ref(true) // 为 true 时,表示用户可以点击,反之 const seconds = ref(0) const success = ref(() => {}) const version = ref('') -onMounted(() => { +// onMounted(() => { +// const systemInfo = uni.getSystemInfoSync() +// // #ifdef H5 +// version.value = systemInfo.appVersion +// console.log(systemInfo.appVersion, '版本号') +// // #endif + +// // #ifdef APP +// version.value = systemInfo.appWgtVersion +// // #endif +// }) +const getVersionCode = () => { const systemInfo = uni.getSystemInfoSync() // #ifdef H5 version.value = systemInfo.appVersion @@ -67,8 +78,9 @@ onMounted(() => { // #ifdef APP version.value = systemInfo.appWgtVersion // #endif -}) +} const open = () => { + getVersionCode() show.value = true isDisabled.value = true } diff --git a/src/pages/count/job/countJob.vue b/src/pages/count/job/countJob.vue index 5551cce8..c1ff7870 100644 --- a/src/pages/count/job/countJob.vue +++ b/src/pages/count/job/countJob.vue @@ -118,11 +118,11 @@ const getList = (type) => { action: 'in', value: status.value }) - filters.push({ - column: 'accept_user_id', - action: '==', - value: store.id - }) + // filters.push({ + // column: 'accept_user_id', + // action: '==', + // value: store.id + // }) const params = { filters, pageNo: pageNo.value, @@ -157,7 +157,7 @@ const getList = (type) => { }) } const openJobDetail = (item) => { - proxy.$tab.navigateTo(`./countDetail?id=${item.masterId}&status=${item.status}`) + proxy.$tab.navigateTo(`./countDetail?id=${item.id}&status=${item.status}`) } const selectedItem = (item) => { openJobDetail(item) diff --git a/src/pages/count/record/countRecord.vue b/src/pages/count/record/countRecord.vue index 04d761cd..5d280a1c 100644 --- a/src/pages/count/record/countRecord.vue +++ b/src/pages/count/record/countRecord.vue @@ -114,9 +114,8 @@ const calcScanCount = (closeScan) => { const calcHandleQty = () => { for (const item of detailSource.value) { - item.handleQty = new Decimal(0).toNumber() - item.qty = new Decimal(0).toNumber() - console.log(2323, item.handleQty) + item.handleQty = 0 + item.qty = 0 for (const detail of item.subList) { if (detail != undefined) { if (detail.scaned) { diff --git a/src/pages/deliver/coms/comScanDeliverPack.vue b/src/pages/deliver/coms/comScanDeliverPack.vue index 9f0f5529..83b7e360 100644 --- a/src/pages/deliver/coms/comScanDeliverPack.vue +++ b/src/pages/deliver/coms/comScanDeliverPack.vue @@ -288,11 +288,17 @@ const afterGetBalance = (label, balance, packageInfo) => { } const createBatchInfo = (data, balance, packageInfo) => { const batch = { - batch: data.lot, + batch: data.lot || data.batch, qty: 0, uom: data.uom, handleQty: Number(data.qty), - Records: [] + Records: [], + detail: { + handleQty: Number(data.qty), + packingNumber: data.packingNumber, + qty: 0, + uom: data.uom + } } const record = creatRecord(data, balance, packageInfo) batch.Records.push(record) diff --git a/src/pages/deliver/job/deliverJob.vue b/src/pages/deliver/job/deliverJob.vue index 4f0647b9..7c80bc25 100644 --- a/src/pages/deliver/job/deliverJob.vue +++ b/src/pages/deliver/job/deliverJob.vue @@ -111,11 +111,11 @@ const getList = (type) => { action: 'in', value: status.value }) - filters.push({ - column: 'accept_user_id', - action: '==', - value: store.id - }) + // filters.push({ + // column: 'accept_user_id', + // action: '==', + // value: store.id + // }) if (businessType.value && businessType.value.length > 0) { // 成品发货任务:businessType=Deliver 自制备件发货任务:businessType=ZZBJDeliver filters.push({ diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index 80c9420f..d55140d1 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -11,6 +11,11 @@ + + + + +