Commit 05138f1c authored by 任鸿志's avatar 任鸿志

1122

parent e3787d3e
...@@ -128,7 +128,20 @@ export function zhxx (data) { ...@@ -128,7 +128,20 @@ export function zhxx (data) {
data data
}) })
} }
export function prescription (data) {
return requestSFC({
url: Vue.prototype.$api.mz.prescription,
method: 'post',
data
})
}
export function serviceInvoke (data) {
return requestSFC({
url: Vue.prototype.$api.mz.serviceInvoke,
method: 'post',
data
})
}
export function bxxx (data) { export function bxxx (data) {
return requestSFC({ return requestSFC({
url: Vue.prototype.$api.mz.bxxx+'/'+data.patient_id, url: Vue.prototype.$api.mz.bxxx+'/'+data.patient_id,
......
...@@ -23,10 +23,18 @@ const service = axios.create({ ...@@ -23,10 +23,18 @@ const service = axios.create({
service.interceptors.request.use( service.interceptors.request.use(
config => { config => {
// 是否需要设置 token请根据实际情况自行修改 // 是否需要设置 token请根据实际情况自行修改
config.headers['ksbm']=location.search.slice(1).split('=')[3]==undefined?"0":location.search.slice(1).split('=')[3]==''?'0':location.search.slice(1).split('=')[3] config.headers['ksbm']=location.search.slice(1).split('=')[3]==undefined?"0":location.search.slice(1).split('=')[3]==''?'0':location.search.slice(1).split('=')[3]
const isToken = (config.headers || {}).isToken === false const isToken = (config.headers || {}).isToken === false
config.headers['job_number'] = localStorage.getItem('jobNumber') config.headers['job_number'] = localStorage.getItem('jobNumber')
config.headers['dept_code'] = localStorage.getItem('deptCode') config.headers['dept_code'] = localStorage.getItem('deptCode')
console.log(localStorage.getItem('deptCode'),'pppppppppppppp')
if (localStorage.getItem('deptCode')=='') {
let urlParams = new URLSearchParams(window.location.search)
config.headers['dept_code'] = urlParams.get('dept')
console.log( urlParams.get('dept'),'kkkkkkkkkkkkkkkkkkk')
}
if (getToken() && !isToken) { if (getToken() && !isToken) {
config.headers['Authorization'] = getToken() config.headers['Authorization'] = getToken()
// config.headers['ksbm']=location.search.slice(1).split('=')[3]==undefined?"0":location.search.slice(1).split('=')[3]==''?'0':location.search.slice(1).split('=')[3] // config.headers['ksbm']=location.search.slice(1).split('=')[3]==undefined?"0":location.search.slice(1).split('=')[3]==''?'0':location.search.slice(1).split('=')[3]
......
...@@ -27,6 +27,12 @@ service.interceptors.request.use( ...@@ -27,6 +27,12 @@ service.interceptors.request.use(
const isToken = (config.headers || {}).isToken === false const isToken = (config.headers || {}).isToken === false
config.headers['job_number'] = localStorage.getItem('jobNumber') config.headers['job_number'] = localStorage.getItem('jobNumber')
config.headers['dept_code'] = localStorage.getItem('deptCode') config.headers['dept_code'] = localStorage.getItem('deptCode')
console.log(localStorage.getItem('deptCode'),'pppppppppppppp')
if (localStorage.getItem('deptCode')=='') {
let urlParams = new URLSearchParams(window.location.search)
config.headers['dept_code'] = urlParams.get('dept')
console.log( urlParams.get('dept'),'kkkkkkkkkkkkkkkkkkk')
}
if (getToken() && !isToken) { if (getToken() && !isToken) {
config.headers['Authorization'] = getToken() config.headers['Authorization'] = getToken()
// config.headers['ksbm']=location.search.slice(1).split('=')[3]==undefined?"0":location.search.slice(1).split('=')[3]==''?'0':location.search.slice(1).split('=')[3] // config.headers['ksbm']=location.search.slice(1).split('=')[3]==undefined?"0":location.search.slice(1).split('=')[3]==''?'0':location.search.slice(1).split('=')[3]
......
...@@ -700,7 +700,9 @@ export default { ...@@ -700,7 +700,9 @@ export default {
channel: 'local', channel: 'local',
}, },
bxxxinfo: { bxxxinfo: {
settle_type: {}, settle_type: {
name:''
},
djf: 0, djf: 0,
zhye: 0, zhye: 0,
brxm: '', brxm: '',
...@@ -1633,7 +1635,11 @@ export default { ...@@ -1633,7 +1635,11 @@ export default {
this.weiguiList=[] this.weiguiList=[]
this.shenfenzheng = this.tableData.patient.idCard this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = '' this.adminpingzhengma = ''
this.bxxxinfo = {} this.bxxxinfo = {
settle_type:{
name:''
}
}
this.ismb = false this.ismb = false
this.orders.forEach(element => { this.orders.forEach(element => {
if (element) { if (element) {
...@@ -2305,7 +2311,7 @@ export default { ...@@ -2305,7 +2311,7 @@ export default {
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
pre_key: res.data.pre_key, pre_key: res.data.pre_key,
cache_key: this.form.cache_key, cache_key: this.form.cache_key,
}).then(res2 => { }).then(async res2 => {
this.familyType = res2.data.family_type this.familyType = res2.data.family_type
if (res2.data.family_type == '1') { if (res2.data.family_type == '1') {
this.bxxxinfo.gjzhzf = res2.data.gjzhxfje this.bxxxinfo.gjzhzf = res2.data.gjzhxfje
...@@ -2318,7 +2324,7 @@ export default { ...@@ -2318,7 +2324,7 @@ export default {
this.bxxxinfo.gjzhzf = 0 this.bxxxinfo.gjzhzf = 0
} }
// 验证违规 // 验证违规
prescription({ await prescription({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
prescription_nos: this.cost_id, prescription_nos: this.cost_id,
......
...@@ -1642,7 +1642,9 @@ export default { ...@@ -1642,7 +1642,9 @@ export default {
this.shenfenzheng = this.tableData.patient.idCard this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = '' this.adminpingzhengma = ''
this.bxxxinfo = { this.bxxxinfo = {
settle_type: {}, settle_type: {
name:''
},
} }
if (this.man_name == true) { if (this.man_name == true) {
this.ybjs() this.ybjs()
......
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