Commit a4a06109 by qinjianhui

fix: 胚衣入库与生产完成入库使用独立扫码历史缓存 key

parent 1d887218
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
pending-order-label="操作单号" pending-order-label="操作单号"
please-scan-tip="请扫码操作单号" please-scan-tip="请扫码操作单号"
search-input-audio-tip="请录入操作单号" search-input-audio-tip="请录入操作单号"
history-storage-key="historyFactoryNewOrderFastReceipt" :history-storage-key="fastHistoryStorageKey"
tracking-placeholder="扫描枪输入操作单号" tracking-placeholder="扫描枪输入操作单号"
:query-api="getOperationByNo" :query-api="getOperationByNo"
:complete-api="completeOperationById" :complete-api="completeOperationById"
...@@ -374,7 +374,7 @@ ...@@ -374,7 +374,7 @@
<!-- 快捷入库 --> <!-- 快捷入库 -->
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { nextTick, onMounted, ref } from 'vue' import { computed, nextTick, onMounted, ref } from 'vue'
import CardLayout from '../factoryOrderNew/component/CardLayout.vue' import CardLayout from '../factoryOrderNew/component/CardLayout.vue'
import platformJson from '../../../json/platform.json' import platformJson from '../../../json/platform.json'
import { useOrderDictionaries } from '../factoryOrderNew/hooks/useOrderDictionaries' import { useOrderDictionaries } from '../factoryOrderNew/hooks/useOrderDictionaries'
...@@ -534,6 +534,11 @@ const handleViewDetail = async (item: operateOrderListData) => { ...@@ -534,6 +534,11 @@ const handleViewDetail = async (item: operateOrderListData) => {
const getOperationByNo = (operationNo: string) => const getOperationByNo = (operationNo: string) =>
getOperationInfoByNoApi(operationNo) as Promise<{ data?: unknown }> getOperationInfoByNoApi(operationNo) as Promise<{ data?: unknown }>
const fastInboundType = ref(0) const fastInboundType = ref(0)
const fastHistoryStorageKey = computed(() =>
fastInboundType.value === 1
? 'historyCancelOrderProcessProductionCompleteInStock'
: 'historyCancelOrderProcessEmbryoInStock',
)
const completeOperationById = (_: number[], detail: Record<string, unknown>) => const completeOperationById = (_: number[], detail: Record<string, unknown>) =>
completeDeliveryByCancelOrderProcessApi({ completeDeliveryByCancelOrderProcessApi({
operationNo: detail.operationNo as string, operationNo: detail.operationNo as string,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment