From 713180b742fc9c55a734887b8638a918e154a3fb Mon Sep 17 00:00:00 2001 From: wangweidong <850489345@qq.com> Date: Wed, 12 Nov 2025 17:32:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=20=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 + pages/procurement/components/calculator.vue | 4 +- pages/procurement/components/carditem.vue | 2 +- pages/procurement/components/carlist.vue | 427 ++++++++++++++++++ pages/procurement/components/details.vue | 415 +++++++++++++++++ .../components/inboundoutbound.vue | 268 +++++++++++ pages/procurement/material.vue | 93 +++- pages/procurement/materialcar.vue | 215 +++++++++ .../next-swipe-action/next-swipe-action.vue | 180 -------- static/index/procurement/bk.png | Bin 0 -> 681 bytes static/index/procurement/del1.png | Bin 0 -> 1369 bytes static/index/procurement/procure01.png | Bin 0 -> 1820 bytes 12 files changed, 1418 insertions(+), 193 deletions(-) create mode 100644 pages/procurement/components/carlist.vue create mode 100644 pages/procurement/components/details.vue create mode 100644 pages/procurement/components/inboundoutbound.vue create mode 100644 pages/procurement/materialcar.vue delete mode 100644 pages/procurement/next-swipe-action/next-swipe-action.vue create mode 100644 static/index/procurement/bk.png create mode 100644 static/index/procurement/del1.png create mode 100644 static/index/procurement/procure01.png diff --git a/pages.json b/pages.json index 8163748..97bb9b2 100644 --- a/pages.json +++ b/pages.json @@ -184,6 +184,13 @@ }, { "path" : "pages/procurement/material" + }, + { + "path" : "pages/procurement/materialcar", + "style" : + { + "navigationBarTitleText" : "" + } } // { diff --git a/pages/procurement/components/calculator.vue b/pages/procurement/components/calculator.vue index 1841c0d..ab7fe7a 100644 --- a/pages/procurement/components/calculator.vue +++ b/pages/procurement/components/calculator.vue @@ -108,7 +108,9 @@ n.forEach((item,i)=>{ gysarr.value.push({'name':item,'id':id[i]}) }) - } + }else{ + gysflag.value = false; + } }) const gysid = (e:number)=>{ gysidnum.value = e; diff --git a/pages/procurement/components/carditem.vue b/pages/procurement/components/carditem.vue index de97690..ff86bbe 100644 --- a/pages/procurement/components/carditem.vue +++ b/pages/procurement/components/carditem.vue @@ -103,7 +103,7 @@ emit('addcar', caigouobj.value,obj) } - const addcar = (v : any) => { + const addcar = (v : any,i:number) => { caigouobj.value = v; caigouobj.value.index = i; caigouobj.value.yj = false; diff --git a/pages/procurement/components/carlist.vue b/pages/procurement/components/carlist.vue new file mode 100644 index 0000000..60b2f02 --- /dev/null +++ b/pages/procurement/components/carlist.vue @@ -0,0 +1,427 @@ + + + + + \ No newline at end of file diff --git a/pages/procurement/components/details.vue b/pages/procurement/components/details.vue new file mode 100644 index 0000000..8a258de --- /dev/null +++ b/pages/procurement/components/details.vue @@ -0,0 +1,415 @@ + + + + + diff --git a/pages/procurement/components/inboundoutbound.vue b/pages/procurement/components/inboundoutbound.vue new file mode 100644 index 0000000..277a143 --- /dev/null +++ b/pages/procurement/components/inboundoutbound.vue @@ -0,0 +1,268 @@ + + + + + diff --git a/pages/procurement/material.vue b/pages/procurement/material.vue index 2589d2e..393b61a 100644 --- a/pages/procurement/material.vue +++ b/pages/procurement/material.vue @@ -13,6 +13,10 @@ 筛选 + + + 返回 + @@ -20,7 +24,7 @@ - + {{v.materialName}} 已添加 @@ -73,7 +77,7 @@ - + {{carnum>99?'99':carnum}} @@ -93,6 +97,12 @@ + + + + + + @@ -104,11 +114,14 @@ import classification from './components/classification.vue' import Inventory from './components/Inventory.vue' import carditem from './components/carditem.vue' + import detail from './components/details.vue' + import inboundoutbound from './components/inboundoutbound.vue' const qb = ref(false) const addflag = ref(false) const ification = ref(false) const Invenshow = ref(false) - + const detailsshow = ref(false) + const crkflag = ref(true) const InvoicingList = ref([]); const caigouobj = ref({}) @@ -291,6 +304,41 @@ },700) }) } + // 双击事件 + const forthmenuIndex = ref(0); + const lastTap = ref(0) + // 双击的最大间隔(ms),可根据体验调整 + const DOUBLE_TAP_DELAY = 300; + const setout = ref(null) + const clickaddcar = (v : any,i:number) => { + const now = Date.now() + forthmenuIndex.value = i + if (now - lastTap.value < DOUBLE_TAP_DELAY) { + // 双击成立 + clearTimeout(setout.value) + if(v.isAdd==1){ + return + }else{ + caigouobj.value = v; + caigouobj.value.index = i; + caigouobj.value.yj = true; + addcartory(caigouobj.value) + } + // 重置,避免多次触发 + lastTap.value = 0 + } else { + setout.value = setTimeout(()=>{ + caigouobj.value = v; + caigouobj.value.index = i; + caigouobj.value.yj = true; + detailsshow.value = true; + console.log('11111111') + },DOUBLE_TAP_DELAY) + // 记录本次时间,等待下次点击 + lastTap.value = now + } + } + + \ No newline at end of file diff --git a/pages/procurement/next-swipe-action/next-swipe-action.vue b/pages/procurement/next-swipe-action/next-swipe-action.vue deleted file mode 100644 index c09b8cc..0000000 --- a/pages/procurement/next-swipe-action/next-swipe-action.vue +++ /dev/null @@ -1,180 +0,0 @@ - - - - - \ No newline at end of file diff --git a/static/index/procurement/bk.png b/static/index/procurement/bk.png new file mode 100644 index 0000000000000000000000000000000000000000..e70d9f2c69e1af26241043340c7093efc28c4984 GIT binary patch literal 681 zcmV;a0#^NrP)Ev1i5XkPselnZ@iI^|C3qAmZ=Idf-nzMeaG?sXm5rN4c! z<-`Yr!84|5c7;NrE0z!1xM_Q;Baz5ym&=uIG#WRkdlqZS7C0OZ`|I_38qx{C-@IOL zH@TL!1jk~r7GNnTr-(xykEbn@$;@)CB};HT9zRs6R9+i~aRJJR+wFdl&1NUbwPgt| zm&-5d@-mbuoXq8N!$e2a6wG@~Lb!_Ofu{?F!XUY0+7t{l0U?B!aH?1={v$f74PetW zA3!kiBJQBmKSam1227_Bru80_ITq9#pg+lXL<$V_I)qj{1ALnA_84QW_>rcc@cU;nFYu`inL zrcNh&z(?vRDKIPdHxGQ~jt{t>d_14ezvn%_)pRFyI@kkxsI8>HGQtBHpwi({t`oeQ z0C7jO1}p?R|3J52$y@MKKCf#;$F%`01Ui2Q{5$zUW+1^ie2LsqZ3-3wz&7G9e1ygJ ziqGLZxnpVyWeC0MGj z9{SIj`T^eiIbtdh2>9flj<*C$aXOy>D#zp)@g|$WEg9FbEwBK9kIH){|G{GGC2Gkw zSSY1Zsh@w~4xig!xz_Qvz&fDyzukM_6#xJL|NjXagX#bP00v1!K~w_(9or{NFk*ot P00000NkvXXu0mjfdWJ6; literal 0 HcmV?d00001 diff --git a/static/index/procurement/del1.png b/static/index/procurement/del1.png new file mode 100644 index 0000000000000000000000000000000000000000..5445166951b59022b5527f4db962c1949a2937b0 GIT binary patch literal 1369 zcmeAS@N?(olHy`uVBq!ia0vp^8X(NU1|)m_?Z^dEk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+n9DOmB1$5BeXNr6bM+EIYV;~{3xK*A7;Nk-3KEmEQ%e+* zQqwc@Y?a>c-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!ovP&e7Yz(~Q|QZF?r z*}~Ys%*b3v!N|bKRNufz-_Tsw$iT|P(8}0C0Sc6W78a$XSp~VcL9GMwY?U%fN(!v> z^~=l4^~#O)@{7{-4J|D#L1q{k=>k>g7FXt#Bv$C=6)VF`a7isrF3Kz@$;{7F0GXJW zlwVq6s|0i`#22{*zP@mS^NOKi1q?O)io^naLp=li++2{?z^aQ&f>IIAz^b}9q_QAY zKPa_0zqBYB7$s@SFwMZ=!*3BtA<#8e{zaLA*185-*v7$lkM8XK4x>n0kTrs`T6r=%q&8YLMSCZ)p6!KUBY*~r=4&DF%w)z!$* z(9OWY$;{Bj#oWNi%)-gQ%*h0%*E6rUBrz{J6=ruP&~B(+W4wB;oQqNuOY)0C^7C_G z2_YaOza+mnBfmhw$W+hJNI@e!GcP5-yjT+yNf1A~q!wkCrKY$Q<>xAZL)j`5iwlVJ zJw$&BxuK^Ibd)|QsURgCm=G{Mf|&5U0OY`PQ)(VC3l#zL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