feat:wpr保存工装
This commit is contained in:
parent
e5670a267c
commit
c7d79b12df
|
|
@ -69,7 +69,7 @@
|
||||||
<el-table-column label="工装" min-width="80px" v-if="mgroupName=='喷码'">
|
<el-table-column label="工装" min-width="80px" v-if="mgroupName=='喷码'">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="scope.row.tooling"
|
v-model="scope.row.pre_info.val"
|
||||||
placeholder="选择工装"
|
placeholder="选择工装"
|
||||||
clearable
|
clearable
|
||||||
size="small"
|
size="small"
|
||||||
|
|
@ -195,7 +195,7 @@ export default {
|
||||||
this.params.wm = this.wm;
|
this.params.wm = this.wm;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.getRowWpr();
|
this.getRowWpr();
|
||||||
// this.getToolingOptions();
|
this.getToolingOptions();
|
||||||
that.$nextTick(() => {
|
that.$nextTick(() => {
|
||||||
let heights = document.getElementsByClassName("el-drawer__body")[0].clientHeight;
|
let heights = document.getElementsByClassName("el-drawer__body")[0].clientHeight;
|
||||||
that.wprTableHeight = heights-20;
|
that.wprTableHeight = heights-20;
|
||||||
|
|
@ -210,13 +210,13 @@ export default {
|
||||||
},
|
},
|
||||||
getToolingOptions(){
|
getToolingOptions(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.mtm.tooling.list.req({ page: 0}).then((res) => {
|
that.$API.em.equipment.list.req({ page: 0,type:10,cate__code:'7'}).then((res) => {
|
||||||
that.toolingOptions = Array.isArray(res) ? res : (res.results || []);
|
that.toolingOptions = Array.isArray(res) ? res : (res.results || []);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleToolingChange(row){
|
handleToolingChange(row){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wpr.update.req(row.id,{tooling:row.tooling}).then(() => {
|
that.$API.wpm.wpr.update.req(row.id,{pre_info:{val:row.pre_info.val,name:"工装"}}).then(() => {
|
||||||
that.$message.success("工装更新成功");
|
that.$message.success("工装更新成功");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue