1.修复bug

fencang
x_z 3 years ago
parent d46cc1d8bf
commit 7a0c579c0c

@ -324,7 +324,6 @@ export default {
}, },
entrustSubInvChange() { entrustSubInvChange() {
let query = { let query = {
code: this.inputQuery.entrustSubInv, code: this.inputQuery.entrustSubInv,
} }
@ -358,6 +357,7 @@ export default {
this.getList(); this.getList();
this.getStorage(); this.getStorage();
// if (this.$isNotBlank(this.inputQuery.entrustInv)) { // if (this.$isNotBlank(this.inputQuery.entrustInv)) {
// this.findEntrustSubInvByInv(); // this.findEntrustSubInvByInv();
// } // }

@ -41,10 +41,9 @@
<el-table v-loading="loading" :data="list" style="width: 100%"> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" width="55"></el-table-column> <el-table-column label="序号" type="index" width="55"></el-table-column>
<el-table-column label="单据类型名称" prop="name"></el-table-column> <el-table-column label="单据类型名称" prop="name"></el-table-column>
<el-table-column label="单据类型代码" prop="action"></el-table-column> <el-table-column label="单据类型代码" prop="action"></el-table-column>
<el-table-column label="第三方系统" prop="thirdSys"></el-table-column> <el-table-column label="第三方系统" prop="thirdSysName"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column> <el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="操作" width="100" fixed="right"> <el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
@ -195,6 +194,15 @@ export default {
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.list = response.data.list || []; this.list = response.data.list || [];
if (this.list.length > 0) {
this.list.forEach(item => {
this.thirdSys.forEach(third => {
if (item.thirdSys === third.thirdId) {
item.thirdSysName = third.thirdName;
}
})
})
}
this.total = response.data.total || 0; this.total = response.data.total || 0;
}) })
.catch(() => { .catch(() => {

@ -48,7 +48,7 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getCodeList" <el-button type="primary" icon="search" @click="search"
>查询 >查询
</el-button </el-button
> >
@ -180,7 +180,10 @@ export default {
this.query.page = val; this.query.page = val;
this.getCodeList(); this.getCodeList();
}, },
search() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.productIdFk = this.idQuery.relIdFk; this.query.productIdFk = this.idQuery.relIdFk;

@ -143,6 +143,8 @@
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="85%" width="85%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<codeDetail <codeDetail
:idQuery="idQuery" :idQuery="idQuery"
@ -241,6 +243,7 @@ export default {
}, },
onSubmit() { onSubmit() {
this.loading = true; this.loading = true;
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
handleSizeChange(val) { handleSizeChange(val) {

@ -82,7 +82,7 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getCodeList" <el-button type="primary" icon="search" @click="search"
>查询 >查询
</el-button </el-button
> >
@ -220,7 +220,10 @@ export default {
this.query.page = val; this.query.page = val;
this.getCodeList(); this.getCodeList();
}, },
search() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.productIdFk = this.idQuery.relIdFk; this.query.productIdFk = this.idQuery.relIdFk;

@ -121,6 +121,8 @@
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="85%" width="85%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<codeDetail <codeDetail
:idQuery="idQuery" :idQuery="idQuery"

@ -157,6 +157,7 @@ export default {
}, },
onSubmit() { onSubmit() {
this.loading = true; this.loading = true;
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
handleSizeChange(val) { handleSizeChange(val) {

@ -208,7 +208,7 @@ export default {
registerNo: null, registerNo: null,
manufactory: null, manufactory: null,
name: "", name: "",
thirdSys: null, thirdSys: this.thirdSys[0].thirdId,
page: 1, page: 1,
limit: 20, limit: 20,
}; };

Loading…
Cancel
Save