第三方往来单位界面样式修改

prod
郑明梁 3 years ago
parent 45e65f25ca
commit 6f44066cf1

@ -1,83 +1,97 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini"> <el-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
<el-form-item class="query-form-item"> <el-row>
<el-input <el-col :span="6">
v-model="filterQuery.unitId" <el-form-item label="单位编码:">
placeholder="请输入往来单位编码" <el-input
clearable v-model="filterQuery.unitId"
></el-input> placeholder="请输入往来单位编码"
</el-form-item> style="width: 90%"
<el-form-item class="query-form-item"> clearable
<el-input ></el-input>
v-model="filterQuery.name" </el-form-item>
placeholder="请输入往来单位" </el-col>
clearable <el-col :span="6">
></el-input> <el-form-item label="往来单位:">
</el-form-item> <el-input
<el-form-item class="query-form-item"> v-model="filterQuery.name"
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange"> placeholder="请输入往来单位"
<el-option style="width: 90%"
v-for="item in thirdSys" clearable
:key="item.value" ></el-input>
:label="item.thirdName" </el-form-item>
:value="item.thirdId"> </el-col>
<span style="float: left">{{ item.thirdName }}</span> <el-col :span="6">
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span> <el-form-item label="外部系统:">
</el-option> <el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" style="width: 90%"
</el-select> @change="thirdSysChange">
</el-form-item> <el-option
<el-form-item> v-for="item in thirdSys"
<el-button-group style="display:flex;"> :key="item.value"
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> :label="item.thirdName"
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> :value="item.thirdId">
<el-button type="primary" icon="el-icon-upload2" @click="selectExport" v-if="selectType==0" <span style="float: left">{{ item.thirdName }}</span>
>选中导出 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-button> </el-option>
<el-button type="primary" icon="el-icon-upload2" @click="allExport" v-if="selectType==0" </el-select>
>结果全部导出 </el-form-item>
</el-button> </el-col>
<el-button type="primary" icon="search" @click="selectUpload" </el-row>
v-if="selectType==1" </el-form>
>选中上传
</el-button> <div class="top-right-btn">
<el-button type="primary" icon="search" @click="allUpload" <el-button-group style="display:flex;">
v-if="selectType==1" <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
>一键上传 <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
</el-button> <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-download" @click="downloadErp" v-if="selectType==3" <el-button type="primary" icon="el-icon-upload2" @click="selectExport" v-if="selectType==0"
>选中下载 >选中导出
</el-button> </el-button>
<el-button type="primary" icon="el-icon-download" @click="downloadAllErp" v-if="selectType==3" <el-button type="primary" icon="el-icon-upload2" @click="allExport" v-if="selectType==0"
>结果全部下载 >结果全部导出
</el-button> </el-button>
</el-button-group> <el-button type="primary" icon="el-icon-top-upload" @click="selectUpload"
</el-form-item> v-if="selectType==1"
</el-form> >选中上传
<el-table v-loading="loading" :data="list" </el-button>
style="width: 100%" <el-button type="primary" icon="el-icon-top-upload" @click="allUpload"
@selection-change="handleSelectionChange" v-if="selectType==1"
border highlight-current-row> >一键上传
<el-table-column type="selection" width="55"></el-table-column> </el-button>
<el-table-column label="序号" type="index" width="60"></el-table-column> <el-button type="primary" icon="el-icon-download" @click="downloadErp" v-if="selectType==3"
<el-table-column label="往来单位ID" prop="unitId" width="100" show-overflow-tooltip></el-table-column> >选中下载
<el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column> </el-button>
<el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column> <el-button type="primary" icon="el-icon-download" @click="downloadAllErp" v-if="selectType==3"
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column> >结果全部下载
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column> </el-button>
<el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column> </el-button-group>
<el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column> </div>
</el-table> <el-divider style="margin: 15px"></el-divider>
<pagination <el-table v-loading="loading" :data="list"
v-show="total>0" style="width: 100%"
:total="total" @selection-change="handleSelectionChange"
:page.sync="filterQuery.page" border highlight-current-row>
:limit.sync="filterQuery.limit" <el-table-column type="selection" width="55"></el-table-column>
@pagination="getList" <el-table-column label="序号" type="index" width="60"></el-table-column>
/> <el-table-column label="往来单位ID" prop="unitId" width="100" show-overflow-tooltip></el-table-column>
</el-card> <el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column>
</div> <el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column>
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column>
<el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
/>
</el-card>
</div>
</template> </template>
<script> <script>
@ -89,231 +103,234 @@ import {exportExcel, uploadSmp} from "@/api/thrsys/thrCorpsExport"
export default { export default {
name: "ThrCorpSelect", name: "ThrCorpSelect",
props: { props: {
selectType: { selectType: {
type: Object, type: Object,
required: true, required: true,
},
isDownThrSys: {
type: Object,
required: true,
},
}, },
isDownThrSys: {
data() { type: Object,
return { required: true,
filterQuery: {
thrCorpEntities: [],
unitId: null,
name: null,
thirdSys: null,
page: 1,
limit: 20,
isDownThrSys: null,
},
total: 0,
list: [],
thirdSys: [],
thirdSysDetail: null,
uploadFileUrl: null,
fileList: [],
uploadData: {
thirdSys: "thirdId",
},
loading:false,
};
}, },
},
methods: { data() {
onReset() { return {
this.$router.push({ showSearch: true,
path: "", filterQuery: {
}); thrCorpEntities: [],
this.filterQuery = { unitId: null,
thrCorpEntities: [], name: null,
unitId: null, thirdSys: null,
name: null, page: 1,
thirdSys: null, limit: 20,
page: 1, isDownThrSys: null,
limit: 20, },
isDownThrSys: null, total: 0,
}; list: [],
this.getList(); thirdSys: [],
}, thirdSysDetail: null,
uploadFileUrl: null,
fileList: [],
uploadData: {
thirdSys: "thirdId",
},
loading: false,
};
},
getList() { methods: {
this.loading = true; onReset() {
this.filterQuery.isDownThrSys = this.isDownThrSys; this.$router.push({
ucloudUnit(this.filterQuery) path: "",
.then((response) => { });
this.loading = false; this.filterQuery = {
if (response.code == 20000) { thrCorpEntities: [],
this.list = response.data.list || []; unitId: null,
this.total = response.data.total || 0; name: null,
} else { thirdSys: null,
this.$message.error(response.message); page: 1,
} limit: 20,
isDownThrSys: null,
};
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
},
getList() {
this.loading = true;
this.filterQuery.isDownThrSys = this.isDownThrSys;
ucloudUnit(this.filterQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.list = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
this.total = 0; this.total = 0;
}); });
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
getBasicThirdSys() { getBasicThirdSys() {
let query = { let query = {
enabled: true, enabled: true,
}; };
getBasicThirdSys(query) getBasicThirdSys(query)
.then((response) => { .then((response) => {
this.thirdSys = response.data.list || []; this.thirdSys = response.data.list || [];
this.filterQuery.thirdSys = this.thirdSys[0].thirdId; this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
this.uploadData.thirdSys = this.filterQuery.thirdSys; this.uploadData.thirdSys = this.filterQuery.thirdSys;
this.getThirdSysDetail(); this.getThirdSysDetail();
this.selectSysParam(); this.selectSysParam();
this.getList(); this.getList();
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
}); });
}, },
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
console.log(response); console.log(response);
if (response.code != 20000) { if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
} else { } else {
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]); console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!"); this.$message.success("文件上传成功,请稍后刷新查看!");
} }
}, },
selectSysParam() { selectSysParam() {
let query = { let query = {
key: "thirdIpUrl", key: "thirdIpUrl",
thirdSysFk: this.filterQuery.thirdSys thirdSysFk: this.filterQuery.thirdSys
}; };
selectIp(query).then((response) => { selectIp(query).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.uploadFileUrl = response.data.thridUrl + "/udiwms/erp/corp/upload"; this.uploadFileUrl = response.data.thridUrl + "/udiwms/erp/corp/upload";
} }
}); });
}, },
thirdSysChange() { thirdSysChange() {
this.uploadData.thirdSys = this.filterQuery.thirdSys; this.uploadData.thirdSys = this.filterQuery.thirdSys;
// this.getThirdSysDetail(); // this.getThirdSysDetail();
}, },
getThirdSysDetail() { getThirdSysDetail() {
let query = { let query = {
thirdSysFk: this.filterQuery.thirdSys, thirdSysFk: this.filterQuery.thirdSys,
key: "corpUrl", key: "corpUrl",
}; };
filterDetailByKey(query) filterDetailByKey(query)
.then((response) => { .then((response) => {
this.thirdSysDetail = response.data; this.thirdSysDetail = response.data;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
}); });
}, },
downloadErp() { downloadErp() {
var selectData = this.multipleSelection; var selectData = this.multipleSelection;
selectData.forEach((obj) => { selectData.forEach((obj) => {
this.filterQuery.thrCorpEntities.push(obj); this.filterQuery.thrCorpEntities.push(obj);
}); });
this.downloadAllErp(); this.downloadAllErp();
}, },
downloadAllErp() { downloadAllErp() {
corpsDlAll(this.filterQuery) corpsDlAll(this.filterQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("提交成功,后台正在下载!") this.$message.success("提交成功,后台正在下载!")
} else { } else {
this.$message.error(response.message) this.$message.error(response.message)
} }
this.$emit("cancelDialog", true); this.$emit("cancelDialog", true);
}) })
.catch(() => { .catch(() => {
this.$message.error("下载失败!"); this.$message.error("下载失败!");
}); });
}, },
selectExport() { selectExport() {
var selectData = this.multipleSelection; var selectData = this.multipleSelection;
selectData.forEach((obj) => { selectData.forEach((obj) => {
this.filterQuery.thrCorpEntities.push(obj); this.filterQuery.thrCorpEntities.push(obj);
});
this.allExport();
},
allExport() {
exportExcel(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
this.$message({
type: "success",
message: "导出成功后台正在生成Json文件请稍后刷新查看",
}); });
this.allExport(); } else {
}, this.$message({
allExport() { type: "error",
exportExcel(this.filterQuery) message: response.message,
.then((response) => {
if (response.code == 20000) {
this.$message({
type: "success",
message: "导出成功后台正在生成Json文件请稍后刷新查看",
});
} else {
this.$message({
type: "error",
message: response.message,
});
}
this.$emit("cancelDialog", true);
})
.catch(() => {
this.$message({
type: "error",
message: "上传失败",
});
});
},
selectUpload() {
var selectData = this.multipleSelection;
selectData.forEach((obj) => {
this.filterQuery.thrCorpEntities.push(obj);
}); });
this.allUpload(); }
}, this.$emit("cancelDialog", true);
allUpload() { })
uploadSmp(this.filterQuery) .catch(() => {
.then((response) => { this.$message({
if (response.code == 20000) { type: "error",
this.$message({ message: "上传失败",
type: "success", });
message: "上传成功!!", });
});
} else {
this.$message({
type: "error",
message: response.message,
});
}
this.$emit("cancelDialog", true);
})
.catch(() => {
this.$message({
type: "error",
message: "上传失败",
});
});
},
}, },
components: {},
mounted() { selectUpload() {
var selectData = this.multipleSelection;
selectData.forEach((obj) => {
this.filterQuery.thrCorpEntities.push(obj);
});
this.allUpload();
}, },
created() { allUpload() {
// this.getList(); uploadSmp(this.filterQuery)
this.getBasicThirdSys(); .then((response) => {
if (response.code == 20000) {
this.$message({
type: "success",
message: "上传成功!!",
});
} else {
this.$message({
type: "error",
message: response.message,
});
}
this.$emit("cancelDialog", true);
})
.catch(() => {
this.$message({
type: "error",
message: "上传失败",
});
});
}, },
},
components: {},
mounted() {
},
created() {
// this.getList();
this.getBasicThirdSys();
},
}; };

