Commit 3e1dd25b authored by 任鸿志's avatar 任鸿志

refactor(jiesuan): 移除结算模块中的 console.log 语句

- 删除了多个组件和文件中的 console.log 语句
- 优化了代码结构,提高了代码可读性
- 减少了开发过程中的冗余输出
parent 90c0a87f
......@@ -263,7 +263,6 @@ export function hisybbalance (data) {
})
}
export function patient (data) {
console.log(data,'ppppppppppppppppppp')
return request({
// url: `${Vue.prototype.$api.jiesuan.settlementPre}/${patient_id}`,
url: `/api/patient/${data.card_no}`,
......
......@@ -264,7 +264,6 @@ export function hisybbalance (data) {
})
}
export function patient (data) {
console.log(data,'ppppppppppppppppppp')
return requestSFC({
// url: `${Vue.prototype.$api.jiesuan.settlementPre}/${patient_id}`,
url: `/api/patient/${data.card_no}`,
......
......@@ -453,7 +453,6 @@ export default {
printcard(e) {
const _this = this
console.log(e)
printmis({
patient_id: e.his_patient_id,
......@@ -673,7 +672,6 @@ export default {
// </body>
// </html>
// `
console.log(getLodop(), 'uuuuuuuuuuuuuuuuuuuuuuuuuuuuu')
// printProof(user)
var LODOP = getLodop()
if (LODOP) {
......
......@@ -117,7 +117,6 @@ export default {
if(this.form.physicalCard.toString().length === 21){
this.form.physicalCard= this.form.physicalCard.substring(3)
this.form.physicalCardType = 'ID_CARD'
console.log(this.form.physicalCard,'身份证')
this.$emit('getyibaoinfo', this.form)
}
......
......@@ -293,7 +293,6 @@ export default {
// 接收websocket返回的数据值
// 卡类型:就诊卡1,身份证4,社保卡3,山东省健康码8,医保电子凭证2
setOnmessageMessage(evt) {
console.log(evt,'.............................')
let data = ''
if (this.isJSON(evt.data) && evt?.data) {
data = JSON.parse(evt.data)
......
......@@ -291,7 +291,6 @@ export default {
// 接收websocket返回的数据值
// 卡类型:就诊卡1,身份证4,社保卡3,山东省健康码8,医保电子凭证2
setOnmessageMessage(evt) {
console.log(evt, '.............................')
let data = ''
if (this.isJSON(evt.data) && evt?.data) {
data = JSON.parse(evt.data)
......
......@@ -119,7 +119,6 @@ export default {
if(this.form.physicalCard.toString().length === 21){
this.form.physicalCard= this.form.physicalCard.substring(3)
this.form.physicalCardType = 'ID_CARD'
console.log(this.form.physicalCard,'身份证')
this.$emit('getyibaoinfo', this.form)
}
......
......@@ -437,8 +437,6 @@ export default {
},
printcard(e) {
const _this = this
console.log(e)
printmis({
channel: '3',
patient_id: e.his_patient_id,
......
......@@ -50,7 +50,6 @@ export function download(response, filename) {
let blob = new Blob([response]);
let downloadElement = document.createElement("a");
let href = window.URL.createObjectURL(blob); //创建下载的链接
console.log(href)
downloadElement.href = href;
downloadElement.download = filename; //下载后文件名
document.body.appendChild(downloadElement);
......
......@@ -29,11 +29,9 @@ service.interceptors.request.use(
config.headers['job_number'] = localStorage.getItem('jobNumber')
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) {
config.headers['Authorization'] = getToken()
......
......@@ -22,7 +22,6 @@ const service = axios.create({
service.interceptors.request.use(
config => {
// 是否需要设置 token请根据实际情况自行修改
console.log(location.search.slice(1).split('=')[3],location.search,'kkkkkkkkkkkkkkk')
config.headers['ksbm']='111111111111111'
config.headers['dataType']="json"
config.headers['contentType']="application/json"
......
......@@ -28,11 +28,9 @@ service.interceptors.request.use(
config.headers['job_number'] = localStorage.getItem('jobNumber')
config.headers['token'] = 'outside'
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) {
// config.headers['Authorization'] = getToken()
......
......@@ -27,11 +27,9 @@ service.interceptors.request.use(
const isToken = (config.headers || {}).isToken === false
config.headers['job_number'] = localStorage.getItem('jobNumber')
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) {
config.headers['Authorization'] = getToken()
......
......@@ -46,7 +46,6 @@ export function getDay(day, hours) {
var tYear = today.getFullYear()
var tMonth = today.getMonth()
var tDate = today.getDate()
console.log(today)
// var getHours = today.getHours()
tMonth = doHandleMonth(tMonth + 1)
tDate = doHandleMonth(tDate)
......
......@@ -350,7 +350,6 @@ export default {
for (var i = 0; i < e.length; i++) {
arr.push(formatDate(e[i], 'yyyy-MM-dd'))
}
console.log(arr)
this.form.fysfsj_date_start = arr[0]
this.form.fysfsj_date_end = arr[1]
// this.form.brjsrq = arr.toString()
......@@ -371,7 +370,6 @@ export default {
},
//批量上传
uploadMore() {
console.log(this.selectedList,'lklkllkll')
// uploadSett
var that = this
that.isToday = 0
......@@ -395,7 +393,6 @@ export default {
return false
}
this.loading = true
console.log(hisInpatientNoArr)
uploadSett(hisInpatientNoArr)
.then(() => {
that.getList()
......@@ -406,7 +403,6 @@ export default {
},
//上传当日
uploadToday(x) {
console.log(x)
var that = this
// if (x) {
this.loading = true
......@@ -414,7 +410,6 @@ export default {
his_inpatient_no: this.current.his_inpatient_no,
day: this.current.fysfsj_date,
}
console.log([qyparams])
uploadSett([qyparams])
.then(response => {
that.getList()
......
......@@ -306,7 +306,6 @@ export default {
non_preliminary: false,
out_charge_no: this.banlist.serial_number,
}
console.log(t, e, '9999999')
//预退款
// await
refund(t).then(response => {
......@@ -414,7 +413,6 @@ export default {
this.sprice_show = false
this.loading = true
this.list = []
console.log(this.tuidata.type.value, this.tuidata, this.tuidata.type.value == 'RECHARGE')
if (this.tuidata.type.value == 'RECHARGE') {
this.tuiybbank(this.tuidata)
} else if (this.tuidata.source.value == 'BANK' || this.tuidata.source.value == 'MIS_BANK') {
......@@ -452,7 +450,6 @@ export default {
// .then(() => {
// this.loading = true
// this.list = []
// console.log(row.type.value, row, row.type.value == 'RECHARGE')
// if (row.type.value == 'RECHARGE') {
// this.tuiybbank(row)
// } else if (row.source.value == 'BANK' || row.source.value == 'MIS_BANK') {
......
......@@ -82,9 +82,7 @@ export default {
},
methods: {
getListApi() {
console.log("getList");
list().then(response => {
console.log('🚀 ~ getList ~ response:', response)
this.listData = response.data
})
.catch((e) => {
......@@ -96,12 +94,10 @@ export default {
.finally(() => { })
},
addApi(convert_text, original_text) {
console.log("addApi");
add({
'convert_text': convert_text,
'original_text': original_text,
}).then(response => {
console.log('🚀 ~ addApi ~ response:', response)
})
.catch((e) => {
this.$message({
......@@ -112,13 +108,11 @@ export default {
.finally(() => { })
},
editApi(id, convert_text, original_text) {
console.log("editApi");
edit({
'id': id,
'convert_text': convert_text,
'original_text': original_text
}).then(response => {
console.log('🚀 ~ editApi ~ response:', response)
})
.catch((e) => {
this.$message({
......@@ -132,7 +126,6 @@ export default {
del({
id: textId
}).then(response => {
console.log('🚀 ~ delApi ~ response:', response)
})
.catch((e) => {
this.$message({
......@@ -143,12 +136,10 @@ export default {
.finally(() => { })
},
updateStatus(item) {
console.log(item);
edit({
'id': item.id,
'status': item.status,
}).then(response => {
console.log('🚀 ~ editApi ~ response:', response)
})
.catch((e) => {
this.$message({
......@@ -172,7 +163,6 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
console.log(user.id);
this.delApi(user.id);
this.$message.success('删除成功');
}).catch(() => {
......
......@@ -2261,7 +2261,6 @@ export default {
},
//获取自付比例
getProp(row) {
console.log(this.patientData.patient_id)
get_zfbl({
patient_id:this.patientData.patient_id,
item_code: row.item_code,
......
This diff is collapsed.
......@@ -290,13 +290,10 @@ export default {
var urlParams = new URLSearchParams(window.location.search)
var encodedObject = urlParams.get('a')
var decodedObject = JSON.parse(decodeURIComponent(encodedObject))
console.log(decodedObject, 'ppppppppppppppppppppp')
this.out_patient = decodedObject
console.log(this.out_patient)
},
//首次进页面第一次刷卡返回的信息
getyibaoinfo(e, x) {
console.log('=================--------------')
//第一次读二维码不需要from_web
if (x) {
this.card_typeinfor = x
......@@ -461,14 +458,10 @@ export default {
name: this.patientInfo.xm,
yb_cache_uuid: cache_uuid,
}
console.log(param)
// return false
registration_pre(param).then(response => {
this.sprice_show = true
// console.log(response)
this.price_data = response.data
console.log('66666666666666registration_pre')
console.log(this.price_data)
})
},
//结算
......@@ -537,7 +530,6 @@ export default {
})
},
YBKerror(e) {
console.log(e, 'kooooooooooooooo')
const _this = this
let x =
'Trans&15|00|' +
......@@ -866,7 +858,6 @@ export default {
cardjiesuan() {
this.jiezhiLoading = true
var that = this
console.log(this.jiezhi)
//第三次刷电子医保凭证,通过电子医保凭证获取cache_uuid,走结算
if (this.jiezhi == 'A') {
let param = {
......@@ -901,7 +892,6 @@ export default {
})
this.ckh = ret.TradeRef
this.misdataYB = ret
console.log(this.patientInfo, ret, '1111111111111111')
this.settleFun(this.patientInfo.cache_uuid, ret)
this.fullscreenLoading = false
} else {
......
......@@ -411,7 +411,6 @@ export default {
//查询数据
getHisPatientInfo() {
// this.price_data=''
console.log(location.search.slice(1), 'kkkkkkkkkkkkkkkk')
if (location.search.slice(1) != '') {
if (location.search.slice(1).split('=').length == 4 || location.search.slice(1).split('=').length == 3) {
this.jshid = location.search.slice(1).split('&')[0]
......@@ -420,7 +419,6 @@ export default {
this.jshid = location.search.slice(1)
}
}
console.log(this.jshid, '****************')
registration_detil({
jshid: this.jshid, //身份证号、社保卡号
})
......@@ -434,7 +432,6 @@ export default {
var urlParams = new URLSearchParams(window.location.search)
var encodedObject = urlParams.get('a')
var decodedObject = JSON.parse(decodeURIComponent(encodedObject))
console.log(decodedObject, 'ppppppppppppppppppppp')
this.out_patient = decodedObject
},
......
......@@ -2020,7 +2020,6 @@ export default {
if (row.item_code == element.item_code) {
// element.zfbl=response.data.dw_data[0].zfbl
// element.zfbl_desc.push(response.data.zfbl_desc)
console.log( response.data.zfbl_desc,element,'ppppppppppp')
// element.zfbl_desc = response.data.zfbl_desc
response.data.zfbl_desc.forEach(elements => {
element.zfbl_desc = response.data.zfbl_desc //[elements.key]=elements.value
......
......@@ -1621,7 +1621,6 @@ export default {
pdxq(obj)
.then(response => {
let depClass=localStorage.getItem('deptCode')
console.log(" response.data", response.data.filter(item => item.executive_dept_code == depClass),response.data)
this.tableData.cost =response.data.filter(item => item.executive_dept_code == depClass)
this.tableDataList =response.data.filter(item => item.executive_dept_code == depClass)
this.tylist = response.data.filter(item => item.executive_dept_code == depClass)
......@@ -2324,7 +2323,6 @@ export default {
})
.then(response => {
if (response.data.result.length>0) {
console.log(response.data.result,'999999999999999')
this.weiguiList=response.data.result
this.weiguiData=response.data.result
this.ViolationShow=true
......
......@@ -110,7 +110,6 @@ export default {
p_sbm:e.ksbm
})
.then(response => {
console.log('🚀 ~ getyibaoinfo ~ response:', response)
this.patientData = response.data
......
......@@ -747,7 +747,6 @@ export default {
2,
)
this.sprice_show = true
console.log(this.blod_data, '+++++++++++++++')
})
},
retryparams() {
......@@ -974,7 +973,6 @@ export default {
})
},
diseasefun(query) {
console.log(this.patientform.channel,'oooooooooooooooo')
if (query !== '') {
this.loading = true
setTimeout(() => {
......@@ -1111,7 +1109,6 @@ export default {
if (!!window.navigator.clipboard) {
// 利用clipboard将文本写入剪贴板(这是一个异步promise)
window.navigator.clipboard.writeText(text).then((res) => {
console.log('复制成功');
this.$message({
message: '复制成功!',
type: 'success'
......@@ -1119,7 +1116,6 @@ export default {
// 返回复制操作的最终结果
return copyResult;
}).catch((err) => {
console.log('复制失败--采取第二种复制方案', err);
// clipboard方式复制失败 则采用document.execCommand()方式进行尝试
copyContent2(text)
})
......@@ -1148,13 +1144,11 @@ export default {
const result = document.execCommand('copy')
// 判断是否复制成功
if (result) {
console.log('复制成功');
this.$message({
message: '复制成功!',
type: 'success'
});
} else {
console.log('复制失败');
copyResult = false
}
// 复制操作后再将构造的标签 移除
......@@ -1861,7 +1855,6 @@ export default {
this.loadingRight = false
this.tuishow = response.data.status.name
this.jshid = response.data.jshid
console.log(this.tuishow, this.zhje * 1, this.zhje * 1 < 0 && this.tuishow == 'SUCCESS', '显示退款按钮')
this.$alert('出院成功', '出院成功', {
confirmButtonText: '确定',
callback: action => {
......@@ -2271,7 +2264,6 @@ export default {
async preSettlementGetPatientInfo() {
this.gjchick = false
if (location.search.slice(1) != '') {
console.log(location.search.slice(1).split('='))
if (location.search.slice(1).split('=').length == 4 || location.search.slice(1).split('=').length == 3) {
this.idcard = location.search.slice(1).split('&')[0]
this.idcard = this.idcard.split('=')[1]
......@@ -2522,7 +2514,6 @@ export default {
.then(response => {
this.tuishow = response.data.status.name
this.jshid = response.data.jshid
console.log(this.tuishow, this.zhje * 1, this.zhje * 1 < 0 && this.tuishow == 'SUCCESS', '显示退款按钮')
this.$alert('出院成功', '出院成功', {
confirmButtonText: '确定',
callback: action => {
......
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