lilei 3 роки тому
батько
коміт
f8b2419328

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

@@ -156,7 +156,7 @@ export default {
       const _this = this
       _this.spinning = true
       const url = allocLinkagePutDetailPrint
-      const params = { sn: this.$route.params.sn, type: printerType }
+      const params = { sn: this.$route.params.sn, type: printerType, showFlag: this.$hasPermissions('M_ShowAllCost') ? 1 : 0 }
       // 打印或导出
       hdPrint(printerType, type, url, params, '', function () {
         _this.spinning = false

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

@@ -327,7 +327,7 @@ export default {
       const _this = this
       _this.spinning = true
       const url = allocLinkagePutDetailPrint
-      const params = { sn: this.$route.params.sn, type: printerType }
+      const params = { sn: this.$route.params.sn, type: printerType, showFlag: this.$hasPermissions('M_ShowAllCost') ? 1 : 0 }
       // 打印或导出
       hdPrint(printerType, type, url, params, '', function () {
         _this.spinning = false

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

@@ -166,7 +166,7 @@ export default {
       const _this = this
       _this.spinning = true
       const url = allocLinkageOutDetailPrint
-      const params = { sn: this.outBizSn || this.$route.params.sn, type: printerType }
+      const params = { sn: this.outBizSn || this.$route.params.sn, type: printerType, showFlag: this.$hasPermissions('M_ShowAllCost') ? 1 : 0 }
       // 打印或导出
       hdPrint(printerType, type, url, params, '', function () {
         _this.spinning = false

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

@@ -463,7 +463,7 @@ export default {
       const _this = this
       _this.spinning = true
       const url = allocLinkageOutDetailPrint
-      const params = { sn: this.$route.params.sn, type: printerType }
+      const params = { sn: this.$route.params.sn, type: printerType, showFlag: this.$hasPermissions('M_ShowAllCost') ? 1 : 0 }
       // 打印或导出
       hdPrint(printerType, type, url, params, '', function () {
         _this.spinning = false

+ 1 - 1
src/views/purchasingManagement/purchaseReturn/detail.vue

@@ -131,7 +131,7 @@ export default {
       _this.spinning = true
       let url = purchaseReturnDetailPrint
       const params = { sn: this.$route.params.sn || this.outBizSn }
-      params.showCost = this.$hasPermissions('M_ShowAllCost') ? 1 : 0
+      params.showFlag = this.$hasPermissions('M_ShowAllCost') ? 1 : 0
       if (type == 'export') { //  导出
         url = purchaseReturnDetailExport
       }

+ 1 - 0
src/views/purchasingManagement/purchaseReturn/edit.vue

@@ -267,6 +267,7 @@ export default {
       _this.spinning = true
       let url = purchaseReturnDetailPrint
       const params = { sn: this.$route.params.sn }
+      params.showFlag = this.$hasPermissions('M_ShowAllCost') ? 1 : 0
       if (type == 'export') { //  导出
         url = purchaseReturnDetailExport
       }