diff --git a/public/config.json b/public/config.json index d9c3d49..b0ef407 100644 --- a/public/config.json +++ b/public/config.json @@ -1,4 +1,4 @@ { - "BASE_URL": "http://127.0.0.1:9996", - "SERVER_IP": "http://127.0.0.1:9996" + "BASE_URL": "http://192.168.0.109:9996", + "SERVER_IP": "http://192.168.0.109:9996" } diff --git a/src/api/thrsys/thrProductsAdd.js b/src/api/thrsys/thrProductsAdd.js new file mode 100644 index 0000000..7b2b712 --- /dev/null +++ b/src/api/thrsys/thrProductsAdd.js @@ -0,0 +1,34 @@ +import axios from "../../utils/axios"; + +export function getThrProducts(query) { + return axios({ + url: "/udiwms/thrsys/getThrAddProducts", + method: "get", + params: query + }); +} + +export function delThrProducts(query) { + return axios({ + url: "/udiwms/thrsys/delThrAddProducts", + method: "post", + data: query + }); +} + +export function updateProduct(data) { + return axios({ + url: '/udiwms/thrsys/updateThrAddProducts', + method: 'post', + data: data + }) +} + +export function addProduct(data) { + return axios({ + url: '/udiwms/thrsys/addThrAddProducts', + method: 'post', + data: data + }) +} + diff --git a/src/router/index.js b/src/router/index.js index a171c99..e1c25a7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -74,6 +74,8 @@ import corpExport from "../views/basic/CorpExport.vue"; //第三方数据管理 import thrProducts from "../views/thrsys/ThrProducts.vue"; +import thrProductsCheck from "../views/thrsys/ThrProductsCheck.vue"; +import thrProductsSubmit from "../views/thrsys/ThrProductsSubmit.vue"; import thrProductsImport from "../views/thrsys/ThrProductsImport.vue"; import ThrOrders from "../views/thrsys/ThrOrder.vue"; import thrOrderImport from "../views/thrsys/ThrOrderImport.vue"; @@ -256,15 +258,15 @@ export const asyncRouterMap = [ authRule: ["admin/auth_permission_rule"] } }, - // { - // path: "phoneRegisterManage", - // component: phoneRegisterManage, - // name: "手持终端激活管理", - // icon: "", - // meta: { - // authRule: ["admin/phoneRegisterManage"] - // } - // }, + { + path: "phoneRegisterManage", + component: phoneRegisterManage, + name: "设备管理", + icon: "", + meta: { + authRule: ["admin/phoneRegisterManage"] + } + }, // { // path: "systemParamConfig", // component: systemParamConfig, @@ -430,6 +432,14 @@ export const asyncRouterMap = [ authRule: ["product/UdiInfoManageSp"] } }, + { + path: "thrProductsCheck", + name: "新增产品信息审核", + component: thrProductsCheck, + meta: { + authRule: ["product/thrAddProducts"] + } + }, ] }, @@ -994,6 +1004,14 @@ export const asyncRouterMap = [ authRule: ["basic/basicCompanyProduct"] } }, + { + path: "thrProductsSubmit", + name: "新增产品信息", + component: thrProductsSubmit, + meta: { + authRule: ["product/thrProductsSubmit"] + } + }, { path: "/spInv", redirect: "/spInv/spInvProducts", diff --git a/src/views/basic/UdiInfoRelevance.vue b/src/views/basic/UdiInfoRelevance.vue index ec1e5e5..b54d84b 100644 --- a/src/views/basic/UdiInfoRelevance.vue +++ b/src/views/basic/UdiInfoRelevance.vue @@ -411,6 +411,7 @@ export default { this.$message.warning("未选择医疗器械产品信息"); return; } + console.log("this.currentRow.checked =" + this.currentRow.checked); if (this.currentRow != null && this.currentRow.checked) { this.$confirm("产品编码:" + this.currentRow.code + "已被添加,是否继续添加", "提示", { diff --git a/src/views/basic/UdiInfoselectErpUdi.vue b/src/views/basic/UdiInfoselectErpUdi.vue index e3687b9..c6b2e61 100644 --- a/src/views/basic/UdiInfoselectErpUdi.vue +++ b/src/views/basic/UdiInfoselectErpUdi.vue @@ -1,6 +1,4 @@ @@ -1342,6 +1357,7 @@ import selectUdi from "./UdiInfoRelevance.vue"; import selectErp from "./UdiInfoselectErpUdi"; import selectLocalUdi from "./UdiInfoSelectLocalUdi"; import selectProduct from "./basicCompanyProductsImport"; +import ThrProductsAdd from "@/views/thrsys/ThrProductsAdd"; export default { data() { @@ -1360,7 +1376,9 @@ export default { filterType: null, auditStatus: null, }, + newType: 2, selectProductVisible: false, + addProductVisible: false, editQuery: null, relevanceEdit: { id: null, @@ -1554,7 +1572,6 @@ export default { .catch(() => { }); }, - removeDi() { this.$confirm("此操作将解除该绑定DI器械信息, 是否继续?", "提示", { confirmButtonText: "确定", @@ -1584,7 +1601,6 @@ export default { .catch(() => { }); }, - intentSelectErp(val) { this.uuid = val.uuid; this.relId = val.rlId; @@ -1638,8 +1654,6 @@ export default { console.log("-----" + this.relId); this.selectLocalVisible = true; }, - - intentImportUdi() { this.relId = null; this.selectLocalVisible = true; @@ -1673,13 +1687,13 @@ export default { }).catch(() => { }); }, - handleSelectionChange(val) { console.log("----" + val); this.multipleSelection = val; }, closeSelDialog(val) { this.selectProductVisible = false; + this.addProductVisible = false; }, cancelDialog() { this.editDialogVisible = false; @@ -1688,7 +1702,6 @@ export default { this.filterQuery.page = val; this.getList(); }, - handleDetailClick(row) { this.thisData = row; this.detailDialogVisible = true; @@ -1732,7 +1745,6 @@ export default { this.loading = false; }); }, - handleModifyClick(row) { this.uuid = row.uuid; this.relId = row.rlId; @@ -1793,8 +1805,6 @@ export default { }); }, - - uploadErpProduct() { updateErpProduct() .then((response) => { @@ -1810,7 +1820,6 @@ export default { .catch(() => { }); }, - closeDialog() { this.selectErpDialogVisible = false; this.selectLocalVisible = false; @@ -1838,7 +1847,6 @@ export default { this.cancelDialog(); }); }, - selectSysParam() { spcombie().then((response) => { @@ -1882,7 +1890,16 @@ export default { }, selectProduct() { this.selectProductVisible = true; + }, + closeAddDialog(val) { + if (val) { + this.getList(); + } + this.addProductVisible = false; + console.log("------closeAddDialog-------") + // Object.keys(this.newProductData).forEach(key => this.newProductData[key] = null); } + } , mounted() { @@ -1892,7 +1909,8 @@ export default { selectUdi, selectErp, selectLocalUdi, - selectProduct + selectProduct, + ThrProductsAdd } , created() { diff --git a/src/views/thrsys/ThrProducts.vue b/src/views/thrsys/ThrProducts.vue index 5c88cde..6297db2 100644 --- a/src/views/thrsys/ThrProducts.vue +++ b/src/views/thrsys/ThrProducts.vue @@ -83,7 +83,8 @@ 详情 - 删除 @@ -118,497 +119,270 @@ v-if="addProductVisible" @close="closeAddDialog" > - - -
- - -
-
- 产品名称:  -
- -
-
- -
-
- 产品标识:  -
- -
-
- -
- - -
-
- 注册证号:  -
- -
-
- -
-
- 生产厂家:  -
- -
-
- -
- - -
-
- 规格型号:  -
- -
-
- -
-
- 计量单位:  -
- -
-
- - -
- - -
-
- 医疗器械注册人:  -
- -
-
- -
-
- 注册人英文名称:  -
- -
-
- -
- - -
-
- 产品类别:  -
- -
-
- -
-
- 分类编码:  -
- -
-
- -
- - - -
-
- 商品条码:  -
- -
-
- -
-
- 医保编码:  -
- -
-
-
- - - -
-
- 统一社会信用号:  -
- -
-
- -
-
- 器械类别:  -
- -
-
-
- - - - -
-
- 产品描述:  -
- - -
-
-
-
- -
- 提交 - 取消 -
-
-
+ diff --git a/src/views/thrsys/ThrProductsAdd.vue b/src/views/thrsys/ThrProductsAdd.vue new file mode 100644 index 0000000..eedbf33 --- /dev/null +++ b/src/views/thrsys/ThrProductsAdd.vue @@ -0,0 +1,360 @@ + + + + + diff --git a/src/views/thrsys/ThrProductsCheck.vue b/src/views/thrsys/ThrProductsCheck.vue new file mode 100644 index 0000000..30a765b --- /dev/null +++ b/src/views/thrsys/ThrProductsCheck.vue @@ -0,0 +1,338 @@ + + diff --git a/src/views/thrsys/ThrProductsSubmit.vue b/src/views/thrsys/ThrProductsSubmit.vue new file mode 100644 index 0000000..296082f --- /dev/null +++ b/src/views/thrsys/ThrProductsSubmit.vue @@ -0,0 +1,345 @@ + + diff --git a/src/views/userManage/phoneRegisterManage.vue b/src/views/userManage/phoneRegisterManage.vue index 291633f..395fa24 100644 --- a/src/views/userManage/phoneRegisterManage.vue +++ b/src/views/userManage/phoneRegisterManage.vue @@ -29,17 +29,9 @@ - - -