Bläddra i källkod

首页导航指引

chenrui 3 år sedan
förälder
incheckning
2ef498c515

+ 19 - 9
src/views/Home.vue

@@ -227,9 +227,7 @@ export default {
               name: '销售审核',
               name: '销售审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/salesManagement/salesQuery/list',
               url: '/salesManagement/salesQuery/list',
-              params: {
-              	financialStatus: 'WAIT'
-              },
+              params: { financialStatus: 'WAIT' },
               permission: 'M_salesQueryList',
               permission: 'M_salesQueryList',
               orderNum: 'salesWaitAuditCount'
               orderNum: 'salesWaitAuditCount'
             },
             },
@@ -238,9 +236,7 @@ export default {
               name: '退货审核',
               name: '退货审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/salesManagement/salesReturn/list',
               url: '/salesManagement/salesReturn/list',
-              params: {
-              	state: 'WAIT_AUDIT'
-              },
+              params: { state: 'WAIT_AUDIT' },
               permission: 'M_salesReturnList',
               permission: 'M_salesReturnList',
               orderNum: 'salesReturnWaitAuditCount'
               orderNum: 'salesReturnWaitAuditCount'
             }
             }
@@ -312,6 +308,7 @@ export default {
               name: '入库审核',
               name: '入库审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/financialManagement/warehousingAudit/list',
               url: '/financialManagement/warehousingAudit/list',
+              params: { auditState: 'WAIT_PUT_WAREHOUSE' },
               permission: 'M_warehousingAuditList',
               permission: 'M_warehousingAuditList',
               orderNum: 'purchaseWaitAuditCount'
               orderNum: 'purchaseWaitAuditCount'
             },
             },
@@ -320,6 +317,7 @@ export default {
               name: '退货审核',
               name: '退货审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/purchasingManagement/purchaseReturn/list',
               url: '/purchasingManagement/purchaseReturn/list',
+              params: { state: 'WAIT_AUDIT' },
               permission: 'M_purchaseReturnList',
               permission: 'M_purchaseReturnList',
               orderNum: 'purchaseReturnWaitAuditCount'
               orderNum: 'purchaseReturnWaitAuditCount'
             }
             }
@@ -331,6 +329,7 @@ export default {
               name: '财务收款',
               name: '财务收款',
               styleC: 'red-color',
               styleC: 'red-color',
               url: '/financialManagement/financialCollection/list',
               url: '/financialManagement/financialCollection/list',
+              params: JSON.stringify({ bizType: 'PURCHASE_RETURN', billState: 'UNSETTLE' }),
               permission: 'M_financialCollectionList',
               permission: 'M_financialCollectionList',
               orderNum: 'purchaseReturnFinancialWaitCount'
               orderNum: 'purchaseReturnFinancialWaitCount'
             }
             }
@@ -371,6 +370,7 @@ export default {
               name: '待入库',
               name: '待入库',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/bulkManagement/bulkWarehousingOrder/list',
               url: '/bulkManagement/bulkWarehousingOrder/list',
+              params: { state: 'WAIT_PUT_WAREHOUSE' },
               permission: 'M_bulkWarehousingOrderList',
               permission: 'M_bulkWarehousingOrderList',
               orderNum: 'sparePartsPurchaseWaitAuditCount'
               orderNum: 'sparePartsPurchaseWaitAuditCount'
             },
             },
@@ -379,6 +379,7 @@ export default {
               name: '退货审核',
               name: '退货审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/bulkManagement/bulkReturnGoods/list',
               url: '/bulkManagement/bulkReturnGoods/list',
+              params: { state: 'WAIT_AUDIT' },
               permission: 'M_bulkReturnGoodsList',
               permission: 'M_bulkReturnGoodsList',
               orderNum: 'sparePartsReturnWaitAuditCount'
               orderNum: 'sparePartsReturnWaitAuditCount'
             }
             }
