fix:玻纤mlog_detail相关操作后的刷新,以及mlogbw_check手动新增输出时编号可编辑

This commit is contained in:
shijing 2025-03-13 09:55:33 +08:00
parent 37c52cd62f
commit 7f036f7343
3 changed files with 10 additions and 7 deletions

View File

@ -614,10 +614,12 @@ export default {
},
scheckClose(){
this.dialog.check_single = false;
this.$refs.tableIn.refresh();
this.$refs.tableOut.refresh();
},
checkDialogClose(){
this.dialog.check = false;
this.$refs.tableIn.refresh();
this.$refs.tableOut.refresh();
},
handlePrint(){

View File

@ -34,7 +34,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="批次号" prop="wm_in">
<el-form-item label="批次号" required>
<el-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange(wm_in)"></el-input>
</el-form-item>
<el-form-item label="使用数量" prop="count_use">
@ -205,6 +205,7 @@ export default {
//
formWminChange(code){
let that = this,codeId='',arr=[];
code = code.replace(/(^\s*)|(\s*$)/g, "");
if(code.indexOf("#")>-1){
let arrs = code.split("#");
codeId = arrs[1];

View File

@ -39,8 +39,8 @@
>
<el-table-column prop="number" label="物料编号" fixed min-width="120px">
<template #default="scope">
<!-- <span v-if="!scope.row.isEdit">{{ scope.row.number }}</span>
<el-input v-if="scope.row.isEdit&&mode == 'outs'" v-model="scope.row.number" placeholder="物料编号"></el-input> -->
<span v-if="!scope.row.isEdit&&mode == 'outs'">{{ scope.row.number }}</span>
<el-input v-if="scope.row.isEdit&&mode == 'outs'" v-model="scope.row.number" placeholder="物料编号"></el-input>
<el-select
v-if="scope.row.isEdit&&mode == 'ins'"
v-model="scope.row.wpr"
@ -57,7 +57,7 @@
>
</el-option>
</el-select>
<span v-else>{{ scope.row.number }}</span>
<span v-if="!scope.row.isEdit&&mode == 'ins'">{{ scope.row.number }}</span>
</template>
</el-table-column>
<el-table-column prop="note" :label="item.testitem_name" v-for="item in qct_testitems" :key="item.id" width="150px">
@ -522,9 +522,10 @@ export default {
},
getList(){
let that = this;
that.$API.wpm.mlogbw.list.req(that.params).then((res) => {
if(res.length>0){
that.mlogbwlist = [];
if(res.length>0){
res.forEach((item) => {
let obj = {};
obj = Object.assign({},item);
@ -654,9 +655,8 @@ export default {
type: "warning",
}).then(() => {
that.$API.wpm.mlogbw.delete.req(id).then((res) => {
that.$message.success("删除成功");
that.getList();
return res;
that.$message.success("删除成功");
}).catch((err) => {
return err;
});