|
@@ -13,7 +13,7 @@
|
|
@click.stop="handleEdit">编辑</a-button>
|
|
@click.stop="handleEdit">编辑</a-button>
|
|
</template>
|
|
</template>
|
|
<template slot="extra" v-if="outBizSn ? $hasPermissions('B_outboundOrderDetail') : $hasPermissions('B_salesPrint')">
|
|
<template slot="extra" v-if="outBizSn ? $hasPermissions('B_outboundOrderDetail') : $hasPermissions('B_salesPrint')">
|
|
- <a-checkbox v-model="printAllName" :checked="printAllName" id="salesQuery-printAllName">产品名称全部打印</a-checkbox>
|
|
|
|
|
|
+ <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="printOrgCode" :checked="printOrgCode" id="salesQuery-printOrgCode">打印原厂编码</a-checkbox>
|
|
<Print :disabled="localDataSource.length==0" @handlePrint="handlePrint"></Print>
|
|
<Print :disabled="localDataSource.length==0" @handlePrint="handlePrint"></Print>
|
|
</template>
|
|
</template>
|
|
@@ -272,6 +272,7 @@ export default {
|
|
vm.disabled = false
|
|
vm.disabled = false
|
|
// 是否默认打印原厂编码
|
|
// 是否默认打印原厂编码
|
|
vm.printOrgCode = localStorage.getItem('printOrgCode-' + this.$store.state.user.info.orgId) == 'true'
|
|
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.$refs.table.refresh(true)
|
|
vm.$refs.table.refresh(true)
|
|
vm.getDetail()
|
|
vm.getDetail()
|
|
})
|
|
})
|
|
@@ -280,6 +281,9 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
printOrgCode (newValue, oldValue) {
|
|
printOrgCode (newValue, oldValue) {
|
|
localStorage.setItem('printOrgCode-' + this.$store.state.user.info.orgId, newValue)
|
|
localStorage.setItem('printOrgCode-' + this.$store.state.user.info.orgId, newValue)
|
|
|
|
+ },
|
|
|
|
+ printAllName (newValue, oldValue) {
|
|
|
|
+ localStorage.setItem('printAllName-' + this.$store.state.user.info.orgId, newValue)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
@@ -295,10 +299,6 @@ export default {
|
|
this.pageInit()
|
|
this.pageInit()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- deactivated () {
|
|
|
|
- // this.localDataSource = []
|
|
|
|
- // this.showPage = false
|
|
|
|
- },
|
|
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {})
|
|
next(vm => {})
|
|
}
|
|
}
|