|
@@ -15,7 +15,7 @@
|
|
</template>
|
|
</template>
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<template slot="extra" v-if="outBizSn ? $hasPermissions('B_outboundOrderDetail') : $hasPermissions('B_storeCallOutPrint')">
|
|
<template slot="extra" v-if="outBizSn ? $hasPermissions('B_outboundOrderDetail') : $hasPermissions('B_storeCallOutPrint')">
|
|
- <a-checkbox key="4" v-model="printCostChecked">打印成本</a-checkbox>
|
|
|
|
|
|
+ <a-checkbox key="4" v-if="$hasPermissions('M_ShowAllCost')" v-model="printCostChecked">打印成本</a-checkbox>
|
|
<Print :disabled="localDataSource.length==0" :showExport="false" @handlePrint="handlePrint"></Print>
|
|
<Print :disabled="localDataSource.length==0" :showExport="false" @handlePrint="handlePrint"></Print>
|
|
</template>
|
|
</template>
|
|
</a-page-header>
|
|
</a-page-header>
|
|
@@ -154,7 +154,11 @@ export default {
|
|
const _this = this
|
|
const _this = this
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
const url = storeCallOutDetailPrint
|
|
const url = storeCallOutDetailPrint
|
|
- const params = { sn: this.outBizSn || this.$route.params.sn, type: printerType, costFlag: this.printCostChecked ? '1' : '0' }
|
|
|
|
|
|
+ const params = {
|
|
|
|
+ sn: this.outBizSn || this.$route.params.sn,
|
|
|
|
+ type: printerType,
|
|
|
|
+ costFlag: this.printCostChecked && this.$hasPermissions('M_ShowAllCost') ? '1' : '0'
|
|
|
|
+ }
|
|
// 打印或导出
|
|
// 打印或导出
|
|
hdPrint(printerType, type, url, params, '', function () {
|
|
hdPrint(printerType, type, url, params, '', function () {
|
|
_this.spinning = false
|
|
_this.spinning = false
|