rev:等级修改

This commit is contained in:
2023-12-12 08:59:39 +08:00
parent 32719c4dd2
commit 3318817a4a
4 changed files with 27 additions and 4 deletions

View File

@@ -189,7 +189,6 @@
clearable
class="filter-item"
placeholder=""
:disabled="mater_btn || scope.row.edit"
>
<el-option
v-for="item in dict.ST_IVT_LEVEL"
@@ -447,8 +446,8 @@ export default {
},
handleEdit(index, row) {
if (!row.edit) {
if (!row.material_id || !row.plan_qty || parseFloat(row.plan_qty) <= 0 || !row.pcsn) {
this.crud.notify('物料、数量、批次不可为空!', CRUD.NOTIFICATION_TYPE.INFO)
if (!row.material_id || !row.plan_qty || parseFloat(row.plan_qty) <= 0 || !row.pcsn || !row.ivt_level) {
this.crud.notify('物料、数量、批次、库存等级不可为空!', CRUD.NOTIFICATION_TYPE.INFO)
return false
}
}
@@ -479,7 +478,6 @@ export default {
if (same_mater) {
item.edit = false
item.quality_scode = '02'
item.ivt_level = '01'
item.is_active = '1'
item.plan_qty = item.need_qty
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)