no message
parent
609e196f9b
commit
1cd39451ae
|
|
@ -26,7 +26,6 @@
|
|||
/>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<label class="el-form-item-label">任务类型</label>
|
||||
|
|
@ -55,6 +54,7 @@
|
|||
<el-radio-button label="待执行">待执行</el-radio-button>
|
||||
<el-radio-button label="执行中">执行中</el-radio-button>
|
||||
<el-radio-button label="顶升">顶升</el-radio-button>
|
||||
<el-radio-button label="已到站">已到站</el-radio-button>
|
||||
<el-radio-button label="已完成">已完成</el-radio-button>
|
||||
<el-radio-button label="任务取消">任务取消</el-radio-button>
|
||||
</el-radio-group>
|
||||
|
|
@ -156,10 +156,10 @@
|
|||
align="center" size="mini"
|
||||
@click="toAgvTaskUp(scope.row)"
|
||||
>
|
||||
顶升
|
||||
{{ scope.row.type == 'Fx_Off_Line' ? '到站' : '顶升' }}
|
||||
</el-button>
|
||||
<el-button type="success"
|
||||
:disabled="scope.row.status!='UP_CONTAINER' "
|
||||
:disabled="scope.row.status!='UP_CONTAINER' && scope.row.status!='ARRIVED' "
|
||||
align="center"
|
||||
size="mini"
|
||||
@click="toAgvTaskFinish(scope.row)"
|
||||
|
|
@ -256,18 +256,16 @@ export default {
|
|||
edit: ['admin', 'agvTask:edit'],
|
||||
del: ['admin', 'agvTask:del']
|
||||
},
|
||||
rules: {
|
||||
containerCode: [
|
||||
{ required: true, message: '容器码不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
rules: {},
|
||||
radio3: '执行中',
|
||||
agvTaskUpDialog: false,
|
||||
agvTaskUpForm: {
|
||||
containerCode: null,
|
||||
type: null,
|
||||
missionCode: null
|
||||
},
|
||||
missionStatus: null
|
||||
missionStatus: null,
|
||||
currentPosition: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -282,10 +280,13 @@ export default {
|
|||
toAgvTaskUpContainer() {
|
||||
this.$refs['agvTaskUpForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.missionStatus = (this.agvTaskUpForm.type === 'Fx_Off_Line') ? 'ARRIVED' : 'UP_CONTAINER'
|
||||
this.currentPosition = (this.agvTaskUpForm.type === 'Fx_Off_Line') ? 'FX001' : null
|
||||
crudKmres.missionStateCallback({
|
||||
missionCode: this.agvTaskUpForm.missionCode,
|
||||
containerCode: this.agvTaskUpForm.containerCode,
|
||||
missionStatus: 'UP_CONTAINER'
|
||||
missionStatus: this.missionStatus,
|
||||
currentPosition: this.currentPosition
|
||||
}).then(res => {
|
||||
if (res.status == 200) {
|
||||
this.agvTaskUpDialog = false
|
||||
|
|
@ -365,6 +366,7 @@ export default {
|
|||
toAgvTaskUp(data) {//弹出顶升盒子
|
||||
this.agvTaskUpForm.missionCode = data.id
|
||||
this.agvTaskUpForm.containerCode = data.stockCode
|
||||
this.agvTaskUpForm.type = data.type
|
||||
this.agvTaskUpDialog = true
|
||||
},
|
||||
resetQuery() {
|
||||
|
|
@ -384,6 +386,9 @@ export default {
|
|||
} else if (lab === '顶升') {
|
||||
this.query.status = 'UP_CONTAINER'
|
||||
this.crud.toQuery()
|
||||
} else if (lab === '已到站') {
|
||||
this.query.status = 'ARRIVED'
|
||||
this.crud.toQuery()
|
||||
} else if (lab === '已完成') {
|
||||
this.query.status = 'FINISH'
|
||||
this.crud.toQuery()
|
||||
|
|
|
|||
Loading…
Reference in New Issue