@@ -341,8 +341,9 @@ import {getUdiInfos, filterCompany} from "@/api/basic/product/udiInfo";
import {superSearch} from "@/api/basic/udiInfo";
import {combineUdi, combineAllUdi, checkExitUdi} from "@/api/basic/product/udiRelevance";
import selectDiDetail from "./SelectDIDetailDialog"
+import {isBlank} from "@/utils/strUtil";
-export default {
+export default {
name: "closeDialog",
props: {
closeDialog: {
@@ -384,7 +385,7 @@ export default {
zczbhhzbapzbh: "",
isCheck: 1
},
- cpmctymc1:"",
+ cpmctymc1: "",
combineLoading: false,
combineQuery: {
idSpliUdi: false,
@@ -425,12 +426,13 @@ export default {
ggxh: "",
zczbhhzbapzbh: "",
isCheck: 1
- },
- this.actDateRange = [];
+ };
+ this.actDateRange = [];
+ this.udidlList = [];
},
- clear(){
- this.unionQuery.ylqxzcrbarmc==null;
- this.unionQuery.cpmctymc=null;
+ clear() {
+ this.unionQuery.ylqxzcrbarmc == null;
+ this.unionQuery.cpmctymc = null;
},
searchList() {
this.unionQuery.page = 1;
@@ -530,10 +532,7 @@ export default {
return "";
},
handleErpChange(val) {
- debugger
- console.log("+++"+ this.data.cpmctymc)
-
- this.cpmctymc1=val.cpmctymc;
+ this.cpmctymc1 = val.cpmctymc;
this.currentRow = val;
},
intentBack() {
@@ -541,42 +540,67 @@ export default {
},
checkCombine() {
- this.$confirm("是否确定关联DI产品名称:" + this.cpmctymc1 + ":与第三方产品名称"+this.data.cpmctymc, "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
-
- let selectData = this.multipleUdiSelection;
- let selected = null;
- if (this.multipleUdiSelection.length == 0) {
- if (this.relId != null) {
- this.combineQuery.relId = this.relId;
- this.combineQuery.keys.push(this.currentRow.uuid);
- if (this.currentRow.check) {
- selected = this.currentRow;
- }
- } else
- return;
+ if (isBlank(this.relId)) {
+ this.checkedUdi();
+ } else {
+ this.$confirm("是否确定关联DI产品名称:" + this.cpmctymc1 + ":与第三方产品名称" + this.data.cpmctymc, "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.checkedUdi();
+ });
+ }
+ },
- } else {
- selectData.forEach((obj) => {
- if (obj.check) {
- selected = obj;
- }
- this.combineQuery.keys.push(obj.uuid);
- });
+ checkedUdi() {
+ let selectData = this.multipleUdiSelection;
+ let selected = null;
+ if (this.multipleUdiSelection.length == 0) {
+ if (this.relId != null) {
+ this.combineQuery.relId = this.relId;
+ this.combineQuery.keys.push(this.currentRow.uuid);
+ if (this.currentRow.check) {
+ selected = this.currentRow;
}
- if (selected != null) {
- this.$message.warning("UDI编码:" + selected.nameCode + "已被选入");
- return;
+ } else
+ return;
+
+ } else {
+ selectData.forEach((obj) => {
+ if (obj.check) {
+ selected = obj;
}
- this.combineLoading = true;
- checkExitUdi(this.combineQuery)
- .then((response) => {
- this.combineLoading = false;
- if (response.code == 20000) {
+ this.combineQuery.keys.push(obj.uuid);
+ });
+ }
+ if (selected != null) {
+ this.$message.warning("UDI编码:" + selected.nameCode + "已被选入");
+ return;
+ }
+ this.combineLoading = true;
+ checkExitUdi(this.combineQuery)
+ .then((response) => {
+ this.combineLoading = false;
+ if (response.code == 20000) {
+ this.combine();
+ // combineUdi(this.combineQuery)
+ // .then((response) => {
+ // this.combineLoading = false;
+ // if (response.code == 20000) {
+ // this.$emit("closeUdi", true);
+ // } else {
+ // this.$emit("closeUdi", false);
+ // }
+ // })
+ // .catch(() => {
+ // this.combineLoading = false;
+ // this.$emit("closeUdi", false);
+ // });
+ } else if (response.code == 499) {
+ this.$confirm(response.message, {type: "warning"})
+ .then(_ => {
this.combine();
// combineUdi(this.combineQuery)
// .then((response) => {
@@ -591,36 +615,17 @@ export default {
// this.combineLoading = false;
// this.$emit("closeUdi", false);
// });
- } else if (response.code == 499) {
- this.$confirm(response.message, { type: "warning" })
- .then(_ => {
- this.combine();
- // combineUdi(this.combineQuery)
- // .then((response) => {
- // this.combineLoading = false;
- // if (response.code == 20000) {
- // this.$emit("closeUdi", true);
- // } else {
- // this.$emit("closeUdi", false);
- // }
- // })
- // .catch(() => {
- // this.combineLoading = false;
- // this.$emit("closeUdi", false);
- // });
- })
- .catch(_ => {
-
- this.combineQuery.keys = [];
- });
- }
- })
- .catch(() => {
- this.combineLoading = false;
- this.$emit("closeUdi", false);
- });
- });
+ })
+ .catch(_ => {
+ this.combineQuery.keys = [];
+ });
+ }
+ })
+ .catch(() => {
+ this.combineLoading = false;
+ this.$emit("closeUdi", false);
+ });
},
combine() {
diff --git a/src/views/basic/product/UdiInfoSelectRel.vue b/src/views/basic/product/UdiInfoSelectRel.vue
index dead39a..044becc 100644
--- a/src/views/basic/product/UdiInfoSelectRel.vue
+++ b/src/views/basic/product/UdiInfoSelectRel.vue
@@ -20,7 +20,7 @@
@@ -30,14 +30,14 @@
+ placeholder="请输入物资名称">
+ placeholder="请输入注册/备案号">
@@ -47,7 +47,7 @@
+ placeholder="请输入生产企业">
@@ -55,7 +55,7 @@
@@ -138,7 +138,7 @@
clearable="true"
style="width: 100%"
reserve-keyword
- placeholder="医疗器械注册人"
+ placeholder="请输入医疗器械注册人"
:remote-method="findMethod"
:loading="loading"
>
@@ -160,7 +160,7 @@
v-model="unionQuery.cpmctymc"
size="mini"
clearable="true"
- placeholder="器械通用名称"
+ placeholder="请输入器械通用名称"
>
@@ -170,7 +170,7 @@
diff --git a/src/views/basic/product/product.vue b/src/views/basic/product/product.vue
index 7176b75..59efd99 100644
--- a/src/views/basic/product/product.vue
+++ b/src/views/basic/product/product.vue
@@ -30,20 +30,20 @@
-
-
-
@@ -65,21 +65,21 @@
-
-
-
-
+
+
@@ -87,8 +87,8 @@
-
-
+
+
@@ -100,14 +100,14 @@
-
-
diff --git a/src/views/basic/product/udiInfoselectErpUdi.vue b/src/views/basic/product/udiInfoselectErpUdi.vue
index eeb6ef0..cf9a892 100644
--- a/src/views/basic/product/udiInfoselectErpUdi.vue
+++ b/src/views/basic/product/udiInfoselectErpUdi.vue
@@ -64,9 +64,9 @@
显示/隐藏搜索栏
重置
- 查询
- 选入
- 结果全部选入
+ 查询
+ 选入
+ 结果全部选入
diff --git a/src/views/inout/DialogSelectProduct.vue b/src/views/inout/DialogSelectProduct.vue
index 730be70..6481913 100644
--- a/src/views/inout/DialogSelectProduct.vue
+++ b/src/views/inout/DialogSelectProduct.vue
@@ -301,7 +301,6 @@ export default {
},
combine() {
- debugger
let data = {
relId: this.currentRow.rlId,
supId: this.currentRow.customerId,
diff --git a/src/views/supplier/products/supAddDiProductSelectUdi.vue b/src/views/supplier/products/supAddDiProductSelectUdi.vue
index 2bb5f25..d027c9e 100644
--- a/src/views/supplier/products/supAddDiProductSelectUdi.vue
+++ b/src/views/supplier/products/supAddDiProductSelectUdi.vue
@@ -390,7 +390,6 @@ export default {
this.showSearch = !this.showSearch;
},
getList() {
- debugger
if (
this.unionQuery.udiCode == '' &&
this.unionQuery.nameCode == '' &&
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 29cadb4..6945ce7 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -677,7 +677,6 @@ export default {
// this.$message("请选择供应商角色")
// return
// }
- debugger
if(this.form.isCustomer == null){
if (this.userStatus == 0) {
this.form.isCustomer = 0;