@ -1,75 +1,90 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini"> <el-form size="mini" :model="filterQuery" label-width="100px" v-show="showSearch">
<el-form-item class="query-form-item"> <el-row>
<el-input <el-col :span="6">
v-model="filterQuery.unitId" <el-form-item label="单位编码:">
placeholder="请输入往来单位编码" <el-input
clearable v-model="filterQuery.unitId"
></el-input> placeholder="请输入往来单位编码"
</el-form-item> style="width: 90%"
<el-form-item class="query-form-item"> clearable
<el-input ></el-input>
v-model="filterQuery.name" </el-form-item>
placeholder="请输入往来单位" </el-col>
clearable <el-col :span="6">
></el-input> <el-form-item label="往来单位:">
</el-form-item> <el-input
<el-form-item class="query-form-item"> v-model="filterQuery.name"
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange"> placeholder="请输入往来单位"
<el-option style="width: 90%"
v-for="item in thirdSys" clearable
:key="item.value" ></el-input>
:label="item.thirdName" </el-form-item>
:value="item.thirdId"> </el-col>
<span style="float: left">{{ item.thirdName }}</span> <el-col :span="6">
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span> <el-form-item label="外部系统:">
</el-option> <el-select v-model="filterQuery.thirdSys" style="width: 90%" placeholder="请选择第三方系统"
</el-select> @change="thirdSysChange">
</el-form-item> <el-option
<el-form-item> v-for="item in thirdSys"
<el-button-group style="display:flex;"> :key="item.value"
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> :label="item.thirdName"
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> :value="item.thirdId">
<el-button type="primary" icon="search" @click="clearAll" <span style="float: left">{{ item.thirdName }}</span>
v-if="!this.thirdSysDetail.enabled">清空全部 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-button> </el-option>
</el-button-group> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-col>
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row> </el-row>
<el-table-column label="序号" type="index" width="60"></el-table-column> </el-form>
<el-table-column label="往来单位ID" prop="id" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column>
<el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column>
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column>
<el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" v-if="thirdSysDetail.fromType!=0" width="150px">
<template slot-scope="scope">
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" :disabled="!delFalg"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
></pagination> <div class="top-right-btn">
</el-card> <el-button-group style="display:flex;">
</div> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-delete-solid" @click="clearAll"
v-if="!this.thirdSysDetail.enabled">清空全部
</el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>
<el-table-column label="序号" type="index" width="60"></el-table-column>
<el-table-column label="往来单位ID" prop="id" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column>
<el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column>
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column>
<el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" v-if="thirdSysDetail.fromType!=0" width="60">
<template slot-scope="scope">
<el-button type="text" @click.native.stop="deleteDialog(scope.row)" :disabled="!delFalg"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
></pagination>
</el-card>
</div>
</template> </template>
<script> <script>
import { import {
getCorps, delCorps, delAll, downloadAll getCorps, delCorps, delAll, downloadAll
} from "@/api/thrsys/thrCorps"; } from "@/api/thrsys/thrCorps";
import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys"; import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys";
import {ucloudUnit} from "@/api/basic/basicUnitMaintain"; import {ucloudUnit} from "@/api/basic/basicUnitMaintain";
@ -77,210 +92,214 @@ import {selectIp} from "@/api/param/systemParamConfig";
import {findConfig} from "@/api/thrsys/spsSyncStatus"; import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default { export default {
data() { data() {
return { return {
filterQuery: { showSearch: true,
unitId: null, filterQuery: {
name: null, unitId: null,
thirdSys: null, name: null,
page: 1, thirdSys: null,
limit: 20, page: 1,
}, limit: 20,
total: 0, },
list: [], total: 0,
thirdSys: [], list: [],
thirdSysDetail: null, thirdSys: [],
delFalg:true, thirdSysDetail: null,
uploadFileUrl: null, delFalg: true,
fileList: [], uploadFileUrl: null,
uploadData: { fileList: [],
thirdSys: "thirdId", uploadData: {
}, thirdSys: "thirdId",
}; },
};
},
methods: {
onReset() {
// this.$router.push({
// path: "",
// });
this.filterQuery = {
unitId: null,
name: null,
thirdSys: null,
page: 1,
limit: 20,
};
this.getList();
}, },
methods: { getList() {
onReset() {
// this.$router.push({
// path: "",
// });
this.filterQuery = {
unitId: null,
name: null,
thirdSys: null,
page: 1,
limit: 20,
};
this.getList();
},
getList() {
if (this.filterQuery.thirdSys == null) {
this.$message.warning("请先选择第三方系统!")
return;
}
if (this.filterQuery.thirdSys == null) { this.loading = true;
this.$message.warning("请先选择第三方系统!") ucloudUnit(this.filterQuery)
return; .then((response) => {
} if (response.code == 20000) {
this.list = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
this.loading = false;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
hideSearch() {
this.showSearch = !this.showSearch;
},
deleteDialog(row) {
this.$confirm("此操作将永久删除该往来单位信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.loading = true; let dQuery = {
ucloudUnit(this.filterQuery) id: row.id,
.then((response) => { };
if (response.code == 20000) { delCorps(dQuery)
this.list = response.data.list || []; .then((response) => {
this.total = response.data.total || 0; this.loading = false;
} else { if (response.code == 20000) {
this.$message.error(response.message); this.$message.success("删除成功");
} this.getList();
this.loading = false; } else {
}) this.$message.error(response.message);
.catch(() => { }
this.loading = false;
this.list = [];
this.total = 0;
});
},
deleteDialog(row) {
this.$confirm("此操作将永久删除该往来单位信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.then(() => { .catch(() => {
this.loading = false;
let dQuery = { });
id: row.id,
};
delCorps(dQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
});
}) })
.catch(() => { .catch(() => {
}); });
}, },
clearAll() { clearAll() {
this.$confirm("此操作将清空所有往来单位信息, 是否继续?", "提示", { this.$confirm("此操作将清空所有往来单位信息, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
})
.then(() => {
delAll()
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
this.getList();
} else {
this.$message.success(response.message);
}
}) })
.then(() => { .catch(() => {
delAll() this.loading = false;
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
this.getList();
} else {
this.$message.success(response.message);
}
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
this.uploadData.thirdSys = this.filterQuery.thirdSys;
this.getThirdSysDetail();
this.selectSysParam();
this.getList();
})
.catch(() => {
this.loading = false;
this.list = [];
});
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!");
}
},
selectSysParam() {
let query = {
key: "thirdIpUrl",
thirdSysFk: this.filterQuery.thirdSys
};
selectIp(query).then((response) => {
if (response.code == 20000) {
this.uploadFileUrl = response.data.thridUrl + "/udiwms/erp/corp/upload";
}
}); });
},
thirdSysChange() {
this.uploadData.thirdSys = this.filterQuery.thirdSys;
this.getThirdSysDetail();
},
getThirdSysDetail() {
let query = {
thirdSysFk: this.filterQuery.thirdSys,
key: "corpUrl",
};
filterDetailByKey(query)
.then((response) => {
this.thirdSysDetail = response.data;
})
.catch(() => {
this.loading = false;
this.list = [];
});
}, })
getConFig(){ .catch(() => {
findConfig().then((response) =>{ });
if (response.code == 20000) { },
this.delFalg=response.data.basicThirdCorp; getBasicThirdSys() {
} else { let query = {
this.$message.error(response.message); enabled: true,
} };
}); getBasicThirdSys(query)
}, .then((response) => {
downloadDatas() { this.thirdSys = response.data.list || [];
let query = { this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
thirdSysFk: this.filterQuery.thirdSys this.uploadData.thirdSys = this.filterQuery.thirdSys;
}; this.getThirdSysDetail();
downloadAll(query).then((response) => { this.selectSysParam();
if (response.code == 20000) { this.getList();
this.$message.success(response.data); })
} else { .catch(() => {
this.$message.error(response.message); this.loading = false;
} this.list = [];
}); });
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!");
}
},
selectSysParam() {
let query = {
key: "thirdIpUrl",
thirdSysFk: this.filterQuery.thirdSys
};
selectIp(query).then((response) => {
if (response.code == 20000) {
this.uploadFileUrl = response.data.thridUrl + "/udiwms/erp/corp/upload";
}
});
},
thirdSysChange() {
this.uploadData.thirdSys = this.filterQuery.thirdSys;
this.getThirdSysDetail();
},
getThirdSysDetail() {
let query = {
thirdSysFk: this.filterQuery.thirdSys,
key: "corpUrl",
};
filterDetailByKey(query)
.then((response) => {
this.thirdSysDetail = response.data;
})
.catch(() => {
this.loading = false;
this.list = [];
});
},
}, },
components: {}, getConFig() {
mounted() { findConfig().then((response) => {
if (response.code == 20000) {
this.delFalg = response.data.basicThirdCorp;
} else {
this.$message.error(response.message);
}
});
}, },
created() { downloadDatas() {
this.getConFig(); let query = {
this.getBasicThirdSys(); thirdSysFk: this.filterQuery.thirdSys
};
downloadAll(query).then((response) => {
if (response.code == 20000) {
this.$message.success(response.data);
} else {
this.$message.error(response.message);
}
});
}, },
},
components: {},
mounted() {
},
created() {
this.getConFig();
this.getBasicThirdSys();
},
}; };

