fix(MmRecordInbound): 修复撤销按钮显示条件并允许修改数量字段
修复工作订单为空字符串时撤销按钮不显示的问题 移除数量字段的禁用状态,允许用户修改
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
|
||||
<template v-else>
|
||||
<el-button
|
||||
v-if="scope.row.workorderRaw == null"
|
||||
v-if="scope.row.workorderRaw == null || scope.row.workorderRaw == ''"
|
||||
type="info"
|
||||
size="small"
|
||||
icon="refresh-left"
|
||||
@@ -112,7 +112,7 @@
|
||||
>撤销</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="scope.row.workorderRaw == null"
|
||||
v-if="scope.row.workorderRaw == null || scope.row.workorderRaw == ''"
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="takeaway-box"
|
||||
@@ -332,11 +332,6 @@
|
||||
<el-input v-model="takeMaterialForm.workorder" :disabled="true" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="数量" prop="quantity">
|
||||
<el-input v-model="takeMaterialForm.quantity" :disabled="true" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="炉号" prop="stoveCode">
|
||||
<el-input v-model="takeMaterialForm.stoveCode" :disabled="true" />
|
||||
@@ -348,6 +343,11 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- 输入字段 -->
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="数量" prop="quantity">
|
||||
<el-input v-model="takeMaterialForm.quantity" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="成品工单号" prop="workorderRow">
|
||||
<el-input v-model="takeMaterialForm.workorderRow" placeholder="请输入成品工单号" />
|
||||
@@ -808,6 +808,7 @@ function submitTakeMaterialForm() {
|
||||
id: currentTakeMaterialRow.value.id,
|
||||
inboundNo: currentTakeMaterialRow.value.inboundNo,
|
||||
workorderRow: takeMaterialForm.workorderRow,
|
||||
quantity: takeMaterialForm.quantity,
|
||||
operator: takeMaterialForm.operator
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user