This commit is contained in:
2025-07-24 20:28:44 +08:00
parent ae2d9b631f
commit 20df8e895a
3 changed files with 39 additions and 29 deletions

View File

@@ -65,8 +65,7 @@
<script>
import SaveChain from './save-chain.vue'
import { queryStation, queryTaskChain } from '@config/mork.js'
import { queryTaskChainDtl, sendTask, saveTask, cancelTask, deleteTaskChain, updateStation } from '@config/getData.js'
import { queryStation, queryTaskChain, queryTaskChainDtl, sendTask, saveTask, cancelTask, deleteTaskChain, updateStation } from '@config/getData.js'
export default {
components: {
SaveChain
@@ -75,7 +74,7 @@ export default {
return {
activeName: 'zdy',
stationName: '',
radioOption: [{label: '取货', text: '取', value: 'Ascend'}, {label: '放货', text: '放', value: 'Descend'}, {label: '移动', text: '移', value: 'Move'}, {label: '返回点', text: '返', value: 'Move'}],
radioOption: [{label: '取货', text: '取', value: 'Ascend'}, {label: '放货', text: '放', value: 'Descend'}, {label: '移动', text: '移', value: 'Move'}, {label: '返回点', text: '返', value: 'Return'}],
dataList: [],
newData: [],
linkData: [],
@@ -202,7 +201,6 @@ export default {
},
// 选取动作类型
radioInput (e, i, value) {
console.log(this.newData)
const lastItem = this.newData.length > 0 ? this.newData[this.newData.length - 1].station_code : null
if (lastItem === e.station_code) {
this.$message('相邻的两个站点不能相同')
@@ -214,7 +212,7 @@ export default {
this.closePopover(i)
return
}
if (this.newData.length > 0 && this.newData[this.newData.length - 1].action_type === 'Move') {
if (this.newData.length > 0 && this.newData[this.newData.length - 1].action_type === 'Return') {
return
}
e.action_type = value