更新
This commit is contained in:
@@ -165,6 +165,23 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!--弹窗设置设备与图标绑定与角度-->
|
||||
<el-dialog title="设备设置" :visible.sync="dialogFormVisible4" width="35%">
|
||||
<el-form :model="form" size="small">
|
||||
<el-form-item label="设备编号" prop="device_code" label-width="80px">
|
||||
<el-input v-model="form.device_code" :disabled="true" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="条码" label-width="80px">
|
||||
<el-input v-model="form.barcode" :disabled="false" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisible4 = false">取 消</el-button>
|
||||
<el-button type="primary" @click="setContainer">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="设备设置" :visible.sync="dialogFormVisible2" width="35%">
|
||||
<el-form :model="form" size="small">
|
||||
<el-form-item label="设备编号" prop="device_code" label-width="80px">
|
||||
@@ -228,6 +245,7 @@ export default {
|
||||
dialogFormVisible1: false,
|
||||
dialogFormVisible2: false,
|
||||
dialogFormVisible3: false,
|
||||
dialogFormVisible4: false,
|
||||
arr2: [],
|
||||
currentItem: '',
|
||||
stageSelectList: [],
|
||||
@@ -253,6 +271,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
clickDevice(item) {
|
||||
debugger
|
||||
const index = item.index
|
||||
const clickObj = this.arr2[index]
|
||||
if (!clickObj.img2 || clickObj.img2 === '1' || !item.data) {
|
||||
@@ -274,12 +293,17 @@ export default {
|
||||
if (clickObj.data.device_type === 'agv') {
|
||||
this.dialogFormVisible3 = true
|
||||
}
|
||||
if (clickObj.data.driver_code === 'standard_conveyor_control') {
|
||||
this.dialogFormVisible4 = true
|
||||
}
|
||||
|
||||
if (clickObj.data.driver_code === 'standard_emptypallet_site') {
|
||||
this.dialogFormVisible1 = true
|
||||
}
|
||||
this.form.angle = clickObj.angle
|
||||
this.form.index = clickObj.index
|
||||
this.form.device_code = clickObj.device_code
|
||||
this.form.driver_code = clickObj.driver_code
|
||||
this.form.hasGoodStatus = clickObj.data.hasGoods
|
||||
this.form.barcode = clickObj.data.container
|
||||
this.form.suspended = clickObj.data.suspended
|
||||
@@ -451,6 +475,16 @@ export default {
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
},
|
||||
setContainer() {
|
||||
deviceCrud.saveBarcode(this.form).then(res => {
|
||||
this.notify('操作成功', 'success')
|
||||
this.dialogFormVisible4 = false
|
||||
this.initArr2()
|
||||
}).catch(err => {
|
||||
this.dialogFormVisible4 = false
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
},
|
||||
initArr2() {
|
||||
actorCrud.queryStageActor('SHDP').then(data => {
|
||||
if (data.detail.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user