| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | <el-form-item label="班组人员" prop="crewSize"> |
| | | <!-- <el-form-item label="班组人员" prop="crewSize"> |
| | | <el-input |
| | | v-model="dataForm.crewSize" |
| | | placeholder="班组人员" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="外部工序项目" prop="outsideOpItem"> |
| | | <el-select |
| | | v-model="dataForm.outsideOpItem" |
| | |
| | | laborRunFactor: 0, |
| | | laborSetupTime: 0, |
| | | runTimeCodeDb: '2', |
| | | crewSize: 1, |
| | | crewSize: null, |
| | | outsideOpItem:null |
| | | }, |
| | | operationTemplateList: [], |
| | |
| | | this.dataForm.laborRunFactor = 0 |
| | | this.dataForm.laborSetupTime = 0 |
| | | this.dataForm.runTimeCodeDb = '2' |
| | | this.dataForm.crewSize = 1 |
| | | this.dataForm.crewSize = null |
| | | this.fileList = [] |
| | | this.operationTemplateList = [] |
| | | this.stepList = [] |
| | |
| | | this.$refs.dataForm.validate((valid) => { |
| | | if (valid) { |
| | | // 校验【机器运转因素】、【机器设置时间】、【劳力运转因素】、【劳力设置时间】中至少有一个字段的值须大于0 |
| | | if ( |
| | | this.dataForm.machRunFactor == 0 && |
| | | this.dataForm.machSetupTime == 0 && |
| | | this.dataForm.laborRunFactor == 0 && |
| | | this.dataForm.laborSetupTime == 0 |
| | | ) { |
| | | this.$message.error( |
| | | '【机器运转因素】、【机器设置时间】、【劳力运转因素】、【劳力设置时间】中至少有一个字段的值须大于0' |
| | | ) |
| | | this.isSubmit = false |
| | | } else { |
| | | // if ( |
| | | // this.dataForm.machRunFactor == 0 && |
| | | // this.dataForm.machSetupTime == 0 && |
| | | // this.dataForm.laborRunFactor == 0 && |
| | | // this.dataForm.laborSetupTime == 0 |
| | | // ) { |
| | | // this.$message.error( |
| | | // '【机器运转因素】、【机器设置时间】、【劳力运转因素】、【劳力设置时间】中至少有一个字段的值须大于0' |
| | | // ) |
| | | // this.isSubmit = false |
| | | // } else { |
| | | // 【人工类别】为空时【班组人员】必须为空,否则必须大于0 |
| | | let remindInfo = '' |
| | | let remindFlag = false |
| | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | // } |
| | | } else { |
| | | this.isSubmit = false |
| | | } |