chenrui hace 2 años
padre
commit
61eb208256

+ 0 - 1
src/views/financialManagement/companyReceivablePayableNew/chooseBillModal.vue

@@ -1,6 +1,5 @@
 <template>
   <a-drawer
-    :zIndex="zIndex"
     title="全部单据"
     placement="right"
     class="chooseBillModal-modal jg-page-wrap"

+ 23 - 5
src/views/financialManagement/companyReceivablePayableNew/collectionPayment.vue

@@ -9,7 +9,7 @@
         </template>
         <template slot="extra" v-if="$hasPermissions('B_cPayment_printAndExport')">
           <div style="margin-top: 5px;">
-            <PrintPanel ref="printBox"  @handlePrint="handlePrint">
+            <PrintPanel ref="printBox" @handlePrint="handlePrint">
               <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>
@@ -189,7 +189,7 @@ import { hdPrint } from '@/libs/JGPrint'
 import PrintPanel from '@/views/common/printPanel.vue'
 export default {
   name: 'CollectionPaymentDetail',
-  components: { STable, VSelect, chooseBillModal, Print, settleAccount, rangeDate,PrintPanel },
+  components: { STable, VSelect, chooseBillModal, Print, settleAccount, rangeDate, PrintPanel },
   mixins: [commonMixin],
   data () {
     this.amountSettledChange = debounce(this.amountSettledChange, 800)
@@ -242,7 +242,7 @@ export default {
       enableFundAccount: false,
       printOrgCode: false, // 打印原创编码
       printAllName: false, // 打印全部名称
-      printRemarks: false, // 打印备注
+      printRemarks: false // 打印备注
     }
   },
   computed: {
@@ -276,6 +276,17 @@ export default {
       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: {
     ...mapActions(['GetSettleAccountState']),
     // 打印预览/快捷打印
@@ -435,8 +446,15 @@ export default {
       })
     },
     pageInit () {
-      this.chooseLoadData = []
-      this.getsettleInfoAllList()
+      const vm = this
+      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.getsettleInfoAllList()
+      })
     },
     // 重置
     resetSearchForm () {