Commit fdc8998e authored by 任鸿志's avatar 任鸿志

只有慢病才医保审核接口

parent 1698f20b
...@@ -739,6 +739,7 @@ export default { ...@@ -739,6 +739,7 @@ export default {
visitNo: '', visitNo: '',
visitDate: '', visitDate: '',
jsroundData: {}, jsroundData: {},
ismb:false,
} }
}, },
mounted() { mounted() {
...@@ -1650,7 +1651,22 @@ export default { ...@@ -1650,7 +1651,22 @@ export default {
this.shenfenzheng = this.tableData.patient.idCard this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = '' this.adminpingzhengma = ''
this.bxxxinfo = {} this.bxxxinfo = {}
const { code, data } = await verifyFeeStatus({ this.ismb=false
this.orders.forEach(element => {
if (element) {
this.ismb=true
}
});
if (!this.ismb) {
if (this.orders.length > 0) {
console.log(this.orders,'ppppppppppppppp')
this.ybjs()
} else {
this.$message.error('请勾选结算类型和待结算的费用清单')
this.yujiesuanload = false
}
}else{
const { code, data } = await verifyFeeStatus({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
serial_no: this.cost_id.toString(), serial_no: this.cost_id.toString(),
}) })
...@@ -1660,6 +1676,7 @@ export default { ...@@ -1660,6 +1676,7 @@ export default {
return false return false
} else { } else {
if (this.orders.length > 0) { if (this.orders.length > 0) {
console.log(this.orders,'ppppppppppppppp')
this.ybjs() this.ybjs()
} else { } else {
this.$message.error('请勾选结算类型和待结算的费用清单') this.$message.error('请勾选结算类型和待结算的费用清单')
...@@ -1667,6 +1684,8 @@ export default { ...@@ -1667,6 +1684,8 @@ export default {
} }
} }
} }
}
}, },
// ldjkfsl(){ // ldjkfsl(){
// if(this.manFeeStatus()){ // if(this.manFeeStatus()){
...@@ -2018,7 +2037,7 @@ export default { ...@@ -2018,7 +2037,7 @@ export default {
var cost_ids = [] var cost_ids = []
x.slice(0, x.length - 1).forEach(function (element) { x.slice(0, x.length - 1).forEach(function (element) {
total += element.total * 1 * 1 total += element.total * 1 * 1
orders.push(element.group_id) orders.push(element.settle_type.is_mb)
cost_ids.push(element.serial_no) cost_ids.push(element.serial_no)
costint.push(element) costint.push(element)
}) })
...@@ -2058,7 +2077,7 @@ export default { ...@@ -2058,7 +2077,7 @@ export default {
var cost_ids = [] var cost_ids = []
array.forEach(function (element) { array.forEach(function (element) {
total += element.total * 1 * 1 total += element.total * 1 * 1
orders.push(element.group_id) orders.push(element.settle_type.is_mb)
cost_ids.push(element.serial_no) cost_ids.push(element.serial_no)
costint.push(element) costint.push(element)
}) })
...@@ -2098,12 +2117,13 @@ export default { ...@@ -2098,12 +2117,13 @@ export default {
var cost_ids = [] var cost_ids = []
array.forEach(function (element) { array.forEach(function (element) {
total += element.total * 1 * 1 total += element.total * 1 * 1
orders.push(element.group_id) orders.push(element.settle_type.is_mb)
cost_ids.push(element.serial_no) cost_ids.push(element.serial_no)
costint.push(element) costint.push(element)
}) })
this.cost_id = cost_ids this.cost_id = cost_ids
console.log(orders,'iiiiiiiiiiiiiiiiiii')
this.orders = orders this.orders = orders
this.total = total.toFixed(2) this.total = total.toFixed(2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment