Commit 49160b650d59e1b723f4fc3c9aca25b16995a30d
1 parent
d91d89d7
---
Showing
2 changed files
with
22 additions
and
20 deletions
HHECS.Web/src/views/taskManage/taskModel_host.vue
... | ... | @@ -576,7 +576,7 @@ |
576 | 576 | <!-- <el-button type="primary" @click="dialogFormVisibleTwo = false" |
577 | 577 | >创 建</el-button |
578 | 578 | > --> |
579 | - <el-button @click="dialogFormVisibleTwo = false">取 消</el-button> | |
579 | + <el-button @click="close()">取 消</el-button> | |
580 | 580 | </div> |
581 | 581 | </el-dialog> |
582 | 582 | </div> |
... | ... | @@ -680,6 +680,7 @@ export default { |
680 | 680 | this.optionsStage = []; |
681 | 681 | this.optionsDevice = []; |
682 | 682 | this.optionsPick = []; |
683 | + this.optionsAdd = []; | |
683 | 684 | let params = { Code: data }; |
684 | 685 | getHostType(params).then((response) => { |
685 | 686 | response.data.dictDetails.forEach((x) => { |
... | ... | @@ -988,7 +989,10 @@ export default { |
988 | 989 | }; |
989 | 990 | GetMTaskById(params).then((response) => { |
990 | 991 | if (response.code == "Success") { |
991 | - if (response.data.approachPoint == "") { | |
992 | + if ( | |
993 | + response.data.approachPoint == "" || | |
994 | + response.data.approachPoint == null | |
995 | + ) { | |
992 | 996 | response.data.approachPoint = []; |
993 | 997 | } else { |
994 | 998 | response.data.approachPoint = response.data.approachPoint |
... | ... | @@ -1090,7 +1094,6 @@ export default { |
1090 | 1094 | let prams = this.pramsData(this.elMaintenance.remoteTask, 0); |
1091 | 1095 | RemoteTaskEdit(prams).then((response) => { |
1092 | 1096 | if (response.code == "Success") { |
1093 | - this.getTableList(); | |
1094 | 1097 | this.messge(response); |
1095 | 1098 | } |
1096 | 1099 | }); |
... | ... | @@ -1100,7 +1103,6 @@ export default { |
1100 | 1103 | let prams = this.pramsData(this.elMaintenance.preRemoteTask, 0); |
1101 | 1104 | PreRemoteTaskEdit(prams).then((response) => { |
1102 | 1105 | if (response.code == "Success") { |
1103 | - this.getTableList(); | |
1104 | 1106 | this.messge(response); |
1105 | 1107 | } |
1106 | 1108 | }); |
... | ... | @@ -1110,7 +1112,6 @@ export default { |
1110 | 1112 | let prams = this.pramsData(this.elMaintenance.from, 0); |
1111 | 1113 | FromEdit(prams).then((response) => { |
1112 | 1114 | if (response.code == "Success") { |
1113 | - this.getTableList(); | |
1114 | 1115 | this.messge(response); |
1115 | 1116 | } |
1116 | 1117 | }); |
... | ... | @@ -1120,7 +1121,6 @@ export default { |
1120 | 1121 | let prams = this.pramsData(this.elMaintenance.to, 0); |
1121 | 1122 | ToEdit(prams).then((response) => { |
1122 | 1123 | if (response.code == "Success") { |
1123 | - this.getTableList(); | |
1124 | 1124 | this.messge(response); |
1125 | 1125 | } |
1126 | 1126 | }); |
... | ... | @@ -1130,7 +1130,6 @@ export default { |
1130 | 1130 | let prams = this.pramsData(this.elMaintenance.priority, 0); |
1131 | 1131 | PriorityEdit(prams).then((response) => { |
1132 | 1132 | if (response.code == "Success") { |
1133 | - this.getTableList(); | |
1134 | 1133 | this.messge(response); |
1135 | 1134 | } |
1136 | 1135 | }); |
... | ... | @@ -1140,7 +1139,6 @@ export default { |
1140 | 1139 | let prams = this.pramsData(this.elMaintenance.length, 0); |
1141 | 1140 | LengthEdit(prams).then((response) => { |
1142 | 1141 | if (response.code == "Success") { |
1143 | - this.getTableList(); | |
1144 | 1142 | this.messge(response); |
1145 | 1143 | } |
1146 | 1144 | }); |
... | ... | @@ -1150,7 +1148,6 @@ export default { |
1150 | 1148 | let prams = this.pramsData(this.elMaintenance.width, 0); |
1151 | 1149 | WidthEdit(prams).then((response) => { |
1152 | 1150 | if (response.code == "Success") { |
1153 | - this.getTableList(); | |
1154 | 1151 | this.messge(response); |
1155 | 1152 | } |
1156 | 1153 | }); |
... | ... | @@ -1160,7 +1157,6 @@ export default { |
1160 | 1157 | let prams = this.pramsData(this.elMaintenance.height, 0); |
1161 | 1158 | HeightEdit(prams).then((response) => { |
1162 | 1159 | if (response.code == "Success") { |
1163 | - this.getTableList(); | |
1164 | 1160 | this.messge(response); |
1165 | 1161 | } |
1166 | 1162 | }); |
... | ... | @@ -1170,7 +1166,6 @@ export default { |
1170 | 1166 | let prams = this.pramsData(this.elMaintenance.weight, 0); |
1171 | 1167 | WeightEdit(prams).then((response) => { |
1172 | 1168 | if (response.code == "Success") { |
1173 | - this.getTableList(); | |
1174 | 1169 | this.messge(response); |
1175 | 1170 | } |
1176 | 1171 | }); |
... | ... | @@ -1180,7 +1175,6 @@ export default { |
1180 | 1175 | let prams = this.pramsData(this.elMaintenance.goodsType, 0); |
1181 | 1176 | GoodsTypeEdit(prams).then((response) => { |
1182 | 1177 | if (response.code == "Success") { |
1183 | - this.getTableList(); | |
1184 | 1178 | this.messge(response); |
1185 | 1179 | } |
1186 | 1180 | }); |
... | ... | @@ -1190,7 +1184,6 @@ export default { |
1190 | 1184 | let prams = this.pramsData(this.elMaintenance.mStage, 0); |
1191 | 1185 | MStageEdit(prams).then((response) => { |
1192 | 1186 | if (response.code == "Success") { |
1193 | - this.getTableList(); | |
1194 | 1187 | this.messge(response); |
1195 | 1188 | } |
1196 | 1189 | }); |
... | ... | @@ -1200,7 +1193,6 @@ export default { |
1200 | 1193 | let prams = this.pramsData(this.elMaintenance.approachPoint, 1); |
1201 | 1194 | ApproachPointEdit(prams).then((response) => { |
1202 | 1195 | if (response.code == "Success") { |
1203 | - this.getTableList(); | |
1204 | 1196 | this.messge(response); |
1205 | 1197 | } |
1206 | 1198 | }); |
... | ... | @@ -1210,7 +1202,6 @@ export default { |
1210 | 1202 | let prams = this.pramsData(this.elMaintenance.status, 0); |
1211 | 1203 | StatusEdit(prams).then((response) => { |
1212 | 1204 | if (response.code == "Success") { |
1213 | - this.getTableList(); | |
1214 | 1205 | this.messge(response); |
1215 | 1206 | } |
1216 | 1207 | }); |
... | ... | @@ -1218,9 +1209,9 @@ export default { |
1218 | 1209 | //当前设备 |
1219 | 1210 | currentModify() { |
1220 | 1211 | let prams = this.pramsData(this.elMaintenance.current, 0); |
1212 | + console.log(prams, "prams"); | |
1221 | 1213 | CurrentEdit(prams).then((response) => { |
1222 | 1214 | if (response.code == "Success") { |
1223 | - this.getTableList(); | |
1224 | 1215 | this.messge(response); |
1225 | 1216 | } |
1226 | 1217 | }); |
... | ... | @@ -1230,7 +1221,6 @@ export default { |
1230 | 1221 | let prams = this.pramsData(this.elMaintenance.commit, 0); |
1231 | 1222 | CommitEdit(prams).then((response) => { |
1232 | 1223 | if (response.code == "Success") { |
1233 | - this.getTableList(); | |
1234 | 1224 | this.messge(response); |
1235 | 1225 | } |
1236 | 1226 | }); |
... | ... | @@ -1261,6 +1251,10 @@ export default { |
1261 | 1251 | type: "success", |
1262 | 1252 | }); |
1263 | 1253 | }, |
1254 | + close() { | |
1255 | + this.getTableList(); | |
1256 | + this.dialogFormVisibleTwo = false; | |
1257 | + }, | |
1264 | 1258 | }, |
1265 | 1259 | }; |
1266 | 1260 | </script> |
... | ... |
HHECS.Web/src/views/taskManage/taskModel_stacker.vue
... | ... | @@ -434,7 +434,11 @@ |
434 | 434 | </div> |
435 | 435 | </el-dialog> |
436 | 436 | |
437 | - <el-dialog title="堆垛机维护" :visible.sync="dialogFormVisibleTwo"> | |
437 | + <el-dialog | |
438 | + title="堆垛机维护" | |
439 | + :visible.sync="dialogFormVisibleTwo" | |
440 | + :showClose="false" | |
441 | + > | |
438 | 442 | <div class="containerTwo"> |
439 | 443 | <div class="box1"> |
440 | 444 | <div class="dv-title" style="margin-left: 10px"> |
... | ... | @@ -898,7 +902,7 @@ export default { |
898 | 902 | }; |
899 | 903 | }, |
900 | 904 | created() { |
901 | - this.fetchData("MTaskStatus"); | |
905 | + this.fetchData("SRMTaskStatus"); | |
902 | 906 | this.btnAction(); |
903 | 907 | this.userCode = this.$store.state.user.name; |
904 | 908 | }, |
... | ... | @@ -1049,7 +1053,7 @@ export default { |
1049 | 1053 | if (this.optionsAdd.length > 0) { |
1050 | 1054 | this.elAddDialog.type = this.optionsAdd[0].value; |
1051 | 1055 | } |
1052 | - } else if (data == "MTaskStatus") { | |
1056 | + } else if (data == "SRMTaskStatus") { | |
1053 | 1057 | this.options.push({ value: x.code, label: x.name }); |
1054 | 1058 | } else if (data == "SRMInStation") { |
1055 | 1059 | this.optionsAddEnter.push({ value: x.code, label: x.name }); |
... | ... | @@ -1607,6 +1611,10 @@ export default { |
1607 | 1611 | type: "success", |
1608 | 1612 | }); |
1609 | 1613 | }, |
1614 | + close() { | |
1615 | + this.getTableList(); | |
1616 | + this.dialogFormVisibleTwo = false; | |
1617 | + }, | |
1610 | 1618 | }, |
1611 | 1619 | }; |
1612 | 1620 | </script> |
... | ... |