|
@@ -205,7 +205,7 @@
|
205
|
205
|
开票
|
206
|
206
|
</el-button>
|
207
|
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)">
|
|
208
|
+ @click="BWhongchong(scope.row)" v-loading="red_loading" >
|
209
|
209
|
红冲
|
210
|
210
|
</el-button>
|
211
|
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'"
|
|
@@ -307,7 +307,7 @@
|
307
|
307
|
</div>
|
308
|
308
|
<span slot="footer" class="dialog-footer">
|
309
|
309
|
<el-button @click="settlementVisibletwo = false">取 消</el-button>
|
310
|
|
- <el-button type="primary" @click="settlementVisibletwo = false">确定</el-button>
|
|
310
|
+ <el-button type="primary" v-loading="blue_loading" @click="settlementVisibletwo = false">确定</el-button>
|
311
|
311
|
</span>
|
312
|
312
|
</el-dialog>
|
313
|
313
|
|
|
@@ -346,6 +346,8 @@ export default {
|
346
|
346
|
},
|
347
|
347
|
data() {
|
348
|
348
|
return {
|
|
349
|
+ blue_loading:false,
|
|
350
|
+ red_loading:false,
|
349
|
351
|
pdfSrc:"",
|
350
|
352
|
staff:"",
|
351
|
353
|
admins:[],
|
|
@@ -735,19 +737,22 @@ export default {
|
735
|
737
|
|
736
|
738
|
|
737
|
739
|
},bwblueRequest(){
|
|
740
|
+ this.blue_loading = true
|
738
|
741
|
let params = {
|
739
|
742
|
"order_ids": this.cur_ids,
|
740
|
743
|
"admin_user_id":this.$store.getters.xt_user.user.id,
|
741
|
744
|
}
|
742
|
745
|
var that = this;
|
743
|
|
- axios.get('http://127.0.0.1:9531/api/bwfapiao/blue',{params:params}).then(function(response) {
|
|
746
|
+ axios.get('http://127.0.0.1:9532/api/bwfapiao/blue',{params:params}).then(function(response) {
|
744
|
747
|
if (response.data.state == 0) {
|
|
748
|
+ that.blue_loading = false
|
|
749
|
+
|
745
|
750
|
that.$message.error(response.data.data.msg);
|
746
|
751
|
return false
|
747
|
752
|
} else {
|
748
|
753
|
if(response.data.data.failed_code == -10){
|
|
754
|
+ that.blue_loading = false
|
749
|
755
|
that.settlementVisible = false
|
750
|
|
-
|
751
|
756
|
that.$confirm(response.data.data.msg, '错误信息', {
|
752
|
757
|
confirmButtonText: '确 定',
|
753
|
758
|
type: 'warning'
|
|
@@ -756,6 +761,7 @@ export default {
|
756
|
761
|
}).catch(() => {
|
757
|
762
|
})
|
758
|
763
|
}else{
|
|
764
|
+ that.blue_loading = false
|
759
|
765
|
that.settlementVisible = false
|
760
|
766
|
that.$message.success(response.data.data.msg)
|
761
|
767
|
that.getHisOrderList()
|
|
@@ -809,18 +815,21 @@ export default {
|
809
|
815
|
|
810
|
816
|
},BWhongchong(row){
|
811
|
817
|
var id = row.result.id
|
812
|
|
-
|
|
818
|
+ this.red_loading = true
|
813
|
819
|
let params = {
|
814
|
820
|
"id":id,
|
815
|
821
|
"admin_user_id":this.$store.getters.xt_user.user.id,
|
816
|
822
|
}
|
817
|
823
|
|
818
|
824
|
var that = this;
|
819
|
|
- axios.get('http://127.0.0.1:9531/api/bwfapiao/red',{params:params}).then(function(response) {
|
|
825
|
+ axios.get('http://127.0.0.1:9532/api/bwfapiao/red',{params:params}).then(function(response) {
|
820
|
826
|
if (response.data.state == 0) {
|
|
827
|
+ this.red_loading = false
|
|
828
|
+
|
821
|
829
|
that.$message.error(response.data.data.msg);
|
822
|
830
|
return false
|
823
|
831
|
} else {
|
|
832
|
+ this.red_loading = false
|
824
|
833
|
if(response.data.data.failed_code == -10){
|
825
|
834
|
that.$confirm(response.data.data.msg, '错误信息', {
|
826
|
835
|
confirmButtonText: '确 定',
|
|
@@ -872,7 +881,7 @@ export default {
|
872
|
881
|
"admin_user_id":this.$store.getters.xt_user.user.id,
|
873
|
882
|
}
|
874
|
883
|
var that = this;
|
875
|
|
- axios.get('http://127.0.0.1:9531/api/bwfapiao/query',{params:params}).then(function(response) {
|
|
884
|
+ axios.get('http://127.0.0.1:9532/api/bwfapiao/query',{params:params}).then(function(response) {
|
876
|
885
|
if (response.data.state == 0) {
|
877
|
886
|
that.$message.error(response.data.data.msg);
|
878
|
887
|
return false
|