Преглед на файлове

bug修复、添加权限

chenrui преди 4 години
родител
ревизия
762d123e86
променени са 4 файла, в които са добавени 177 реда и са изтрити 220 реда
  1. 1 1
      src/api/allocateBill.js
  2. 174 217
      src/config/router.config.js
  3. 1 1
      src/views/allocationManagement/transferOut/detail.vue
  4. 1 1
      src/views/allocationManagement/transferOut/edit.vue

+ 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'
   })

Файловите разлики са ограничени, защото са твърде много
+ 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()

Някои файлове не бяха показани, защото твърде много файлове са промени