fix:玻纤mlog_detail相关操作后的刷新,以及mlogbw_check手动新增输出时编号可编辑
This commit is contained in:
parent
37c52cd62f
commit
7f036f7343
|
|
@ -614,10 +614,12 @@ export default {
|
||||||
},
|
},
|
||||||
scheckClose(){
|
scheckClose(){
|
||||||
this.dialog.check_single = false;
|
this.dialog.check_single = false;
|
||||||
|
this.$refs.tableIn.refresh();
|
||||||
this.$refs.tableOut.refresh();
|
this.$refs.tableOut.refresh();
|
||||||
},
|
},
|
||||||
checkDialogClose(){
|
checkDialogClose(){
|
||||||
this.dialog.check = false;
|
this.dialog.check = false;
|
||||||
|
this.$refs.tableIn.refresh();
|
||||||
this.$refs.tableOut.refresh();
|
this.$refs.tableOut.refresh();
|
||||||
},
|
},
|
||||||
handlePrint(){
|
handlePrint(){
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</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-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange(wm_in)"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="使用数量" prop="count_use">
|
<el-form-item label="使用数量" prop="count_use">
|
||||||
|
|
@ -205,6 +205,7 @@ export default {
|
||||||
//扫描后处理方法
|
//扫描后处理方法
|
||||||
formWminChange(code){
|
formWminChange(code){
|
||||||
let that = this,codeId='',arr=[];
|
let that = this,codeId='',arr=[];
|
||||||
|
code = code.replace(/(^\s*)|(\s*$)/g, "");
|
||||||
if(code.indexOf("#")>-1){
|
if(code.indexOf("#")>-1){
|
||||||
let arrs = code.split("#");
|
let arrs = code.split("#");
|
||||||
codeId = arrs[1];
|
codeId = arrs[1];
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@
|
||||||
>
|
>
|
||||||
<el-table-column prop="number" label="物料编号" fixed min-width="120px">
|
<el-table-column prop="number" label="物料编号" fixed min-width="120px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- <span v-if="!scope.row.isEdit">{{ scope.row.number }}</span>
|
<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-input v-if="scope.row.isEdit&&mode == 'outs'" v-model="scope.row.number" placeholder="物料编号"></el-input>
|
||||||
<el-select
|
<el-select
|
||||||
v-if="scope.row.isEdit&&mode == 'ins'"
|
v-if="scope.row.isEdit&&mode == 'ins'"
|
||||||
v-model="scope.row.wpr"
|
v-model="scope.row.wpr"
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span v-else>{{ scope.row.number }}</span>
|
<span v-if="!scope.row.isEdit&&mode == 'ins'">{{ scope.row.number }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="note" :label="item.testitem_name" v-for="item in qct_testitems" :key="item.id" width="150px">
|
<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(){
|
getList(){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
||||||
that.$API.wpm.mlogbw.list.req(that.params).then((res) => {
|
that.$API.wpm.mlogbw.list.req(that.params).then((res) => {
|
||||||
|
that.mlogbwlist = [];
|
||||||
if(res.length>0){
|
if(res.length>0){
|
||||||
that.mlogbwlist = [];
|
|
||||||
res.forEach((item) => {
|
res.forEach((item) => {
|
||||||
let obj = {};
|
let obj = {};
|
||||||
obj = Object.assign({},item);
|
obj = Object.assign({},item);
|
||||||
|
|
@ -654,9 +655,8 @@ export default {
|
||||||
type: "warning",
|
type: "warning",
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
that.$API.wpm.mlogbw.delete.req(id).then((res) => {
|
that.$API.wpm.mlogbw.delete.req(id).then((res) => {
|
||||||
|
that.getList();
|
||||||
that.$message.success("删除成功");
|
that.$message.success("删除成功");
|
||||||
that.getList();
|
|
||||||
return res;
|
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
return err;
|
return err;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue