| | |
| | | <el-input v-model="form.quantity" placeholder="请输入" clearable disabled/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | |
| | | <el-col :span="12"> |
| | | <el-form-item label="待排产数量:" prop="pendingQuantity"> |
| | | <el-input v-model="form.pendingQuantity" placeholder="请输入" clearable disabled/> |
| | |
| | | |
| | | <script setup> |
| | | import {ref} from "vue"; |
| | | import {getStaffJoinInfo, staffJoinAdd, staffJoinUpdate} from "@/api/personnelManagement/onboarding.js"; |
| | | import {userListNoPageByTenantId} from "@/api/system/user.js"; |
| | | import {productionDispatch} from "@/api/productionManagement/productionOrder.js"; |
| | | import useUserStore from "@/store/modules/user.js"; |
| | |
| | | schedulingDate: "", |
| | | pendingQuantity: "", |
| | | speculativeTradingName: "", // 绑定机器名称 |
| | | salesLedgerProductId: "", |
| | | }, |
| | | rules: { |
| | | schedulingNum: [{ required: true, message: "请输入", trigger: "blur" },], |
| | |
| | | userList.value = res.data; |
| | | }); |
| | | form.value = {...row} |
| | | // 绑定外层传入的产品ID到后端需要的 salesLedgerProductId 字段 |
| | | form.value.salesLedgerProductId = row.id; |
| | | // 确保不会把原始 id 当作排产记录主键传给后端 |
| | | delete form.value.id; |
| | | form.value.schedulingNum = 0 |
| | | form.value.schedulingUserId = userStore.id |
| | | form.value.schedulingDate = dayjs().format("YYYY-MM-DD"); |
| | |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | | </style> |