Selaa lähdekoodia

fix(photography): 清空搜索商品货号字段避免数据残留

- 在重置操作中添加清空searchGoodsArtNo字段
- 在延时重新获取数据前清空searchGoodsArtNo字段
- 防止商品货号搜索条件在不同操作间产生数据污染
panqiuyao 1 päivä sitten
vanhempi
commit
d307a09e2a
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      frontend/src/views/Photography/mixin/usePhotography.ts

+ 2 - 0
frontend/src/views/Photography/mixin/usePhotography.ts

@@ -215,6 +215,7 @@ export default function usePhotography() {
       goods_art_no_tpl.value = ''
       reNosObj.value.goods_art_no = null;
       reNosObj.value.action = null;
+      searchGoodsArtNo.value = ''
 
       clientStore.ipc.on(icpList.socket.message + '_run_mcu', (event, result) => {
 
@@ -786,6 +787,7 @@ const onRemoteControl = async (type) => {
           getPhotoRecords()
           // 延迟两秒再获取一遍数据
           setTimeout(() => {
+            searchGoodsArtNo.value = ''
             getPhotoRecords()
           }, 3000)