|
@@ -525,7 +525,6 @@
|
|
|
|
|
|
|
|
// 全部扫一扫
|
|
// 全部扫一扫
|
|
|
handlScanCode() {
|
|
handlScanCode() {
|
|
|
-
|
|
|
|
|
uni.scanCode({
|
|
uni.scanCode({
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
this.scanItAllData(res.result)
|
|
this.scanItAllData(res.result)
|
|
@@ -575,6 +574,22 @@
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
|
|
|
|
|
|
|
+ } else if (res.length >= 1 && res[0].rootCategoryLevelId == 7) { // 周转车
|
|
|
|
|
+ _arr = this.List
|
|
|
|
|
+ if(_arr.length == 1) {
|
|
|
|
|
+ _arr.forEach((e, index) => {
|
|
|
|
|
+ e.turnover = e.turnover.concat(res)
|
|
|
|
|
+ })
|
|
|
|
|
+ this.List = _arr
|
|
|
|
|
+
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
|
+ } else if(_arr.length > 1) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '多个工单通过下面单个扫一扫添加',
|
|
|
|
|
+ icon: 'none'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|