| | |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="item in isSpecialIns" |
| | | v-for="item in isSpecialInss" |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | return { |
| | | innerVisible: false, |
| | | workCenterOptions: [], |
| | | isSpecialIns: [{ label: '是', value: true} ,{label: '否', value: false }], |
| | | isSpecialInss: [{ label: '是', value: true} ,{label: '否', value: false }], |
| | | dataForm: { |
| | | id: 0, |
| | | workCenter: null, |
| | | isSpecialIns: null, |
| | | machRunFactor: 0, |
| | | machSetupTime: 0, |
| | | laborClassNo: null, |
| | |
| | | }, |
| | | methods: { |
| | | saveSelectRow() { |
| | | this.$refs.operationDataForm.validate((valid) => { |
| | | /* this.$refs.operationDataForm.validate((valid) => { |
| | | if (valid) { |
| | | if ( |
| | | this.dataForm.machRunFactor == 0 && |
| | |
| | | } |
| | | if (remindFlag) { |
| | | this.$message.error(remindInfo) |
| | | } else { |
| | | } else { */ |
| | | moRouringOperation(this.dataForm).then((response) => { |
| | | const data = response.data |
| | | if (data.code === 0) { |
| | | this.currOrderOperation.workCenter = this.dataForm.workCenter |
| | | this.currOrderOperation.isSpecialIns = this.dataForm.isSpecialIns |
| | | this.currOrderOperation.machRunFactor = |
| | | this.dataForm.machRunFactor |
| | | this.currOrderOperation.machSetupTime = |
| | |
| | | this.$message.error('编辑失败') |
| | | } |
| | | }) |
| | | } |
| | | /* } |
| | | } |
| | | } |
| | | }) |
| | | }) */ |
| | | }, |
| | | // 获取IFS人工类别的数据字典 |
| | | getLaborClassNo() { |
| | |
| | | return this.getInspectionTypeOptionList() |
| | | } |
| | | }, |
| | | { |
| | | /* { |
| | | minWidth: '120', |
| | | prop: 'operationName', |
| | | label: '工序名称', |
| | |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | }, */ |
| | | { |
| | | minWidth: '120', |
| | | prop: 'state', |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工序" prop="operationName"> |
| | | <!-- <el-form-item label="工序" prop="operationName"> |
| | | <el-input v-model="dataForm.operationName" placeholder="请选择工序"> |
| | | <el-button |
| | | slot="append" |
| | |
| | | @click="openOperationDialog()" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="dataForm.remark" placeholder=""></el-input> |
| | | </el-form-item> |
| | |
| | | // const url = 'http://192.168.2.7:9999' |
| | | // const url = 'https://ztms-mes.chinaztt.cn/' |
| | | |
| | | const url = 'http://192.168.23.249:9999' |
| | | const url = 'http://localhost:9999' |
| | | |
| | | |
| | | const localUrl = 'http://localhost:8089' |