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

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

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