| | |
| | | 班制详情 |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="班制编号" prop="userName"> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="工位编号" clearable></el-input> |
| | | <el-form-item label="班制编号" prop="code"> |
| | | <el-input style="width: 240px" v-model="form.code" placeholder="班制编号" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="班制名称" prop="userName"> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="工位名称" clearable></el-input> |
| | | <el-form-item label="班制名称" prop="name"> |
| | | <el-input style="width: 240px" v-model="form.name" placeholder="班制名称" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="班制颜色" prop="userName"> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="工位名称" clearable></el-input> |
| | | <el-form-item label="班制颜色" prop="colour"> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="班制颜色" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="班制时间" prop="userName"> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="工位名称" clearable></el-input> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="班制时间" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-row v-for="item in detail.paramValue" :key="item"> |
| | | <el-col :span="24"> |
| | | 班次1 |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="班次名称" prop="userName"> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="工位名称" clearable></el-input> |
| | | <el-form-item label="班次名称" prop="indexName"> |
| | | <el-input style="width: 240px" v-model="form.userName" placeholder="" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9"> |
| | | <el-form-item label="" prop="userName"> |
| | | <el-form-item label="" prop="userName"> |
| | | <el-time-picker style="width: 100%;" v-model="form.userName" format="HH:mm" |
| | | placeholder="Arbitrary time" /> |
| | | </el-form-item> |
| | |
| | | props: { |
| | | option: { |
| | | type: Object |
| | | }, |
| | | detail: { |
| | | type: Object |
| | | } |
| | | }, |
| | | watch: { |
| | | detail() { |
| | | let len = this?.detail?.paramValue - 0 || 1 |
| | | let shiftDetailDTOList = [] |
| | | for (let i = 0; i < len; i++) { |
| | | shiftDetailDTOList.push({ |
| | | shiftStartTime: 0, |
| | | shiftEndTime: 0, |
| | | shiftIndex: i + 1, |
| | | indexName: '', |
| | | restNumber: i + 1, |
| | | shiftRestTimeDTOList: [ |
| | | { |
| | | restStartTime: 0, |
| | | restEndTime: 0, |
| | | restIndex: 1, |
| | | }, |
| | | { |
| | | restStartTime: 0, |
| | | restEndTime: 0, |
| | | restIndex: 2, |
| | | }, |
| | | { |
| | | restStartTime: 0, |
| | | restEndTime: 0, |
| | | restIndex: 3, |
| | | }, |
| | | { |
| | | restStartTime: 0, |
| | | restEndTime: 0, |
| | | restIndex: 4, |
| | | } |
| | | ] |
| | | }) |
| | | } |
| | | return this.shiftDetailDTOList = shiftDetailDTOList |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | work_type: this.work_type, |
| | | machining_type: this.machining_type |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | dept: "", |
| | | group: [] |
| | | }, |
| | | shiftDetailDTOList: [], |
| | | //验证规则 |
| | | rules: { |
| | | avatar: [ |