@ -1,91 +1,93 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :model="query" size="mini" label-width="100px" v-show="showSearch">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-input v-model="filterQuery.genKey" placeholder="请输入记录ID"></el-input> <el-form-item label="记录ID:">
</el-form-item> <el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="请输入记录ID"></el-input>
<el-form-item> </el-form-item>
<el-button-group style="display:flex;"> </el-col>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> </el-row>
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> </el-form>
<el-button type="primary" icon="el-icon-upload2" @click="exportExcel"></el-button>
</el-button-group>
</el-form-item>
</el-row>
</el-form>
<el-table <div class="top-right-btn">
<el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-upload2" @click="exportExcel"></el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table
v-loading="loading" v-loading="loading"
:data="list" :data="list"
style="width: 100%" style="width: 100%"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
border highlight-current-row border highlight-current-row
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="记录ID" label="记录ID"
prop="genKey" prop="genKey"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="更新日期" label="更新日期"
prop="updateTime" prop="updateTime"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="状态" label="状态"
prop="status" prop="status"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
:type="statusFilterType(scope.row.status)" :type="statusFilterType(scope.row.status)"
>{{ status[scope.row.status] }} >{{ status[scope.row.status] }}
</el-tag </el-tag
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="下载次数" label="下载次数"
prop="dlCount" prop="dlCount"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column label="操作" width="160"> <el-table-column label="操作" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small"
@click.native.stop="downloadExcel(scope.row)" @click.native.stop="downloadExcel(scope.row)"
>下载 >下载
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small"
@click.native.stop="deleteDialog(scope.row.id)" @click.native.stop="deleteDialog(scope.row.id)"
>删除 >删除
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-dialog <el-dialog
title="导出往来单位信息" title="导出往来单位信息"
:visible.sync="thrCorpSelectVisible" :visible.sync="thrCorpSelectVisible"
width="85%" width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="thrCorpSelectVisible" v-if="thrCorpSelectVisible"
> >
<thrCorpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog" <thrCorpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog"
></thrCorpSelect> ></thrCorpSelect>
</el-dialog> </el-dialog>
<pagination <pagination
v-show="total>0" v-show="total>0"
@ -107,6 +109,7 @@ import {formatDate} from "@/utils/date";
export default { export default {
data() { data() {
return { return {
showSearch: true,
filterQuery: { filterQuery: {
genKey: null, genKey: null,
status: null, status: null,
@ -156,25 +159,28 @@ export default {
}; };
this.getList(); this.getList();
}, },
hideSearch() {
this.showSearch = !this.showSearch;
},
getList() { getList() {
this.loading = true; this.loading = true;
filterLog(this.filterQuery) filterLog(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
this.total = 0; this.total = 0;
}); });
}, },
exportExcel() { exportExcel() {
@ -189,19 +195,19 @@ export default {
axios.get("./config.json").then(res => { axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL; let baseUrl = res.data.BASE_URL;
let href = baseUrl + "/udiwms/thrCorp/exportLog/download" + let href = baseUrl + "/udiwms/thrCorp/exportLog/download" +
"?genKey=" + row.genKey; "?genKey=" + row.genKey;
let a = document.createElement("a"); let a = document.createElement("a");
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss") var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
fetch(href) fetch(href)
.then((res) => res.blob()) .then((res) => res.blob())
.then((blob) => { .then((blob) => {
a.href = URL.createObjectURL(blob); a.href = URL.createObjectURL(blob);
console.log(a.href); console.log(a.href);
a.download = "ThirdCorp_" + timestamp + ".UpperIn"; a.download = "ThirdCorp_" + timestamp + ".UpperIn";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
this.getList(); this.getList();
}); });
}); });
}, },
@ -217,26 +223,26 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
let dQuery = { let dQuery = {
id: rowId, id: rowId,
}; };
deleteLog(dQuery) deleteLog(dQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("删除成功"); this.$message.success("删除成功");
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
this.getList(); this.getList();
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
}) })
.catch(() => { .catch(() => {
}); });
}, },
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
console.log(response); console.log(response);

