修改index1
This commit is contained in:
@@ -87,9 +87,12 @@
|
|||||||
<div class="item_unit">g</div>
|
<div class="item_unit">g</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tip_wraper" :class="itemData[0].assign_qty === itemData[0].theory_qty ? 'tip_wraper_bg1' : 'tip_wraper_bg2'">
|
<!-- <div class="tip_wraper" :class="itemData[0].assign_qty === itemData[0].theory_qty ? 'tip_wraper_bg1' : 'tip_wraper_bg2'">
|
||||||
<div class="tip_txt">料箱{{ itemData[0].vehicle_code }}<br/>{{itemData[0].assign_qty === itemData[0].theory_qty ? '拣选成功!' : '称重错误!'}}</div>
|
<div class="tip_txt">料箱{{ itemData[0].vehicle_code }}<br/>{{itemData[0].assign_qty === itemData[0].theory_qty ? '拣选成功!' : '称重错误!'}}</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
<div class="tip_wraper" :class="isUsed ? 'tip_wraper_bg1' : 'tip_wraper_bg2'">
|
||||||
|
<div class="tip_txt">{{ isUsed ? '拣选已启用' : '拣选台已禁止'}}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -152,7 +155,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import THeader from '@components/header.vue'
|
import THeader from '@components/header.vue'
|
||||||
// import { queryPickingPoint } from '@js/mork2.js'
|
// import { queryPickingPoint, pickingInfo, updateMaterialInfo } from '@js/mork2.js'
|
||||||
import { queryPickingPoint, pickingInfo, updateMaterialInfo } from '@js/getData2.js'
|
import { queryPickingPoint, pickingInfo, updateMaterialInfo } from '@js/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -164,7 +167,8 @@ export default {
|
|||||||
intervalId: null,
|
intervalId: null,
|
||||||
options: [],
|
options: [],
|
||||||
value: '',
|
value: '',
|
||||||
itemData: []
|
itemData: [],
|
||||||
|
isUsed: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -196,12 +200,15 @@ export default {
|
|||||||
this.options = [...res]
|
this.options = [...res]
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
this.value = res[0].code
|
this.value = res[0].code
|
||||||
|
this.isUsed = res[0].is_used
|
||||||
this._pickingInfo()
|
this._pickingInfo()
|
||||||
this.timerFun(this._pickingInfo, this.interTime)()
|
this.timerFun(this._pickingInfo, this.interTime)()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
change (e) {
|
change (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
|
const item = this.options.find(item => item.code === e)
|
||||||
|
this.isUsed = item.is_used
|
||||||
if (this.intervalId !== null) {
|
if (this.intervalId !== null) {
|
||||||
clearTimeout(this.intervalId)
|
clearTimeout(this.intervalId)
|
||||||
this.intervalId = null
|
this.intervalId = null
|
||||||
|
|||||||
Reference in New Issue
Block a user