| | |
| | | 班制详情 |
| | | </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: [ |
| | |
| | | <!-- |
| | | * @Date: 2024-04-09 20:19:46 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-29 23:01:13 |
| | | * @LastEditTime: 2024-05-02 00:31:01 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/Shiftsystem.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-row> |
| | | </el-main> |
| | | </el-container> |
| | | <Dialog ref="dialog" :option="{ types, status, group }"></Dialog> |
| | | <Dialog ref="dialog" :option="{ types, status, group }" :detail="detail"></Dialog> |
| | | </el-container> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | |
| | | dayCharts() { |
| | | // if (!this?.info?.shiftDetailVOList?.length) return |
| | | // let yData = this.info.shiftDetailVOList.map(item => { |
| | | // return item.indexName |
| | | // }) |
| | | // let series = this.info.shiftDetailVOList.map(item => { |
| | | // let base = moment().format('YYYY-MM-DD') + ' 00:00:00' |
| | | // return [item.indexName, moment(base).add(item.shiftStartTime, 'm').unix(), moment(base).add(item.shiftEndTime, 'm').unix()] |
| | | // // return { |
| | | // // name: item.indexName, |
| | | // // type: 'bar', |
| | | // // data: [moment(base).add(item.shiftStartTime, 'm').format('YYYY-MM-DD HH:mm:ss').unix(), moment(base).add(item.shiftEndTime, 'm').format('YYYY-MM-DD HH:mm:ss').unix()], |
| | | // // label: { |
| | | // // show: true |
| | | // // } |
| | | // // } |
| | | // }) |
| | | // console.log(series) |
| | | |
| | | let { data = [], categories = [], startTime, end } = this.getData1() |
| | | console.log('>>>>>>', data) |
| | | return { |
| | |
| | | info: { |
| | | code: '' |
| | | }, |
| | | detail: { |
| | | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | init() { |
| | | this.$HTTP.get('/api/blade-system/param/detail?paramKey=system.shift.max').then(res => { |
| | | if (res.code === 200) { |
| | | this.detail = res.data |
| | | } |
| | | }) |
| | | }, |
| | | getData1() { |
| | | if (!this?.info?.shiftDetailVOList?.length) return { data: [], categories: [], startTime: 0 } |
| | | let categories = this.info.shiftDetailVOList.map(item => { |