Browse Source

发料任务-编辑修改

hella_online_20240829
yufei0306 6 months ago
parent
commit
7d6fa392bc
  1. 18
      src/mycomponents/qty/balanceQtyEdit.vue
  2. 2
      src/mycomponents/status/balanceStatus.vue

18
src/mycomponents/qty/balanceQtyEdit.vue

@ -14,11 +14,11 @@
<view class="uni-flex uni-column" style="background-color: white; height:60%;">
<view class="uni-flex uni-column ">
<view class="uni-flex uni-row space-between padding title ">
<text>标包个数 : </text>
<text>包装数量 : </text>
<view class="uni-flex uni-row u-col-center">
<uni-number-box @change="calcQty($event,stdCount)" :value="stdCount">
</uni-number-box>
<uom :uom="dataContent.uom"></uom>
<!-- <uom :uom="dataContent.uom"></uom -->
<!-- <uom :uom="dataContent.packUnit"></uom> -->
</view>
</view>
@ -94,9 +94,7 @@
maxlength: 10
}
},
watch: {
},
created() {
},
@ -119,6 +117,18 @@
default: false
}
},
watch:{
'allQty'(newVal){
if(newVal % Number(this.dataContent.packQty)>0){
this.stdCount = Math.floor(Number(newVal)/Number(this.dataContent.packQty))+1
}else{
this.stdCount = Math.floor(Number(newVal)/Number(this.dataContent.packQty))
}
console.log('allQty===',newVal)
}
},
methods: {
checkNum(e) {
let value = e.detail.value;

2
src/mycomponents/status/balanceStatus.vue

@ -1,6 +1,6 @@
<template>
<view class="uni-flex u-col-center" style="background-color: #fff;">
<status :status='status' style='font-size: 70rpx;'></status>
<!-- <status :status='status' style='font-size: 70rpx;'></status> -->
<text :class="statusStyle(status)" style='font-size: 38rpx;margin-right: 15rpx;'>
{{statusDesc(status) }}</text>
<!-- v-show="allowEdit" -->

Loading…
Cancel
Save