+
提交
取消
@@ -1000,12 +1001,13 @@ export default {
sjcpbm: row.sjcpbm,
bhxjcpbm: row.bhxjcpbm,
bhxjsl: row.bhxjsl,
- relId: this.newProductData.id,
+ relId: this.newProductData.rlId,
uuid: this.newProductData.uuid,
productId: row.productId,
diType: row.diType,
xjdw: row.xjdw
}
+
updateLevelDrug(editQuery).then(res => {
this.saveLoading = false
if (res.code == 20000) {
diff --git a/src/views/supplier/products/supAddDiProductSelectUdi.vue b/src/views/supplier/products/supAddDiProductSelectUdi.vue
index 41bbeda..6529141 100644
--- a/src/views/supplier/products/supAddDiProductSelectUdi.vue
+++ b/src/views/supplier/products/supAddDiProductSelectUdi.vue
@@ -839,6 +839,7 @@ export default {
created() {
this.getBasicThirdSys()
this.findBasicProductSet()
+ this.findThrTypeMethod("")
},
components: {
selectDiDetail
diff --git a/src/views/thirdSys/product/thrProducts.vue b/src/views/thirdSys/product/thrProducts.vue
index 2b41ff0..cb8ea3e 100644
--- a/src/views/thirdSys/product/thrProducts.vue
+++ b/src/views/thirdSys/product/thrProducts.vue
@@ -55,7 +55,7 @@
显示/隐藏搜索栏
重置
查询
-
新增
@@ -119,6 +119,7 @@
top="5vh"
>
@@ -183,6 +184,7 @@ export default {
thrProductsEditVisible: false,
thisData: null,
loading: false,
+ thrSysId: "",
addProductVisible: false,
newProductData: {
name: '',
@@ -366,6 +368,10 @@ export default {
.catch(() => {
});
},
+ addProduct(){
+ this.thrSysId = this.filterQuery.thirdSys
+ this.addProductVisible = true
+ }
},
components: {
thrProductsDetail, ThrProductsAdd, thrProductsEdit
diff --git a/src/views/thirdSys/product/thrProductsAdd.vue b/src/views/thirdSys/product/thrProductsAdd.vue
index e97bc17..e8d0ca9 100644
--- a/src/views/thirdSys/product/thrProductsAdd.vue
+++ b/src/views/thirdSys/product/thrProductsAdd.vue
@@ -136,6 +136,10 @@ export default {
type: Object,
required: true,
},
+ thrSysId: {
+ type: Object,
+ required: true,
+ },
closeAddDialog: {
type: Function,
required: true,
@@ -170,7 +174,11 @@ export default {
methods: {
saveNewProduct() {
this.addProductVisible = false;
- if (this.$isBlank(this.newProductData.thirdSysFk)) {
+ // if (this.$isBlank(this.newProductData.thirdSysFk)) {
+ // this.$message.warning("第三方系统不能为空!");
+ // return;
+ // }
+ if (this.$isBlank(this.thrSysId)) {
this.$message.warning("第三方系统不能为空!");
return;
}
@@ -200,7 +208,7 @@ export default {
return;
}
-
+ this.newProductData.thirdSysFk = this.thrSysId
if (this.newType == 1) {
saveNewProduct(this.newProductData).then((res) => {
if (res.code == 20000) {