|
@@ -4,16 +4,15 @@
|
|
<a-page-header :ghost="false" :backIcon="false" class="collectionPayment-back" >
|
|
<a-page-header :ghost="false" :backIcon="false" class="collectionPayment-back" >
|
|
<!-- 自定义的二级文字标题 -->
|
|
<!-- 自定义的二级文字标题 -->
|
|
<template slot="subTitle">
|
|
<template slot="subTitle">
|
|
- <p style=" display: inline-block;margin-right:30px;color: #000;font-size: 16px;font-weight: 600;">客户:{{ $route.params.name!='undefined'?$route.params.name: '--' }}</p>
|
|
|
|
|
|
+ <span style="margin-right:30px;color: #000;font-size: 16px;font-weight: 600;">客户:{{ $route.params.name!='undefined'?$route.params.name: '--' }}</span>
|
|
<a-button id="purchaseNewOrderEdit-back-btn" type="link" @click="handleBack" class="button-default"> <a-icon type="rollback" /> 返回列表</a-button>
|
|
<a-button id="purchaseNewOrderEdit-back-btn" type="link" @click="handleBack" class="button-default"> <a-icon type="rollback" /> 返回列表</a-button>
|
|
</template>
|
|
</template>
|
|
<template slot="extra" v-if="$hasPermissions('B_cPayment_printAndExport')">
|
|
<template slot="extra" v-if="$hasPermissions('B_cPayment_printAndExport')">
|
|
<div style="margin-top: 5px;">
|
|
<div style="margin-top: 5px;">
|
|
<PrintPanel ref="printBox" @handlePrint="handlePrint">
|
|
<PrintPanel ref="printBox" @handlePrint="handlePrint">
|
|
<div style="padding:10px;" slot="extendCons">
|
|
<div style="padding:10px;" slot="extendCons">
|
|
- <a-checkbox v-model="printAllName" :checked="printAllName" id="salesQuery-printAllName">打印完整产品名称</a-checkbox>
|
|
|
|
- <a-checkbox v-model="printOrgCode" :checked="printOrgCode" id="salesQuery-printOrgCode">打印原厂编码</a-checkbox>
|
|
|
|
- <a-checkbox v-model="printRemarks" :checked="printRemarks" id="salesQuery-printRemarks">打印备注</a-checkbox>
|
|
|
|
|
|
+ <a-checkbox v-model="printTotalKs" :checked="printTotalKs" id="salesQuery-printTotalKs">打印总款数</a-checkbox>
|
|
|
|
+ <a-checkbox v-model="printTotalNums" :checked="printTotalNums" id="salesQuery-printTotalNums">打印总数量</a-checkbox>
|
|
</div>
|
|
</div>
|
|
</PrintPanel>
|
|
</PrintPanel>
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
@@ -240,9 +239,8 @@ export default {
|
|
isChangeAs: false,
|
|
isChangeAs: false,
|
|
maxAmountSettled: 0,
|
|
maxAmountSettled: 0,
|
|
enableFundAccount: false,
|
|
enableFundAccount: false,
|
|
- printOrgCode: false, // 打印原创编码
|
|
|
|
- printAllName: false, // 打印全部名称
|
|
|
|
- printRemarks: false // 打印备注
|
|
|
|
|
|
+ printTotalKs: false, // 打印原创编码
|
|
|
|
+ printTotalNums: false, // 打印全部名称
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -276,27 +274,22 @@ export default {
|
|
return val
|
|
return val
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
- printOrgCode (newValue, oldValue) {
|
|
|
|
- localStorage.setItem('printOrgCode-' + this.$store.state.user.info.orgId, newValue)
|
|
|
|
- },
|
|
|
|
- printRemarks (newValue, oldValue) {
|
|
|
|
- localStorage.setItem('printRemarks-' + this.$store.state.user.info.orgId, newValue)
|
|
|
|
- },
|
|
|
|
- printAllName (newValue, oldValue) {
|
|
|
|
- localStorage.setItem('printAllName-' + this.$store.state.user.info.orgId, newValue)
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
methods: {
|
|
methods: {
|
|
...mapActions(['GetSettleAccountState']),
|
|
...mapActions(['GetSettleAccountState']),
|
|
// 打印预览/快捷打印
|
|
// 打印预览/快捷打印
|
|
handlePrint (type, printerType) {
|
|
handlePrint (type, printerType) {
|
|
const _this = this
|
|
const _this = this
|
|
const params = _this.getParams()
|
|
const params = _this.getParams()
|
|
|
|
+
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
- let url = settleUnitPrint
|
|
|
|
|
|
+ let url = ''
|
|
if (type == 'export') { // 导出
|
|
if (type == 'export') { // 导出
|
|
url = settleUnitExport
|
|
url = settleUnitExport
|
|
|
|
+ }else{
|
|
|
|
+ url = settleUnitPrint
|
|
|
|
+ // 打印
|
|
|
|
+ params.printTotalKs = params.printTotalKs ? 1 : 0
|
|
|
|
+ params.printTotalNums = params.printTotalNums ? 1 : 0
|
|
}
|
|
}
|
|
// 打印或导出
|
|
// 打印或导出
|
|
hdPrint(printerType, type, url, params, '单位应收应付', function () {
|
|
hdPrint(printerType, type, url, params, '单位应收应付', function () {
|
|
@@ -448,10 +441,6 @@ export default {
|
|
pageInit () {
|
|
pageInit () {
|
|
const vm = this
|
|
const vm = this
|
|
vm.$nextTick(() => {
|
|
vm.$nextTick(() => {
|
|
- // 是否默认打印原厂编码
|
|
|
|
- vm.printOrgCode = localStorage.getItem('printOrgCode-' + this.$store.state.user.info.orgId) == 'true'
|
|
|
|
- vm.printAllName = localStorage.getItem('printAllName-' + this.$store.state.user.info.orgId) == 'true'
|
|
|
|
- vm.printRemarks = localStorage.getItem('printRemarks-' + this.$store.state.user.info.orgId) == 'true'
|
|
|
|
vm.chooseLoadData = []
|
|
vm.chooseLoadData = []
|
|
vm.getsettleInfoAllList()
|
|
vm.getsettleInfoAllList()
|
|
})
|
|
})
|