DI产品信息版本更新+获取国家库最新数据

busUser
anthonywj 2 years ago
parent 6b9f3de00c
commit 26f1f7f370

@ -1,6 +1,7 @@
{
"BASE_URL": "http://192.168.0.109:9906",
"SERVER_IP": "http://192.168.0.109:9906",
"BASE_URL": "http://192.168.0.166:9996",
"SERVER_IP": "http://192.168.0.166:9996",
"hosp_name": "福建省XX市医院"
}

@ -872,7 +872,7 @@
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col">
<el-col :span="8" class="el-col">
<div class="text item">
<div class="itemTag">
<span>当前版本号:&nbsp;</span>
@ -884,12 +884,21 @@
splaceholder="请输入内容"
v-model="editQuery.versionNumber"
></el-input>
<el-button type="text" size="small" @click.native.stop="selectVersion()"
style="margin-left: 5%"
>切换版本
</el-button>
</div>
</el-col>
<el-col :span="2" class="el-col">
<el-button type="text" size="small" @click.native.stop="selectVersion()"
style="margin-left: 5%"
>切换版本
</el-button>
</el-col>
<el-col :span="2" class="el-col">
<el-button type="text" size="small" @click.native.stop="updateVersion()"
:loading="updateLoading"
style="margin-left: 5%"
>更新当前版本信息
</el-button>
</el-col>
</el-row>
</el-collapse-item>
@ -992,7 +1001,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";
@ -1064,7 +1073,8 @@ export default {
isUseDyCheck: false,
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
configParms: {},
activeNames: ['1']
activeNames: ['1'],
updateLoading: false,
};
},
@ -1161,6 +1171,37 @@ 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 = {
@ -1432,7 +1473,6 @@ export default {
},
uploadErpProduct() {
updateErpProduct()
.then((response) => {

@ -166,7 +166,6 @@ export default {
dlLastVersion() {
this.$confirm("此操作将访问国家库查询最新版本信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",

@ -176,7 +176,6 @@
:detailList="detailList"
:editQuery="editQuery"
:closeDialog="closeDialog">
</basicProductEdit>
@ -193,7 +192,6 @@
:sysList="sysList"
:detailList="detailList"
:editQuery="editQuery">
</basic-product-detail>
</el-dialog>
<el-dialog

@ -712,7 +712,7 @@
<p class="form-title">版本信息</p>
</template>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col">
<el-col :span="8" class="el-col">
<div class="text item">
<div class="itemTag">
<span>当前版本号:&nbsp;</span>
@ -724,12 +724,24 @@
splaceholder="请输入内容"
v-model="editQuery.versionNumber"
></el-input>
<el-button type="text" size="small" @click.native.stop="selectVersion()"
style="margin-left: 5%"
>切换版本
</el-button>
</div>
</el-col>
<el-col :span="2" class="el-col">
<el-button type="text" size="small" @click.native.stop="selectVersion()"
style="margin-left: 5%"
>切换版本
</el-button>
</el-col>
<el-col :span="2" class="el-col">
<el-button type="text" size="small" @click.native.stop="updateVersion()"
:loading="updateLoading"
style="margin-left: 5%"
>更新当前版本信息
</el-button>
</el-col>
</el-row>
</el-collapse-item>
@ -766,6 +778,25 @@
:supEnable="true"
></selectErp>
</el-dialog>
<el-dialog
title="选择DI版本"
:visible.sync="selectVersionVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="85%"
append-to-body
v-if="selectVersionVisible"
>
<selectUdiVersion
:closeDialog="closeDialog"
:relId="relId"
:uuid="uuid"
:originUuid="originUuid"
@closeUdi="closeUdi"
></selectUdiVersion>
</el-dialog>
</div>
</template>
@ -773,6 +804,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",
@ -805,6 +838,7 @@ export default {
loading: false,
selectErpDialogVisible: false, //ERP
uuid: "111",
originUuid: null,
relId: "",
intentThirdId: null,
isImport: false,
@ -825,11 +859,12 @@ export default {
isUseDy: false,
isAdavence: null,
},
selectVersionVisible: false,
updateLoading: false,
}
},
methods: {
onAddSubmit() {
this.relevanceEdit.isDisable = this.editQuery.isDisable;
this.relevanceEdit.isLock = this.editQuery.isLock;
@ -937,7 +972,7 @@ export default {
type: "success",
message: "删除成功!",
});
this.cancelDialog();
this.closeUdi();
} else {
this.$message.error(response.message);
}
@ -949,16 +984,55 @@ 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,
}

Loading…
Cancel
Save