| | |
| | | }, |
| | | data() { |
| | | return { |
| | | routingList: [], |
| | | routingList: {}, |
| | | routingOptions: [], |
| | | locationOptions: [], |
| | | workstationOption: [], |
| | |
| | | ], |
| | | workCenter: [ |
| | | { required: true, message: '工作中心不能为空', trigger: 'change' } |
| | | ], |
| | | workstations: [ |
| | | { required: true, message: '工作站不能为空', trigger: 'change' } |
| | | ], |
| | | plannedQuantity: [ |
| | | { required: true, message: '接收数量不能为空', trigger: 'blur' }, |
| | |
| | | const queryParamStation = Object.assign({ |
| | | workCenter: this.dataForm.workCenter |
| | | }) |
| | | |
| | | |
| | | getAllWorkstationList(queryParamStation).then((response) => { |
| | | const resData = response.data.data |
| | | if (resData && resData.length > 0) { |
| | |
| | | this.$refs.ganttIndex.init(this.dataForm.workCenter, 1) |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | // 表单提交 |
| | | dataFormSubmit() { |