feat: 禅道279
This commit is contained in:
parent
2f192f4107
commit
ca6b14c2fd
|
|
@ -44,6 +44,14 @@
|
||||||
fit="fill"
|
fit="fill"
|
||||||
/>
|
/>
|
||||||
</el-descriptions-item>
|
</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>
|
</el-descriptions>
|
||||||
<div style="padding: 5px 10px;display: flex;justify-content: end;">
|
<div style="padding: 5px 10px;display: flex;justify-content: end;">
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -547,6 +555,9 @@ export default {
|
||||||
material_in:'',
|
material_in:'',
|
||||||
material_out:'',
|
material_out:'',
|
||||||
batchContains:'',
|
batchContains:'',
|
||||||
|
lastProcessName:'',
|
||||||
|
nextProcessName:'',
|
||||||
|
currentProcessName:'',
|
||||||
apiObjPrint:this.$API.cm.labelmat.fromWm,
|
apiObjPrint:this.$API.cm.labelmat.fromWm,
|
||||||
printer_name:localStorage.getItem("printer_name"),
|
printer_name:localStorage.getItem("printer_name"),
|
||||||
addTemplate:{
|
addTemplate:{
|
||||||
|
|
@ -609,6 +620,8 @@ export default {
|
||||||
that.hasRoute = true;
|
that.hasRoute = true;
|
||||||
that.$API.mtm.route.item.req(res.route).then((routeRes) => {
|
that.$API.mtm.route.item.req(res.route).then((routeRes) => {
|
||||||
let params_json = routeRes.params_json;
|
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){
|
if(params_json.fileurl){
|
||||||
let fileurl = JSON.parse(params_json.fileurl);
|
let fileurl = JSON.parse(params_json.fileurl);
|
||||||
that.imageUrl = fileurl[0].path;
|
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(){
|
getEquipment(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.em.equipment.list.req({page:0,belong_dept:that.dept}).then((res) => {
|
that.$API.em.equipment.list.req({page:0,belong_dept:that.dept}).then((res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue