| | |
| | | </el-form-item> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> |
| | | <el-form-item label="任务号" prop="taskNo"> |
| | | <el-input v-model="ruleForm.taskNo" placeholder="请输入任务号" maxlength="20" show-word-limit clearable /> |
| | | <el-input v-model="ruleForm.taskNo" placeholder="任务号自动生成" maxlength="20" show-word-limit clearable readonly/> |
| | | |
| | | </el-form-item> |
| | | |
| | |
| | | <el-form-item label="托盘号" prop="palletNo"> |
| | | <el-input v-model="ruleForm.palletNo" placeholder="请输入托盘号" maxlength="20" show-word-limit clearable /> |
| | | |
| | | </el-form-item> |
| | | |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> |
| | | <el-form-item label="拣货方式" prop="unstackingMode"> |
| | | <el-select clearable v-model="ruleForm.unstackingMode" placeholder="请选择拣货方式"> |
| | | <el-option v-for="(item,index) in dl('UnstackingModeEnum')" :key="index" :value="Number(item.value)" :label="`${item.name} (${item.code}) [${item.value}]`"></el-option> |
| | | |
| | | </el-select> |
| | | |
| | | </el-form-item> |
| | | |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> |
| | | <el-form-item label="物料编码" prop="skuNo"> |
| | | <el-input v-model="ruleForm.skuNo" placeholder="请输入物料编码" maxlength="20" show-word-limit clearable /> |
| | | |
| | | </el-form-item> |
| | | |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> |
| | | <el-form-item label="物料名称" prop="skuName"> |
| | | <el-input v-model="ruleForm.skuName" placeholder="请输入物料名称" maxlength="50" show-word-limit clearable/> |
| | | |
| | | </el-form-item> |
| | | |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> |
| | | <el-form-item label="批次号" prop="lotNo"> |
| | | <el-input v-model="ruleForm.lotNo" placeholder="请输入批次号" maxlength="50" show-word-limit clearable /> |
| | | |
| | | </el-form-item> |
| | | |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> |
| | | <el-form-item label="拆垛箱数" prop="qty"> |
| | | <el-input-number v-model="ruleForm.qty" placeholder="请输入拆垛箱数" clearable /> |
| | | </el-form-item> |
| | | |
| | | </el-col> |
| | |
| | | ruleFormRef.value.validate(async (isValid: boolean, fields?: any) => { |
| | | if (isValid) { |
| | | let values = ruleForm.value; |
| | | //入库任务 |
| | | if(ruleForm.value.taskType==0){ |
| | | if(ruleForm.value.startLocate==undefined || ruleForm.value.startLocate.length!=3){ |
| | | ElMessage.error("入库任务的起始位置字符长度应是3位"); |
| | | return; |
| | | } |
| | | } |
| | | //出库任务 |
| | | if(ruleForm.value.taskType==1){ |
| | | if(ruleForm.value.endLocate==undefined || ruleForm.value.endLocate.length!=3){ |
| | | ElMessage.error("出库任务的结束位置字符长度应是3位"); |
| | | return; |
| | | } |
| | | } |
| | | if (ruleForm.value.id == undefined || ruleForm.value.id == null || ruleForm.value.id == "" || ruleForm.value.id == 0) { |
| | | await addWcsTask(values); |
| | | } else { |