|
@@ -13,6 +13,15 @@
|
13
|
13
|
|
14
|
14
|
</div>
|
15
|
15
|
<div style="margin-bottom: 10px;">
|
|
16
|
+ <el-input
|
|
17
|
+ size="small"
|
|
18
|
+ style="width: 196px;"
|
|
19
|
+ placeholder="请输入姓名"
|
|
20
|
+ v-model="keywords"
|
|
21
|
+ @input="searchAction"
|
|
22
|
+ @keyup.enter.native="searchAction"
|
|
23
|
+ />
|
|
24
|
+
|
16
|
25
|
<el-date-picker
|
17
|
26
|
size="small"
|
18
|
27
|
v-model="start_time"
|
|
@@ -42,13 +51,14 @@
|
42
|
51
|
value-format="yyyy-MM-dd"
|
43
|
52
|
align="right"
|
44
|
53
|
></el-date-picker>
|
|
54
|
+
|
45
|
55
|
<el-button size="small" type="primary"
|
46
|
56
|
@click="query">查询
|
47
|
57
|
</el-button>
|
48
|
|
- <el-button size="small" type="primary"
|
|
58
|
+ <el-button v-if="$store.getters.xt_user.org_id != 10318" size="small" type="primary"
|
49
|
59
|
@click="login">短信登录税局
|
50
|
60
|
</el-button>
|
51
|
|
- <el-button size="small" type="primary"
|
|
61
|
+ <el-button v-if="$store.getters.xt_user.org_id != 10318" size="small" type="primary"
|
52
|
62
|
@click="auth">认证
|
53
|
63
|
</el-button>
|
54
|
64
|
</div>
|
|
@@ -158,7 +168,7 @@
|
158
|
168
|
</template>
|
159
|
169
|
</el-table-column>
|
160
|
170
|
|
161
|
|
- <el-table-column align="center" prop="name" label="操作">
|
|
171
|
+ <el-table-column align="center" prop="name" label="操作" v-if="$store.getters.xt_user.org_id != 10318">
|
162
|
172
|
<template slot-scope="scope">
|
163
|
173
|
<el-button v-if="scope.row.result.id == 0" size="mini" type="primary"
|
164
|
174
|
@click="blue(scope.row)">
|
|
@@ -187,6 +197,28 @@
|
187
|
197
|
</el-button>
|
188
|
198
|
</template>
|
189
|
199
|
</el-table-column>
|
|
200
|
+
|
|
201
|
+ <el-table-column align="center" prop="name" label="操作" v-else>
|
|
202
|
+ <template slot-scope="scope">
|
|
203
|
+ <el-button v-if="scope.row.result.id == 0" size="mini" type="primary"
|
|
204
|
+ @click="BWblue(scope.row)">
|
|
205
|
+ 开票
|
|
206
|
+ </el-button>
|
|
207
|
+ <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == '2'" size="mini" type="primary"
|
|
208
|
+ @click="BWhongchong(scope.row)">
|
|
209
|
+ 红冲
|
|
210
|
+ </el-button>
|
|
211
|
+ <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == '2'"
|
|
212
|
+ @click="yulan(scope.row)">
|
|
213
|
+ 下载
|
|
214
|
+ </el-button>
|
|
215
|
+ <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.fapiao_status > 0"
|
|
216
|
+ @click="BWchaxun(scope.row)">
|
|
217
|
+ 查询并同步发票号码
|
|
218
|
+ </el-button>
|
|
219
|
+ </template>
|
|
220
|
+ </el-table-column>
|
|
221
|
+
|
190
|
222
|
</el-table>
|
191
|
223
|
<el-pagination
|
192
|
224
|
@size-change="handleSizeChange"
|
|
@@ -259,7 +291,9 @@
|
259
|
291
|
</div>
|
260
|
292
|
<span slot="footer" class="dialog-footer">
|
261
|
293
|
<el-button @click="settlementVisible = false">取 消</el-button>
|
262
|
|
- <el-button type="primary" @click="blueRequest">开票</el-button>
|
|
294
|
+ <el-button type="primary" @click="blueRequest" v-if="this.$store.getters.xt_user.org_id != 10318 && this.$store.getters.xt_user.org_id != 0">开票</el-button>
|
|
295
|
+ <el-button type="primary" @click="bwblueRequest" v-if="this.$store.getters.xt_user.org_id == 10318 || this.$store.getters.xt_user.org_id == 0">开票</el-button>
|
|
296
|
+
|
263
|
297
|
</span>
|
264
|
298
|
</el-dialog>
|
265
|
299
|
|
|
@@ -396,6 +430,11 @@ export default {
|
396
|
430
|
},
|
397
|
431
|
|
398
|
432
|
methods: {
|
|
433
|
+ searchAction(){
|
|
434
|
+
|
|
435
|
+ this.getHisOrderList()
|
|
436
|
+
|
|
437
|
+ },
|
399
|
438
|
chaxun(row){
|
400
|
439
|
let params = {
|
401
|
440
|
"id": row.result.id,
|
|
@@ -695,6 +734,36 @@ export default {
|
695
|
734
|
},download(){
|
696
|
735
|
|
697
|
736
|
|
|
737
|
+ },bwblueRequest(){
|
|
738
|
+ let params = {
|
|
739
|
+ "order_ids": this.cur_ids,
|
|
740
|
+ "admin_user_id":this.$store.getters.xt_user.user.id,
|
|
741
|
+ }
|
|
742
|
+ var that = this;
|
|
743
|
+ axios.get('http://127.0.0.1:9531/api/bwfapiao/blue',{params:params}).then(function(response) {
|
|
744
|
+ if (response.data.state == 0) {
|
|
745
|
+ that.$message.error(response.data.data.msg);
|
|
746
|
+ return false
|
|
747
|
+ } else {
|
|
748
|
+ if(response.data.data.failed_code == -10){
|
|
749
|
+ that.settlementVisible = false
|
|
750
|
+
|
|
751
|
+ that.$confirm(response.data.data.msg, '错误信息', {
|
|
752
|
+ confirmButtonText: '确 定',
|
|
753
|
+ type: 'warning'
|
|
754
|
+ }).then(() => {
|
|
755
|
+
|
|
756
|
+ }).catch(() => {
|
|
757
|
+ })
|
|
758
|
+ }else{
|
|
759
|
+ that.settlementVisible = false
|
|
760
|
+ that.$message.success(response.data.data.msg)
|
|
761
|
+ that.getHisOrderList()
|
|
762
|
+ }
|
|
763
|
+
|
|
764
|
+ }
|
|
765
|
+ }).catch(function(error) {
|
|
766
|
+ })
|
698
|
767
|
},blueRequest(){
|
699
|
768
|
let params = {
|
700
|
769
|
"order_ids": this.cur_ids,
|
|
@@ -725,6 +794,51 @@ export default {
|
725
|
794
|
}
|
726
|
795
|
}).catch(function(error) {
|
727
|
796
|
})
|
|
797
|
+ },BWblue(row){
|
|
798
|
+ var ids = row.id
|
|
799
|
+ this.cur_ids =ids
|
|
800
|
+ this.patient_id = row.patient_id
|
|
801
|
+ console.log(row)
|
|
802
|
+ let paramsObj = {
|
|
803
|
+ order_ids: ids,
|
|
804
|
+ patient_id: row.patient_id,
|
|
805
|
+ }
|
|
806
|
+ this.settlementVisible = true
|
|
807
|
+ this.paramsObj = paramsObj
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+ },BWhongchong(row){
|
|
811
|
+ var id = row.result.id
|
|
812
|
+
|
|
813
|
+ let params = {
|
|
814
|
+ "id":id,
|
|
815
|
+ "admin_user_id":this.$store.getters.xt_user.user.id,
|
|
816
|
+ }
|
|
817
|
+
|
|
818
|
+ var that = this;
|
|
819
|
+ axios.get('http://127.0.0.1:9531/api/bwfapiao/red',{params:params}).then(function(response) {
|
|
820
|
+ if (response.data.state == 0) {
|
|
821
|
+ that.$message.error(response.data.data.msg);
|
|
822
|
+ return false
|
|
823
|
+ } else {
|
|
824
|
+ if(response.data.data.failed_code == -10){
|
|
825
|
+ that.$confirm(response.data.data.msg, '错误信息', {
|
|
826
|
+ confirmButtonText: '确 定',
|
|
827
|
+ type: 'warning'
|
|
828
|
+ }).then(() => {
|
|
829
|
+
|
|
830
|
+ }).catch(() => {
|
|
831
|
+ })
|
|
832
|
+ }else{
|
|
833
|
+ that.$message.success(response.data.data.msg)
|
|
834
|
+ that.getHisOrderList()
|
|
835
|
+ }
|
|
836
|
+
|
|
837
|
+ }
|
|
838
|
+ }).catch(function(error) {
|
|
839
|
+ })
|
|
840
|
+
|
|
841
|
+
|
728
|
842
|
},
|
729
|
843
|
blue(row){
|
730
|
844
|
var ids = row.id
|
|
@@ -752,7 +866,12 @@ export default {
|
752
|
866
|
// })
|
753
|
867
|
|
754
|
868
|
|
755
|
|
- }, yulan(row){
|
|
869
|
+ }, BWchaxun(row){
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+ },yulan(row){
|
756
|
875
|
window.open( row.result.pdf_url, "_blank");
|
757
|
876
|
// this.settlementVisibletwo = true
|
758
|
877
|
// this.pdfSrc = row.result.pdf_url
|