@ -1,98 +1,100 @@
<template> <template>
<div> <div>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" size="mini" label-width="100px" v-show="showSearch">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-input v-model="filterQuery.genKey" placeholder="记录ID"></el-input> <el-form-item label="记录ID:">
</el-form-item> <el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="请输入记录ID"></el-input>
<el-form-item> </el-form-item>
<el-button-group style="display:flex;"> </el-col>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> </el-row>
<el-button type="primary" icon="search" @click="getList"></el-button> </el-form>
<el-button type="primary" icon="search" @click="uploadSmp"></el-button>
</el-button-group>
</el-form-item>
</el-row>
</el-form>
<el-table <div class="top-right-btn">
v-loading="loading" <el-button-group style="display:flex;">
:data="list" <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
style="width: 100%" <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
@selection-change="handleSelectionChange" <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
> <el-button type="primary" icon="el-icon-share" @click="uploadSmp"></el-button>
<el-table-column label="序号" type="index"></el-table-column> </el-button-group>
<el-table-column </div>
label="记录ID"
prop="genKey"
show-overflow-tooltip
></el-table-column>
<el-table
v-loading="loading"
:data="list"
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="记录ID"
prop="genKey"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="更新日期"
prop="updateTime"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="状态"
prop="status"
show-overflow-tooltip
>
<template slot-scope="scope">
<el-tag
:type="statusFilterType(scope.row.status)"
>{{ status[scope.row.status] }}
</el-tag
>
</template>
</el-table-column>
<el-table-column
label="下载次数"
prop="dlCount"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="操作" fixed="right" width="160">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="downloadExcel(scope.row)"
>下载
</el-button
>
<el-button
type="text"
size="small"
@click.native.stop="deleteDialog(scope.row.id)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-dialog <el-table-column
title="导出往来单位信息" label="更新日期"
:visible.sync="thrCorpSelectVisible" prop="updateTime"
width="85%" show-overflow-tooltip
:close-on-click-modal="false" ></el-table-column>
:close-on-press-escape="false" <el-table-column
v-if="thrCorpSelectVisible" label="状态"
> prop="status"
<thrCorpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog" show-overflow-tooltip
></thrCorpSelect> >
</el-dialog> <template slot-scope="scope">
<el-tag
:type="statusFilterType(scope.row.status)"
>{{ status[scope.row.status] }}
</el-tag
>
</template>
</el-table-column>
<el-table-column
label="下载次数"
prop="dlCount"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="操作" fixed="right" width="120">
<template slot-scope="scope">
<el-button
type="text"
@click.native.stop="downloadExcel(scope.row)"
>下载
</el-button
>
<el-button
type="text"
@click.native.stop="deleteDialog(scope.row.id)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-pagination <el-dialog
:page-size="filterQuery.limit" title="导出往来单位信息"
@current-change="handleCurrentChange" :visible.sync="thrCorpSelectVisible"
layout="prev, pager, next" width="80%"
:total="total" :close-on-click-modal="false"
:current-page="filterQuery.page" :close-on-press-escape="false"
></el-pagination> v-if="thrCorpSelectVisible"
</div> >
<thrCorpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog"
></thrCorpSelect>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</div>
</template> </template>
<script> <script>
@ -101,196 +103,200 @@ import thrCorpSelect from "./thrCorpSelect";
import axios from "axios"; import axios from "axios";
export default { export default {
data() { data() {
return { return {
filterQuery: { showSearch: true,
genKey: null, filterQuery: {
status: null, genKey: null,
fromType: null, status: null,
page: 1, fromType: null,
type: 2, page: 1,
limit: 20, type: 2,
thirdSysFk: null, limit: 20,
}, thirdSysFk: null,
selectType: 0, },
thrCorpSelectVisible: false, selectType: 0,
list: [], thrCorpSelectVisible: false,
detailList: [], list: [],
thirdSys: [], detailList: [],
thirdSysDetail: null, thirdSys: [],
total: 0, thirdSysDetail: null,
editQuery: null, total: 0,
fromStatus: { editQuery: null,
0: "产品信息", fromStatus: {
1: "库存信息", 0: "产品信息",
2: "异常第三方上传" 1: "库存信息",
}, 2: "异常第三方上传"
status: { },
0: "等待处理", status: {
1: "正在处理", 0: "等待处理",
2: "处理异常", 1: "正在处理",
3: "处理完成" 2: "处理异常",
}, 3: "处理完成"
uploadFileUrl: null, },
uploadData: { uploadFileUrl: null,
thirdSys: "thirdId", uploadData: {
}, thirdSys: "thirdId",
}; },
}, };
},
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
this.filterQuery = { this.filterQuery = {
fromType: null, fromType: null,
genKey: null, genKey: null,
status: null, status: null,
page: 1, page: 1,
type: 2, type: 2,
limit: 20, limit: 20,
thirdSysFk: null, thirdSysFk: null,
}; };
this.getList(); this.getList();
}, },
getList() { hideSearch() {
this.loading = true; this.showSearch = !this.showSearch;
filterLog(this.filterQuery) },
.then((response) => { getList() {
this.loading = true;
this.loading = false; filterLog(this.filterQuery)
if (response.code == 20000) { .then((response) => {
this.list = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
}) this.loading = false;
.catch(() => { if (response.code == 20000) {
this.loading = false; this.list = response.data.list || [];
this.list = []; this.total = response.data.total || 0;
this.total = 0; } else {
}); this.$message.error(response.message);
}, }
exportExcel() { })
this.selectType = 0; .catch(() => {
this.thrCorpSelectVisible = true; this.loading = false;
}, this.list = [];
uploadSmp() { this.total = 0;
this.selectType = 1; });
this.thrCorpSelectVisible = true; },
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let href = baseUrl + "/udiwms/thrCorp/exportLog/download" +
"?genKey=" + row.genKey;
let a = document.createElement("a");
fetch(href)
.then((res) => res.blob())
.then((blob) => {
a.href = URL.createObjectURL(blob);
console.log(a.href);
a.download =
row.filePath.split("/")[
row.filePath.split("/").length - 1
]; // //
document.body.appendChild(a);
a.click();
this.getList();
});
});
},
cancelDialog(val) { exportExcel() {
if (val) { this.selectType = 0;
this.getList(); this.thrCorpSelectVisible = true;
} },
this.thrCorpSelectVisible = false; uploadSmp() {
}, this.selectType = 1;
handleCurrentChange(val) { this.thrCorpSelectVisible = true;
this.filterQuery.page = val; },
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let href = baseUrl + "/udiwms/thrCorp/exportLog/download" +
"?genKey=" + row.genKey;
let a = document.createElement("a");
fetch(href)
.then((res) => res.blob())
.then((blob) => {
a.href = URL.createObjectURL(blob);
console.log(a.href);
a.download =
row.filePath.split("/")[
row.filePath.split("/").length - 1
]; // //
document.body.appendChild(a);
a.click();
this.getList(); this.getList();
}, });
deleteDialog(rowId) { });
this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", { },
confirmButtonText: "确定",
cancelButtonText: "取消", cancelDialog(val) {
type: "warning", if (val) {
}) this.getList();
.then(() => { }
let dQuery = { this.thrCorpSelectVisible = false;
id: rowId, },
}; handleCurrentChange(val) {
deleteLog(dQuery) this.filterQuery.page = val;
.then((response) => { this.getList();
this.loading = false; },
if (response.code == 20000) { deleteDialog(rowId) {
this.$message.success("删除成功"); this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", {
} else { confirmButtonText: "确定",
this.$message.error(response.message); cancelButtonText: "取消",
} type: "warning",
this.getList(); })
}) .then(() => {
.catch(() => { let dQuery = {
this.loading = false; id: rowId,
}); };
}) deleteLog(dQuery)
.catch(() => { .then((response) => {
}); this.loading = false;
}, if (response.code == 20000) {
handleChange(response, files, fileList) { this.$message.success("删除成功");
console.log(response); } else {
if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
} else { }
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]); this.getList();
this.$message.success("文件上传成功,请稍后刷新查看!"); })
} .catch(() => {
}, this.loading = false;
statusFilterType(status) { });
const statusMap = { })
0: "warning", .catch(() => {
1: "warning", });
2: "danger",
3: "success",
};
return statusMap[status];
},
}, },
mounted() { handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!");
}
}, },
components: {thrCorpSelect}, statusFilterType(status) {
created() { const statusMap = {
// this.getBasicThirdSys(); 0: "warning",
this.getList(); 1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
}, },
},
mounted() {
},
components: {thrCorpSelect},
created() {
// this.getBasicThirdSys();
this.getList();
},
}; };
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

