Browse Source

api/app/customerorg/getbycodeall

master
pengjun 2 years ago
parent
commit
6c268b7ca4
  1. 33
      src/components/customerOrg/customerOrgEdit.vue
  2. 89
      src/components/customerOrg/customerOrgTree.vue
  3. 2
      src/components/patientRegister/customerOrgTreeAll.vue
  4. 2
      src/components/patientRegisterSign/customerOrgEdit.vue
  5. 201
      src/components/report/CusOrgOCX.vue
  6. 2
      src/components/report/PatientRegisterQueryNobtn.vue
  7. 35
      src/utlis/proFunc.js
  8. 113
      src/utlis/tree.js
  9. 2
      src/views/charge/charge.vue
  10. 2
      src/views/checkStatus/index.vue
  11. 2
      src/views/customerOrg/patientRegisterRefuse.vue
  12. 2
      src/views/doctorCheck/doctorCheck.vue
  13. 2
      src/views/doctorCheck/personnelBatch.vue
  14. 6
      src/views/doctorCheck/positiveresults.vue
  15. 2
      src/views/doctorCheck/unitphysicalexamination.vue
  16. 6
      src/views/fee-settings/diseaseStatistics.vue
  17. 2
      src/views/report/report.vue

33
src/components/customerOrg/customerOrgEdit.vue

