diff --git a/src/views/basic/product/drug/chooseHouseDrug.vue b/src/views/basic/product/drug/chooseHouseDrug.vue
new file mode 100644
index 00000000..f9e3027f
--- /dev/null
+++ b/src/views/basic/product/drug/chooseHouseDrug.vue
@@ -0,0 +1,604 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.thirdName }}
+ {{ item.thirdId }}
+
+
+
+
+
+
+
+
+
+
+ 显示/隐藏搜索栏
+ 重置
+ 查询
+ 选入
+ 结果全部选入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/basic/product/drug/drugAdd.vue b/src/views/basic/product/drug/drugAdd.vue
index 77825822..f7ab9ba2 100644
--- a/src/views/basic/product/drug/drugAdd.vue
+++ b/src/views/basic/product/drug/drugAdd.vue
@@ -1,7 +1,32 @@
+
+
+
+ 第三方信息
+
+
+
+
+
+
+
+
+
+
+
+
+ 关联
+
+ 解绑
+
+
+
+
+
药品层级
@@ -451,6 +476,27 @@
+
+
+
+
+
+
@@ -463,11 +509,12 @@ import {
} from '@/api/basic/product/drugUdiinfos'
import {
- getYbHcflDetail,
+ getYbHcflDetail, removeRl, thirdSysDetail
} from '@/api/basic/product/udiRelevance'
import {filterClassify} from '@/api/purchase/classifyCode'
import {filterByUuid} from "@/api/basic/product/udiInfo";
import selectChargesProjectDialog from "./selectChargesProjectDialog"
+import chooseHouseDrug from './chooseHouseDrug'
export default {
name: 'drugAdd',
@@ -484,9 +531,25 @@ export default {
//1:新增;2:编辑
type: Object,
required: false
- }
+ },
+ uuid: {
+ type: Object,
+ required: true,
+ },
+ relId: {
+ type: Object,
+ required: true,
+ },
+ thisData: {
+ type: Object,
+ required: true,
+ },
+ relevanceEdit: {
+ type: Object,
+ required: true,
+ },
},
- components: {selectChargesProjectDialog},
+ components: {selectChargesProjectDialog,chooseHouseDrug},
data() {
return {
ybHcflDetail: {},
@@ -517,7 +580,7 @@ export default {
thirdSys: [],
classifyList: [],
saveLoading: false,
- activeNames: ['1', '2'],
+ activeNames: ['0','1', '2'],
formRules: {
cpmctymc: [
{required: true, message: '请输入药品通用名', trigger: 'blur'}
@@ -565,6 +628,10 @@ export default {
selectedIndex: null,
loading: false,
tollProjectDialogVisible: false,
+ sysList: [],
+ chooseHouseDrugVisible: false,
+ isImport: false,
+ defaultSys: null,
}
},
@@ -829,7 +896,81 @@ export default {
getData(data) {
this.tollProjectDialogVisible = false
this.newProductData.payFeeCode = data.medCatalogCode
- }
+ },
+ /**
+ * 第三方系统药品信息
+ */
+ getThirdSysDetail() {
+ let query = {
+ id: this.relevanceEdit.id,
+ };
+ thirdSysDetail(query)
+ .then((response) => {
+ this.loading = false;
+ this.sysList = response.data.list || [];
+ this.resetThirdId();
+ })
+ .catch(() => {
+ this.loading = false;
+ this.sysList = [];
+ });
+ },
+ resetThirdId() {
+ this.sysList.forEach((item) => {
+ if (item.sysId === "thirdId") {
+ this.newProductData.thirdId = item.thirdId;
+ } else if (item.sysId === "thirdId1") {
+ this.newProductData.thirdId1 = item.thirdId;
+ } else if (item.sysId === "thirdId2") {
+ this.newProductData.thirdId2 = item.thirdId;
+ } else if (item.sysId === "thirdId3") {
+ this.newProductData.thirdId3 = item.thirdId;
+ } else if (item.sysId === "thirdId4") {
+ this.newProductData.thirdId4 = item.thirdId;
+ }
+ })
+ },
+ /**
+ * 关联 第三方
+ */
+ addSelectErp(row) {
+ this.defaultSys = row.sysId;
+ this.isImport = false;
+ this.chooseHouseDrugVisible = true;
+ },
+ removeErp(row) {
+ this.$confirm("此操作将解除该绑定药品信息, 是否继续?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ let query = {
+ relId: this.relId,
+ thirdSys: row.sysId
+ };
+ removeRl(query)
+ .then((response) => {
+ if (response.code == 20000) {
+ this.$message({
+ type: "success",
+ message: "解绑成功!",
+ });
+ this.getThirdSysDetail();
+ } else {
+ this.$message.error(response.message);
+ }
+ })
+ .catch(() => {
+ });
+ })
+ .catch(() => {
+ });
+ },
+ closeUdi(val) {
+ this.chooseHouseDrugVisible = false;
+ this.getThirdSysDetail();
+ },
},
created() {
@@ -843,8 +984,10 @@ export default {
this.status = false
}
this.getDetailList();
+ this.getThirdSysDetail()
}else {
this.selectedIndex = 0
+
}
},
directives: {
diff --git a/src/views/basic/product/drug/drugMaintain.vue b/src/views/basic/product/drug/drugMaintain.vue
index f0f7de28..1b397177 100644
--- a/src/views/basic/product/drug/drugMaintain.vue
+++ b/src/views/basic/product/drug/drugMaintain.vue
@@ -84,6 +84,7 @@
重置
查询
选入药品信息
+ 添加院内药品
新增药品信息
@@ -140,6 +141,10 @@
:closeDialog="closeDialog"
:rowData="rowData"
:type="type"
+ :relevanceEdit="relevanceEdit"
+ :uuid="uuid"
+ :relId="relId"
+ :thisData="thisData"
>
@@ -157,6 +162,26 @@
+
+
+
+
@@ -180,9 +205,10 @@ import {
} from '@/api/basic/product/udiRelevance'
import drugAdd from '@/views/basic/product/drug/drugAdd'
import chooseDrug from '@/views/basic/product/drug/chooseDrug'
+import chooseHouseDrug from '@/views/basic/product/drug/chooseHouseDrug'
export default {
- components: {drugAdd, chooseDrug},
+ components: {drugAdd, chooseDrug,chooseHouseDrug},
name: 'drugMaintain',
data() {
return {
@@ -211,6 +237,29 @@ export default {
'edit': '编辑-药品信息',
},
loading: false,
+ chooseHouseDrugVisible: false,
+ uuid: "111",
+ relId: "",
+ isImport: false,
+ pId: 0,
+ thisData: {
+ nameCode: null,
+ cpmctymc: null,
+ ggxh: null,
+ },
+ relevanceEdit: {
+ id: null,
+ thirdId: "",
+ isDisable: null,
+ isUseDy: false,
+ isLock: null,
+ isAdavence: null,
+ allowNoBatch: null,
+ allowNoExpire: null,
+ allowNoProduct: null,
+ allowNoSerial: null,
+ pId: null,
+ },
}
},
@@ -242,6 +291,15 @@ export default {
},
chooseDrug() {
this.chooseDrugVisible = true
+
+ },
+ chooseHouseDrug(val){
+ this.defaultSys = null;
+ this.uuid = val.uuid;
+ this.relId = val.id;
+ this.isImport = true;
+ this.thisData = val;
+ this.chooseHouseDrugVisible = true
},
getList() {
getUdiInfos(this.filterQuery)
@@ -280,12 +338,27 @@ export default {
},
editDrug(row) {
this.fromName = 'edit'
- this.rowData = row
+
this.type = 2
+ this.uuid = row.uuid;
+ this.relId = row.id;
+ this.isImport = false;
+ this.thisData = row;
+ this.pId = row.id;
+ this.relevanceEdit = {
+ id: row.id,
+ isUseDy: row.isUseDy,
+ isDisable: row.isDisable,
+ isLock: row.isLock,
+ isAdavence: row.isAdavence,
+ };
+ this.editFormat = JSON.parse(JSON.stringify(row));
+ this.rowData = row
this.addDrugVisible = true;
},
closeDialog() {
this.addDrugVisible = false;
+ this.chooseHouseDrugVisible = false;
this.getList()
}
},
diff --git a/src/views/collect/DealOrderBlank.vue b/src/views/collect/DealOrderBlank.vue
index 7274a941..c0fcede9 100644
--- a/src/views/collect/DealOrderBlank.vue
+++ b/src/views/collect/DealOrderBlank.vue
@@ -88,7 +88,8 @@
remote
@change="busTypeChange"
reserve-keyword
- placeholder="请选择业务类型" clearable style="width: 90%">
+ disabled
+ placeholder="请选择业务类型" clearable style="width: 60%">
{{ item.documentTypeCode }}
+ 切换业务
@@ -428,6 +430,7 @@ export default {
if (this.formData.workPlaceCode != null) {
this.findCurOrder();
}
+ this.$refs.inputRef.focus();
},
getWorkBindBusTypes(workplaceId) {
this.busQuery.workplaceCode = workplaceId
@@ -486,6 +489,11 @@ export default {
}
this.findCurOrder();
},
+ toggleBusType(){
+ //隐藏下拉框内容
+ // this.$refs.selectHeadEmpId.blur();
+ this.selectBusTypeDisabled = true
+ },
handleClick(blankName) {
// let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId
@@ -911,10 +919,9 @@ export default {
this.formData.workPlaceCode = Number(this.$route.query.workplaceId);
this.getWorkBindBusTypes(this.formData.workPlaceCode);
}
-
-
}
+
}
diff --git a/src/views/collect/PanelOrderEndSearch.vue b/src/views/collect/PanelOrderEndSearch.vue
index bedc1e88..216e3d83 100644
--- a/src/views/collect/PanelOrderEndSearch.vue
+++ b/src/views/collect/PanelOrderEndSearch.vue
@@ -2,12 +2,14 @@
+ size="mini" label-width="100px"
+ >
+ :label="item.columnDesc+`:`" :key="item.id"
+ >
+ :label="item.columnDesc+`:`"
+ >
+ clearable
+ >
+ :label="item.columnDesc+`:`"
+ >
+ clearable
+ >
+ :label="item.columnDesc+`:`"
+ >
+ :label="item.columnDesc+`:`"
+ >
executeFuc(row,'0',tableObj.handleChangeFuc)" ref="multipleTable"
:default-sort="defaultSort"
:row-style="{ height: '32px' }"
- @sort-change="handleSortChange">
+ @sort-change="handleSortChange"
+ >
+ type="index" :label="item.columnDesc"
+ >
+ :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])"
+ >
{{
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
}}
@@ -243,20 +254,20 @@
+
diff --git a/src/views/thirdSys/drug/thrDrugAdd.vue b/src/views/thirdSys/drug/thrDrugAdd.vue
new file mode 100644
index 00000000..f8b863dd
--- /dev/null
+++ b/src/views/thirdSys/drug/thrDrugAdd.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+ {{ item.thirdName }}
+ {{
+ item.thirdId
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 取消
+
+
+
+
+
+
+
diff --git a/src/views/thirdSys/drug/thrDrugDetail.vue b/src/views/thirdSys/drug/thrDrugDetail.vue
new file mode 100644
index 00000000..ae0fc015
--- /dev/null
+++ b/src/views/thirdSys/drug/thrDrugDetail.vue
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/thirdSys/drug/thrDrugEdit.vue b/src/views/thirdSys/drug/thrDrugEdit.vue
new file mode 100644
index 00000000..8e4f8eb4
--- /dev/null
+++ b/src/views/thirdSys/drug/thrDrugEdit.vue
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+ {{ item.thirdName }}
+ {{
+ item.thirdId
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 取消
+
+
+
+
+
+
+
diff --git a/src/views/thirdSys/product/thrProductsAdd.vue b/src/views/thirdSys/product/thrProductsAdd.vue
index 0cbc8ac8..96f54295 100644
--- a/src/views/thirdSys/product/thrProductsAdd.vue
+++ b/src/views/thirdSys/product/thrProductsAdd.vue
@@ -220,6 +220,7 @@ export default {
return
}
this.saveLoading = true
+ this.newProductData.productType = 1
if (this.newType == 1) {
saveNewProduct(this.newProductData).then((res) => {
this.saveLoading = false