123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961 |
- <template>
- <div class="main-contain outpatientChargesManagement">
- <div class="position">
- <bread-crumb :crumbs="crumbs"></bread-crumb>
- </div>
- <div class="app-container">
- <div
- style="
- display: flex;
- justify-content: space-between;
- margin-bottom: 10px;
- ">
-
- </div>
- <div style="margin-bottom: 10px;">
- <el-date-picker
- size="small"
- v-model="start_time"
- prefix-icon="el-icon-date"
- @change="handleStartTimeChange"
- :editable="false"
- :clearable="false"
- style="width: 196px; "
- type="date"
- placeholder="选择开始日期"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- align="right"
- ></el-date-picker>
- <span style="text-align: center;">-</span>
- <el-date-picker
- size="small"
- v-model="end_time"
- prefix-icon="el-icon-date"
- @change="handleEndTimeChange"
- :editable="false"
- :clearable="false"
- style="width: 196px; "
- type="date"
- placeholder="选择结束日期"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- align="right"
- ></el-date-picker>
- <el-button size="small" type="primary"
- @click="query">查询
- </el-button>
- <el-button size="small" type="primary"
- @click="login">短信登录税局
- </el-button>
- <el-button size="small" type="primary"
- @click="auth">认证
- </el-button>
- </div>
-
- <el-table
- :data="tableData"
- border
- style="width: 100%"
- :row-style="{ color: '#303133' }"
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266',
- }"
- highlight-current-row
- >
- <el-table-column
- prop="date"
- label="序号"
- width="60"
- align="center"
- type="index"
- >
- </el-table-column>
-
- <el-table-column align="center" width="90" prop="name" label="患者名字">
- <template slot-scope="scope">{{ scope.row.patient.name }}</template>
- </el-table-column>
-
- <el-table-column align="center" width="90" prop="name" label="患者性别">
- <template slot-scope="scope">{{ scope.row.patient.gender == 1 ? '男':'女' }}</template>
- </el-table-column>
-
-
- <el-table-column align="center" width="90" prop="name" label="处方类型">
- <template slot-scope="scope">
- <div>{{ getMedType(scope.row.med_type) }}</div>
- </template>
- </el-table-column>
-
- <el-table-column align="center" width="90" prop="name" label="结算类型">
- <template slot-scope="scope">
- <div v-if="scope.row.his_patient.balance_accounts_type != 2">
- 医保
- </div>
- <div v-if="scope.row.his_patient.balance_accounts_type == 2">
- 自费
- </div>
- </template>
- </el-table-column>
-
- <el-table-column align="center" width="90" prop="name" label="就诊凭证类型">
- <template slot-scope="scope">
- <div v-if="scope.row.his_patient.id_card_type == 1">
- 社会保障卡
- </div>
- <div v-if="scope.row.his_patient.id_card_type == 2">
- 居民身份证
- </div>
- <div v-if="scope.row.his_patient.id_card_type == 4">
- 医保电子凭证
- </div>
- </template>
- </el-table-column>
-
- <el-table-column
- align="center"
- width="100"
- prop="name"
- label="处方日期"
- >
- <template slot-scope="scope">
- {{getTimes(scope.row.settle_accounts_date) }}
- </template>
- </el-table-column>
-
- <el-table-column
- align="center"
- width="100"
- prop="name"
- label="收费时间"
- >
- <template slot-scope="scope">
- {{
- scope.row.setl_time
- ? scope.row.setl_time
- : getTimes(scope.row.settle_accounts_date)
- }}
- </template>
- </el-table-column>
-
- <el-table-column align="center" width="90" prop="name" label="收费员">
- <template slot-scope="scope">
- {{getName(scope.row.creator)}}
- </template>
- </el-table-column>
-
- <el-table-column align="center" prop="name" label="操作">
- <template slot-scope="scope">
- <el-button v-if="scope.row.result.id == 0" size="mini" type="primary"
- @click="blue(scope.row)">
- 开票
- </el-button>
- <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0" size="mini" type="primary"
- @click="hongchong(scope.row)">
- 红冲
- </el-button>
- <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0"
- @click="yulan(scope.row)">
- 预览
- </el-button>
- <el-button size="mini" type="primary" @click="download(scope.row)" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0">
- 下载
- </el-button>
-
-
- </template>
- </el-table-column>
- </el-table>
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :page-sizes="[10, 50, 100]"
- :page-size="10"
- :current-page.sync="page"
- background
- style="margin-top: 20px; float: right"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- >
- </el-pagination>
- </div>
-
- <el-dialog
- title="登录"
- :visible.sync="login_dialogVisible"
- width="40%"
- >
- <div>
- <el-form :rules="rules" :label-position="labelPosition" label-width="100px" :model="formLabelAlign">
- <!-- <el-form-item label="税局账号">-->
- <!-- <el-input v-model="formLabelAlign.name"></el-input>-->
- <!-- </el-form-item>-->
- <!-- <el-form-item label="税局密码">-->
- <!-- <el-input v-model="formLabelAlign.region"></el-input>-->
- <!-- </el-form-item>-->
- <!-- <el-form-item label="手机号码">-->
- <!-- <el-input v-model="formLabelAlign.type"></el-input>-->
- <!-- </el-form-item>-->
- <el-form-item label="短信验证码" prop="verify">
- <div style="display: inline-block;width: 50%;">
- <el-input v-model="formLabelAlign.verify"></el-input>
- </div>
- <div style="display: inline-block;">
- <el-button :disabled="countdown > 0" @click="verify_click">{{countdown > 0?countdown:'获取短信验证码'}}</el-button>
- </div>
- </el-form-item>
- </el-form>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="login_dialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="loginSJ()">确 定</el-button>
- </span>
- </el-dialog>
-
- <!-- 二维码 -->
- <el-dialog
- title="提示"
- :visible.sync="qr_dialogVisible"
- width="30%"
- center
- >
- <div style="margin: auto;width: 120px;">
- <div class="qrcode" ref="qrCodeUrl"></div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="qr_dialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="qr_dialogVisible = false">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
-
-
- <script>
- import BreadCrumb from '@/xt_pages/components/bread-crumb'
- import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
- import { ModifyFapiaoCode } from '@/api/his/his_tools'
-
-
- // import NewStatementPrint from './newStatementPrint'
- import { adminMainView} from "@/api/role/admin";
- import { fetchAllAdminUsers } from '@/api/doctor'
- import axios from 'axios'
- import { jsGetAge, uParseTime } from '@/utils/tools'
- import {
- getOrderFapiaoList,
- OpenBlueFapiao,
- OpenRedFapiao,
- GetSMSCode,
- SMSLogin, GetQRCode
- } from '../../api/fapiao'
-
- import { getDialysisRecordInitData } from '@/api/dialysis_record'
- import QRCode from 'qrcodejs2'
- const moment = require('moment')
- export default {
- name: 'OutpatientChargesSummary',
- components: {
- BreadCrumb,
- },
- data() {
- return {
- staff:"",
- admins:[],
- orderObj: {},
- batchOrderObj: {},
- fapiao_number:"",
- med_options: [
- { id: 0, text: '全部' },
- { id: 11, text: '普通门诊' },
- { id: 14, text: '门诊特殊病' }
- ],
- zone_options: [
- { id: 0, text: '全部分区' }
- ],
- statementListVisible: false,
- statementVisible: false,
- batchStatementVisible: false,
- statementVisible9504: false,
- orderObj9504: {},
- crumbs: [
- { path: false, name: '门诊收费' },
- { path: false, name: '项目消费明细汇总' }
- ],
- tableData: [],
- tableData2:[],
- selecting_schs: [],
- dialogfapiaoVisible:false,
- targeOrderId:0,
- targeObj:{},
- limit: 10,
- page: 1,
- keywords: '',
- sch_type: '0',//班次
- zoneVal: 0,//分区
- medTypeVal: 0,
- start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
- end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
- pay_time:"",
- total: '',
- doctors: [],
- sort_type: 1,
- sort_types: [
- { value: 1, label: '处方时间' },
- { value: 2, label: '结算时间' }
- ],
- admin_user_id: '',
- listVisible: false,
- allListVisible: false,
- adminUserOptions: [],
- invoiceVisible: false,
- paramsObj: {},
- invoiceParams: {},
- settlementVisible: false,
- settlementObj: {},
- accounts_click_vi:false,
-
- login_dialogVisible:false,
- qr_dialogVisible:false,
- formLabelAlign: {
- name: '',
- region: '',
- type: '',
- verify:'',
- },
- rules:{
- verify:[{ required: true, message: '请输入活动名称', trigger: 'blur' },]
- },
- time:null,
- countdown: 0,
-
- }
- },
-
- created() {
- this.getInitData()
- this.fetchAllAdminUsers()
- // this.getDoctorList()
- this.getHisOrderList()
- // this.getAllstaff()
- },
-
- methods: {
- loginSJ(){
- // let params = {
- // "code":this.formLabelAlign.verify,
- // }
- // SMSLogin(params).then((response) => {
- // if (response.data.state == 0) {
- // this.login_dialogVisible = false
- // this.$message.error(response.data.msg)
- // return false
- // } else {
- // this.login_dialogVisible = false
- // // this.$message.success(response.data.msg)
- // // this.$message.success(response.data.data.msg)
- // this
- // .$confirm(response.data.data.msg, '信息', {
- // confirmButtonText: '确 定',
- // type: 'warning'
- // })
- // .then(() => {
- // })
- // .catch(() => {
- // })
- //
- // }
- // })
-
- var that = this;
- let params = {
- "code":this.formLabelAlign.verify,
- }
- axios.get('http://127.0.0.1:9532/api/fapiao/sms/login',{params:params}).then(function(response) {
- if (response.data.state == 0) {
- that.$message.error(response.data.data.msg);
- return false
- } else {
- if(response.data.data.failed_code == -10){
- that.$confirm(response.data.data.msg, '错误信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- }).then(() => {
-
- }).catch(() => {
- })
- }else{
- that.login_dialogVisible = false
- // this.$message.success(response.data.msg)
- // this.$message.success(response.data.data.msg)
- that
- .$confirm(response.data.data.msg, '信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- })
- .then(() => {
- })
- .catch(() => {
- })
- }
-
- }
- }).catch(function(error) {
- })
-
- },
- login(){
- this.login_dialogVisible = true
- },
- verify_click(){
- var that = this;
- let params = {
- "admin_user_id":this.$store.getters.xt_user.user.id,
- }
- axios.get('http://127.0.0.1:9532/api/fapiao/sms/code',{params:params}).then(function(response) {
- if (response.data.state == 0) {
- that.$message.error(response.data.data.msg);
- return false
- } else {
- if(response.data.data.failed_code == -10){
- that.$confirm(response.data.data.msg, '错误信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- }).then(() => {
-
- }).catch(() => {
- })
- }else{
- that.$message.success(response.data.data.msg)
- }
-
- }
- }).catch(function(error) {
- })
- this.countdown = 60
- this.time = setInterval(() => {
- if (this.countdown > 0) {
- this.countdown--
- } else {
- clearInterval(this.time)
- }
- }, 1000)
- },
- auth(){
-
- // let params = {
- // }
- // GetQRCode(params).then((response) => {
- // if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
- // return false
- // } else {
- // if(response.data.data.cus_status == 1){
- // this.$nextTick(() =>{
- // var qrcode = new QRCode(this.$refs.qrCodeUrl, {
- // text: response.data.data.qr_code, // 需要转换为二维码的内容
- // width: 120,
- // height: 120,
- // colorDark: '#000000',
- // colorLight: '#ffffff',
- // correctLevel: QRCode.CorrectLevel.H
- // })
- // })
- // this.qr_dialogVisible =true
- // }else if(response.data.data.cus_status == -1){
- // // this.$message.error(response.data.msg)/* */
- // this
- // .$confirm(response.data.data.msg, '信息', {
- // confirmButtonText: '确 定',
- // type: 'warning'
- // })
- // .then(() => {
- // })
- // .catch(() => {
- // })
- // }else if(response.data.data.cus_status == 2){
- // // this.$message.error(response.data.data.msg)
- // this
- // .$confirm(response.data.data.msg, '信息', {
- // confirmButtonText: '确 定',
- // type: 'warning'
- // })
- // .then(() => {
- // })
- // .catch(() => {
- // })
- //
- // }else if(response.data.data.cus_status == -3){
- // // this.$message.error(response.data.data.msg)
- // this
- // .$confirm(response.data.data.msg, '信息', {
- // confirmButtonText: '确 定',
- // type: 'warning'
- // })
- // .then(() => {
- // })
- // .catch(() => {
- // })
- //
- // }else if(response.data.data.cus_status == -4){
- // // this.$message.error(response.data.data.msg)
- // this
- // .$confirm(response.data.data.msg, '信息', {
- // confirmButtonText: '确 定',
- // type: 'warning'
- // })
- // .then(() => {
- // })
- // .catch(() => {
- // })
- //
- // }
- // // this.$message.success(response.data.msg)
- // }
- // })
-
-
- var that = this;
- let params = {
- "admin_user_id":this.$store.getters.xt_user.user.id,
- }
- axios.get('http://127.0.0.1:9532/api/fapiao/qrcode/get',{params:params}).then(function(response) {
- if (response.data.state == 0) {
- that.$message.error(response.data.data.msg);
- return false
- } else {
- if(response.data.data.failed_code == -10){
- that.$confirm(response.data.data.msg, '错误信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- }).then(() => {
-
- }).catch(() => {
- })
- }else{
- if(response.data.data.cus_status == 1){
- this.$nextTick(() =>{
- var qrcode = new QRCode(that.$refs.qrCodeUrl, {
- text: response.data.data.qr_code, // 需要转换为二维码的内容
- width: 120,
- height: 120,
- colorDark: '#000000',
- colorLight: '#ffffff',
- correctLevel: QRCode.CorrectLevel.H
- })
- })
- this.qr_dialogVisible =true
- }else if(response.data.data.cus_status == -1){
- // this.$message.error(response.data.msg)/* */
- that
- .$confirm(response.data.data.msg, '信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- })
- .then(() => {
- })
- .catch(() => {
- })
- }else if(response.data.data.cus_status == 2){
- // this.$message.error(response.data.data.msg)
- that
- .$confirm(response.data.data.msg, '信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- })
- .then(() => {
- })
- .catch(() => {
- })
-
- }else if(response.data.data.cus_status == -3){
- // this.$message.error(response.data.data.msg)
- that
- .$confirm(response.data.data.msg, '信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- })
- .then(() => {
- })
- .catch(() => {
- })
-
- }else if(response.data.data.cus_status == -4){
- // this.$message.error(response.data.data.msg)
- that
- .$confirm(response.data.data.msg, '信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- })
- .then(() => {
- })
- .catch(() => {
- })
- }
-
- }
-
- }
- }).catch(function(error) {
- })
-
- },
- query(){
- this.getHisOrderList()
- },download(){
-
-
- },
- blue(row){
- var ids = row.id
- let params = {
- "order_ids":ids,
- "admin_user_id":this.$store.getters.xt_user.user.id,
- }
-
- var that = this;
- axios.get('http://127.0.0.1:9532/api/fapiao/blue',{params:params}).then(function(response) {
- if (response.data.state == 0) {
- that.$message.error(response.data.data.msg);
- return false
- } else {
- if(response.data.data.failed_code == -10){
- that.$confirm(response.data.data.msg, '错误信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- }).then(() => {
-
- }).catch(() => {
- })
- }else{
- that.$message.success(response.data.data.msg)
- that.getHisOrderList()
- }
-
- }
- }).catch(function(error) {
- })
- // OpenBlueFapiao(params).then((response) => {
- // if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
- // return false
- // } else {
- // this.$message.success(response.data.msg)
- // this.getHisOrderList()
- // }
- // })
-
-
- }, yulan(row){
-
-
-
- },hongchong(row){
- var id = row.result.id
-
- let params = {
- "id":id,
- "admin_user_id":this.$store.getters.xt_user.user.id,
- }
-
- var that = this;
- axios.get('http://127.0.0.1:9532/api/fapiao/red',{params:params}).then(function(response) {
- if (response.data.state == 0) {
- that.$message.error(response.data.data.msg);
- return false
- } else {
- if(response.data.data.failed_code == -10){
- that.$confirm(response.data.data.msg, '错误信息', {
- confirmButtonText: '确 定',
- type: 'warning'
- }).then(() => {
-
- }).catch(() => {
- })
- }else{
- that.$message.success(response.data.msg)
- that.getHisOrderList()
- }
-
- }
- }).catch(function(error) {
- })
-
- },
- getAllstaff(){
- adminMainView()
- .then(rs => {
-
- var resp = rs.data;
- if (resp.state === 1) {
- var adminData = resp.data.admins
- this.admins.push(...adminData);
- } else {
- this.$message.error(resp.msg);
- }
- })
- .catch(err => {
- this.$message.error(err);
- });
-
-
- },
-
- handleSelectionChange(val) {
- this.selecting_schs = val
- },
- handleSchType(val) {
- this.sch_type = val
- this.getHisOrderList()
- }, handleMedChange() {
- this.getHisOrderList()
- },
- handleZoneChange(val) {
- this.zoneVal = val
- this.getHisOrderList()
-
- },
- getInitData: function() {
- getDialysisRecordInitData().then((rs) => {
- var resp = rs.data
- if (resp.state == 1) {
- var zones = resp.data.zones
- var zone_options = [{ id: 0, text: '全部' }]
- for (let z_i = 0; z_i < zones.length; z_i++) {
- const zone = zones[z_i]
- zone_options.push({ id: zone.id, text: zone.name })
- }
- this.zone_options = zone_options
-
- } else {
- this.$message.error(resp.msg)
- }
- })
- },
-
-
-
- getMedType(med_type) {
- var med_type = parseInt(med_type)
- switch (med_type) {
- case 11:
- return '普通门诊'
- break
- case 12:
- return '门诊挂号'
- break
- case 13:
- return '急诊'
- break
- case 14:
- return '门诊特殊病'
- break
- case 15:
- return '门诊统筹'
- break
- case 16:
- return '门诊慢性病'
- break
- case 21:
- return '普通住院'
- break
- case 140104:
- return '城乡门诊特殊病(140104)'
- break
- case 992102:
- return '单病种(992102)'
- break
- }
- },
-
-
- fetchAllAdminUsers() {
- fetchAllAdminUsers().then((response) => {
- if (response.data.state == 1) {
- this.adminUserOptions = response.data.data.users
- }
- })
- },
- getName(admin_user_id) {
- for (let i = 0; i < this.adminUserOptions.length; i++) {
- if (this.adminUserOptions[i].id == admin_user_id) {
- return this.adminUserOptions[i].name
- }
- }
- },
-
-
-
- handleSizeChange(limit) {
- this.limit = limit
- this.getHisOrderList()
- },
- handleCurrentChange(page) {
- this.page = page
- this.getHisOrderList()
- },
- handleStartTimeChange() {
- this.page = 1
- this.keywords = ''
- this.getHisOrderList()
- },
- handleEndTimeChange() {
- this.page = 1
- this.keywords = ''
- this.getHisOrderList()
- },
-
- getTimes(time) {
- return uParseTime(time, '{y}-{m}-{d}')
- },
-
- getTime(value, temp) {
- if (value != undefined) {
- return uParseTime(value, temp)
- }
- return ''
- },
- getHisOrderList() {
- let params = {
- page: this.page,
- limit: this.limit,
- keywords: this.keywords,
- start_time: this.start_time,
- end_time: this.end_time,
- sort_type: this.sort_type,
- }
- getOrderFapiaoList(params).then((response) => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.tableData = response.data.data.order
- this.total = response.data.data.total
- }
- })
- },
- getDoctorList() {
- getDoctorList().then((response) => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.doctors = response.data.data.doctors
- }
- })
- },
- open(index) {
- if (index == 1) {
- this.listVisible = true
- } else if (index == 2) {
- this.allListVisible = true
- }
- }, unique(array) {
- // res用来存储结果
- var res = []
- for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
- for (var j = 0, resLen = res.length; j < resLen; j++) {
- if (array[i].id === res[j].id && array[i].price === res[j].price) {
- break
- }
- }
- // 如果array[i]是唯一的,那么执行完循环,j等于resLen
- if (j === resLen) {
- res.push(array[i])
- }
- }
- return res
- },camcleModifyFaPiaoCode(){
- this.dialogfapiaoVisible = false
- this.invoiceVisible = true
- var obj = this.targeObj
- let paramsObj = {
- order_id: obj.id,
- patient_id: obj.patient_id,
- number: obj.mdtrt_id,
- name: obj.patient.name,
- age: obj.age,
- gend: obj.patient.gender,
- setl_time: obj.setl_time,
- chargeName: this.getName(obj.creator)
- }
- this.dialogfapiaoVisible = false
- this.invoiceParams = paramsObj
- this.invoiceVisible = true
- },modifyFaPiaoCode(){
- let params = {
- id:this.targeOrderId,
- fapiao_number: this.fapiao_number
- }
- modifyFapiaoCodetwo(params).then((response) => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- var obj = this.targeObj
- let paramsObj = {
- order_id: obj.id,
- patient_id: obj.patient_id,
- number: obj.mdtrt_id,
- name: obj.patient.name,
- age: obj.age,
- gend: obj.patient.gender,
- setl_time: obj.setl_time,
- chargeName: this.getName(obj.creator)
- }
- this.dialogfapiaoVisible = false
- this.invoiceParams = paramsObj
- this.invoiceVisible = true
- this.getHisOrderList()
- }
- })
-
- },
-
- invoicePrint(obj) {
- if(this.$store.getters.xt_user.org_id == 10480 || this.$store.getters.xt_user.org_id == 0){
- this.fapiao_number = obj.fa_piao_number
- this.dialogfapiaoVisible = true
- this.targeOrderId = obj.id
- this.targeObj = obj
- }else{
- let paramsObj = {
- order_id: obj.id,
- patient_id: obj.patient_id,
- number: obj.mdtrt_id,
- name: obj.patient.name,
- age: obj.age,
- gend: obj.patient.gender,
- setl_time: obj.setl_time,
- chargeName: this.getName(obj.creator)
- }
- this.dialogfapiaoVisible = false
- this.invoiceParams = paramsObj
- this.invoiceVisible = true
-
-
- }
-
-
- }
- },
- watch:{
- countdown(news,old){
- if(this.countdown ==0){
- clearInterval(this.time)
- }
-
- }
-
- }
- }
- </script>
- <style lang="scss">
- .table{
- tr td{
- padding:5px 0;
- }
- }
- </style>
|