Commit 81a7d31b authored by 任鸿志's avatar 任鸿志

refactor(env): 更新环境变量并优化发票开具功能

- 更新 VUE_APP_BASE_URL 和 VUE_APP_BASE_URL_SFC 的值
- 引入 lodash 库并使用 debounce 函数优化发票开具操作
- 修复患者信息组件中的慢性病标识显示逻辑
parent 7602a891
......@@ -7,13 +7,13 @@ NODE_ENV = 'development'
# 统一支付对账平台/开发环境
VUE_APP_BASE_API = ''
# VUE_APP_BASE_URL = 'http://192.169.24.231:8002'
# VUE_APP_BASE_URL = 'http://10.10.9.219:9902'
VUE_APP_BASE_URL = 'http://10.10.9.219:8802'
VUE_APP_BASE_URL = 'http://10.10.9.219:9902'
# VUE_APP_BASE_URL = 'http://10.10.9.219:8802'
VUE_APP_BASE_URL_change = 'http://10.10.8.230:6200/fancy'
# VUE_APP_BASE_URL = 'http://127.0.0.1:9902'
# VUE_APP_BASE_URL = 'http://10.10.9.219:8802'
# VUE_APP_BASE_URL = 'http://10.10.9.219:9902'
VUE_APP_BASE_URL_SFC = 'http://10.10.9.219:8802'
VUE_APP_BASE_URL_SFC = 'http://10.10.9.219:9902'
# VUE_APP_BASE_URL_SFC = 'http://10.10.40.69:9903'
# VUE_APP_BASE_URL = 'http://192.169.4.171:8002'
# VUE_APP_BASE_URL = 'http://10.10.40.10:8099'
......
......@@ -56,14 +56,22 @@
</div>
<template #footer>
<div class="dialog-footer">
<!-- <div> -->
<!-- <template> -->
<!-- <el-popconfirm title="确定开票?"> -->
<el-button @click="InvoicingFun" type="primary">开票</el-button>
<!-- </el-popconfirm> -->
<!-- </template> -->
<!-- </div> -->
<el-button @click="deleteinvoic" type="danger" plain>取消</el-button>
</div>
</template>
</el-dialog>
</template>
<script>
import { outinvoicing, printInvoice,printInvoiceDetails } from '@/api/changeFree'
import _ from 'lodash';
import { outinvoicing, printInvoice, printInvoiceDetails } from '@/api/changeFree'
export default {
components: {},
props: {
......@@ -78,7 +86,7 @@ export default {
data() {
return {
formRef: null,
isOpenCardeds: false,
isOpenCardeds: true,
outinvoicform: {
patient: {
name: '',
......@@ -119,9 +127,9 @@ export default {
deleteinvoic() {
this.$emit('success')
},
// 开票
async InvoicingFun() {
let param = {
InvoicingFun: _.debounce(async function(event) {
console.log("11111111111111111")
let param = {
cardNo: this.outinvoicform.patientId,
idCard: this.outinvoicform.id_card,
jobNumber: localStorage.getItem('jobNumber') ?? '',
......@@ -150,7 +158,43 @@ export default {
type: 'error',
})
}
},
}, 300),
// 开票
// async InvoicingFun() {
// console.log("222222222222")
// _.debounce(async function(event) {
// console.log("111111111111111")
// let param = {
// cardNo: this.outinvoicform.patientId,
// idCard: this.outinvoicform.id_card,
// jobNumber: localStorage.getItem('jobNumber') ?? '',
// jshId: this.outinvoicform.jshId,
// mobile: this.outinvoicform.mobile,
// name: this.outinvoicform.name,
// patientId: this.outinvoicform.patientId,
// payerType: this.outinvoicform.payerType,
// rcptNo: this.outinvoicform.rcpt_no,
// totalAmount: this.outinvoicform.totalAmount,
// }
// const res = await outinvoicing(param)
// if (res.code == 200) {
// this.$message({
// message: '开票成功',
// type: 'success',
// })
// this.handlePrintInvoiceAsync()
// this.handlePrintInvoiceDetailsAsync()
// // this.isOpenCardeds = false
// this.$emit('success')
// } else {
// this.$message({
// message: res.message,
// type: 'error',
// })
// }
// }, 500) // 500毫秒内如果再次触发,只执行最后一次
// },
async handlePrintInvoiceAsync() {
try {
const params = {
......@@ -170,7 +214,7 @@ export default {
// setLoading(false)
}
},
async handlePrintInvoiceDetailsAsync() {
async handlePrintInvoiceDetailsAsync() {
try {
const params = {
patientId: this.outinvoicform.patientId,
......
......@@ -244,7 +244,7 @@ export default {
p_sbm: e.ksbm,
})
.then(response => {
this.manbing=response.data.mzdbjbs_arr[0].code
this.manbing=response.data.mzdbjbs_arr[0]?response.data.mzdbjbs_arr[0].code:''
this.allLoading=false
this.patientData = response.data
this.patientData.rqlbName == 'A' ? '职工' : '居民'
......
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