| | |
| | | </label> |
| | | <div class="mc-action-row"> |
| | | <button type="button" class="mc-btn" @click="controlCommand">下发</button> |
| | | <button type="button" class="mc-btn mc-btn-soft" @click="clearPathCommand">清路径</button> |
| | | <button type="button" class="mc-btn mc-btn-soft" @click="resetCommand">复位</button> |
| | | <button type="button" class="mc-btn mc-btn-ghost" @click="openStationTracePage">运行轨迹</button> |
| | | <button v-if="showFakeTraceEntry" type="button" class="mc-btn mc-btn-ghost" @click="openFakeTracePage">仿真轨迹</button> |
| | |
| | | orDash: function (value) { |
| | | return MonitorCardKit.orDash(value); |
| | | }, |
| | | formatIoMode: function (value) { |
| | | if (value === 1 || value === "1") { |
| | | return "入库"; |
| | | } |
| | | if (value === 2 || value === "2") { |
| | | return "出库"; |
| | | } |
| | | return "--"; |
| | | }, |
| | | getStatusLabel: function (item) { |
| | | return item && item.autoing ? "自动" : "手动"; |
| | | }, |
| | |
| | | { label: "工作号", value: this.orDash(item.taskNo) }, |
| | | { label: "目标站", value: this.orDash(item.targetStaNo) }, |
| | | { label: "模式", value: item.autoing ? "自动" : "手动" }, |
| | | { label: "出入库模式", value: this.formatIoMode(item.ioMode) }, |
| | | { label: "有物", value: MonitorCardKit.yesNo(item.loading) }, |
| | | { label: "可入", value: MonitorCardKit.yesNo(item.inEnable) }, |
| | | { label: "可出", value: MonitorCardKit.yesNo(item.outEnable) }, |
| | |
| | | controlCommand: function () { |
| | | this.postControl("/station/command/move", this.controlParam); |
| | | }, |
| | | clearPathCommand: function () { |
| | | this.postControl("/station/command/clearPath", this.controlParam); |
| | | }, |
| | | resetCommand: function () { |
| | | this.postControl("/station/command/reset", this.controlParam); |
| | | } |