@ -1,163 +1,168 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :model="query" size="mini" label-width="100px" v-show="showSearch">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-input v-model="filterQuery.genKey" placeholder="请输入记录ID"></el-input> <el-form-item label="记录ID:">
</el-form-item> <el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="请输入记录ID"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="处理状态:">
<el-select v-model="filterQuery.status" style="width: 90%" placeholder="请选择处理状态">
<el-option label="全部" value=""></el-option>
<el-option label="正在处理" value="0"></el-option>
<el-option label="处理完成" value="3"></el-option>
<el-option label="处理异常" value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="外部系统:">
<el-select v-model="filterQuery.thirdSysFk" style="width: 90%" placeholder="请选择第三方系统"
@change="sysChange">
<el-option
v-for="item in thirdSys"
:key="item.value"
:label="item.thirdName"
:value="item.thirdId">
<span style="float: left">{{ item.thirdName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form-item class="query-form-item"> <div class="top-right-btn">
<el-select v-model="filterQuery.status" placeholder="请选择处理状态"> <el-button-group style="display:flex;">
<el-option label="全部" value=""></el-option> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-option label="正在处理" value="0"></el-option> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-option label="处理完成" value="3"></el-option> <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-option label="处理异常" value="2"></el-option> <el-upload
</el-select> v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1"
</el-form-item> :action="uploadFileUrl"
<el-form-item class="query-form-item"> multiple
<el-select v-model="filterQuery.thirdSysFk" placeholder="请选择第三方系统" @change="sysChange"> :limit="1"
<el-option :data="uploadData"
v-for="item in thirdSys" :show-file-list="false"
:key="item.value" :on-success="handleChange"
:label="item.thirdName" :file-list="fileList"
:value="item.thirdId"> >
<span style="float: left">{{ item.thirdName }}</span> <el-button size="mini" icon="el-icon-bottom-right" type="primary">导入往来单位</el-button>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span> </el-upload>
</el-option> <el-button type="primary" icon="el-icon-download" @click="jumpDl"
</el-select> v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1">模板下载
</el-form-item> </el-button>
<el-button type="primary" icon="el-icon-download" @click="downloadCorps"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3">
下载往来单位
</el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table
v-loading="loading"
:data="list"
style="width: 100%"
@selection-change="handleSelectionChange"
border highlight-current-row
>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="记录ID"
prop="genKey"
show-overflow-tooltip
></el-table-column>
<el-form-item> <el-table-column
<el-button-group style="display:flex;"> label="来源"
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> prop="fromType"
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> show-overflow-tooltip
<el-upload
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1"
:action="uploadFileUrl"
multiple
:limit="1"
:data="uploadData"
:show-file-list="false"
:on-success="handleChange"
:file-list="fileList"
>
<el-button size="mini" icon="el-icon-bottom-right" type="primary">导入往来单位</el-button>
</el-upload>
<el-button type="primary" icon="el-icon-download" @click="jumpDl"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1">模板下载
</el-button>
<el-button type="primary" icon="el-icon-download" @click="downloadCorps"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3">
下载往来单位
</el-button>
</el-button-group>
</el-form-item>
</el-row>
</el-form>
<el-table
v-loading="loading"
:data="list"
style="width: 100%"
@selection-change="handleSelectionChange"
border highlight-current-row
> >
<el-table-column label="序号" type="index"></el-table-column> </el-table-column>
<el-table-column <el-table-column
label="记录ID" label="更新日期"
prop="genKey" prop="updateTime"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
<el-table-column label="来源系统"
label="来源" prop="thirdSysFk"
prop="fromType" show-overflow-tooltip
show-overflow-tooltip :formatter="formatterThirdSys"
> ></el-table-column>
</el-table-column>
<el-table-column
label="更新日期"
prop="updateTime"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="来源系统"
prop="thirdSysFk"
show-overflow-tooltip
:formatter="formatterThirdSys"
></el-table-column>
<el-table-column <el-table-column
label="备注" label="备注"
prop="remark" prop="remark"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="状态" label="状态"
prop="status" prop="status"
show-overflow-tooltip show-overflow-tooltip
>
<template slot-scope="scope">
<el-tag
:type="statusFilterType(scope.row.status)"
>{{ status[scope.row.status] }}
</el-tag
>
</template>
</el-table-column>
<el-table-column label="操作" width="160">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="handleDetailClick(scope.row)"
>详情
</el-button
>
<el-button
type="text"
size="small"
@click.native.stop="deleteDialog(scope.row.id)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-dialog
title="导入往来单位详情"
:visible.sync="udiImportDetailVisible"
width="85%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="udiImportDetailVisible"
>
<thrCorpsImportDetail
:currentRow="currentRow"
></thrCorpsImportDetail>
</el-dialog>
<el-dialog
title="下载往来单位信息"
:visible.sync="thrCorpSelectVisible"
width="85%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="thrCorpSelectVisible"
> >
<thrCorpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog" :isDownThrSys="true" <template slot-scope="scope">
></thrCorpSelect> <el-tag
</el-dialog> :type="statusFilterType(scope.row.status)"
<pagination >{{ status[scope.row.status] }}
v-show="total>0" </el-tag
:total="total" >
:page.sync="filterQuery.page" </template>
:limit.sync="filterQuery.limit" </el-table-column>
@pagination="getList" <el-table-column label="操作" width="120">
/> <template slot-scope="scope">
</el-card> <el-button
</div> type="text"
@click.native.stop="handleDetailClick(scope.row)"
>详情
</el-button
>
<el-button
type="text"
@click.native.stop="deleteDialog(scope.row.id)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-dialog
title="导入往来单位详情"
:visible.sync="udiImportDetailVisible"
width="80%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="udiImportDetailVisible"
>
<thrCorpsImportDetail
:currentRow="currentRow"
></thrCorpsImportDetail>
</el-dialog>
<el-dialog
title="下载往来单位信息"
:visible.sync="thrCorpSelectVisible"
width="80%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="thrCorpSelectVisible"
>
<thrCorpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog" :isDownThrSys="true"
></thrCorpSelect>
</el-dialog>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
/>
</el-card>
</div>
</template> </template>
<script> <script>
@ -170,279 +175,285 @@ import thrCorpSelect from "./thrCorpSelect";
import axios from "axios"; import axios from "axios";
export default { export default {
data() { data() {
return { return {
filterQuery: { showSearch: true,
genKey: null, filterQuery: {
status: null, genKey: null,
fromType: null, status: null,
page: 1, fromType: null,
limit: 20, page: 1,
thirdSysFk: null, limit: 20,
}, thirdSysFk: null,
udiImportDetailVisible: false, },
thrCorpSelectVisible: false, udiImportDetailVisible: false,
checked: false, thrCorpSelectVisible: false,
list: [], checked: false,
fileList: [], list: [],
detailList: [], fileList: [],
thirdSys: [], detailList: [],
thirdSysDetail: null, thirdSys: [],
total: 0, thirdSysDetail: null,
currentRow: null, total: 0,
editQuery: null, currentRow: null,
fromStatus: { editQuery: null,
0: "产品信息", fromStatus: {
1: "库存信息", 0: "产品信息",
2: "异常第三方上传" 1: "库存信息",
}, 2: "异常第三方上传"
status: { },
0: "等待处理", status: {
1: "正在处理", 0: "等待处理",
2: "处理异常", 1: "正在处理",
3: "处理完成" 2: "处理异常",
}, 3: "处理完成"
uploadFileUrl: null, },
uploadData: { uploadFileUrl: null,
thirdSys: "thirdId", uploadData: {
}, thirdSys: "thirdId",
templateDlUrl: null, },
}; templateDlUrl: null,
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
fromType: null,
genKey: null,
status: null,
page: 1,
limit: 20,
thirdSysFk: null,
};
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
}, },
methods: { getList() {
onReset() { this.loading = true;
this.$router.push({ filterLog(this.filterQuery)
path: "", .then((response) => {
}); this.loading = false;
this.filterQuery = { if (response.code == 20000) {
fromType: null, this.list = response.data.list || [];
genKey: null, this.total = response.data.total || 0;
status: null, } else {
page: 1, this.$message.error(response.message);
limit: 20, }
thirdSysFk: null, })
}; .catch(() => {
this.getList(); this.loading = false;
}, this.list = [];
getList() { this.total = 0;
this.loading = true; });
filterLog(this.filterQuery) },
.then((response) => { downloadCorps() {
this.loading = false; this.selectType = 3;
if (response.code == 20000) { this.thrCorpSelectVisible = true;
this.list = response.data.list || []; },
this.total = response.data.total || 0; genInCode() {
} else { this.selectBasicUdiVisible = true;
this.$message.error(response.message); },
} sysChange() {
}) this.getThirdSysDetail();
.catch(() => { },
this.loading = false;
this.list = [];
this.total = 0;
});
},
downloadCorps() {
this.selectType = 3;
this.thrCorpSelectVisible = true;
},
genInCode() {
this.selectBasicUdiVisible = true;
},
sysChange() {
this.getThirdSysDetail();
},
handleDetailClick(row) { handleDetailClick(row) {
this.currentRow = row; this.currentRow = row;
this.udiImportDetailVisible = true; this.udiImportDetailVisible = true;
} }
, ,
cancelDialog(val) { cancelDialog(val) {
this.udiImportDetailVisible = false; this.udiImportDetailVisible = false;
this.thrCorpSelectVisible = false; this.thrCorpSelectVisible = false;
if (val) { if (val) {
this.getList(); this.getList();
} }
}, },
deleteDialog(rowId) { deleteDialog(rowId) {
this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", { this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
let dQuery = { let dQuery = {
id: rowId, id: rowId,
}; };
deleteLog(dQuery) deleteLog(dQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("删除成功"); this.$message.success("删除成功");
} else { } else {
this.$message.error(response.message);
}
this.getList();
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
}
,
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
this.filterQuery.thirdSysFk = this.thirdSys[0].thirdId;
this.uploadData.thirdSys = this.filterQuery.thirdSysFk;
this.getList();
this.getThirdSysDetail();
this.selectSysParam();
})
.catch(() => {
this.loading = false;
this.list = [];
});
// axios.get("./config.json").then(res => {
// //
// let response = res.data.BASE_URL;
// this.uploadFileUrl = response + "/udiwms/thrOrder/importLog/upload";
//
// });
}
,
selectSysParam() {
let query = {
key: "thirdIpUrl",
thirdSysFk: this.filterQuery.thirdSysFk
};
selectIp(query).then((response) => {
if (response.code == 20000) {
this.uploadFileUrl = response.data.thridUrl + "/udiwms/erp/corp/upload";
}
});
}
,
handleChange(response, files, fileList) {
if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
this.getList(); }
} else { this.getList();
this.$message.success(response.data); })
this.getList(); .catch(() => {
} this.loading = false;
this.fileList = [];
}
,
statusFilterType(status) {
const statusMap = {
0: "warning",
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
}
,
getThirdSysDetail() {
let query = {
thirdSysFk: this.filterQuery.thirdSysFk,
key: "corpUrl",
};
filterDetailByKey(query)
.then((response) => {
this.thirdSysDetail = response.data;
})
.catch(() => {
this.loading = false;
this.list = [];
});
this.uploadData.thirdSys = this.filterQuery.thirdSysFk;
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
this.templateDlUrl = response + "/第三方往来单位信息导入模板.xlsx";
}); });
})
.catch(() => {
});
}
,
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
this.filterQuery.thirdSysFk = this.thirdSys[0].thirdId;
this.uploadData.thirdSys = this.filterQuery.thirdSysFk;
this.getList();
this.getThirdSysDetail();
this.selectSysParam();
})
.catch(() => {
this.loading = false;
this.list = [];
});
// axios.get("./config.json").then(res => {
// //
// let response = res.data.BASE_URL;
// this.uploadFileUrl = response + "/udiwms/thrOrder/importLog/upload";
//
// });
}
,
selectSysParam() {
let query = {
key: "thirdIpUrl",
thirdSysFk: this.filterQuery.thirdSysFk
};
selectIp(query).then((response) => {
if (response.code == 20000) {
this.uploadFileUrl = response.data.thridUrl + "/udiwms/erp/corp/upload";
} }
, });
jumpDl() { }
window.open(this.templateDlUrl, '_blank'); ,
} handleChange(response, files, fileList) {
, if (response.code != 20000) {
downloadDatas() { this.$message.error(response.message);
this.$confirm("此操作从第三方系统下载全部往来单位信息, 是否继续?", "提示", { this.getList();
confirmButtonText: "确定", } else {
cancelButtonText: "取消", this.$message.success(response.data);
type: "warning", this.getList();
}).then(() => { }
let query = { this.fileList = [];
thirdSysFk: this.filterQuery.thirdSysFk }
}; ,
downloadAll(query).then((response) => { statusFilterType(status) {
const statusMap = {
0: "warning",
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
}
,
getThirdSysDetail() {
let query = {
thirdSysFk: this.filterQuery.thirdSysFk,
key: "corpUrl",
};
filterDetailByKey(query)
.then((response) => {
this.thirdSysDetail = response.data;
})
.catch(() => {
this.loading = false;
this.list = [];
});
this.uploadData.thirdSys = this.filterQuery.thirdSysFk;
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
this.templateDlUrl = response + "/第三方往来单位信息导入模板.xlsx";
});
if (response.code == 20000) { }
this.$message.success(response.data); ,
} else { jumpDl() {
this.$message.error(response.message); window.open(this.templateDlUrl, '_blank');
} }
this.getList(); ,
}); downloadDatas() {
}); this.$confirm("此操作从第三方系统下载全部往来单位信息, 是否继续?", "提示", {
} confirmButtonText: "确定",
, cancelButtonText: "取消",
formatterThirdSys(key) { type: "warning",
let data = null; }).then(() => {
this.thirdSys.forEach((item, index) => { let query = {
if (key.thirdSysFk == item.thirdId) { thirdSysFk: this.filterQuery.thirdSysFk
data = item.thirdName; };
} downloadAll(query).then((response) => {
});
return data; if (response.code == 20000) {
this.$message.success(response.data);
} else {
this.$message.error(response.message);
}
this.getList();
});
});
}
,
formatterThirdSys(key) {
let data = null;
this.thirdSys.forEach((item, index) => {
if (key.thirdSysFk == item.thirdId) {
data = item.thirdName;
} }
, });
}, return data;
}
,
},
mounted() { mounted() {
}, },
components: {thrCorpsImportDetail, thrCorpSelect}, components: {thrCorpsImportDetail, thrCorpSelect},
created() { created() {
this.getBasicThirdSys(); this.getBasicThirdSys();
// this.getList(); // this.getList();
}, },
}; };
</script> </script>
<style> <style scoped>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

