Browse Source

bug修复、添加权限

chenrui 3 years ago
parent
commit
762d123e86

+ 1 - 1
src/api/allocateBill.js

@@ -106,7 +106,7 @@ export const allocateBillDetailSave = params => {
 // 调拨管理 详情  打印
 // 调拨管理 详情  打印
 export const allocateBillDetailPrint = params => {
 export const allocateBillDetailPrint = params => {
   return axios.request({
   return axios.request({
-    url: `allocateBill/print/${params.sn}`,
+    url: `allocateBill/print/${params.sn}/${params.isPreview}`,
     method: 'get',
     method: 'get',
     responseType: 'blob'
     responseType: 'blob'
   })
   })

File diff suppressed because it is too large
+ 174 - 217
src/config/router.config.js


+ 1 - 1
src/views/allocationManagement/transferOut/detail.vue

@@ -135,7 +135,7 @@ export default {
     handlePrint (type) {
     handlePrint (type) {
       const _this = this
       const _this = this
       _this.spinning = true
       _this.spinning = true
-      allocateBillDetailPrint({ sn: this.$route.params.sn }).then(res => {
+      allocateBillDetailPrint({ sn: this.$route.params.sn, isPreview: type == 'preview' ? 1 : 0 }).then(res => {
         _this.spinning = false
         _this.spinning = false
         if (res.type == 'application/json') {
         if (res.type == 'application/json') {
           var reader = new FileReader()
           var reader = new FileReader()

+ 1 - 1
src/views/allocationManagement/transferOut/edit.vue

@@ -400,7 +400,7 @@ export default {
     handlePrint (type) {
     handlePrint (type) {
       const _this = this
       const _this = this
       _this.spinning = true
       _this.spinning = true
-      allocateBillDetailPrint({ sn: this.$route.params.sn }).then(res => {
+      allocateBillDetailPrint({ sn: this.$route.params.sn, isPreview: type == 'preview' ? 1 : 0 }).then(res => {
         _this.spinning = false
         _this.spinning = false
         if (res.type == 'application/json') {
         if (res.type == 'application/json') {
           var reader = new FileReader()
           var reader = new FileReader()

Some files were not shown because too many files changed in this diff