1.修复部分页面数据未展示问题

master
x_z 3 years ago
parent 2cfc908404
commit e77e42a35c

@ -1021,15 +1021,10 @@ export default {
let params = {id: row.id}; let params = {id: row.id};
updateDirector(params).then((res) => { updateDirector(params).then((res) => {
this.$message.success("设置成功"); this.$message.success("设置成功");
// if (res.code === 20000) {
let loadParam = {
code: this.currentCode
};
// //
warehouseUserList(loadParam).then((res) => { this.loadUserList();
this.userData = res.data; }
}).catch((error) => {
});
}).catch((error) => { }).catch((error) => {
this.$message.error("设置失败"); this.$message.error("设置失败");
}); });

@ -297,6 +297,7 @@ export default {
}); });
}, },
combineUdiAll() { combineUdiAll() {
if (this.udidlList.length > 0) {
this.$confirm("此操作将在后台自动下载所有查询结果, 是否继续?", "提示", { this.$confirm("此操作将在后台自动下载所有查询结果, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -318,8 +319,9 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
} else {
this.$message.error("无数据可以选入!");
}
}, },
intentDetail(row) { intentDetail(row) {

@ -180,7 +180,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="往来单位简写" label="往来单位简写"
prop="spell" prop="pinyinCode"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
@ -188,8 +188,12 @@
prop="addr" prop="addr"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="状态" prop="status"></el-table-column> <!--<el-table-column label="状态" prop="status"></el-table-column>-->
<el-table-column label="类型" prop="type"></el-table-column> <el-table-column label="类型" prop="corpType">
<template slot-scope="scope">
<span>{{ corpTypeMap[scope.row.corpType] }}</span>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
@ -256,7 +260,12 @@ export default {
9: "异常" 9: "异常"
}, },
curIndex: "", curIndex: "",
unitquery: {key: "", page: 1, limit: 10}, unitquery: {
key: "",
corpType: null,
page: 1,
limit: 10
},
unitTotal: 0, unitTotal: 0,
unitlist: [], unitlist: [],
unitUpdateQuery: { unitUpdateQuery: {
@ -288,7 +297,13 @@ export default {
formLoading: false, formLoading: false,
dialogVisible: false, dialogVisible: false,
formData: formJson, formData: formJson,
deleteLoading: false deleteLoading: false,
currentRowAction: null, //
corpTypeMap: {
1: "客户",
2: "供应商",
4: "特殊往来"
}
}; };
}, },
components: { components: {
@ -332,19 +347,8 @@ export default {
this.curIndex = row.id; this.curIndex = row.id;
this.dialogTableVisible = true; this.dialogTableVisible = true;
this.curOrderId = row.orderId; this.curOrderId = row.orderId;
getCorpType({action: row.action}).then((res) => { this.currentRowAction = row.action;
if (res.code === 20000) {
this.unitquery = {
key: "",
corpType: res.data,
page: 1,
limit: 10
}
this.getUnitList(); this.getUnitList();
} else {
this.$message.error("查询往来单位错误");
}
})
}, },
closeDetailDialog(val) { closeDetailDialog(val) {
this.codeDetailVisible = false; this.codeDetailVisible = false;
@ -358,14 +362,17 @@ export default {
}, },
resetUnitQuery() { resetUnitQuery() {
this.unitlist = []; this.unitlist = [];
this.unitquery = {key: "", page: 1, limit: 20}; this.unitquery.key = "";
this.getUnitList(); this.getUnitList(1);
}, },
getUnitList(page) { getUnitList(page) {
this.loading = true; this.loading = true;
if (page != null) { if (page != null) {
this.unitquery.page = 1; this.unitquery.page = 1;
} }
getCorpType({action: this.currentRowAction}).then((res) => {
if (res.code === 20000) {
this.unitquery.corpType = res.data;
unitListBykey(this.unitquery) unitListBykey(this.unitquery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -375,6 +382,10 @@ export default {
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
} else {
this.$message.error("查询往来单位错误");
}
})
}, },
selectUnit(row) { selectUnit(row) {

@ -162,7 +162,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="往来单位简写" label="往来单位简写"
prop="spell" prop="pinyinCode"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
@ -170,12 +170,16 @@
prop="addr" prop="addr"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="状态" prop="status"> <!--<el-table-column label="状态" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ orderStatus[scope.row.status] }}</span> <span>{{ orderStatus[scope.row.status] }}</span>
</template> </template>
</el-table-column>-->
<el-table-column label="类型" prop="corpType">
<template slot-scope="scope">
<span>{{ corpTypeMap[scope.row.corpType] }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="类型" prop="type"></el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
@ -235,7 +239,12 @@ export default {
limit: 20 limit: 20
}, },
curIndex: "", curIndex: "",
unitquery: {key: "", page: 1, limit: 20}, unitquery: {
key: "",
corpType: null,
page: 1,
limit: 20
},
unitlist: [], unitlist: [],
unitUpdateQuery: { unitUpdateQuery: {
id: "", id: "",
@ -270,6 +279,12 @@ export default {
1: "等待处理", 1: "等待处理",
3: "校验失败", 3: "校验失败",
4: "已校验" 4: "已校验"
},
currentRowAction: null, //
corpTypeMap: {
1: "客户",
2: "供应商",
4: "特殊往来"
} }
}; };
}, },
@ -306,29 +321,21 @@ export default {
this.curIndex = row.id; this.curIndex = row.id;
this.dialogTableVisible = true; this.dialogTableVisible = true;
this.curOrderId = row.orderId; this.curOrderId = row.orderId;
getCorpType({action: row.action}).then((res) => { this.currentRowAction = row.action;
if (res.code === 20000) {
this.unitquery = {
key: "",
corpType: res.data,
page: 1,
limit: 10
}
this.getUnitList(); this.getUnitList();
} else {
this.$message.error("查询往来单位错误");
}
})
}, },
closeDetailDialog(val) { closeDetailDialog(val) {
this.codeDetailVisible = false; this.codeDetailVisible = false;
}, },
resetUnitQuery() { resetUnitQuery() {
this.unitquery = {key: "", page: 1, limit: 20}; this.unitquery.key = "";
this.getUnitList(); this.getUnitList(1);
}, },
getUnitList() { getUnitList() {
this.loading = true; this.loading = true;
getCorpType({action: this.currentRowAction}).then((res) => {
if (res.code === 20000) {
this.unitquery.corpType = res.data;
unitListBykey(this.unitquery) unitListBykey(this.unitquery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -337,6 +344,10 @@ export default {
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
} else {
this.$message.error("查询往来单位错误");
}
})
}, },
selectUnit(row) { selectUnit(row) {

@ -3,8 +3,10 @@
<el-card class="el-card"> <el-card class="el-card">
<el-row style="margin-bottom: 20px;"> <el-row style="margin-bottom: 20px;">
<el-button type="primary" @click="batchSetParams(null,'salesListNo')"></el-button> <el-button type="primary" @click="batchSetParams(null,'salesListNo')"></el-button>
<el-button type="primary" @click="batchSetParams(null, 'firstSalesInvNo')">批量设置销售发票第一票</el-button> <el-button type="primary" @click="batchSetParams(null, 'firstSalesInvNo')">批量设置销售发票第一票
<el-button type="primary" @click="batchSetParams(null, 'secSalesInvNo')">批量设置销售发票第二票</el-button> </el-button>
<el-button type="primary" @click="batchSetParams(null, 'secSalesInvNo')">批量设置销售发票第二票
</el-button>
</el-row> </el-row>
<el-table v-loading="detailLoading" <el-table v-loading="detailLoading"
@ -83,7 +85,13 @@
</el-pagination> </el-pagination>
</el-card> </el-card>
<el-dialog v-bind:width="'25%'" :visible.sync="salesListNoFormVisible" append-to-body> <el-dialog
v-bind:width="'25%'"
:visible.sync="salesListNoFormVisible"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-form :model="batchForm"> <el-form :model="batchForm">
<label></label> <label></label>
<el-form-item label="销售清单:" :label-width="formLabelWidth"> <el-form-item label="销售清单:" :label-width="formLabelWidth">
@ -96,7 +104,12 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog v-bind:width="'25%'" :visible.sync="firstSalesInvNoFormVisible" append-to-body> <el-dialog v-bind:width="'25%'"
:visible.sync="firstSalesInvNoFormVisible"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-form :model="batchForm"> <el-form :model="batchForm">
<label></label> <label></label>
<el-form-item label="销售发票第一票:" :label-width="formLabelWidth"> <el-form-item label="销售发票第一票:" :label-width="formLabelWidth">
@ -109,7 +122,13 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog v-bind:width="'25%'" :visible.sync="secSalesInvNoFormVisible" append-to-body> <el-dialog
v-bind:width="'25%'"
:visible.sync="secSalesInvNoFormVisible"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-form :model="batchForm"> <el-form :model="batchForm">
<label></label> <label></label>
<el-form-item label="销售发票第二票:" :label-width="formLabelWidth"> <el-form-item label="销售发票第二票:" :label-width="formLabelWidth">

Loading…
Cancel
Save