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=='喷码'">
|
||||
<template #default="scope">
|
||||
<el-select
|
||||
v-model="scope.row.tooling"
|
||||
v-model="scope.row.pre_info.val"
|
||||
placeholder="选择工装"
|
||||
clearable
|
||||
size="small"
|
||||
|
|
@ -195,7 +195,7 @@ export default {
|
|||
this.params.wm = this.wm;
|
||||
this.visible = true;
|
||||
this.getRowWpr();
|
||||
// this.getToolingOptions();
|
||||
this.getToolingOptions();
|
||||
that.$nextTick(() => {
|
||||
let heights = document.getElementsByClassName("el-drawer__body")[0].clientHeight;
|
||||
that.wprTableHeight = heights-20;
|
||||
|
|
@ -210,13 +210,13 @@ export default {
|
|||
},
|
||||
getToolingOptions(){
|
||||
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 || []);
|
||||
});
|
||||
},
|
||||
handleToolingChange(row){
|
||||
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("工装更新成功");
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue