| | |
| | | <!-- 基本信息 --> |
| | | <view class="form-section"> |
| | | <u-form-item label="待生产数量" |
| | | prop="remainingQuantity" |
| | | prop="planQuantity" |
| | | required> |
| | | <u-input v-model="form.remainingQuantity" |
| | | <u-input v-model="form.planQuantity" |
| | | placeholder="自动填充" |
| | | disabled /> |
| | | </u-form-item> |
| | |
| | | |
| | | // 表单数据 |
| | | let form = ref({ |
| | | remainingQuantity: 0, |
| | | planQuantity: 0, |
| | | quantity: 0, |
| | | userName: "", |
| | | workOrderId: "", |
| | |
| | | showToast("请输入本次生产数量"); |
| | | return; |
| | | } |
| | | if (form.value.quantity > form.value.remainingQuantity) { |
| | | if (form.value.quantity > form.value.planQuantity) { |
| | | submitting.value = false; |
| | | showToast("本次生产数量不能大于待生产数量"); |
| | | return; |
| | |
| | | const orderRow = JSON.parse(options.orderRow); |
| | | console.log(orderRow, "orderRow======########"); |
| | | |
| | | form.value.remainingQuantity = 1; |
| | | form.value.planQuantity = orderRow.planQuantity; |
| | | form.value.quantity = orderRow.quantity; |
| | | form.value.productProcessRouteItemId = orderRow.productProcessRouteItemId; |
| | | form.value.workOrderId = orderRow.id; |