From 498838169206c6fdc0dc0c647d1ca0493ad74135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Tue, 7 Mar 2023 17:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=97=E6=9D=90=E5=AD=97=E5=85=B8=E9=99=A2?= =?UTF-8?q?=E5=86=85=E5=88=86=E7=B1=BB=E5=8A=9F=E8=83=BD=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/product/product.vue | 2335 ++++++++++++++------------ src/views/basic/product/product2.vue | 1895 --------------------- 2 files changed, 1230 insertions(+), 3000 deletions(-) delete mode 100644 src/views/basic/product/product2.vue diff --git a/src/views/basic/product/product.vue b/src/views/basic/product/product.vue index 39bc2dc0..f344f400 100644 --- a/src/views/basic/product/product.vue +++ b/src/views/basic/product/product.vue @@ -1,1134 +1,1193 @@ @@ -1153,6 +1212,10 @@ import selectLocalUdi from "./UdiInfoSelectLocalUdi"; import selectUdiVersion from "./UdiinfoSelectVersion"; import ProductEdit from "@/views/basic/product/productEdit"; import ProductSingleEdit from "@/views/basic/product/productSingleEdit"; +import productUdiType from "@/views/basic/product/productUdiType" +import selectHospProduct from "@/views/basic/product/bindHospProduct"; +import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct"; +import {getBasicHospType, getListTree} from "@/api/basic/basicHospType"; export default { @@ -1170,8 +1233,13 @@ export default { limit: 20, addType: 1, thrPiId: null, - filterType: null + filterType: null, + diType: 1 }, + rId: null, + selectUdiTypeVisible: false, + selectHospProductVisible: false, + selectUnBindHospProductVisible:false, loading: false, showSearch: true, productType: null, @@ -1183,7 +1251,7 @@ export default { sptm: null, packUnit: null, measname: null, - nameCode:null + nameCode: null }, pId: 0, productRemarkSet: {}, @@ -1213,6 +1281,7 @@ export default { filterList: [], total: 0, thirdNo: "", + treeList: [], uuid: "111", originUuid: null, thirdId: null, @@ -1252,7 +1321,8 @@ export default { ggxh: null, page: 1, limit: 20, - addType: 1 + addType: 1, + diType: 1 }; this.getList(); }, @@ -1304,6 +1374,10 @@ export default { this.detailList = []; }); }, + hideForm(){ + this.selectUdiTypeVisible=false; + this.getTerrList(); + }, getThirdSysDetail() { let query = { id: this.relevanceEdit.id, @@ -1423,7 +1497,7 @@ export default { type: "success", message: "删除成功!", }); - this.editDialogVisible=false; + this.editDialogVisible = false; this.getList(); this.cancelDialog(); } else { @@ -1572,10 +1646,12 @@ export default { }); }, closeUdi(val) { + debugger this.selectUdiDialogVisible = false; this.selectErpDialogVisible = false; this.selectLocalVisible = false; this.selectVersionVisible = false; + this.selectHospProductVisible=false; this.getThirdSysDetail(); if (val) { this.getList(); @@ -1602,7 +1678,7 @@ export default { this.editSingleFormat.sptm = temp.sptm; this.editSingleFormat.packUnit = temp.packUnit; this.editSingleFormat.measname = temp.measname; - this.editSingleFormat.nameCode=temp.nameCode; + this.editSingleFormat.nameCode = temp.nameCode; this.editSingleDiDialogVisible = true; }, diEdit(row) { @@ -1613,6 +1689,8 @@ export default { this.selectErpDialogVisible = false; this.selectLocalVisible = false; this.selectVersionVisible = false; + this.selectHospProductVisible=false; + this.selectUnBindHospProductVisible=false; }, onAddSubmit(relSubmit) { this.editFormat.relSubmit = relSubmit; @@ -1702,6 +1780,47 @@ export default { }); }, + editUdiType() { + this.selectUdiTypeVisible = true; + }, + + getTerrList() { + getListTree(this.query) + .then((response) => { + var invlist = response.data || []; + this.treeList = this.handleTree(invlist, "code", "parentCode"); + }) + .catch(() => { + }); + }, + + addHospProduct(data) { + this.rId = data.code + if(data.code!=10000){ + this.filterQuery.bindCode = data.code + }else{ + this.filterQuery.bindCode = null; + } + this.selectHospProductVisible = true; + }, + removeHospProduct(data){ + this.rId = data.code + if(data.code!=10000){ + this.filterQuery.bindCode = data.code + }else{ + this.filterQuery.bindCode = null; + } + this.selectUnBindHospProductVisible = true; + }, + handleNodeClick(data) { + this.rId = data.code + if(data.code!=10000){ + this.filterQuery.bindCode = data.code + }else{ + this.filterQuery.bindCode = null; + } + this.getList(); + } }, mounted() { }, @@ -1712,10 +1831,14 @@ export default { selectErp, selectLocalUdi, selectUdiVersion, + productUdiType, + selectHospProduct, + selectUnBindHospProduct }, created() { this.findBasicProductSet(); this.getList(); + this.getTerrList(); this.selectSysParam(); this.getSysFilter(); }, @@ -1770,4 +1893,6 @@ export default { padding-bottom: 17px; padding-top: 17px; } + + diff --git a/src/views/basic/product/product2.vue b/src/views/basic/product/product2.vue deleted file mode 100644 index 39ec988f..00000000 --- a/src/views/basic/product/product2.vue +++ /dev/null @@ -1,1895 +0,0 @@ - - - -