bug
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
<td>{{e.material_spec}}</td>
|
||||
<td>{{e.material_model}}</td>
|
||||
<td>{{e.quality_time_day}}</td>
|
||||
<td>{{e.execution_stand}}</td>
|
||||
<td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td>
|
||||
<td>{{e.bake_num}}</td>
|
||||
</tr>
|
||||
@@ -91,7 +92,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="toEmpty">清空</button>
|
||||
<button class="zd-col-18 button-primary" :class="{'button-info': JSON.stringify(deviceData) === '{}' || (!materialInfo && qty) || (materialInfo && !qty)}" :disabled="disabled" @tap="_deliveryBox">确认组箱</button>
|
||||
<button class="zd-col-18 button-primary" :class="{'button-info': JSON.stringify(deviceData) === '{}'}" :disabled="disabled" @tap="_deliveryBox">确认组箱</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -160,7 +161,7 @@
|
||||
},
|
||||
async _deliveryBox () {
|
||||
this.disabled = true
|
||||
if (JSON.stringify(this.deviceData) === '{}' || (!this.materialInfo && this.qty) || (this.materialInfo && !this.qty)) {
|
||||
if (JSON.stringify(this.deviceData) === '{}') {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user