|
@@ -45,7 +45,7 @@
|
|
|
|
|
|
|
|
<view class="table">
|
|
<view class="table">
|
|
|
<u-list @scrolltolower="scrolltolower" class="z_list">
|
|
<u-list @scrolltolower="scrolltolower" class="z_list">
|
|
|
- <view class="tr row rx-sc" v-for="(it, idx) in item.extInfo.positionList" :key='idx' >
|
|
|
|
|
|
|
+ <view class="tr row rx-sc" v-for="(it, idx) in item.extInfo.positionList" :key='idx'>
|
|
|
<view class="item ww10">{{it.code}}</view>
|
|
<view class="item ww10">{{it.code}}</view>
|
|
|
<view class="item ww35" :class="{'color157': it.workOrderCode === wordItem.code}">
|
|
<view class="item ww35" :class="{'color157': it.workOrderCode === wordItem.code}">
|
|
|
{{ it.workOrderCode }}
|
|
{{ it.workOrderCode }}
|
|
@@ -56,7 +56,8 @@
|
|
|
|
|
|
|
|
<view class="item ww20 " :class="{'content_num' : pattern == 'job' }" v-if='!isDetails'>
|
|
<view class="item ww20 " :class="{'content_num' : pattern == 'job' }" v-if='!isDetails'>
|
|
|
<input class="uni-input" v-if='it.isFull == 0' @input="quantInt(index, idx, it)"
|
|
<input class="uni-input" v-if='it.isFull == 0' @input="quantInt(index, idx, it)"
|
|
|
- v-model="it.quantity" type="digit" :disabled="pattern != 'job'"></input>
|
|
|
|
|
|
|
+ v-model="it.quantity" type="digit"
|
|
|
|
|
+ :disabled="it.isOccupy || pattern != 'job'"></input>
|
|
|
<text v-else>{{it.quantity}}</text>
|
|
<text v-else>{{it.quantity}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -105,8 +106,11 @@
|
|
|
immediate: true,
|
|
immediate: true,
|
|
|
deep: true,
|
|
deep: true,
|
|
|
handler(newVal) {
|
|
handler(newVal) {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
this.newList = newVal
|
|
this.newList = newVal
|
|
|
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -114,7 +118,11 @@
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
recycleQuantity: '',
|
|
recycleQuantity: '',
|
|
|
- newList: []
|
|
|
|
|
|
|
+ newList: [],
|
|
|
|
|
+
|
|
|
|
|
+ totalCount: 0,
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -132,6 +140,22 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ this.totalCount = 0
|
|
|
|
|
+ this.newList.forEach(f => {
|
|
|
|
|
+ f.extInfo.positionList.forEach(o => {
|
|
|
|
|
+ if (o.isOccupy == 0 && o.quantity > 0) {
|
|
|
|
|
+ this.totalCount = Number(this.totalCount) + Number(o.quantity)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ title: `已经放${this.totalCount}`
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
handleScan(index) {
|
|
handleScan(index) {
|