Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pda-scan
Commits
b754af96
Commit
b754af96
authored
Oct 09, 2024
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化扫码枪扫码后立即发送请求的问题
parent
7ef89b44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
2013 additions
and
771 deletions
+2013
-771
manifest.json
manifest.json
+5
-5
package-lock.json
package-lock.json
+855
-428
pages.json
pages.json
+14
-0
abnormalRemove.vue
pages/abnormal/abnormalRemove.vue
+2
-2
confirComplete.vue
pages/confirComplete/confirComplete.vue
+2
-2
costCenter.vue
pages/costCenter/costCenter.vue
+2
-2
costCenterList.vue
pages/costCenter/costCenterList.vue
+3
-3
index.vue
pages/factoryTransfer/index.vue
+2
-2
transferList.vue
pages/factoryTransfer/transferList.vue
+2
-2
inventoryCounting.vue
pages/inventoryCounting/inventoryCounting.vue
+2
-2
outsourcedMaterial.vue
pages/outsourcedMaterial/outsourcedMaterial.vue
+2
-2
outsourcedMaterialItem.vue
pages/outsourcedMaterial/outsourcedMaterialItem.vue
+2
-2
outsourcedMaterialList.vue
pages/outsourcedMaterial/outsourcedMaterialList.vue
+2
-2
outsourcedReturn.vue
pages/outsourcedReturn/outsourcedReturn.vue
+2
-2
outsourcedReturnItem.vue
pages/outsourcedReturn/outsourcedReturnItem.vue
+2
-2
outsourcedReturnList.vue
pages/outsourcedReturn/outsourcedReturnList.vue
+2
-2
packing.vue
pages/packing/packing.vue
+2
-2
packingList.vue
pages/packing/packingList.vue
+2
-2
unpacking.vue
pages/packing/unpacking.vue
+2
-2
positionTansfer.vue
pages/positionTansfer/positionTansfer.vue
+2
-2
posting.vue
pages/posting/posting.vue
+2
-2
oddNumList.vue
pages/produceReturn/oddNumList.vue
+317
-258
oddmentsInfo.vue
pages/produceReturn/oddmentsInfo.vue
+453
-0
produceReturn.vue
pages/produceReturn/produceReturn.vue
+2
-2
produceReturnItem.vue
pages/produceReturn/produceReturnItem.vue
+2
-2
produceReturnList copy.vue
pages/produceReturn/produceReturnList copy.vue
+2
-2
produceReturnList.vue
pages/produceReturn/produceReturnList.vue
+2
-2
putawayInfo.vue
pages/produceReturn/putawayInfo.vue
+287
-0
productionIssuance.vue
pages/productionIssuance/productionIssuance.vue
+2
-2
productionIssuanceItem.vue
pages/productionIssuance/productionIssuanceItem.vue
+2
-2
productionIssuanceList copy.vue
pages/productionIssuance/productionIssuanceList copy.vue
+2
-2
productionIssuanceList.vue
pages/productionIssuance/productionIssuanceList.vue
+2
-2
purchaseRemove.vue
pages/purchase/purchaseRemove.vue
+2
-2
purchaseStorage.vue
pages/purchaseStorage/purchaseStorage.vue
+4
-2
recoilMaterial.vue
pages/recoil/recoilMaterial.vue
+2
-2
recoilMaterialList.vue
pages/recoil/recoilMaterialList.vue
+2
-2
salesOutbound.vue
pages/salesOutbound/salesOutbound.vue
+2
-2
salesOutboundList.vue
pages/salesOutbound/salesOutboundList.vue
+3
-3
salesReturns.vue
pages/salesReturns/salesReturns.vue
+2
-2
salesReturnsList.vue
pages/salesReturns/salesReturnsList.vue
+2
-2
index.vue
pages/sendOutGoodsOff/index.vue
+5
-5
workCenter.vue
pages/workCenter/workCenter.vue
+2
-2
workCenterList.vue
pages/workCenter/workCenterList.vue
+3
-3
No files found.
manifest.json
View file @
b754af96
{
"name"
:
"mes-pda"
,
"appid"
:
"__UNI__
E23397B
"
,
"appid"
:
"__UNI__
FB0FD5F
"
,
"description"
:
"MES-PDA"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
...
...
@@ -136,10 +136,10 @@
"target"
:
"http://192.168.3.109:8000"
,
"changeOrigin"
:
true
},
"/apiPda"
:
{
"target"
:
"http://192.168.3.91:8080"
,
"changeOrigin"
:
true
}
"/apiPda"
:
{
"target"
:
"http://192.168.3.91:8080"
,
"changeOrigin"
:
true
}
}
}
}
...
...
package-lock.json
View file @
b754af96
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pages.json
View file @
b754af96
...
...
@@ -173,6 +173,20 @@
"enablePullDownRefresh"
:
false
}
},
//
{
//
"path"
:
"pages/produceReturn/oddmentsInfo"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"生产退料"
,
//
"enablePullDownRefresh"
:
false
//
}
//
},
//
{
//
"path"
:
"pages/produceReturn/putawayInfo"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"生产退料"
,
//
"enablePullDownRefresh"
:
false
//
}
//
},
{
"path"
:
"pages/produceReturn/oddNumList"
,
"style"
:
{
...
...
pages/abnormal/abnormalRemove.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -135,7 +135,7 @@
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
if
(
e
)
{
// 是否有重复的PLBL
...
...
pages/confirComplete/confirComplete.vue
View file @
b754af96
...
...
@@ -33,7 +33,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -242,7 +242,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
e
&&
this
.
getPlnr
(
e
);
},
handleInputNlpla
(
e
)
{
...
...
pages/costCenter/costCenter.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -75,7 +75,7 @@ export default {
this
[
row
.
way
]();
},
goClick
()
{},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/costCenter/costCenterList.vue
View file @
b754af96
...
...
@@ -16,8 +16,8 @@
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
placeholder=
"请扫描产品包装条码/外箱码"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -194,7 +194,7 @@ export default {
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
if
(
this
.
scanPLs
.
includes
(
e
))
{
return
this
.
$u
.
toast
(
"请勿重复扫描!"
);
}
...
...
pages/factoryTransfer/index.vue
View file @
b754af96
...
...
@@ -4,7 +4,7 @@
<NavBar
title=
"工厂间调拨"
></NavBar>
<view
class=
"btn"
>
<uni-easyinput
prefixIcon=
"search"
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
></uni-easyinput>
placeholder=
"请扫描单号"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
<view
class=
"cardBox"
>
...
...
@@ -46,7 +46,7 @@
},
created
()
{},
methods
:
{
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/factoryTransfer/transferList.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
</view>
<view
class=
"btn"
>
<uni-easyinput
prefixIcon=
"search"
:disabled=
"isDisabled"
v-model
.
trim=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
></uni-easyinput>
placeholder=
"请扫描产品包装条码/外箱码"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
<view
class=
"left"
>
物料明细
</view>
...
...
@@ -138,7 +138,7 @@
* 删除PL,因为有拆分的PL情况, 要删除关联的的PL
*/
deleGonds
(
index
,
detailIndex
,
detail
)
{},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
if
(
!
e
)
return
if
(
this
.
catchPl
.
length
>
0
)
{
if
(
!
this
.
catchPl
.
includes
(
e
))
{
...
...
pages/inventoryCounting/inventoryCounting.vue
View file @
b754af96
...
...
@@ -3,7 +3,7 @@
<StickyNavBar>
<NavBar
title=
"库存盘点"
></NavBar>
<view
class=
"btn"
>
<uni-easyinput
prefixIcon=
"search"
class=
"topSearch"
v-model=
"nlpla"
focus
placeholder=
"请扫盘点凭证码"
@
input=
"handleInputNlpla
"
></uni-easyinput>
<uni-easyinput
prefixIcon=
"search"
class=
"topSearch"
v-model=
"nlpla"
focus
placeholder=
"请扫盘点凭证码"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
<waitInventoried
ref=
"waitInventoriedRef"
/>
...
...
@@ -51,7 +51,7 @@ export default {
console
.
log
(
'getBtnHandle'
,
row
);
this
[
row
.
way
]();
},
handle
InputNlpla
(
e
)
{
handle
Confirm
(
e
)
{
const
params
=
JSON
.
parse
(
e
)
this
.
$refs
.
waitInventoriedRef
.
getList
(
params
);
setTimeout
(()
=>
{
...
...
pages/outsourcedMaterial/outsourcedMaterial.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -95,7 +95,7 @@ export default {
scanning
()
{
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/outsourcedMaterial/outsourcedMaterialItem.vue
View file @
b754af96
...
...
@@ -16,7 +16,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -137,7 +137,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/outsourcedMaterial/outsourcedMaterialList.vue
View file @
b754af96
...
...
@@ -19,7 +19,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -245,7 +245,7 @@ export default {
this
.
current
=
index
;
},
handleInputNlpla
(
e
)
{},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
if
(
this
.
catchPLs
.
includes
(
e
))
{
return
this
.
$u
.
toast
(
"请勿重复扫描该条码!"
);
...
...
pages/outsourcedReturn/outsourcedReturn.vue
View file @
b754af96
...
...
@@ -11,7 +11,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -136,7 +136,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
// e&& e.length > 79 && this.getPlnr(e);
e
&&
this
.
getPlnr
(
e
);
...
...
pages/outsourcedReturn/outsourcedReturnItem.vue
View file @
b754af96
...
...
@@ -16,7 +16,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -137,7 +137,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/outsourcedReturn/outsourcedReturnList.vue
View file @
b754af96
...
...
@@ -16,7 +16,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -137,7 +137,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/packing/packing.vue
View file @
b754af96
...
...
@@ -44,7 +44,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
<checkbox-group
style=
"margin-top: 10rpx"
@
change=
"checkedChange"
>
<checkbox
value=
"r1"
:checked=
"checkedBox"
/>
是否审核
...
...
@@ -451,7 +451,7 @@ export default {
this
.
wxparams
=
""
;
},
1000
);
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
this
.
isDisabled
=
true
;
if
(
this
.
goodsList
.
some
((
item
)
=>
item
===
e
))
{
...
...
pages/packing/packingList.vue
View file @
b754af96
...
...
@@ -21,7 +21,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -170,7 +170,7 @@ export default {
handleInputNlpla
(
e
){
console
.
log
(
`output->e`
,
e
)
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
this
.
isDisabled
=
true
;
e
&&
this
.
goodsList
.
push
(
e
)
...
...
pages/packing/unpacking.vue
View file @
b754af96
...
...
@@ -2,7 +2,7 @@
<view
style=
"padding: 20rpx 0;"
>
<view
class=
"btn"
>
<uni-easyinput
prefixIcon=
"search"
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
></uni-easyinput>
placeholder=
"请扫描产品包装条码/外箱码"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"cardbox"
>
<view
class=
"cardContent"
v-for=
"(item, index) in goodsList"
:key=
"item.PLNR"
>
...
...
@@ -50,7 +50,7 @@
};
},
methods
:
{
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
this
.
isDisabled
=
true
;
if
(
this
.
goodsList
.
some
((
item
)
=>
item
===
e
))
{
...
...
pages/positionTansfer/positionTansfer.vue
View file @
b754af96
...
...
@@ -10,7 +10,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -162,7 +162,7 @@ export default {
handleInputNlpla
(
e
)
{
this
.
nlpla
=
e
;
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/posting/posting.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描交货单"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"btn"
>
...
...
@@ -112,7 +112,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
// e&& e.length > 79 && this.getPlnr(e);
e
&&
this
.
getPlnr
(
e
);
...
...
pages/produceReturn/oddNumList.vue
View file @
b754af96
This diff is collapsed.
Click to expand it.
pages/produceReturn/oddmentsInfo.vue
0 → 100644
View file @
b754af96
This diff is collapsed.
Click to expand it.
pages/produceReturn/produceReturn.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -96,7 +96,7 @@ export default {
scanning
()
{
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/produceReturn/produceReturnItem.vue
View file @
b754af96
...
...
@@ -16,7 +16,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -137,7 +137,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/produceReturn/produceReturnList copy.vue
View file @
b754af96
...
...
@@ -16,7 +16,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -137,7 +137,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/produceReturn/produceReturnList.vue
View file @
b754af96
...
...
@@ -24,7 +24,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -215,7 +215,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
e
&&
this
.
getPlnr
(
e
);
},
getPlnr
(
plnr
)
{
...
...
pages/produceReturn/putawayInfo.vue
0 → 100644
View file @
b754af96
<
template
>
<view
class=
"page"
>
<StickyNavBar>
<NavBar
title=
"采购入库扫描"
></NavBar>
<FactorySelect
v-model=
"warehouseCode"
@
change=
"warehouseChange"
/>
<view
class=
"btn"
>
<uni-easyinput
v-if=
"vuex_user_factory !== '1010'"
prefixIcon=
"search"
class=
"topSearch"
v-model=
"nlpla"
focus
placeholder=
"请扫描仓位"
@
change=
"handleInputNlpla"
></uni-easyinput>
<uni-easyinput
prefixIcon=
"search"
confirm-type=
"search"
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
confirm=
"handleConfirm"
></uni-easyinput>
</view>
<view
class=
"total"
>
<view
class=
"left"
>
入库明细
</view>
<view
class=
"right"
>
批次数:
<text
class=
"blue"
>
{{
chargaArr
.
length
}}
</text>
<text
class=
"line"
>
|
</text>
总数量:
<text
class=
"blue"
>
{{
totalNum
}}
</text>
</view>
</view>
</StickyNavBar>
<ContentLoadingMore
class=
"cardbox"
:list=
'chargaArr'
>
<view
class=
"cardContent"
v-for=
"(item, index) in chargaArr"
>
<listItem
:item=
"item"
:goodsList=
"goodsList"
:nlpla=
"nlpla"
@
deleGonds=
"deleGonds"
/>
</view>
</ContentLoadingMore>
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn>
</view>
</
template
>
<
script
>
import
listItem
from
"@/pages/purchaseStorage/listItem.vue"
import
StickyNavBar
from
'@/components/StickyNavBar/index.vue'
;
import
ContentLoadingMore
from
'@/components/ContentLoadingMore/index.vue'
;
import
BottomBtn
from
'@/components/BottomBtn/index.vue'
;
import
FactorySelect
from
'@/components/FactorySelect/FactorySelect.vue'
import
{
parseTime
}
from
"@/utils/ruoyi"
;
export
default
{
components
:
{
StickyNavBar
,
ContentLoadingMore
,
BottomBtn
,
listItem
,
FactorySelect
},
data
()
{
return
{
number
:
0
,
totalNum
:
0
,
show
:
true
,
nlpla
:
''
,
wxparams
:
''
,
warehouseCode
:
''
,
btnArr
:
[{
style
:
''
,
type
:
'warning'
,
text
:
'返回'
,
way
:
'goBack'
},
{
style
:
''
,
type
:
'primary'
,
text
:
'提交'
,
way
:
'goSubmit'
}
],
goodsList
:
[],
isFocus
:
false
,
isDisabled
:
false
,
chargaArr
:
[]
};
},
created
()
{
// this.getPlnr('100001240428000002|00100000000000014.000|10002442800002');
// this.getPlnr('100001240428000002|00100000000000019.500|10002442800001');
},
methods
:
{
warehouseChange
(
e
)
{
console
.
log
(
this
.
warehouseCode
,
'----'
);
},
deleGonds
(
detail
)
{
this
.
goodsList
.
forEach
((
ele
,
idx
)
=>
{
if
(
detail
.
PLNR
===
ele
.
PLNR
)
{
this
.
goodsList
.
splice
(
idx
,
1
);
}
});
this
.
totalNum
=
0
;
this
.
goodsList
.
forEach
((
ele
)
=>
{
this
.
totalNum
+=
ele
.
TOMNG
-
0
ele
.
cardNum
=
0
});
this
.
handleData
()
},
getBtnHandle
(
row
)
{
this
[
row
.
way
]();
},
goBack
()
{
uni
.
navigateBack
();
},
goSubmit
()
{
// 根据不同工厂,不同选择
if
(
this
.
goodsList
.
length
===
0
)
{
return
;
}
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
goodsList
))
data
.
forEach
(
ele
=>
{
ele
.
ERFMG
=
ele
.
TOMNG
ele
.
ERFME
=
ele
.
MEINS
// 添加仓库别
ele
.
UMLGO
=
this
.
warehouseCode
});
this
.
$u
.
api
.
sapApi
.
sapRrm
([{
BLDAT
:
parseTime
(
new
Date
(),
'{y}{m}{d}'
),
BUDAT
:
parseTime
(
new
Date
(),
'{y}{m}{d}'
),
ZENCODE
:
'A014'
,
TYPE
:
'CG'
,
ITEM
:
data
}],
300
)
.
then
((
res
)
=>
{
this
.
loading
=
false
;
if
(
!
Array
.
isArray
(
res
))
{
return
}
if
(
res
&&
res
.
every
((
item
)
=>
item
.
TYPE
===
'S'
))
{
this
.
goodsList
=
[];
this
.
chargaArr
=
[]
this
.
totalNum
=
0
;
this
.
nlpla
=
''
;
this
.
wxparams
=
''
;
this
.
$u
.
toast
(
'提交成功'
);
}
const
foundObject
=
res
.
find
(
item
=>
item
.
TYPE
===
'E'
);
if
(
foundObject
&&
foundObject
.
MESSAGE
)
{
this
.
$u
.
toast
(
foundObject
.
MESSAGE
);
}
});
},
handleConfirm
(
e
)
{
this
.
isFocus
=
false
;
// e&& e.length > 79 && this.getPlnr(e);
// console.log(e);
e
&&
this
.
getPlnr
(
e
);
},
handleInputNlpla
(
e
)
{
if
(
e
)
{
// this.nlpla = e;
// this.goodsList.forEach((ele) => {
// this.totalNum += ele.TOMNG-0;
// ele.NLPLA = ele.NLPLA || this.nlpla;
// });
}
},
getPlnr
(
plnr
)
{
this
.
isDisabled
=
true
;
if
(
!
this
.
nlpla
&&
this
.
vuex_user_factory
!==
'1010'
)
{
this
.
$u
.
toast
(
'请先扫描仓位'
);
setTimeout
(()
=>
{
this
.
wxparams
=
''
;
this
.
isFocus
=
true
;
this
.
isDisabled
=
false
;
},
1000
);
return
}
this
.
$u
.
api
.
sapApi
.
sapPlnr
({
plnr
,
zType
:
'001'
},
300
)
.
then
((
res
)
=>
{
if
(
res
&&
res
.
RESULT
.
TYPE
===
'S'
)
{
if
(
this
.
goodsList
.
some
((
item
)
=>
item
.
PLNR
===
plnr
))
{
setTimeout
(()
=>
{
this
.
isFocus
=
true
;
this
.
isDisabled
=
false
;
this
.
wxparams
=
''
;
},
1000
);
this
.
$u
.
toast
(
'已经存在当前条码'
);
return
}
const
arr
=
[{
...
res
.
DATA
[
0
],
NLPLA
:
this
.
nlpla
}]
this
.
goodsList
=
this
.
goodsList
.
concat
(
arr
);
this
.
totalNum
=
0
;
this
.
goodsList
.
forEach
((
ele
)
=>
{
this
.
totalNum
+=
ele
.
TOMNG
-
0
ele
.
cardNum
=
0
});
this
.
handleData
()
setTimeout
(()
=>
{
this
.
wxparams
=
''
;
this
.
isFocus
=
true
;
this
.
isDisabled
=
false
;
},
1000
);
}
else
{
setTimeout
(()
=>
{
this
.
isFocus
=
true
;
this
.
isDisabled
=
false
;
this
.
wxparams
=
''
;
},
1000
);
this
.
$u
.
toast
(
res
.
RESULT
.
MESSAGE
);
}
this
.
loading
=
false
;
});
},
handleData
()
{
this
.
chargaArr
=
this
.
goodsList
.
filter
((
item
,
index
,
self
)
=>
{
return
self
.
findIndex
(
t
=>
t
.
CHARG
===
item
.
CHARG
)
===
index
;
});
this
.
chargaArr
.
forEach
((
ele
,
idx
)
=>
{
this
.
goodsList
.
forEach
(
item
=>
{
if
(
ele
.
CHARG
===
item
.
CHARG
)
{
ele
.
cardNum
+=
(
item
.
TOMNG
-
0
)
this
.
$set
(
this
.
chargaArr
,
idx
,
{
...
ele
})
}
});
});
},
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.btn
{
padding
:
20rpx
;
background
:
#fff
;
.topSearch
{
margin-bottom
:
20rpx
;
}
}
.bottomBtn
{
position
:
sticky
;
padding
:
20rpx
;
display
:
flex
;
justify-content
:
space-between
;
background
:
#fff
;
bottom
:
0rpx
;
margin-top
:
20rpx
;
.u-btn
{
width
:
300rpx
;
}
}
.blue
{
color
:
#3f9dcc
;
}
.total
{
background
:
#fff
;
color
:
#000
;
padding
:
0rpx
40rpx
;
display
:
flex
;
justify-content
:
space-between
;
font-size
:
32rpx
;
.line
{
margin
:
0px
10rpx
;
}
}
.cardbox
{
min-height
:
calc
(
100vh
-
540rpx
);
padding
:
0rpx
20rpx
;
margin-top
:
20rpx
;
}
.cardContent
{
border-radius
:
8px
;
background
:
#fff
;
margin-bottom
:
20rpx
;
}
/
deep
/
.u-sticky
{
top
:
0
!
important
;
background
:
#fff
;
}
</
style
>
\ No newline at end of file
pages/productionIssuance/productionIssuance.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -91,7 +91,7 @@ export default {
// url: `/pages/productionIssuance/productionIssuanceList?order=${JSON.stringify(this.goodsList)}`
// });
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/productionIssuance/productionIssuanceItem.vue
View file @
b754af96
...
...
@@ -15,7 +15,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -157,7 +157,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/productionIssuance/productionIssuanceList copy.vue
View file @
b754af96
...
...
@@ -21,7 +21,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -230,7 +230,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
e
&&
this
.
getPlnr
(
e
);
},
getPlnr
(
plnr
)
{
...
...
pages/productionIssuance/productionIssuanceList.vue
View file @
b754af96
...
...
@@ -29,7 +29,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -243,7 +243,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
e
&&
this
.
getPlnr
(
e
);
},
getPlnr
(
plnr
)
{
...
...
pages/purchase/purchaseRemove.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -135,7 +135,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
if
(
e
)
{
// 是否有重复的PLBL
...
...
pages/purchaseStorage/purchaseStorage.vue
View file @
b754af96
...
...
@@ -7,11 +7,12 @@
<uni-easyinput
v-if=
"vuex_user_factory !== '1010'"
prefixIcon=
"search"
class=
"topSearch"
v-model=
"nlpla"
focus
placeholder=
"请扫描仓位"
@
change=
"handleInputNlpla"
></uni-easyinput>
<uni-easyinput
prefixIcon=
"search"
confirm-type=
"search"
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -145,9 +146,10 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
// e&& e.length > 79 && this.getPlnr(e);
// console.log(e);
e
&&
this
.
getPlnr
(
e
);
},
handleInputNlpla
(
e
)
{
...
...
pages/recoil/recoilMaterial.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -91,7 +91,7 @@ export default {
// url: `/pages/productionIssuance/productionIssuanceList?order=${JSON.stringify(this.goodsList)}`
// });
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/recoil/recoilMaterialList.vue
View file @
b754af96
...
...
@@ -45,7 +45,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -265,7 +265,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
e
&&
this
.
getPlnr
(
e
);
},
getPlnr
(
plnr
)
{
...
...
pages/salesOutbound/salesOutbound.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -72,7 +72,7 @@ export default {
url
:
`/pages/salesOutbound/salesOutboundList`
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/salesOutbound/salesOutboundList.vue
View file @
b754af96
...
...
@@ -17,8 +17,8 @@
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
placeholder=
"请扫描产品包装条码/外箱码"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -319,7 +319,7 @@ export default {
this
.
current
=
index
;
},
handleInputNlpla
(
e
)
{},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
if
(
!
e
)
return
;
this
.
isFocus
=
false
;
console
.
log
(
this
.
pls
,
"this.pls"
);
...
...
pages/salesReturns/salesReturns.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -96,7 +96,7 @@ export default {
scanning
()
{
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/salesReturns/salesReturnsList.vue
View file @
b754af96
...
...
@@ -11,7 +11,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -163,7 +163,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/sendOutGoodsOff/index.vue
View file @
b754af96
...
...
@@ -8,8 +8,8 @@
class=
"boxSelect"
prefixIcon=
"search"
v-model
.
trim=
"vbeln"
placeholder=
"请扫描交货单"
@
input=
"handleInputvbeln
"
placeholder=
"请扫描交货单"
@
confirm=
"handleConfirm
"
></uni-easyinput>
<uni-easyinput
prefixIcon=
"search"
...
...
@@ -17,7 +17,7 @@
v-model
.
trim=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInput
Plnr"
@
confirm=
"handleConfirm
Plnr"
></uni-easyinput>
</view>
<!--
<view
class=
"total"
v-show=
"goodsList && goodsList.length > 0"
>
...
...
@@ -93,7 +93,7 @@ export default {
},
},
methods
:
{
handle
Input
Plnr
(
e
)
{
handle
Confirm
Plnr
(
e
)
{
if
(
!
e
)
return
;
this
.
isFocus
=
false
;
console
.
log
(
this
.
pls
,
"this.pls"
);
...
...
@@ -180,7 +180,7 @@ export default {
}
});
},
handle
Inputvbeln
(
VBELN
)
{
handle
Confirm
(
VBELN
)
{
this
.
$u
.
api
.
sapApi
.
sapSchDn
({
VBELN
,
...
...
pages/workCenter/workCenter.vue
View file @
b754af96
...
...
@@ -9,7 +9,7 @@
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描单号"
@
input=
"handleInputPlnr
"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
</StickyNavBar>
...
...
@@ -80,7 +80,7 @@ export default {
this
[
row
.
way
]();
},
goClick
()
{},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
this
.
isFocus
=
false
;
e
&&
this
.
getPlnr
(
e
);
},
...
...
pages/workCenter/workCenterList.vue
View file @
b754af96
...
...
@@ -24,8 +24,8 @@
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr
"
placeholder=
"请扫描产品包装条码/外箱码"
@
confirm=
"handleConfirm
"
></uni-easyinput>
</view>
<view
class=
"total"
>
...
...
@@ -208,7 +208,7 @@ export default {
}
});
},
handle
InputPlnr
(
e
)
{
handle
Confirm
(
e
)
{
if
(
this
.
scanPLs
.
includes
(
e
))
{
return
this
.
$u
.
toast
(
"请勿重复扫描!"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment