From 1ecb8cf95825547e7e97da14fdec29490379f8b5 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 20 Dec 2022 11:02:37 +0800 Subject: [PATCH] =?UTF-8?q?DI=E4=BA=A7=E5=93=81=E4=BF=A1=E6=81=AF=E5=9B=BD?= =?UTF-8?q?=E5=AE=B6=E5=BA=93=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/config.json | 4 +- src/views/basic/UdiInfoManage.vue | 56 +++++++++++++++-- src/views/basic/basicProductEdit.vue | 91 +++++++++++++++++++++++++--- 3 files changed, 133 insertions(+), 18 deletions(-) diff --git a/public/config.json b/public/config.json index 21c4bcf..fc9ceba 100644 --- a/public/config.json +++ b/public/config.json @@ -1,6 +1,6 @@ { - "BASE_URL": "http://192.168.0.41:9996", - "SERVER_IP": "http://192.168.0.41:9996", + "BASE_URL": "http://192.168.0.166:9996", + "SERVER_IP": "http://192.168.0.166:9996", "hosp_name": "福建省XX市医院" } diff --git a/src/views/basic/UdiInfoManage.vue b/src/views/basic/UdiInfoManage.vue index 72d4873..572bd52 100644 --- a/src/views/basic/UdiInfoManage.vue +++ b/src/views/basic/UdiInfoManage.vue @@ -907,7 +907,7 @@ - +
当前版本号:  @@ -919,12 +919,22 @@ splaceholder="请输入内容" v-model="editQuery.versionNumber" > - 切换版本 -
+ + + 切换版本 + + + + 更新当前版本信息 + + @@ -1027,7 +1037,7 @@ import { removeRl, sysFilter, spcombie, lockStatus, removeDiRl, disableUdi } from "../../api/basic/udiRelevance"; import {selectSysParamByKey, finProductSet} from "../../api/param/systemParamConfig"; -import {filterByUuid} from "../../api/basic/udiInfo"; +import {dlLastVersionByDi, filterByUuid} from "../../api/basic/udiInfo"; import selectUdi from "./UdiInfoRelevance.vue"; import selectErp from "./UdiInfoselectErpUdi"; @@ -1101,6 +1111,7 @@ export default { configParms: {}, activeNames: ['1'], useNumEnable: true, + updateLoading: false, }; }, @@ -1219,6 +1230,39 @@ export default { this.originUuid = this.editQuery.originUuid; this.relId = this.editQuery.id; }, + + + updateVersion() { + this.$confirm("此操作将访问国家库查询最新版本信息, 是否继续?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.updateLoading = true; + let query = {nameCode: this.editQuery.nameCode}; + dlLastVersionByDi(query) + .then((response) => { + this.updateLoading = false; + if (response.code == 20000) { + this.$message.success("更新成功!"); + this.closeDialog(); + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.updateLoading = false; + this.udidlList = []; + this.total = 0; + }); + }) + .catch(() => { + }); + + }, + + deleteOrders(data) { this.loading = true; let tquery = { diff --git a/src/views/basic/basicProductEdit.vue b/src/views/basic/basicProductEdit.vue index 9e062da..b256fe0 100644 --- a/src/views/basic/basicProductEdit.vue +++ b/src/views/basic/basicProductEdit.vue @@ -712,7 +712,7 @@

版本信息

- +
当前版本号:  @@ -724,12 +724,22 @@ splaceholder="请输入内容" v-model="editQuery.versionNumber" > - 切换版本 -
+ + + 切换版本 + + + + 更新当前版本信息 + + @@ -766,6 +776,25 @@ :supEnable="true" > + + + + +
@@ -773,6 +802,8 @@ import {removeDiRl, removeRl, updatetUdiInfos} from "@/api/basic/udiRelevance"; import {finProductSet} from "@/api/param/systemParamConfig"; import selectErp from "./UdiInfoselectErpUdi"; +import selectUdiVersion from "./UdiinfoSelectVersion"; +import {dlLastVersionByDi} from "../../api/basic/udiInfo"; export default { name: "basicProductEdit", @@ -825,6 +856,9 @@ export default { isUseDy: false, isAdavence: null, }, + originUuid: null, + selectVersionVisible: false, + updateLoading: false, } }, @@ -937,7 +971,7 @@ export default { type: "success", message: "删除成功!", }); - this.cancelDialog(); + this.closeUdi(); } else { this.$message.error(response.message); } @@ -949,16 +983,53 @@ export default { }); }, + selectVersion() { + this.selectVersionVisible = true; + this.uuid = this.editQuery.uuid; + this.originUuid = this.editQuery.originUuid; + this.relId = this.editQuery.id; + }, + + updateVersion() { + this.$confirm("此操作将访问国家库查询最新版本信息, 是否继续?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.updateLoading = true; + let query = {nameCode: this.editQuery.nameCode}; + dlLastVersionByDi(query) + .then((response) => { + this.updateLoading = false; + if (response.code == 20000) { + this.$message.success("更新成功!"); + this.closeUdi(); + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.updateLoading = false; + this.udidlList = []; + this.total = 0; + }); + }) + .catch(() => { + }); + + }, }, created() { this.relId = this.editQuery.rlId; - if(this.editQuery.isUseDy==1){ - this.checked=true + if (this.editQuery.isUseDy == 1) { + this.checked = true } this.findBasicProductSet(); - }, + } + , components: { - selectErp, + selectErp, selectUdiVersion }