| | |
| | | ref="form" |
| | | :model="editConfig.infomation" |
| | | :rules="rules" |
| | | label-position="left" |
| | | label-width="110px" |
| | | label-position="right" |
| | | label-width="120px" |
| | | size="mini" |
| | | > |
| | | <div class="basic-info"> |
| | | <!-- <FormBtnsView :showProduct="true" @productClick="productClick" /> --> |
| | | <div class="basic-info-view"> |
| | | <div class="purchase-view"> |
| | | <div class="left" style="margin-left: 20px"> |
| | | <div class="left"> |
| | | <el-form-item label="入库类型" prop="name"> |
| | | <el-input |
| | | v-model="editConfig.infomation.name" |
| | | placeholder="请填写" |
| | | :disabled="!showFooter" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="作业类型" prop="baseOperationType" :label-width="labelWidth"> |
| | | <el-form-item label="作业类型" prop="baseOperationType"> |
| | | <el-select |
| | | v-model="editConfig.infomation.baseOperationType" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option v-for="item in baseOperationTypeList" :key="item.id" :label="item.name" :value="item.id"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="序号前缀" prop="prefix" :label-width="labelWidth"> |
| | | <el-form-item label="序号前缀" prop="prefix"> |
| | | <el-input |
| | | v-model="editConfig.infomation.prefix" |
| | | placeholder="" |
| | | :disabled="!showFooter" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="仓库" prop="warehouseId" :label-width="labelWidth"> |
| | | <el-form-item label="仓库" prop="warehouseId"> |
| | | <el-select |
| | | v-model="editConfig.infomation.warehouseId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option v-for="item in warehouseList" :key="item.id" :label="item.name" :value="item.id"> |
| | |
| | | v-if="editConfig.infomation.baseOperationType" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option |
| | |
| | | v-model="editConfig.infomation.createBackorder" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option v-for="item in createBackorderList" :key="item.id" :label="item.name" :value="item.id"> |
| | |
| | | v-if="editConfig.infomation.baseOperationType !== 1" |
| | | label="保留方式" |
| | | prop="reservationMethod" |
| | | :label-width="labelWidth" |
| | | > |
| | | <el-radio-group |
| | | v-model="editConfig.infomation.reservationMethod" |
| | | @input="reserveMethodClick" |
| | | :disabled="!showFooter" |
| | | > |
| | | |
| | | <div style="margin-top: 8px"> |
| | | <el-radio |
| | | v-for="item in reservationMethodList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | > |
| | | :label="item.id" |
| | | >{{item.name}} |
| | | </el-radio> |
| | | </div> |
| | | </el-radio-group> |
| | |
| | | <div class="purchase-view"> |
| | | <div class="left"> |
| | | <!-- <div class="second-label">位置</div> --> |
| | | <el-form-item label="默认源位置" prop="defaultLocationSrcId" style="margin-left: 20px"> |
| | | <el-form-item label="默认源位置" prop="defaultLocationSrcId"> |
| | | <el-select |
| | | v-model="editConfig.infomation.defaultLocationSrcId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option v-for="item in positionlist" :key="item.id" :label="item.name" :value="item.id"> |
| | |
| | | </el-form-item> |
| | | </div> |
| | | <div class="right"> |
| | | <el-form-item label="默认目的位置" prop="defaultLocationDestId" style="margin-left: 20px"> |
| | | <el-form-item label="默认目的位置" prop="defaultLocationDestId"> |
| | | <el-select |
| | | v-model="editConfig.infomation.defaultLocationDestId" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | style="width: 85%" |
| | | style="width: 100%" |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option v-for="item in positionlist" :key="item.id" :label="item.name" :value="item.id"> |
| | |
| | | // 仓库 |
| | | warehouseId: data.warehouseId, |
| | | // 显示作业详情 |
| | | showOperations: data.showOperations, |
| | | showOperations: data.showOperations?data.showOperations:false, |
| | | earlyOperations: data.earlyOperations, |
| | | // 保留方式 |
| | | reservationMethod: data.reservationMethod, |
| | | reservationMethod: data.reservationMethod?data.reservationMethod:0, |
| | | // 默认原位置 |
| | | defaultLocationSrcId: data.defaultLocationSrcId, |
| | | // 默认目标位置 |
| | |
| | | this.$router.push({ path: "/productManage/productList", query: { name: "产品" } }) |
| | | }, |
| | | // 保留方式 |
| | | reserveMethodClick(val) { |
| | | if (val === "在预定日期之前") { |
| | | this.labelWidth = "140px" |
| | | } else { |
| | | this.labelWidth = "80px" |
| | | } |
| | | } |
| | | // reserveMethodClick(val) { |
| | | // if (val === "在预定日期之前") { |
| | | // this.labelWidth = "140px" |
| | | // } else { |
| | | // this.labelWidth = "80px" |
| | | // } |
| | | // } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | border-bottom: 1px solid #e9e9e9; |
| | | } |
| | | .basic-info { |
| | | height: calc(100% - 80px); |
| | | overflow: auto; |
| | | margin: 20px; |
| | | height:350px; |
| | | overflow-y: auto; |
| | | overflow-x:hidden; |
| | | width:calc(100% - 60px); |
| | | margin: 30px; |
| | | // border: 1px solid #dcdfe6; |
| | | // box-shadow: inset 0 0 2px #dee2e6; |
| | | // -moz-box-shadow: inset 0 0 2px #dee2e6; |