数据
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user