fix:库存交接记录检验改动
This commit is contained in:
parent
3f90ddf8f0
commit
eb025fbeb2
|
@ -77,6 +77,16 @@
|
||||||
hidePagination
|
hidePagination
|
||||||
hideDo
|
hideDo
|
||||||
>
|
>
|
||||||
|
<!-- <el-table-column type="expand">
|
||||||
|
<template #default="props">
|
||||||
|
<div style="padding-left: 50px" v-if="props.row.wproducts.length > 0&&props.row.wproducts.test_json">
|
||||||
|
<el-descriptions :column="4" v-for="item in props.row.wproducts.test_json" :key="item.id">
|
||||||
|
<el-descriptions-item label="破损">
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="物料"
|
label="物料"
|
||||||
|
@ -140,6 +150,17 @@
|
||||||
width="100px"
|
width="100px"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|
||||||
|
<el-button
|
||||||
|
link
|
||||||
|
type="primary"
|
||||||
|
@click="table_check(scope.row)"
|
||||||
|
v-if="project_code=='bxerp'&&mioObj.state == 10 &&
|
||||||
|
(type == 'pur_in' ||type == 'do_in' ||type == 'other_in')"
|
||||||
|
v-auth="'mioitem.test'"
|
||||||
|
>
|
||||||
|
检验
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -268,7 +289,8 @@ export default {
|
||||||
// type: "",
|
// type: "",
|
||||||
// cate: "",
|
// cate: "",
|
||||||
objitem: {},
|
objitem: {},
|
||||||
mtype:10
|
mtype:10,
|
||||||
|
project_code:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -276,6 +298,7 @@ export default {
|
||||||
// this.cate = this.$route.query.cate;
|
// this.cate = this.$route.query.cate;
|
||||||
// this.mioId = this.$route.query.mio;
|
// this.mioId = this.$route.query.mio;
|
||||||
// this.params.mio = this.$route.query.mio;
|
// this.params.mio = this.$route.query.mio;
|
||||||
|
this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||||
this.params.mio = this.mioId;
|
this.params.mio = this.mioId;
|
||||||
this.apiObj = this.$API.inm.mioitem.list;
|
this.apiObj = this.$API.inm.mioitem.list;
|
||||||
this.getMio();
|
this.getMio();
|
||||||
|
@ -302,20 +325,15 @@ export default {
|
||||||
table_del(row) {
|
table_del(row) {
|
||||||
this.$confirm(`确定删除吗?`, "提示", {
|
this.$confirm(`确定删除吗?`, "提示", {
|
||||||
type: "warning",
|
type: "warning",
|
||||||
})
|
}).then(() => {
|
||||||
.then(() => {
|
this.$API.inm.mioitem.delete.req(row.id).then((res) => {
|
||||||
this.$API.inm.mioitem.delete
|
this.$message.success("删除成功");
|
||||||
.req(row.id)
|
this.$refs.table.refresh();
|
||||||
.then((res) => {
|
return res;
|
||||||
this.$message.success("删除成功");
|
}).catch((err) => {
|
||||||
this.$refs.table.refresh();
|
return err;
|
||||||
return res;
|
});
|
||||||
})
|
}).catch(() => {});
|
||||||
.catch((err) => {
|
|
||||||
return err;
|
|
||||||
});
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
},
|
},
|
||||||
//检验
|
//检验
|
||||||
table_check(row) {
|
table_check(row) {
|
||||||
|
@ -365,6 +383,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleCheckSuccess() {
|
handleCheckSuccess() {
|
||||||
this.$refs.table.refresh();
|
this.$refs.table.refresh();
|
||||||
|
this.dialog.check = false;
|
||||||
},
|
},
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.$refs.table.queryData(this.query);
|
this.$refs.table.queryData(this.query);
|
||||||
|
|
|
@ -1199,6 +1199,7 @@ export default {
|
||||||
that.qct_testitems.forEach((item) => {
|
that.qct_testitems.forEach((item) => {
|
||||||
let val = that.form[item.testitem_name];
|
let val = that.form[item.testitem_name];
|
||||||
let obj0 = {};
|
let obj0 = {};
|
||||||
|
obj0.testitem_name = item.testitem_name;
|
||||||
obj0.val = val;
|
obj0.val = val;
|
||||||
test_json[item.id] =obj0;
|
test_json[item.id] =obj0;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue