| | |
| | | </el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="unitPrice" |
| | | label="单价"> |
| | | <template #default="{ row, $index }"> |
| | | <el-form-item v-if="dataValue.isEdit" |
| | | :rules="[{ required: true, message: '请输入单价', trigger: ['blur','change'] }]" |
| | | style="margin: 0"> |
| | | <el-input-number v-model="row.unitPrice" |
| | | :min="0" |
| | | :step="1" |
| | | controls-position="right" |
| | | style="width: 100%" |
| | | :disabled="!dataValue.isEdit" /> |
| | | </el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" |
| | | fixed="right" |
| | | width="200"> |
| | |
| | | isValid = false; |
| | | return; |
| | | } |
| | | if (!item.unitPrice) { |
| | | ElMessage.error("请输入单价"); |
| | | isValid = false; |
| | | return; |
| | | } |
| | | if (isOrderPage.value && !item.demandedQuantity) { |
| | | ElMessage.error("请输入需求总量"); |
| | | isValid = false; |
| | |
| | | processId: "", |
| | | processName: "", |
| | | unitQuantity: 0, |
| | | unitPrice: 0, |
| | | demandedQuantity: 0, |
| | | unit: "", |
| | | children: [], |
| | |
| | | processId: "", |
| | | processName: "", |
| | | unitQuantity: 0, |
| | | unitPrice: 0, |
| | | demandedQuantity: 0, |
| | | unit: "", |
| | | children: [], |
| | |
| | | productModelId: undefined, |
| | | processId: "", |
| | | unitQuantity: 0, |
| | | unitPrice: 0, |
| | | demandedQuantity: 0, |
| | | children: [], |
| | | unit: "", |