From 81d18db379bfa8ad0e38ce269a3366cf1acccae2 Mon Sep 17 00:00:00 2001 From: yuanwei <362142050@qq.com> Date: Fri, 15 Dec 2023 00:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E6=98=AF=E4=BE=9B=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/cert/supCertAddDialog.vue | 398 ++++++++++++------ src/views/supplier/company/basicCompany.vue | 300 ++++++++----- .../supplier/company/basicCompanyProducts.vue | 3 +- .../system/customConfig/configFromDetail.vue | 24 +- 4 files changed, 502 insertions(+), 223 deletions(-) diff --git a/src/views/purchase/cert/supCertAddDialog.vue b/src/views/purchase/cert/supCertAddDialog.vue index 67740c7..be6e737 100644 --- a/src/views/purchase/cert/supCertAddDialog.vue +++ b/src/views/purchase/cert/supCertAddDialog.vue @@ -7,133 +7,256 @@ :loading="loading">提交 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
- 证书名称: -
-
- - - - - - - -
- 证书编号: -
-
- - - - - -
- - - -
- 生效期: -
-
- - - - - - - - - -
- 失效期: -
-
- - - - - - - - -
- - - - -
- 备注: -
-
- - - - - - -
- - - - - - - - - - - - - -
- 文件: -
-
- - - - - {{ choiceFile }} - -
只能上传 jpg,png 文件,且不超过 3 MB
-
- - - - - - -
-
+ + + 文件 + + + + {{ choiceFile }} + +
只能上传 jpg,png 文件,且不超过 3 MB
+
+
@@ -146,6 +269,9 @@ import draggable from "vuedraggable"; import store from "../../../store"; import {insertCompanyCert, updateCompanyCert} from "../../../api/purchase/companyCert"; import ElImageViewer from "element-ui/packages/image/src/image-viewer" +import { + getHead,executeFuc +} from "@/utils/customConfig"; export default { name: "supCompanyCertAdd", @@ -194,6 +320,10 @@ export default { loading: false, uploadUrl: "", fileList: [], + tableHeader:[], + queryList:[], + fromList:[], + tableObj:[], headers: {}, choiceFile: "选取文件", @@ -348,6 +478,15 @@ export default { this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; window.open(this.certFileUrl + this.formData.filePath); }, + executeFuc(row,type,clickFuc,value){ + return executeFuc(this,row,type,clickFuc,value); + }, + executeEval(row,expression,defaultRet){ + if(expression){ + return eval(expression); + } + return defaultRet; + } }, filters: {}, mounted() { @@ -358,6 +497,13 @@ export default { }, created() { this.uploadUrl = this.BASE_URL + "/udiwms/upload/register/file"; + getHead("basicCompany","1").then((re) => { + // 处理返回的数据 + this.tableObj = re.data; + this.tableHeader = re.data.tableList; + this.queryList = re.data.queryList; + this.fromList = re.data.fromList; + }); this.headers = { ADMIN_ID: store.getters.adminId, ADMIN_TOKEN: store.getters.token, diff --git a/src/views/supplier/company/basicCompany.vue b/src/views/supplier/company/basicCompany.vue index 16547ca..1f4a257 100644 --- a/src/views/supplier/company/basicCompany.vue +++ b/src/views/supplier/company/basicCompany.vue @@ -208,75 +208,162 @@ border highlight-current-row > - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + // 处理返回的数据 + this.tableObj = re.data; + this.tableHeader = re.data.tableList; + this.queryList = re.data.queryList; + this.fromList = re.data.fromList; + this.getCompanyInfo(); + }); this.headers = { ADMIN_ID: store.getters.adminId, ADMIN_TOKEN: store.getters.token, @@ -647,22 +744,22 @@ export default { }); }, - showImgViewer(row) { + showImgViewer(_this,row) { // let newWindow = window.open(); // newWindow.document.write(row.filePath) - this.certFileUrl = - this.BASE_URL + + _this.certFileUrl = + _this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; - this.imgList = []; + _this.imgList = []; previewImage({ imageUrl: row.filePath, certFileUrl: this.certFileUrl, }).then((response) => { if (response.code === 20000) { - this.imgList = response.data; + _this.imgList = response.data; } console.log(this.imgList); - this.imgViewerVisible = true; + _this.imgViewerVisible = true; }); const m = (e) => { e.preventDefault(); @@ -696,17 +793,20 @@ export default { this.inputQuery.areaCode = value.toString(); }, - addCert(row) { - if (this.$isNotBlank(row)) { - this.formName = 2; - this.inputQuery.formData = row; - this.editTye = 2; + addCert(_this,row) { + if(_this == null){ + _this = this + } + if (_this.$isNotBlank(row)) { + _this.formName = 2; + _this.inputQuery.formData = row; + _this.editTye = 2; } else { - this.formName = 1; - this.inputQuery.formData = {}; - this.editTye = 1; + _this.formName = 1; + _this.inputQuery.formData = {}; + _this.editTye = 1; } - this.addCertVisible = true; + _this.addCertVisible = true; }, selectCert() { @@ -739,46 +839,55 @@ export default { this.certList = []; }); }, - explainCompanyCert(row) { - this.$confirm(row.auditComment, "拒绝原因", { + explainCompanyCert(_this,row) { + _this.$confirm(row.auditComment, "拒绝原因", { confirmButtonText: "确定", type: "warning", showCancelButton: false, }).then(() => { }); }, - deleteCompanyCert(row) { - this.$confirm("是否删除?", "提示", { + deleteCompanyCert(_this,row) { + _this.$confirm("是否删除?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", }) .then(() => { - this.certLoading = true; + _this.certLoading = true; let tquery = { id: row.id, filePath: row.filePath, }; deleteCompanyCert(tquery) .then((response) => { - this.certLoading = false; + _this.certLoading = false; if (response.code === 20000) { - this.getCompanyCertList(); - this.$message({ + _this.getCompanyCertList(); + _this.$message({ type: "success", message: "删除成功!", }); } else { - this.$message.error(response.message); + _this.$message.error(response.message); } }) .catch(() => { - this.certLoading = false; + _this.certLoading = false; }); }) .catch(() => { }); }, + executeFuc(row,type,clickFuc,value){ + return executeFuc(this,row,type,clickFuc,value); + }, + executeEval(row,expression,defaultRet){ + if(expression){ + return eval(expression); + } + return defaultRet; + } }, filters: { statusFilterType(status) { @@ -800,6 +909,7 @@ export default { return statusMap[status]; }, }, + };