|
@@ -209,7 +209,7 @@
|
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'"
|
212
|
|
- @click="yulan(scope.row)">
|
|
212
|
+ @click="bwyulan(scope.row)">
|
213
|
213
|
下载
|
214
|
214
|
</el-button>
|
215
|
215
|
<!-- <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.fapiao_status > 0"-->
|
|
@@ -916,6 +916,37 @@ export default {
|
916
|
916
|
// this.pdfSrc = row.result.pdf_url
|
917
|
917
|
// console.log(this.pdfSrc)
|
918
|
918
|
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+ },bwyulan(row){
|
|
922
|
+ var id = row.result.id
|
|
923
|
+ let params = {
|
|
924
|
+ "id":id,
|
|
925
|
+ "admin_user_id":this.$store.getters.xt_user.user.id,
|
|
926
|
+ }
|
|
927
|
+ var that = this;
|
|
928
|
+ axios.get('http://127.0.0.1:9532/api/download',{params:params}).then(function(response) {
|
|
929
|
+ if (response.data.state == 0) {
|
|
930
|
+ that.$message.error(response.data.data.msg);
|
|
931
|
+ return false
|
|
932
|
+ } else {
|
|
933
|
+ if(response.data.data.failed_code == -10){
|
|
934
|
+ that.$confirm(response.data.data.msg, '错误信息', {
|
|
935
|
+ confirmButtonText: '确 定',
|
|
936
|
+ type: 'warning'
|
|
937
|
+ }).then(() => {
|
|
938
|
+
|
|
939
|
+ }).catch(() => {
|
|
940
|
+ })
|
|
941
|
+ }else{
|
|
942
|
+ that.$message.success(response.data.data.msg)
|
|
943
|
+ // that.getHisOrderList()
|
|
944
|
+ }
|
|
945
|
+ }
|
|
946
|
+ }).catch(function(error) {
|
|
947
|
+
|
|
948
|
+ })
|
|
949
|
+
|
919
|
950
|
},hongchong(row){
|
920
|
951
|
var id = row.result.id
|
921
|
952
|
|