| | |
| | | </div> |
| | | <div class="info-group"> |
| | | <div class="info-item"> |
| | | <span class="info-label">需求数量</span> |
| | | <span class="info-label">预计生产数量</span> |
| | | <span class="info-value">{{ transferCardRowData.planQuantity }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="检品数量" |
| | | prop="inspectedQuantity"> |
| | | <el-input-number v-model.number="reportForm.inspectedQuantity" |
| | | :min="0" |
| | | :step="1" |
| | | <el-input v-model.number="reportForm.inspectedQuantity" |
| | | type="number" |
| | | min="0" |
| | | step="1" |
| | | style="width: 300px" |
| | | controls-position="right" |
| | | placeholder="请输入检品数量"/> |
| | | placeholder="请输入检品数量" |
| | | @input="handleInspectedQuantity"/> |
| | | </el-form-item> |
| | | <el-form-item label="班组信息"> |
| | | <el-select v-model="reportForm.userId" |
| | |
| | | prop: "totalInvestment", |
| | | }, |
| | | { |
| | | label: "需求数量", |
| | | label: "预计生产数量", |
| | | prop: "planQuantity", |
| | | width: "140", |
| | | }, |
| | |
| | | } |
| | | reportForm.scrapQty = num; |
| | | }; |
| | | |
| | | const handleInspectedQuantity = value => { |
| | | if (value === "" || value === null || value === undefined) { |
| | | reportForm.inspectedQuantity = null; |
| | | return; |
| | | } |
| | | const num = Number(value); |
| | | if (isNaN(num)) { |
| | | return; |
| | | } |
| | | if (num < 0) { |
| | | reportForm.inspectedQuantity = null; |
| | | return; |
| | | } |
| | | if (!Number.isInteger(num)) { |
| | | reportForm.inspectedQuantity = Math.floor(num); |
| | | return; |
| | | } |
| | | reportForm.inspectedQuantity = num; |
| | | }; |
| | | const currentReportRowData = ref(null); |
| | | const page = reactive({ |
| | | current: 1, |
| | |
| | | return; |
| | | } |
| | | |
| | | if (quantity > reportForm.planQuantity) { |
| | | ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", { |
| | | confirmButtonText: "确定", |
| | | }); |
| | | return; |
| | | } |
| | | // if (quantity > reportForm.planQuantity) { |
| | | // ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", { |
| | | // confirmButtonText: "确定", |
| | | // }); |
| | | // return; |
| | | // } |
| | | |
| | | const submitData = { |
| | | ...reportForm, |