@@ -388,8 +389,9 @@ export default {
               icon: require('@/assets/home-icon/home_icon_finance_pay.png'),
               icon: require('@/assets/home-icon/home_icon_finance_pay.png'),
               name: '财务付款',
               name: '财务付款',
               styleC: 'red-color',
               styleC: 'red-color',
-              url: '/bulkManagement/bulkWarehousingOrder/list',
-              permission: 'M_bulkWarehousingOrderList',
+              url: '/financialManagement/financialPayment/list',
+              params: JSON.stringify({ bizType: 'PARTS_INPUT', billState: 'UNSETTLE' }),
+              permission: 'M_financialPaymentList',
               orderNum: 'sparePartsPurchaseFinancialWaitCount'
               orderNum: 'sparePartsPurchaseFinancialWaitCount'
             },
             },
             {
             {
@@ -397,6 +399,7 @@ export default {
               name: '待出库',
               name: '待出库',
               styleC: 'red-color',
               styleC: 'red-color',
               url: '/bulkManagement/bulkReturnGoods/list',
               url: '/bulkManagement/bulkReturnGoods/list',
+              params: { state: 'WAIT_OUT_WAREHOUSE' },
               permission: 'M_bulkReturnGoodsList',
               permission: 'M_bulkReturnGoodsList',
               orderNum: 'sparePartsReturnWaitOutWarehouseCount'
               orderNum: 'sparePartsReturnWaitOutWarehouseCount'
             }
             }
@@ -408,6 +411,7 @@ export default {
               name: '财务收款',
               name: '财务收款',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/financialManagement/financialCollection/list',
               url: '/financialManagement/financialCollection/list',
+              params: JSON.stringify({ bizType: 'SPARE_PARTS_RETURN', billState: 'UNSETTLE' }),
               permission: 'M_financialCollectionList',
               permission: 'M_financialCollectionList',
               orderNum: 'sparePartsReturnFinancialWaitCount'
               orderNum: 'sparePartsReturnFinancialWaitCount'
             }
             }
@@ -455,6 +459,7 @@ export default {
               name: '调出审核',
               name: '调出审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/allocationManagement/storeTransferOut/list',
               url: '/allocationManagement/storeTransferOut/list',
+              params: { state: 'WAIT_AUDIT' },
               permission: 'M_storeTransferOutList',
               permission: 'M_storeTransferOutList',
               orderNum: 'storeCallOutWaitAuditCount'
               orderNum: 'storeCallOutWaitAuditCount'
             },
             },
@@ -463,6 +468,7 @@ export default {
               name: '调拨审核',
               name: '调拨审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/allocationManagement/warehouseAllocation/list',
               url: '/allocationManagement/warehouseAllocation/list',
+              params: { state: 'WAIT_AUDIT' },
               permission: 'M_warehouseAllocationList',
               permission: 'M_warehouseAllocationList',
               orderNum: 'alloWarehouseWaitAuditCount'
               orderNum: 'alloWarehouseWaitAuditCount'
             },
             },
@@ -471,6 +477,7 @@ export default {
               name: '调出审核',
               name: '调出审核',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/allocationManagement/chainTransferOut/list',
               url: '/allocationManagement/chainTransferOut/list',
+              params: { state: 'WAIT_AUDIT' },
               permission: 'M_chainTransferOutList',
               permission: 'M_chainTransferOutList',
               orderNum: 'alloLinkageOutWaitAuditCount'
               orderNum: 'alloLinkageOutWaitAuditCount'
             }
             }
@@ -481,6 +488,7 @@ export default {
               name: '出库审核',
               name: '出库审核',
               styleC: 'red-color',
               styleC: 'red-color',
               url: '/outboundOrderManagement/outboundOrder/list',
               url: '/outboundOrderManagement/outboundOrder/list',
+              params: JSON.stringify({ state: 'WAIT', outBizType: 'SHOP_CALL_OUT' }),
               permission: 'M_outboundList',
               permission: 'M_outboundList',
               orderNum: 'storeCallOutWaitOutWarehouseCount'
               orderNum: 'storeCallOutWaitOutWarehouseCount'
             },
             },
@@ -490,6 +498,7 @@ export default {
               name: '出库审核',
               name: '出库审核',
               styleC: 'red-color',
               styleC: 'red-color',
               url: '/outboundOrderManagement/outboundOrder/list',
               url: '/outboundOrderManagement/outboundOrder/list',
+              params: JSON.stringify({ state: 'WAIT', outBizType: 'LINKAGE_CALL_OUT' }),
               permission: 'M_outboundList',
               permission: 'M_outboundList',
               orderNum: 'alloLinkageOutWaitOutWarehouseCount'
               orderNum: 'alloLinkageOutWaitOutWarehouseCount'
             }
             }
@@ -500,6 +509,7 @@ export default {
               name: '财务收款',
               name: '财务收款',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/financialManagement/financialCollection/list',
               url: '/financialManagement/financialCollection/list',
+              params: JSON.stringify({ bizType: 'STORE_CALL_OUT', billState: 'UNSETTLE' }),
               permission: 'M_financialCollectionList',
               permission: 'M_financialCollectionList',
               orderNum: 'storeCallOutFinancialWaitCount'
               orderNum: 'storeCallOutFinancialWaitCount'
             },
             },
@@ -535,7 +545,7 @@ export default {
           [
           [
             {
             {
               icon: require('@/assets/home-icon/home_icon_unit.png'),
               icon: require('@/assets/home-icon/home_icon_unit.png'),
-              name: '单位应收',
+              name: '收付款记录',
               styleC: 'blue-color',
               styleC: 'blue-color',
               url: '/financialManagement/companyCollectionPayment/list',
               url: '/financialManagement/companyCollectionPayment/list',
               permission: 'M_companyCollectionPaymentList',
               permission: 'M_companyCollectionPaymentList',

+ 10 - 2
src/views/allocationManagement/chainTransferOut/list.vue

@@ -201,6 +201,11 @@ export default {
     },
     },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    // 重置数据
+    resetData () {
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
@@ -208,7 +213,6 @@ export default {
       this.queryParam.allocationType = undefined
       this.queryParam.allocationType = undefined
       this.queryParam.state = undefined
       this.queryParam.state = undefined
       this.queryParam.settleState = undefined
       this.queryParam.settleState = undefined
-      this.$refs.table.refresh(true)
     },
     },
     //  基本信息  保存
     //  基本信息  保存
     handleOk (data) {
     handleOk (data) {
@@ -333,8 +337,12 @@ export default {
   activated () {
   activated () {
     // 如果是新页签打开,则重置当前页面
     // 如果是新页签打开,则重置当前页面
     if (this.$store.state.app.isNewTab) {
     if (this.$store.state.app.isNewTab) {
+      this.resetData()
+      if (this.$route.query.pageParams) {
+        this.queryParam.state = this.$route.query.pageParams.state
+      }
       this.pageInit()
       this.pageInit()
-      this.resetSearchForm()
+      this.$refs.table.refresh(true)
     }
     }
     // 仅刷新列表,不重置页面
     // 仅刷新列表,不重置页面
     if (this.$store.state.app.updateList) {
     if (this.$store.state.app.updateList) {

+ 10 - 2
src/views/allocationManagement/storeTransferOut/list.vue

@@ -191,6 +191,11 @@ export default {
     },
     },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    // 重置数据
+    resetData () {
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
@@ -198,7 +203,6 @@ export default {
       this.queryParam.callOutType = undefined
       this.queryParam.callOutType = undefined
       this.queryParam.state = undefined
       this.queryParam.state = undefined
       this.queryParam.settleState = undefined
       this.queryParam.settleState = undefined
-      this.$refs.table.refresh(true)
     },
     },
     //  基本信息  保存
     //  基本信息  保存
     handleOk (data) {
     handleOk (data) {
@@ -318,8 +322,12 @@ export default {
   activated () {
   activated () {
     // 如果是新页签打开,则重置当前页面
     // 如果是新页签打开,则重置当前页面
     if (this.$store.state.app.isNewTab) {
     if (this.$store.state.app.isNewTab) {
+      this.resetData()
+      if (this.$route.query.pageParams) {
+        this.queryParam.state = this.$route.query.pageParams.state
+      }
       this.pageInit()
       this.pageInit()
-      this.resetSearchForm()
+      this.$refs.table.refresh(true)
     }
     }
     // 仅刷新列表,不重置页面
     // 仅刷新列表,不重置页面
     if (this.$store.state.app.updateList) {
     if (this.$store.state.app.updateList) {

+ 10 - 2
src/views/allocationManagement/warehouseAllocation/list.vue

@@ -185,13 +185,17 @@ export default {
     },
     },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    // 重置数据
+    resetData () {
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime,
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime,
       this.queryParam.outWarehouseSn = undefined
       this.queryParam.outWarehouseSn = undefined
       this.queryParam.putWarehouseSn = undefined
       this.queryParam.putWarehouseSn = undefined
       this.queryParam.state = undefined
       this.queryParam.state = undefined
-      this.$refs.table.refresh(true)
     },
     },
     //  删除
     //  删除
     handleDel (row) {
     handleDel (row) {
@@ -275,8 +279,12 @@ export default {
   activated () {
   activated () {
     // 如果是新页签打开,则重置当前页面
     // 如果是新页签打开,则重置当前页面
     if (this.$store.state.app.isNewTab) {
     if (this.$store.state.app.isNewTab) {
+      this.resetData()
+      if (this.$route.query.pageParams) {
+        this.queryParam.state = this.$route.query.pageParams.state
+      }
       this.pageInit()
       this.pageInit()
-      this.resetSearchForm()
+      this.$refs.table.refresh(true)
     }
     }
     // 仅刷新列表,不重置页面
     // 仅刷新列表,不重置页面
     if (this.$store.state.app.updateList) {
     if (this.$store.state.app.updateList) {

+ 10 - 2
src/views/bulkManagement/bulkReturnGoods/list.vue

@@ -206,6 +206,11 @@ export default {
     },
     },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    // 重置数据
+    resetData () {
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
@@ -214,7 +219,6 @@ export default {
       this.queryParam.isGrab = undefined
       this.queryParam.isGrab = undefined
       this.queryParam.settleState = undefined
       this.queryParam.settleState = undefined
       this.queryParam.state = undefined
       this.queryParam.state = undefined
-      this.$refs.table.refresh(true)
     },
     },
     //  基本信息  保存
     //  基本信息  保存
     handleOk (data) {
     handleOk (data) {
@@ -348,8 +352,12 @@ export default {
   activated () {
   activated () {
     // 如果是新页签打开,则重置当前页面
     // 如果是新页签打开,则重置当前页面
     if (this.$store.state.app.isNewTab) {
     if (this.$store.state.app.isNewTab) {
+      this.resetData()
+      if (this.$route.query.pageParams) {
+        this.queryParam.state = this.$route.query.pageParams.state
+      }
       this.pageInit()
       this.pageInit()
-      this.resetSearchForm()
+      this.$refs.table.refresh(true)
     }
     }
     // 仅刷新列表,不重置页面
     // 仅刷新列表,不重置页面
     if (this.$store.state.app.updateList) {
     if (this.$store.state.app.updateList) {

+ 10 - 2
src/views/bulkManagement/bulkWarehousingOrder/list.vue

@@ -283,6 +283,11 @@ export default {
     },
     },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    // 重置数据
+    resetData () {
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
@@ -290,7 +295,6 @@ export default {
       this.queryParam.supplierSn = undefined
       this.queryParam.supplierSn = undefined
       this.queryParam.state = undefined
       this.queryParam.state = undefined
       this.queryParam.settleState = undefined
       this.queryParam.settleState = undefined
-      this.$refs.table.refresh(true)
     },
     },
     filterOption (input, option) {
     filterOption (input, option) {
       return (
       return (
@@ -364,8 +368,12 @@ export default {
   activated () {
   activated () {
     // 如果是新页签打开,则重置当前页面
     // 如果是新页签打开,则重置当前页面
     if (this.$store.state.app.isNewTab) {
     if (this.$store.state.app.isNewTab) {
+      this.resetData()
+      if (this.$route.query.pageParams) {
+        this.queryParam.state = this.$route.query.pageParams.state
+      }
       this.pageInit()
       this.pageInit()
-      this.resetSearchForm()
+      this.$refs.table.refresh(true)
     }
     }
     // 仅刷新列表,不重置页面
     // 仅刷新列表,不重置页面
     if (this.$store.state.app.updateList) {
     if (this.$store.state.app.updateList) {

+ 10 - 2
src/views/financialManagement/warehousingAudit/list.vue

@@ -200,13 +200,17 @@ export default {
     },
     },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    // 重置数据
+    resetData () {
       this.$refs.rangeDate.resetDate(this.auditTime)
       this.$refs.rangeDate.resetDate(this.auditTime)
       this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
       this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.purchaseBillNo = ''
       this.queryParam.purchaseBillNo = ''
       this.queryParam.receivingBillNo = ''
       this.queryParam.receivingBillNo = ''
       this.queryParam.auditState = undefined
       this.queryParam.auditState = undefined
-      this.$refs.table.refresh(true)
     },
     },
     pageInit () {
     pageInit () {
       const _this = this
       const _this = this
@@ -239,8 +243,12 @@ export default {
   activated () {
   activated () {
     // 如果是新页签打开,则重置当前页面
     // 如果是新页签打开,则重置当前页面
     if (this.$store.state.app.isNewTab) {
     if (this.$store.state.app.isNewTab) {
+      this.resetData()
+      if (this.$route.query.pageParams) {
+        this.queryParam.auditState = this.$route.query.pageParams.auditState
+      }
       this.pageInit()
       this.pageInit()
-      this.resetSearchForm()
+      this.$refs.table.refresh(true)
     }
     }
   },
   },
   beforeRouteEnter (to, from, next) {
   beforeRouteEnter (to, from, next) {

+ 10 - 2
src/views/purchasingManagement/purchaseReturn/list.vue

@@ -175,13 +175,17 @@ export default {
     },
     },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
+      this.resetData()
+      this.$refs.table.refresh(true)
+    },
+    // 重置数据
+    resetData () {
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.purchaseReturnNo = ''
       this.queryParam.purchaseReturnNo = ''
       this.queryParam.state = undefined
       this.queryParam.state = undefined
       this.queryParam.settleState = undefined
       this.queryParam.settleState = undefined
-      this.$refs.table.refresh(true)
     },
     },
     //  删除
     //  删除
     handleDel (row) {
     handleDel (row) {
@@ -327,8 +331,12 @@ export default {
   activated () {
   activated () {
     // 如果是新页签打开,则重置当前页面
     // 如果是新页签打开,则重置当前页面
     if (this.$store.state.app.isNewTab) {
     if (this.$store.state.app.isNewTab) {
+      this.resetData()
+      if (this.$route.query.pageParams) {
+        this.queryParam.state = this.$route.query.pageParams.state
+      }
       this.pageInit()
       this.pageInit()
-      this.resetSearchForm()
+      this.$refs.table.refresh(true)
     }
     }
     // 仅刷新列表,不重置页面
     // 仅刷新列表,不重置页面
     if (this.$store.state.app.updateList) {
     if (this.$store.state.app.updateList) {