|
@@ -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
|