@ -80,7 +80,7 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="状态" prop="isActive" label-width="56px">
<el-form-item label="启用" prop="isActive" label-width="56px">
<!--
<el-radio v-model="form.isActive" label="Y">启用</el-radio>
<el-radio v-model="form.isActive" label="N">停用</el-radio>
@ -158,7 +158,7 @@
<el-button type="success" @click="Onsubmit('form')" class="btnClass">保存</el-button>
</div>
<div class="btnList">
<el-button type="danger" @click="del" class="btnClass">删除</el-button>
<el-button type="danger" @click="del('form')" class="btnClass">删除</el-button>
</div>
</div>
</div>
@ -290,7 +290,7 @@ export default {
//
getCustomerOrgTree() {
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
//customerOrgTree = res.data;
console.log("res.data", res.data);
this.setData({ key: "customerOrg.customerOrgTree", value: res.data });
@ -374,13 +374,26 @@ export default {
},
//
del() {
deletapi(
`/api/app/customer-org/${this.customerOrg.customerOrgRd.id}`
).then((res) => {
this.$message.success("删除 操作成功");
this.setData({ key: "customerOrg.customerOrgRd", value: { id: "" } });
this.getCustomerOrgTree();
del(formName) {
this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
type: "warning",
}).then(() => {
//console.log('{patientRegisterIds}',{patientRegisterIds})
return deletapi(`/api/app/customer-org/${this.customerOrg.customerOrgRd.id}`);
}).then((res) => {
if(res.code != -1) {
this.$message.success("删除 操作成功");
this.setData({ key: "customerOrg.customerOrgRd", value: { id: "" } });
this.$refs[formName].resetFields();
this.getCustomerOrgTree();
}
}).catch((err) => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
},

89
src/components/customerOrg/customerOrgTree.vue

@ -1,13 +1,10 @@
<template>
<el-tree
:data="customerOrg.customerOrgTree"
:props="customerOrg.treeprops"
@node-click="treeclick"/>
<el-tree :data="customerOrg.customerOrgTree" :props="customerOrg.treeprops" @node-click="treeclick" />
</template>
<script>
import { mapState, mapMutations } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { tcdate,deepCopy} from "../../utlis/proFunc";
import { tcdate, deepCopy } from "../../utlis/proFunc";
export default {
components: {},
data() {
@ -15,10 +12,10 @@ export default {
},
//<el-tree :data="$store.state.customerOrg.customerOrgTree" :props="$store.state.customerOrg.treeprops" @node-click="treeclick"></el-tree>
computed: {
...mapState(["customerOrg","window"]),
...mapState(["customerOrg", "window"]),
},
//
created() {},
created() { },
//
mounted() {
@ -28,7 +25,7 @@ export default {
methods: {
...mapMutations(["setData"]),
//
getCustomerOrgTree() {
//let customerOrgTree = []
@ -46,67 +43,75 @@ export default {
// ];
//console.log('getCustomerOrgTree start')
// api/app/organization-units/organization-unit-by-is-peis // api/app/customer-org/by-code-all
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall?IsHidePerson=1").then((res) => {
//customerOrgTree = res.data;
console.log("res.data", res.data);
this.setData({ key: "customerOrg.customerOrgTree", value: res.data });
tcdate(this.customerOrg.customerOrgTree);
if(res.code != -1){
this.setData({ key: "customerOrg.customerOrgTree", value: res.data });
tcdate(this.customerOrg.customerOrgTree);
}
});
},
//
getCustomerOrgRd(id) {
this.customerOrg.customerOrgRd.id = id;
this.customerOrg.customerOrgRd.id = id;
},
//
getCustomerOrgRegisterList(customerOrgId) {
//api/app/customer-org-register/in-customer-org-id/
getapi(
`/api/app/customer-org-register/in-customer-org-id/${customerOrgId}`
`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${customerOrgId}`
).then((res) => {
//console.log('res.data',res.data)
this.customerOrg.customerOrgRegisterList = res.data;
if(res.code != -1){
this.customerOrg.customerOrgRegisterList = res.data;
}
});
},
//
getContactPersonList(customerOrgId) {
getapi(
`/api/app/contact-person/in-customer-org-id/${customerOrgId}`
).then((res) => {
//console.log('res.data',res.data)
this.customerOrg.contactPersonList = res.data;
getapi(
`/api/app/contact-person/in-customer-org-id/${customerOrgId}`
).then((res) => {
if(res.code != -1){
this.customerOrg.contactPersonList = res.data;
if (res.data.length > 0) {
this.getContactMethodList(res.data[0].id);
} else {
this.customerOrg.contactMethodList = [];
}
});
},
}
});
},
//
//api/app/contact-method/in-contact-person-id?ContactPersonId=3a0c08ad-4304-138b-d9e6-a7338739dfc4' \
getContactMethodList(ContactPersonId) {
getapi("/api/app/contact-method/in-contact-person-id", {
ContactPersonId,
}).then((res) => {
//console.log('res.data',res.data)
//
//api/app/contact-method/in-contact-person-id?ContactPersonId=3a0c08ad-4304-138b-d9e6-a7338739dfc4' \
getContactMethodList(ContactPersonId) {
getapi("/api/app/contact-method/in-contact-person-id", {
ContactPersonId,
}).then((res) => {
if(res.code != -1){
this.customerOrg.contactMethodList = res.data;
});
},
}
});
},
//
treeclick(data) {
//this.$message.success(data.id + " " + data.displayName);// api/app/customer-org/3a0c0439-a5ca-8a63-b2b9-e0eb24cb58b1
this.customerOrg.customerOrgId = data.id;
this.getCustomerOrgRd(data.id);
//
treeclick(data) {
//this.$message.success(data.id + " " + data.displayName);// api/app/customer-org/3a0c0439-a5ca-8a63-b2b9-e0eb24cb58b1
this.customerOrg.customerOrgId = data.id;
this.getCustomerOrgRd(data.id);
//
if(!data.parentId){
this.getCustomerOrgRegisterList(data.id);
this.getContactPersonList(data.id);
},
}
this.getContactPersonList(data.id);
},
},
};
</script>
<style scoped>
</style>
<style scoped></style>

2
src/components/patientRegister/customerOrgTreeAll.vue

@ -30,7 +30,7 @@ export default {
methods: {
//
getCustomerOrgTree() {
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
//customerOrgTree = res.data;
console.log("res.data", res.data);
this.patientRegister.customerOrgTreeAll = res.data;

2
src/components/patientRegisterSign/customerOrgEdit.vue

@ -299,7 +299,7 @@ export default {
//
getCustomerOrgTree() {
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
//customerOrgTree = res.data;
console.log("res.data", res.data);
this.setData({ key: "customerOrg.customerOrgTree", value: res.data });

201
src/components/report/CusOrgOCX.vue

@ -1,25 +1,117 @@
<template>
<el-tree
:data="patientRegister.customerOrgTreeAll"
:props="customerOrg.treeprops"
@node-click="treeclick"
></el-tree>
<div style="display: flex;">
<div style="width: 180px;height:500px;margin-top: -30px;overflow: scroll;border: 1px solid;">
<el-tree :data="patientRegister.customerOrgTreeAll" :props="customerOrg.treeprops" @node-click="handleNode" />
</div>
<div style="display: block;width:620px;margin-top: -30px; margin-left: 5px;">
<el-table :data="dataCusOrgOCX" border height="450" highlight-current-row @row-click="rowick" size="small"
@selection-change="handleSelectionChange" @cell-contextmenu="onCellRightClick">
<el-table-column prop="customerOrgId" label="体检单位" width="130">
<template slot-scope="scope">
<el-select v-model="scope.row.customerOrgId" placeholder="体检单位" style="width: 60px" size="small"
value-key="id">
<el-option v-for="item in patientRegister.customerOrgTreeAll" :key="item.id" :label="item.displayName"
:value="item.id" />
</el-select>
</template>
</el-table-column>
<el-table-column prop="customerOrgId" label="次数" width="45" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.customerOrgRegister" placeholder="次数" style="width: 60px" size="small"
:disabled="scope.row.customerOrgId == dict.personOrgId"
@change="changeMedicalTimes(scope.row.customerOrgId)" value-key="id">
<el-option v-for="item in customerOrg.customerOrgRegisterList" :key="item.id" :label="item.medicalTimes"
:value="item" />
</el-select>
</template>
</el-table-column>
<el-table-column prop="dateType" label="日期方式" width="80" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.dateType" placeholder="请选择" filterable clearable size="small">
<el-option label="登记日期" value="creationTime" />
<el-option label="体检日期" value="medicalStartDate" />
<el-option label="总检日期" value="summaryDate" />
</el-select>
</template>
</el-table-column>
<el-table-column prop="startDate" label="起始日期" width="100" align="center">
<template slot-scope="scope">
<el-date-picker v-model="scope.row.startDate" type="date" placeholder="截止日期" size="small" />
</template>
</el-table-column>
<el-table-column prop="endDate" label="截止日期" width="100" align="center">
<template slot-scope="scope">
<el-date-picker v-model="scope.row.endDate" type="date" placeholder="截止日期" size="small" />
</template>
</el-table-column>
<el-table-column prop="customerOrgGroupIds" label="分组" width="160">
<template slot-scope="scope">
<el-select v-model="scope.row.customerOrgGroupIds" multiple collapse-tags filterable clearable
placeholder="请选择分组" size="small">
<el-option v-for="item in dict.asbItemAll" :key="item.value" :label="item.displayName" :value="item.id" />
</el-select>
</template>
</el-table-column>
</el-table>
<div style="display: flex;margin-top: 8px;margin-left: 15px;">
<div style="display: block;">
<div>
<span>日期方式</span>
<el-radio-group v-model="dateType">
<el-radio label="creationTime">登记日期</el-radio>
<el-radio label="medicalStartDate">体检日期</el-radio>
<el-radio label="summaryDate">总检日期 </el-radio>
</el-radio-group>
</div>
<div style="margin-top: 5px;">
<span>单位作为查询条件</span>
<el-checkbox v-model="useCusOrg" />
</div>
</div>
<div style="margin-left: 50px;margin-top: 5px;">
<el-button type="primary" @click="readIdCard">确定</el-button>
<el-button type="danger" @click="report.dialogCusOrgOCX = false">关闭</el-button>
</div>
</div>
</div>
</div>
</template>
<script>
import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { tcdate } from "../../utlis/proFunc";
import { getTreePids, getTreeAllChildIdsById } from "../../utlis/tree";
export default {
components: {},
data() {
return {};
return {
preNodeId: '', //
curNodeId: '', //
parentIds: [], //Id
childIds: [], //Id
dateType: 'creationTime',
useCusOrg: true, //使
//
dataCusOrgOCX: [{
customerOrgId: '',
customerOrgRegister: '', //
customerOrgRegisterList: [], //
dateType: 'creationTime', // creationTimemedicalStartDatesummaryDate
startDate: '',
endDate: '',
customerOrgGroupIds: [], //
customerOrgGroupList: [], //
}],
};
},
//<el-tree :data="$store.state.customerOrg.customerOrgTree" :props="$store.state.customerOrg.treeprops" @node-click="treeclick"></el-tree>
computed: {
...mapState(["dict", "customerOrg", "patientRegister"]),
...mapState(["dict", "customerOrg", "patientRegister", "report"]),
},
//
created() {},
created() {
this.dataCusOrgOCX = this.report.dataCusOrgOCX;
},
//
mounted() {
@ -30,7 +122,7 @@ export default {
methods: {
//
getCustomerOrgTree() {
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
//customerOrgTree = res.data;
console.log("res.data", res.data);
this.patientRegister.customerOrgTreeAll = res.data;
@ -58,6 +150,97 @@ export default {
this.getCustomerOrgParentId(data.id);
this.patientRegister.query.times++; //
},
//--
handleNode(data, node, prop) {
console.log(data, node, prop);
if (!this.preNodeId) {
this.preNodeId = data.id;
} else {
this.curNodeId = data.id;
}
//
if (this.preNodeId == this.curNodeId) { //id
this.preNodeId = null;
this.curNodeId = null;
this.treeDbClick(data.id);
return;
}
this.nodeTimer = setTimeout(() => { //300ms
this.preNodeId = null;
}, 300)
},
async treeDbClick(cusOrgId) {
this.parentIds = getTreePids(this.patientRegister.customerOrgTreeAll, 'children', 'parentId', 'id', cusOrgId);
this.childIds = getTreeAllChildIdsById(this.patientRegister.customerOrgTreeAll, 'children', 'id', cusOrgId);
//
let ldate = new Date();
let record = {
customerOrgId: '',
customerOrgRegister: {}, //
customerOrgRegisterList: [], //
dateType: 'creationTime', // creationTimemedicalStartDatesummaryDate
startDate: ldate,
endDate: ldate,
customerOrgGroupIds: [], //
customerOrgGroupList: [], //
}
record.customerOrgId = cusOrgId;
if(cusOrgId != this.dict.personOrgId){
try {
//
let res1 = await getapi(`/api/app/customer-org-register/in-customer-org-id/${cusOrgId}`);
record.customerOrgRegisterList = res1.data;
if(res1.data && res1.data.length > 0){
record.customerOrgRegister = res1.data[res1.data.length - 1];
record.startDate = res1.data[res1.data.length - 1].beginTime;
record.endDate = res1.data[res1.data.length - 1].isComplete == 'N' ? ldate : res1.data[res1.data.length - 1].endTime;
}
} catch (error) {
console.log(`get: /api/app/customer-org-register/in-customer-org-id/${cusOrgId}`,error)
}
}
},
//
changeCustomerOrgId(v) {
console.log(v)
if (!v) {
this.patientRegister.query.customerOrgRegister = null;
return;
}
let customerOrgId = v[0];
if (customerOrgId == this.dict.personOrgId) {
this.patientRegister.query.customerOrgRegister = null;
return;
}
getapi(
`/api/app/customer-org-register/in-customer-org-id/${customerOrgId}`
).then((res) => {
//console.log('res.data',res.data)
if (res.code != -1) {
this.customerOrg.customerOrgRegisterList = res.data;
if (res.data.length > 0) {
this.patientRegister.query.customerOrgRegister = res.data[res.data.length - 1];
this.patientRegister.query.dateRange = [
res.data[res.data.length - 1].beginTime,
res.data[res.data.length - 1].isComplete == 'N' ? new Date() : res.data[res.data.length - 1].endTime
]
}
}
});
},
},
};
</script>

2
src/components/report/PatientRegisterQueryNobtn.vue

@ -65,7 +65,7 @@
</div>
<!--通用选单位体检次数分组的控件-->
<el-dialog title="体检单位选择" :visible.sync="report.dialogCusOrgOCX"
:close-on-click-modal="false" width="800px" height="600px">
:close-on-click-modal="false" width="840px" height="600px">
<CusOrgOCX/>
</el-dialog>
</div>

35
src/utlis/proFunc.js

@ -176,3 +176,38 @@ exports.birthdayToAge = function (birthday) {
return Math.floor((new Date().getTime() - new Date(birthday).getTime())/yearInMs)
}
//通过ID值,找出所有父节点值
function getTreeParents(tree,nodeName,parentIdName,idName,idVal,parentIds){
for(let i=0;i<tree.length;i++){
parentIds = [];
if(tree[i][idName] == idVal){
break;
}else{
parentIds.push(tree[i][idName]);
getTreeParents(tree[i][nodeName],nodeName,parentIdName,idName,idVal,parentIds);
}
}
}
exports.getTreeParents = getTreeParents;
//通过ID值,找出所有子节点值
function getTreeAllChilds(tree,nodeName,idName,childIds){
tree.forEach(e =>{
childIds.push(e[idName]);
getTreeAllChilds(e[nodeName],nodeName,idName,childIds);
});
return nodeIds;
}
function getTreeChilds(tree,nodeName,parentIdName,idName,idVal){
for(let i=0;i<tree.length;i++){
let childIds = [];
if(tree[i][idName] == idVal){
break;
}else{
getTreeParents(tree[i][nodeName],nodeName,parentIdName,idName,idVal);
}
}
}
exports.getTreeChilds = getTreeChilds;

113
src/utlis/tree.js

@ -0,0 +1,113 @@
//树对象相关操作 目前只支持单主键操作
//将list数据,生成tree
function madeTree(dataSource, childNodeName, pidName, idName, pidVal) {
if (!dataSource || dataSource.length < 1) return [];
let trees = []
let lchildNodeName = childNodeName || 'children';
let lpidName = pidName || 'pid';
let lidName = idName || 'id';
dataSource.forEach(e => {
let tree = {}, ret = null;
if (pidVal) { //根节点有具体的值
if (e[lpidName] == pidVal) {
tree = e;
ret = madeTree(dataSource, lchildNodeName, lpidName, lidName, e[lidName]);
if (ret && ret.length > 0) tree[lchildNodeName] = ret;
trees.push(tree);
}
} else {
if (!e[lpidName]) { //根节点为0,空或null
tree = e;
ret = madeTree(dataSource, lchildNodeName, lpidName, lidName, e[lidName]);
if (ret && ret.length > 0) tree[lchildNodeName] = ret;
trees.push(tree);
}
}
})
return trees;
}
//通过ID值,找出所有父节点值
function getTreePids(tree, childNodeName, pidName, idName, idVal) {
let pids = [],treeNode = null;
if (!tree || tree.length < 1) return [];
if (!idVal) return [];
let lchildNodeName = childNodeName || 'children';
let lpidName = pidName || 'pid';
let lidName = idName || 'id';
treeNode = getTreeNode(tree,lchildNodeName,lidName, idVal);
//console.log('treeNode',treeNode);
if(treeNode){
pids.push(treeNode[lpidName]);
getTreePids(tree, lchildNodeName, lpidName, lidName, treeNode[lpidName]).forEach(e =>{
pids.push(e);
});
}
return pids;
}
//通过ID值,找出所有子节点值
function getTreeAllChildIdsByNode(treeNode, childNodeName, idName) {
let childIds = [];
let lchildNodeName = childNodeName || 'children';
let lidName = idName || 'id';
if (!treeNode) return [];
if (!treeNode[lchildNodeName] || treeNode[lchildNodeName].length < 1) return [];
treeNode[lchildNodeName].forEach(e => {
childIds.push(e[lidName]);
getTreeAllChildIdsByNode(e, lchildNodeName, lidName).forEach(e2 =>{
childIds.push(e2);
});
});
return childIds;
}
//通过ID值,找出所有子节点值
function getTreeAllChildIdsById(tree, childNodeName, idName, idVal) {
let childIds = [], treeNode = null;
let lchildNodeName = childNodeName || 'children';
let lidName = idName || 'id';
if (!tree || tree.length < 1) return [];
treeNode = getTreeNode(tree, lchildNodeName, lidName, idVal);
childIds = getTreeAllChildIdsByNode(treeNode, lchildNodeName, lidName);
return childIds;
}
//获取节点本身
function getTreeNode(tree, childNodeName, idName, idVal) {
let treeNode = null;
let lchildNodeName = childNodeName || 'children';
let lidName = idName || 'id';
if (!tree || tree.length < 1) return treeNode;
for (let i = 0; i < tree.length; i++) {
if (tree[i][lidName] == idVal) {
treeNode = tree[i];
break;
} else {
if (tree[i][lchildNodeName] && tree[i][lchildNodeName].length > 0) {
treeNode = getTreeNode(tree[i][lchildNodeName], lchildNodeName, lidName, idVal);
}
if (treeNode) break;
}
}
return treeNode;
}
module.exports = {
madeTree,
getTreePids, getTreeAllChildIdsByNode,getTreeAllChildIdsById, getTreeNode,
}

2
src/views/charge/charge.vue

@ -946,7 +946,7 @@ export default {
});
//
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.patientRegister.customerOrgTreeAll = res.data;
tcdate(this.patientRegister.customerOrgTreeAll)
});

2
src/views/checkStatus/index.vue

@ -109,7 +109,7 @@ export default {
);
//
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
if (res.code == 1) {
this.patientRegister.customerOrgTreeAll = res.data;
tcdate(this.patientRegister.customerOrgTreeAll);

2
src/views/customerOrg/patientRegisterRefuse.vue

@ -62,7 +62,7 @@ export default {
});
//
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.patientRegister.customerOrgTreeAll = res.data;
tcdate(this.patientRegister.customerOrgTreeAll)
});

2
src/views/doctorCheck/doctorCheck.vue

@ -177,7 +177,7 @@ export default {
});
//
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
//customerOrgTree = res.data;
console.log("res.data", res.data);
this.patientRegister.customerOrgTreeAll = res.data;

2
src/views/doctorCheck/personnelBatch.vue

@ -400,7 +400,7 @@ export default {
slicetdata() {
console.log("2");
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.gettypelist(res.data);
this.departmentdata = res.data;
console.log(res);

6
src/views/doctorCheck/positiveresults.vue

@ -210,18 +210,18 @@ export default {
close() {
this.visible = false;
},
// /api/app/customer-org/by-code-all
// /api/app/customerorg/getbycodeall
unitchang() {
console.log("1");
this.visible = true;
console.log(this.visible);
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.customerorgdata = res.data;
});
},
//
obtainingunits() {
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.customerorgdata = res.data;
});
},

2
src/views/doctorCheck/unitphysicalexamination.vue

@ -112,7 +112,7 @@ export default {
methods: {
//
obtainingunits() {
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.customerorgdata = res.data;
});
},

6
src/views/fee-settings/diseaseStatistics.vue

@ -197,18 +197,18 @@ export default {
close() {
this.visible = false;
},
// /api/app/customer-org/by-code-all
// /api/app/customerorg/getbycodeall
unitchang() {
console.log("1");
this.visible = true;
console.log(this.visible);
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.customerorgdata = res.data;
});
},
//
obtainingunits() {
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
this.customerorgdata = res.data;
});
},

2
src/views/report/report.vue

@ -81,7 +81,7 @@ export default {
);
//
getapi("/api/app/customer-org/by-code-all").then((res) => {
getapi("/api/app/customerorg/getbycodeall").then((res) => {
if (res.code == 1) {
this.patientRegister.customerOrgTreeAll = res.data;
tcdate(this.patientRegister.customerOrgTreeAll);

Loading…
Cancel
Save