@ -1,168 +1,179 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :inline="true" :model="query" size="mini"> <el-form :model="query" size="mini" label-width="100px" v-show="showSearch">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-input <el-form-item label="往来单位编码:">
v-model="filterQuery.unitId" <el-input
placeholder="请输入往来单位编码" v-model="filterQuery.unitId"
clearable style="width: 90%"
></el-input> placeholder="请输入往来单位编码"
</el-form-item> clearable
<el-form-item class="query-form-item"> ></el-input>
<el-input </el-form-item>
v-model="filterQuery.name" </el-col>
placeholder="请输入往来单位" <el-col :span="6">
clearable <el-form-item label="往来单位:">
></el-input> <el-input
</el-form-item> v-model="filterQuery.name"
<el-form-item> style="width: 90%"
<el-button-group style="display:flex;"> placeholder="请输入往来单位"
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> clearable
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> ></el-input>
</el-button-group> </el-form-item>
</el-form-item> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div class="top-right-btn">
<el-table <el-button-group style="display:flex;">
v-loading="loading" <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
:data="list" <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
style="width: 100%" <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
border highlight-current-row </el-button-group>
> </div>
<el-table-column label="序号" type="index"></el-table-column> <el-divider style="margin: 15px"></el-divider>
<el-table-column label="往来单位ID" prop="unitId" width="100" show-overflow-tooltip></el-table-column> <el-table
<el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column> v-loading="loading"
<el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column> :data="list"
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column> style="width: 100%"
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column> border highlight-current-row
<el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column> >
<el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
</el-table> <el-table-column label="往来单位ID" prop="unitId" width="100" show-overflow-tooltip></el-table-column>
<pagination <el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column>
v-show="total>0" <el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column>
:total="total" <el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column>
:page.sync="filterQuery.page" <el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column>
:limit.sync="filterQuery.limit" <el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column>
@pagination="getList" <el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column>
/> </el-table>
</el-card> <pagination
</div> v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
/>
</el-card>
</div>
</template> </template>
<script> <script>
import { import {
filterDetail, filterDetail,
} from "@/api/thrsys/thrCorpsImport"; } from "@/api/thrsys/thrCorpsImport";
export default { export default {
name: "ThrCorpsImportDetail", name: "ThrCorpsImportDetail",
props: { props: {
currentRow: { currentRow: {
type: Object, type: Object,
required: true, required: true,
}, },
}, },
data() { data() {
return { return {
filterQuery: { showSearch: true,
genKey: null, filterQuery: {
unitId: null, genKey: null,
name: null, unitId: null,
status: null, name: null,
page: 1, status: null,
limit: 10, page: 1,
}, limit: 10,
list: [], },
detailList: [], list: [],
total: 0, detailList: [],
status: { total: 0,
0: "未处理", status: {
1: "处理失败", 0: "未处理",
2: "处理成功" 1: "处理失败",
}, 2: "处理成功"
}; },
}, };
},
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
this.filterQuery = { this.filterQuery = {
genKey: null, genKey: null,
unitId: null, unitId: null,
name: null, name: null,
status: null, status: null,
page: 1, page: 1,
limit: 10, limit: 10,
}; };
this.getList(); this.getList();
}, },
getList() { hideSearch() {
this.loading = true; this.showSearch = !this.showSearch;
console.log(" this.genKey = " + this.currentRow) },
this.filterQuery.genKey = this.currentRow.genKey; getList() {
filterDetail(this.filterQuery) this.loading = true;
.then((response) => { console.log(" this.genKey = " + this.currentRow)
this.filterQuery.genKey = this.currentRow.genKey;
filterDetail(this.filterQuery)
.then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
}else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
this.total = 0; this.total = 0;
}); });
}, },
statusFilterType(status) { statusFilterType(status) {
const statusMap = { const statusMap = {
0: "warning", 0: "warning",
1: "danger", 1: "danger",
2: "success", 2: "success",
}; };
return statusMap[status]; return statusMap[status];
}, },
}, },
mounted() { mounted() {
}, },
created() { created() {
this.getList(); this.getList();
}, },
filters: {}, filters: {},
}; };
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

Loading…
Cancel
Save