监控大屏更新
This commit is contained in:
@@ -90,6 +90,13 @@ export function materialBack(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export function emptyVehicleBack(data) {
|
||||
return request({
|
||||
url: 'api/produceTask/emptyVehicleBack',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function queryIdDevice(id) {
|
||||
return request({
|
||||
@@ -138,5 +145,5 @@ export function queryIvtByPscn(data) {
|
||||
export default {
|
||||
add, edit, del, getDevice, getMaterial,
|
||||
getProduceStatus, importExcel, queryTask, querAllTask,
|
||||
callMaterial, finish, queryIdDevice, popSeek, queryOne, saveOrder, forceFinish, materialBack, queryIvtByPscn
|
||||
callMaterial, finish, queryIdDevice, popSeek, queryOne, saveOrder, forceFinish, materialBack, queryIvtByPscn, emptyVehicleBack
|
||||
}
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
<el-button type="primary" icon="el-icon-thumb" @click="fresh">界面刷新</el-button>
|
||||
<el-button type="warning" icon="el-icon-position" @click="callMaterial">生产叫料</el-button>
|
||||
<el-button type="success" icon="el-icon-finished" @click="finish">生产完成</el-button>
|
||||
<el-button type="info" icon="el-icon-top-left" @click="materialBack">余料回库</el-button>
|
||||
<el-button type="danger" icon="el-icon-top-left" @click="materialBack">余料回库</el-button>
|
||||
<el-button type="info" icon="el-icon-top-left" @click="emptyVehicleBack">空托回库</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
@@ -74,11 +75,12 @@ export default {
|
||||
choice: '',
|
||||
ProduceStatusList: [],
|
||||
materialList: [],
|
||||
tableData: []
|
||||
tableData: [],
|
||||
id: null
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// const id = this.$route.params.id
|
||||
this.id = this.$route.params.id
|
||||
crudProduceTask.getDevice().then(res => {
|
||||
this.deviceList = res
|
||||
})
|
||||
@@ -167,6 +169,18 @@ export default {
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
},
|
||||
emptyVehicleBack() {
|
||||
const data = {
|
||||
id: this.id
|
||||
}
|
||||
debugger
|
||||
crudProduceTask.emptyVehicleBack(data).then(res => {
|
||||
this.notify('操作成功', 'success')
|
||||
this.queryId()
|
||||
}).cache(err => {
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
},
|
||||
formatStatusName(row, column) {
|
||||
for (const item of this.ProduceStatusList) {
|
||||
if (item.code === row.produce_status) {
|
||||
|
||||
Reference in New Issue
Block a user