pengjun 2 months ago
parent
commit
ea2e5c2a9a
  1. 7
      src/components/doctorCheck/CheckItemList.vue
  2. 2
      src/components/patientRegister/PatientRegisterEdit.vue
  3. 2
      src/components/patientRegister/PatientRegisterItem.vue
  4. 14
      src/components/patientRegister/patientRegisterAsbItem.vue
  5. 8
      src/components/report/TurnoverReport.vue
  6. 8
      src/components/report/TurnoverReportReal.vue
  7. 111
      src/views/charge/invoiceReg.vue

7
src/components/doctorCheck/CheckItemList.vue

@ -924,6 +924,7 @@ export default {
LastModificationTime: "", LastModificationTime: "",
completeFlag: "", completeFlag: "",
}; };
this.gridData = [] //
return; return;
} }
console.log( console.log(
@ -965,6 +966,7 @@ export default {
//console.log('this.doctorCheck.checkItemList',res.data) //console.log('this.doctorCheck.checkItemList',res.data)
this.doctorCheck.checkItemList = res.data; this.doctorCheck.checkItemList = res.data;
this.doctorCheck.checkItemList.forEach((e, i) => { this.doctorCheck.checkItemList.forEach((e, i) => {
if (this.doctorCheck.RegisterCheckEdit.completeFlag == "0") { if (this.doctorCheck.RegisterCheckEdit.completeFlag == "0") {
this.madeTooltips(i); this.madeTooltips(i);
@ -978,6 +980,11 @@ export default {
e.class = this.resultStatus[lfind].tooltips; e.class = this.resultStatus[lfind].tooltips;
} }
} }
//
if(i == 0){
this.itemRowClick(e)
}
}); });
// //

2
src/components/patientRegister/PatientRegisterEdit.vue

@ -2562,7 +2562,7 @@ export default {
} }
this.$peisAPI.photoGrah() this.$peisAPI.photoGrah()
.then(res => { .then(res => {
// console.log('this.$peisAPI.photoGrah ', res)
console.log('this.$peisAPI.photoGrah 拍照控件原始返回结果', res)
let lres = JSON.parse(res) let lres = JSON.parse(res)
if (lres.code > -1) { if (lres.code > -1) {
let uploadPhoto = { let uploadPhoto = {

2
src/components/patientRegister/PatientRegisterItem.vue

@ -1157,7 +1157,7 @@ export default {
} else if (index == 6) { } else if (index == 6) {
if (e['payTypeFlag'] == '0') sums[index] += e['total'] if (e['payTypeFlag'] == '0') sums[index] += e['total']
} else { } else {
sums[index] += e[column.property]
sums[index] += e['payTypeFlag'] == '2' ? 0:e[column.property]
} }
} }
}) })

14
src/components/patientRegister/patientRegisterAsbItem.vue

@ -259,6 +259,7 @@ export default {
// //
getSummaries(param) { getSummaries(param) {
const { columns, data } = param; const { columns, data } = param;
console.log('columns, data',columns, data)
const sumCol = [2, 5]; // const sumCol = [2, 5]; //
const sums = []; const sums = [];
columns.forEach((column, index) => { columns.forEach((column, index) => {
@ -274,12 +275,21 @@ export default {
return; return;
} }
const values = data.map((item) => Number(item[column.property]));
//
// const values = data.map((item) => Number(item[column.property]));
const values = data.map((item) => {
if(index == 5 && item.payTypeFlag == '2'){
return 0
}else{
return Number(item[column.property])
}
});
console.log('values',values)
if (!values.every((value) => isNaN(value))) { if (!values.every((value) => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr;
return prev + value;
} else { } else {
return prev; return prev;
} }

8
src/components/report/TurnoverReport.vue

@ -186,7 +186,7 @@ export default {
getapi("/api/app/customer-org/parent-all").then((res) => { getapi("/api/app/customer-org/parent-all").then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.customerOrgAll = res.data; this.customerOrgAll = res.data;
this.customerOrg = deepCopy(this.customerOrgAll);
this.customerOrg = deepCopy(this.customerOrgAll).slice(0,100);
} }
}); });
@ -229,17 +229,19 @@ export default {
filterMethod(keyWords) { filterMethod(keyWords) {
if (keyWords) { if (keyWords) {
this.customerOrg = []; this.customerOrg = [];
let customerOrgFilter = []
this.customerOrgAll.forEach((item) => { this.customerOrgAll.forEach((item) => {
if ( if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 || item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 ||
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1 // || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) { ) {
this.customerOrg.push(item);
customerOrgFilter.push(item);
} }
}); });
this.customerOrg = customerOrgFilter.slice(0,100)
} else { } else {
this.customerOrg = deepCopy(this.customerOrgAll);
this.customerOrg = deepCopy(this.customerOrgAll).slice(0,100);
} }
}, },

8
src/components/report/TurnoverReportReal.vue

@ -212,7 +212,7 @@ export default {
getapi("/api/app/customer-org/parent-all").then((res) => { getapi("/api/app/customer-org/parent-all").then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.customerOrgAll = res.data; this.customerOrgAll = res.data;
this.customerOrg = deepCopy(this.customerOrgAll);
this.customerOrg = deepCopy(this.customerOrgAll).slice(0, 100)
} }
}); });
@ -272,17 +272,19 @@ export default {
filterMethod(keyWords) { filterMethod(keyWords) {
if (keyWords) { if (keyWords) {
this.customerOrg = []; this.customerOrg = [];
let customerOrgFilter = []
this.customerOrgAll.forEach((item) => { this.customerOrgAll.forEach((item) => {
if ( if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 || item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 ||
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1 // || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) { ) {
this.customerOrg.push(item);
customerOrgFilter.push(item);
} }
}); });
this.customerOrg = customerOrgFilter.slice(0,100)
} else { } else {
this.customerOrg = deepCopy(this.customerOrgAll);
this.customerOrg = deepCopy(this.customerOrgAll).slice(0,100);
} }
}, },

111
src/views/charge/invoiceReg.vue

@ -42,7 +42,7 @@
</el-select> </el-select>
--> -->
<el-cascader v-model="query.customerOrgIds" :options="customerOrgAll" <el-cascader v-model="query.customerOrgIds" :options="customerOrgAll"
style="width:400px;" filterable popper-class="example"
style="width:500px;" filterable popper-class="example"
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, leaf: 'isLeaf' }" :props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, leaf: 'isLeaf' }"
size="small"> size="small">
</el-cascader> </el-cascader>
@ -390,6 +390,7 @@ import {
} from "@/utlis/proFunc"; } from "@/utlis/proFunc";
import ElProgressOCX from "../../components/report/ElProgressOCX.vue"; import ElProgressOCX from "../../components/report/ElProgressOCX.vue";
import { setDBCom, getDBCom } from "../../utlis/indexedDB"; import { setDBCom, getDBCom } from "../../utlis/indexedDB";
import { filterTreeNode, getTreePids } from "../../utlis/tree";
export default { export default {
@ -410,7 +411,7 @@ export default {
mobileTelephone: "", mobileTelephone: "",
}, // }, //
customerOrg: [],
customerOrgDisp: [],
customerOrgAll: [], customerOrgAll: [],
dictSalesman: [], dictSalesman: [],
@ -573,80 +574,6 @@ export default {
dddw, dddw,
moment, moment,
//
getOrgDatas() {
return new Promise((resolve, reject) => {
console.log('getOrgDatas', this.orgDatas.length)
let url = '/api/app/CustomerOrg/GetSimpleByCodeAll'
if (this.LocalConfig.patientRegister.dispCustomerOrgCode == 'Y') {
url = "/api/app/customerorg/getbycodeall"
getapi(url)
.then((res) => {
if (res.code > -1) {
this.orgDatas = res.data
setDBCom('orgDatas', res.data) //
resolve()
} else {
reject(res.message)
}
})
.catch(err => {
reject(err)
})
} else {
postapi(url)
.then((res) => {
if (res.code > -1) {
this.orgDatas = res.data
setDBCom('orgDatas', res.data)
resolve()
} else {
reject(res.message)
}
})
.catch(err => {
reject(err)
})
}
})
},
//
getCustomerOrgAll() {
return new Promise((resolve, reject) => {
getDBCom('orgDatas')
.then(localData => {
let now = Date.now()
// 24 = 86400000
if (localData?.createdat && now - 43200000 < localData.createdat) {
this.orgDatas = localData.data
}
// console.log('this.orgDatas.length',this.orgDatas.length)
if (this.orgDatas.length > 0) {
let treeData = reMadeOrgTree(deepCopy(this.orgDatas), this.LocalConfig.patientRegister.dispCustomerOrgCode);
this.cusQuery.times += 1
//console.log('getCustomerOrgAll.treeData', treeData)
//console.log('getTreeNode', getTreeNode(treeData, "treeChildren", 'id', '3a1d3736-d7c6-a9fb-c165-675335dc0e9b').treeChildren)
this.cusQuery.treeDataAll = treeData
resolve(treeData)
} else {
this.getOrgDatas()
.then(() => {
let treeData = reMadeOrgTree(deepCopy(this.orgDatas), this.LocalConfig.patientRegister.dispCustomerOrgCode);
this.cusQuery.times += 1
//console.log('getCustomerOrgAll.treeData', treeData)
//console.log('getTreeNode', getTreeNode(treeData, "treeChildren", 'id', '3a1d3736-d7c6-a9fb-c165-675335dc0e9b').treeChildren)
this.cusQuery.treeDataAll = treeData
resolve(treeData)
})
.catch(err => {
reject(err)
})
}
})
})
},
// //
dictInit() { dictInit() {
@ -655,10 +582,10 @@ export default {
this.query.endDate = today this.query.endDate = today
// //
getapi("/api/app/customer-org/parent-all").then((res) => {
postapi("/api/app/CustomerOrg/GetSimpleByCodeAll").then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.customerOrgAll = res.data;
this.customerOrg = deepCopy(this.customerOrgAll);
this.customerOrgAll = reMadeOrgTree(deepCopy(res.data), 'N')
//this.customerOrgDisp = deepCopy(this.customerOrgAll).slice(0,10);
} }
}); });
@ -671,24 +598,22 @@ export default {
}) })
}, },
//
filterMethod(keyWords) {
if (keyWords) {
this.customerOrg = [];
this.customerOrgAll.forEach((item) => {
if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 ||
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) {
this.customerOrg.push(item);
}
});
// ()
filterMethod(node,value) {
let org = []
if (value) {
console.log('filterMethod.value',node,value)
// org = this.customerOrgTreeAll.filter(e => {
// return e.label.indexOf(value) > -1 || e.simpleCode.indexOf(value.toUpperCase()) > -1
// })
org = filterTreeNode(this.customerOrgAll, "treeChildren", ['label', 'simpleCode'], [value, value.toUpperCase()])
this.customerOrgDisp = org.slice(0, 10)
} else { } else {
this.customerOrg = deepCopy(this.customerOrgAll);
this.customerOrgDisp = this.customerOrgAll.slice(0, 10)
} }
}, },
btnExport(elId) { btnExport(elId) {
let tableDatas = deepCopy(this.dataList); let tableDatas = deepCopy(this.dataList);
tableDatas.forEach((e, index) => { tableDatas.forEach((e, index) => {

Loading…
Cancel
Save