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