| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24" class="mb20"> |
| | | <el-form-item label="认领人:" prop="claimantId"> |
| | | <el-select class="input-add" v-model="checkOutState.checkOutForm.claimantId" placeholder="选择认领人"> |
| | | <el-form-item label="认领人:" prop="receiveUid"> |
| | | <el-select class="input-add" v-model="checkOutState.checkOutForm.receiveUid" placeholder="选择认领人"> |
| | | <el-option |
| | | v-for="item in checkOutState.userList" |
| | | :key="item.uid" |
| | |
| | | import {teamManageApi} from "/@/api/systemManage/basicDateManage/personShiftManage/teamManage"; |
| | | import {ElMessage} from "element-plus/es"; |
| | | import {goodsDetailApi} from "/@/api/facilityManagement/goodsDetailManage"; |
| | | import {useUserInfo} from "/@/stores/userInfo"; |
| | | |
| | | const checkOutState = reactive<checkOutStateType>({ |
| | | title: '', |
| | |
| | | materialName: '', |
| | | checkOutForm: { |
| | | id: null, |
| | | claimantId: null, |
| | | receiveUid: null, |
| | | ids: [], |
| | | }, |
| | | userList: [], |
| | |
| | | const openCheckOutDialog = (title: string, value: GoodsDetailDataType, ids:Array<number>, checkOutName: null | string) => { |
| | | checkOutState.title = title; |
| | | checkOutState.checkOutDialogVisible = true; |
| | | checkOutState.checkOutForm.claimantId = null; |
| | | getUserByDepartment(1 as number) |
| | | checkOutState.checkOutForm.receiveUid = null; |
| | | getUserByDepartment(useUserInfo().userInfos.depId as number) |
| | | if(title === '单独出库'){ |
| | | checkOutState.materialName = value.name as string |
| | | checkOutState.checkOutForm.id = value.id; |
| | | delete checkOutState.checkOutForm.ids; |
| | | }else{ |
| | | checkOutState.materialName = checkOutName as string |
| | | checkOutState.checkOutForm.ids = ids |
| | | delete checkOutState.checkOutForm.id; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | const submitCheckOutForm = async () => { |
| | | if(checkOutState.checkOutForm.claimantId === null){ |
| | | if(checkOutState.checkOutForm.receiveUid === null){ |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: '请选择认领人' |