纽迪希亚2更新

This commit is contained in:
loujf
2022-07-26 17:27:37 +08:00
parent abbf9ba09d
commit c5987dd5a6
10 changed files with 96 additions and 52 deletions

View File

@@ -204,14 +204,7 @@ export function selectAGVList() {
})
}
export function agvTaskType(data) {
return request({
url: 'api/device/agvTaskType',
method: 'post',
data
})
}
export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask,
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree,
addMaterial, cleanMaterial, changeFenceStatus,reload, cleans1, cleans2, enterSite1, enterSite2, cleans3, selectAGVList, agvTaskType}
addMaterial, cleanMaterial, changeFenceStatus,reload, cleans1, cleans2, enterSite1, enterSite2, cleans3, selectAGVList}

View File

@@ -190,16 +190,15 @@
</el-form-item>
<el-form-item label="设备状态" label-width="80px">
<el-radio-group v-model="form.agvTaskType">
<el-radio-button :label="0">全部执行</el-radio-button>
<el-radio-button :label="1">入库</el-radio-button>
<el-radio-button :label="11">出库</el-radio-button>
<el-radio-group v-model="form.suspended">
<el-radio-button :label="0">暂停</el-radio-button>
<el-radio-button :label="1">恢复</el-radio-button>
</el-radio-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible3 = false"> </el-button>
<el-button type="primary" @click="agvTaskType"> </el-button>
<el-button type="primary" @click="statusSave"> </el-button>
</div>
</el-dialog>
@@ -270,7 +269,7 @@ export default {
if (clickObj.data.device_type === 'autodoor') {
this.dialogFormVisible2 = true
}
if (clickObj.data.device_type === 'agv') {
if (clickObj.data.device_type === 'safetydoor') {
this.dialogFormVisible3 = true
}
if (clickObj.data.driver_code === 'standard_emptypallet_site') {
@@ -422,16 +421,6 @@ export default {
},
statusSave() {
deviceCrud.changeFenceStatus(this.form).then(res => {
this.notify('操作成功', 'success')
this.dialogFormVisible2 = false
this.initArr2()
}).catch(err => {
this.dialogFormVisible2 = false
console.log(err.response.data.message)
})
},
agvTaskType() {
deviceCrud.agvTaskType(this.form).then(res => {
this.notify('操作成功', 'success')
this.dialogFormVisible3 = false
this.initArr2()