浏览代码

bug 修复

lilei 3 年之前
父节点
当前提交
b16e3349ff
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/allocationManagement/storeTransferOut/edit.vue

+ 4 - 2
src/views/allocationManagement/storeTransferOut/edit.vue

@@ -9,6 +9,7 @@
         </template>
         <!-- 操作区,位于 title 行的行尾 -->
         <template slot="extra" v-if="$hasPermissions('B_storeCallOutPrint')">
+          <a-checkbox key="4" v-model="printCostChecked">打印成本</a-checkbox>
           <Print :disabled="chooseLoadDataSource.length==0" :showExport="false" @handlePrint="handlePrint"></Print>
         </template>
       </a-page-header>
@@ -285,7 +286,8 @@ export default {
       },
       chooseLoadDataSource: [],
       basicInfoData: null, //  基本信息
-      productTotal: null //  合计
+      productTotal: null, //  合计
+      printCostChecked: true //  打印成本
     }
   },
   methods: {
@@ -306,7 +308,7 @@ export default {
       const _this = this
       _this.spinning = true
       const url = storeCallOutDetailPrint
-      const params = { sn: this.$route.params.sn, type: printerType, costFlag: '0' }
+      const params = { sn: this.$route.params.sn, type: printerType, costFlag: this.printCostChecked ? '1' : '0' }
       // 打印或导出
       hdPrint(printerType, type, url, params, '', function () {
         _this.spinning = false