diff --git a/src/views/basic/product/product.vue b/src/views/basic/product/product.vue index f49e310c..f49b27b1 100644 --- a/src/views/basic/product/product.vue +++ b/src/views/basic/product/product.vue @@ -9,12 +9,7 @@ @node-click="handleNodeClick" :expand-on-click-node="false"> - {{ node.label }} - - 绑定 - 解绑 - - + {{ node.label }} @@ -1074,14 +1069,13 @@ @closeUdi="closeUdi" > - - + :limit.sync="filterQuery.limit" + :page.sync="filterQuery.page" + @pagination="handleCurrentChange" + > @@ -92,7 +94,35 @@ + + + + + + @@ -102,6 +132,9 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import Treeselect from "@riophae/vue-treeselect"; import {getBasicHospType, getListMenu, saveBasicHospType,uodateBasicHospType,deleteBasicHospType} from "@/api/basic/basicHospType"; +import selectHospProduct from "@/views/basic/product/bindHospProduct"; +import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct"; + export default { data() { @@ -129,6 +162,7 @@ export default { currentRow: {name: "仓库"}, mutiInvMode: true, subFormVisible: false, + rId:null, subData: {}, fromDeptOptions: [], thirdSubQuery: { @@ -141,6 +175,9 @@ export default { thrSubWareHouseVisible: false, thrSubWarehouseData: [], checkSubThrWarehouseRow: null, + selectHospProductVisible: false, + selectUnBindHospProductVisible:false, + subTotal: 0, sysList: [], sysSubList: [], @@ -288,13 +325,28 @@ export default { }); } }, - - + addHospProduct(data) { + this.rId = data.code + this.selectHospProductVisible = true; + }, + removeHospProduct(data){ + this.rId = data.code + this.selectUnBindHospProductVisible = true; + }, + closeDialog() { + this.selectErpDialogVisible = false; + this.selectLocalVisible = false; + this.selectVersionVisible = false; + this.selectHospProductVisible=false; + this.selectUnBindHospProductVisible=false; + }, }, mounted() { }, components: { - Treeselect + Treeselect, + selectHospProduct, + selectUnBindHospProduct }, created() { this.getList();