fix:玻纤mlog_detail相关操作后的刷新,以及mlogbw_check手动新增输出时编号可编辑
This commit is contained in:
parent
37c52cd62f
commit
7f036f7343
|
|
@ -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(){
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
that.mlogbwlist = [];
|
||||
if(res.length>0){
|
||||
that.mlogbwlist = [];
|
||||
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.getList();
|
||||
that.$message.success("删除成功");
|
||||
that.getList();
|
||||
return res;
|
||||
}).catch((err) => {
|
||||
return err;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue