fix:导入物料检验的excel表

This commit is contained in:
shijing 2025-05-22 10:51:34 +08:00
parent 2f9b24245f
commit 690b322d8d
1 changed files with 7 additions and 1 deletions

View File

@ -74,6 +74,7 @@
:params="params" :params="params"
hidePagination hidePagination
hideDo hideDo
@row-click="rowClick"
> >
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50" />
<el-table-column <el-table-column
@ -485,13 +486,18 @@ export default {
that.wprList = row.mioitemw; that.wprList = row.mioitemw;
that.wprVisibleDrawer = true; that.wprVisibleDrawer = true;
}, },
rowClick(row){
this.mioitemId = row.id;
},
upSuccess(res, close) { upSuccess(res, close) {
let that = this;
close(); close();
const loading = ElLoading.service({ const loading = ElLoading.service({
fullscreen: true, fullscreen: true,
text: "解析中...请稍等", text: "解析中...请稍等",
}); });
this.$API.mtm.material.daoru.req({ path: res.path }).then((res) => { console.log(res);
this.$API.inm.mioitem.test_daoru.req(that.mioitemId,{ path: res.path }).then((res) => {
loading.close(); loading.close();
this.$message.success("导入成功"); this.$message.success("导入成功");
this.$refs.table.queryData(this.query); this.$refs.table.queryData(this.query);