| | |
| | | //创建路由 |
| | | const createRouter = () => { |
| | | return new VueRouter({ |
| | | mode: 'history', |
| | | // mode: 'history', |
| | | scrollBehavior (to, from, savedPosition) { |
| | | if (savedPosition) { |
| | | return savedPosition |
| | |
| | | <el-table-column |
| | | align="center" |
| | | type="selection" |
| | | :reserve-selection="options.reserveSelection" |
| | | v-if="options.multiSelect && !isEdit" |
| | | style="width: 55px;" |
| | | :selectable="selectHandle" |
| | |
| | | tableCellMerge: false, |
| | | cancelRunCreated: false, // 是否执行created()内容 |
| | | isGenerateId: false, |
| | | isGenerateField: 'id' |
| | | isGenerateField: 'id', |
| | | reserveSelection: false, |
| | | } |
| | | }, |
| | | // table自适应高度底部高度 |
| | |
| | | customerOrderNo: [ |
| | | { required: true, message: '客户订单号不能为空', trigger: 'blur' } |
| | | ], |
| | | customerNo: [ |
| | | { required: true, message: '客户编号不能为空', trigger: 'blur' } |
| | | ], |
| | | customerName: [ |
| | | { required: true, message: '客户名称不能为空', trigger: 'blur' } |
| | | ], |
| | |
| | | isSearch: true, // 高级查询按钮 |
| | | defaultOrderBy: { column: 'placeOrderDate', direction: 'desc' }, |
| | | cancelRunCreated: true, |
| | | reserveSelection: true,//是否保留之前选择的数据 |
| | | }, |
| | | table: { |
| | | total: 0, |
| | |
| | | if(ele.name.indexOf(opName)>-1){ |
| | | workId = ele.id |
| | | } |
| | | }) |
| | | return workId |
| | | }) |
| | | return workId |
| | | }, |
| | | getManufactureAttrs(type) { |
| | | remote(type).then((response) => { |
| | |
| | | const resData = response.data |
| | | if (resData.code === 0) { |
| | | const autoTaskList = resData.data |
| | | console.log("autoTaskList-----",autoTaskList); |
| | | autoTaskList.forEach((item) => { |
| | | this.operationData.push({ |
| | | operationName: item.operationName, |
| | | workCenter: item.workCenter, |
| | | workstationId: item.workstationId ? item.workstationId : this.initWorkStation(item.operationName,item.workstations), |
| | | workstationId: item.workstationId ? item.workstationId : this.initWorkStation(item.operationName,item.workstations||[]), |
| | | locationId: item.locationId, |
| | | partNo: item.partNo, |
| | | partName: item.partName, |
| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item prop="name" label="文件名称"> |
| | | <el-tooltip class="item" effect="dark" :content="dataForm.name" > |
| | | <el-input |
| | | v-model="dataForm.name" |
| | | placeholder="文件名称" |
| | | ></el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | width="50" |
| | | /> |
| | | <el-table-column label="参数编号" prop="code" align="center" /> |
| | | <el-table-column label="参数项" prop="parameterItem" align="center" /> |
| | | <el-table-column label="参数项" prop="parameterItem" align="center"/> |
| | | <el-table-column |
| | | label="要求值" |
| | | prop="referenceValue" |
| | |
| | | width="120px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tooltip class="item" effect="dark" :content="scope.row.referenceValue" > |
| | | <el-input |
| | | v-model="scope.row.referenceValue" |
| | | placeholder="值" |
| | | :disabled="!editable" |
| | | ></el-input> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="单位" prop="unit" align="center" width="120px"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip class="item" effect="dark" :content="scope.row.unit" > |
| | | <el-input |
| | | v-model="scope.row.unit" |
| | | placeholder="单位" |
| | | :disabled="!editable" |
| | | ></el-input> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="测试方法" prop="method" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip class="item" effect="dark" :content="scope.row.method" > |
| | | <el-input |
| | | v-model="scope.row.method" |
| | | placeholder="" |
| | | :disabled="!editable" |
| | | ></el-input> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="测试目的" prop="purpose" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip class="item" effect="dark" :content="scope.row.purpose" > |
| | | <el-input |
| | | v-model="scope.row.purpose" |
| | | placeholder="" |
| | | :disabled="!editable" |
| | | ></el-input> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" fixed="right"> |
| | |
| | | |
| | | |
| | | |
| | | const url = 'https://ztms-mes.chinaztt.cn/' |
| | | // const url = 'http://localhost:9999' |
| | | // const url = 'http://192.168.32.45:9999' |
| | | // const url = 'https://ztms-mes.chinaztt.cn/' |
| | | const url = 'http://localhost:9999' |
| | | //const url = 'http://192.168.32.45:9999' |
| | | |
| | | |
| | | const localUrl = 'http://localhost:8089' |