feat: 禅道279
This commit is contained in:
parent
2f192f4107
commit
ca6b14c2fd
|
|
@ -44,6 +44,14 @@
|
|||
fit="fill"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="工序路径">
|
||||
<el-tag v-if="lastProcessName!==''" type="danger">{{ lastProcessName }}</el-tag>
|
||||
<span v-if="lastProcessName!==''">—></span>
|
||||
<el-tag v-if="currentProcessName!==''" type="success">{{ currentProcessName }}</el-tag>
|
||||
<span v-if="nextProcessName!==''">—></span>
|
||||
<el-tag v-if="nextProcessName!==''" type="primary">{{ nextProcessName }}</el-tag>
|
||||
</el-descriptions-item>
|
||||
|
||||
</el-descriptions>
|
||||
<div style="padding: 5px 10px;display: flex;justify-content: end;">
|
||||
<el-button
|
||||
|
|
@ -547,6 +555,9 @@ export default {
|
|||
material_in:'',
|
||||
material_out:'',
|
||||
batchContains:'',
|
||||
lastProcessName:'',
|
||||
nextProcessName:'',
|
||||
currentProcessName:'',
|
||||
apiObjPrint:this.$API.cm.labelmat.fromWm,
|
||||
printer_name:localStorage.getItem("printer_name"),
|
||||
addTemplate:{
|
||||
|
|
@ -609,6 +620,8 @@ export default {
|
|||
that.hasRoute = true;
|
||||
that.$API.mtm.route.item.req(res.route).then((routeRes) => {
|
||||
let params_json = routeRes.params_json;
|
||||
that.currentProcessName = routeRes.process_name;
|
||||
that.getroutepack(routeRes.material_in,routeRes.material_out,routeRes.routepack);
|
||||
if(params_json.fileurl){
|
||||
let fileurl = JSON.parse(params_json.fileurl);
|
||||
that.imageUrl = fileurl[0].path;
|
||||
|
|
@ -646,6 +659,21 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
getroutepack(inId,outId,routepack){
|
||||
let that = this;
|
||||
that.$API.mtm.route.list.req({routepack:routepack,page:0}).then(res=>{
|
||||
res.forEach(item=>{
|
||||
//上一道工序
|
||||
if(item.material_out==inId){
|
||||
that.lastProcessName = item.process_name;
|
||||
}
|
||||
//下一道工序
|
||||
if(item.material_in==outId){
|
||||
that.nextProcessName = item.process_name;
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
getEquipment(){
|
||||
let that = this;
|
||||
that.$API.em.equipment.list.req({page:0,belong_dept:that.dept}).then((res) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue