Explorar el Código

bug修复、添加权限

chenrui hace 3 años
padre
commit
762d123e86

+ 1 - 1
src/api/allocateBill.js

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

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 174 - 217
src/config/router.config.js


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

@@ -135,7 +135,7 @@ export default {
     handlePrint (type) {
       const _this = this
       _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
         if (res.type == 'application/json') {
           var reader = new FileReader()

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

@@ -400,7 +400,7 @@ export default {
     handlePrint (type) {
       const _this = this
       _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
         if (res.type == 'application/json') {
           var reader = new FileReader()

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio