gjy 3 years ago
parent
commit
cd6657433f
100 changed files with 383 additions and 397 deletions
  1. 4 4
      public/static/payprint.html
  2. 3 3
      public/static/tradeServicesPrint.html
  3. 1 1
      public/static/weightCheck.html
  4. 6 6
      src/business/common/index.js
  5. 9 9
      src/components/RookieTraining/index.vue
  6. 2 2
      src/components/ShipDown/index.vue
  7. 1 1
      src/components/Tinymce/components/editorImage.vue
  8. 1 1
      src/components/Upload/showFile.vue
  9. 1 1
      src/components/Upload/upload.vue
  10. 1 1
      src/components/WinseaCom/upload.vue
  11. 3 3
      src/components/WsAutograph/index.vue
  12. 3 3
      src/components/WsAvatar/index.vue
  13. 3 3
      src/components/WsUpload/index.vue
  14. 1 1
      src/components/base/BaseDepartMentDropdown/index.vue
  15. 1 1
      src/components/base/BaseParameterSelect/index.vue
  16. 1 1
      src/components/base/BaseShipDropdown/index.vue
  17. 2 2
      src/components/editSelect/index.vue
  18. 1 1
      src/components/purHistory/index.vue
  19. 3 3
      src/components/shipDrop/index.vue
  20. 5 5
      src/components/typeDropdown/index.vue
  21. 1 1
      src/config/page.js
  22. 2 2
      src/global/sys_prototypes_old.js
  23. 12 12
      src/layout/index/top/index.vue
  24. 2 2
      src/layout/index/top/top-setting.vue
  25. 3 3
      src/main.js
  26. 4 4
      src/mixins/crud.js
  27. 5 5
      src/mixins/viewUtil.js
  28. 1 1
      src/permission.js
  29. 6 6
      src/router/index.js
  30. 29 29
      src/store/modules/user.js
  31. 3 3
      src/utils/auth.js
  32. 7 7
      src/utils/store.js
  33. 3 4
      src/views/contractManagement/futuresPurchaseContract.vue
  34. 3 3
      src/views/contractManagement/futuresPurchaseContractAdd.vue
  35. 3 3
      src/views/contractManagement/futuresPurchaseContractEdit.vue
  36. 2 2
      src/views/contractManagement/futuresPurchaseContractExamine.vue
  37. 3 3
      src/views/contractManagement/futuresSalesContract.vue
  38. 3 3
      src/views/contractManagement/futuresSalesContractAdd.vue
  39. 4 17
      src/views/contractManagement/futuresSalesContractEdit.vue
  40. 2 2
      src/views/contractManagement/futuresSalesContractExamine.vue
  41. 1 1
      src/views/contractManagement/priceConfirmationSheet.vue
  42. 1 1
      src/views/contractManagement/priceConfirmationSheetAdd.vue
  43. 1 1
      src/views/contractManagement/priceConfirmationSheetEdit.vue
  44. 3 3
      src/views/contractManagement/purchaseContract.vue
  45. 3 4
      src/views/contractManagement/purchaseContractAdd.vue
  46. 2 2
      src/views/contractManagement/purchaseContractEdit.vue
  47. 2 2
      src/views/contractManagement/purchaseContractExamine.vue
  48. 4 3
      src/views/contractManagement/salesContract.vue
  49. 5 5
      src/views/contractManagement/salesContractAdd.vue
  50. 4 4
      src/views/contractManagement/salesContractEdit.vue
  51. 2 2
      src/views/contractManagement/salesContractExamine.vue
  52. 3 3
      src/views/customer/customerList.vue
  53. 1 1
      src/views/customerFundManagement/customerFundAdd.vue
  54. 1 1
      src/views/customerFundManagement/customerFundEdit.vue
  55. 2 2
      src/views/customerFundManagement/customerFundList.vue
  56. 6 6
      src/views/dataManageMent/list.vue
  57. 1 1
      src/views/dynamicRport/add.vue
  58. 6 6
      src/views/dynamicRport/components/addAnchorageReport.vue
  59. 6 6
      src/views/dynamicRport/components/addBerthReport.vue
  60. 6 6
      src/views/dynamicRport/components/addConstructionReport.vue
  61. 6 6
      src/views/dynamicRport/components/addDispatchReport.vue
  62. 6 6
      src/views/dynamicRport/components/addDispatchReport_arrival.vue
  63. 6 6
      src/views/dynamicRport/components/addDispatchReport_sailing.vue
  64. 6 6
      src/views/dynamicRport/components/addRepairReport.vue
  65. 4 4
      src/views/dynamicRport/components/checkAnchorageReport.vue
  66. 4 4
      src/views/dynamicRport/components/checkBerthReport.vue
  67. 5 5
      src/views/dynamicRport/components/checkConstructionReport.vue
  68. 4 4
      src/views/dynamicRport/components/checkDispatchReport.vue
  69. 4 4
      src/views/dynamicRport/components/checkDispatchReport_arrival.vue
  70. 4 4
      src/views/dynamicRport/components/checkDispatchReport_sailing.vue
  71. 4 4
      src/views/dynamicRport/components/checkRepairReport.vue
  72. 2 2
      src/views/dynamicRport/dynamicReport.vue
  73. 3 3
      src/views/dynamicRport/report.vue
  74. 4 4
      src/views/financialManagement/collectionManagementList.vue
  75. 1 1
      src/views/helpCenter/index.vue
  76. 16 16
      src/views/home/index.vue
  77. 7 7
      src/views/houseSelfCollect/acquisitionManagement.vue
  78. 4 4
      src/views/houseSelfCollect/customerManagement.vue
  79. 1 1
      src/views/houseSelfCollect/customerManagementAdd.vue
  80. 10 10
      src/views/houseSelfCollect/inspectInfo.vue
  81. 4 4
      src/views/houseSelfCollect/inspectionManagement.vue
  82. 14 14
      src/views/houseSelfCollect/paymentManagement.vue
  83. 3 3
      src/views/houseSelfCollect/settlement.vue
  84. 7 7
      src/views/houseSelfCollect/weighingManagement.vue
  85. 5 5
      src/views/houseSelfCollect/weightCheck.vue
  86. 8 8
      src/views/login/index.vue
  87. 2 2
      src/views/login/index_ship.vue
  88. 3 3
      src/views/outboundManagement/collectionManagement.vue
  89. 2 2
      src/views/outboundManagement/collectionment.vue
  90. 2 2
      src/views/outboundManagement/qualityInspection.vue
  91. 2 2
      src/views/outboundManagement/qualityInspectionManagement.vue
  92. 4 4
      src/views/outboundManagement/weighing.vue
  93. 3 3
      src/views/outboundManagement/weighingManagement.vue
  94. 2 2
      src/views/platformaudit/driverreview.vue
  95. 1 1
      src/views/platformaudit/grainPulseDynamic.vue
  96. 2 2
      src/views/platformaudit/grainmerchantreview.vue
  97. 2 2
      src/views/platformaudit/grainpulseenterprisereview.vue
  98. 2 2
      src/views/platformaudit/saletransactioninformationreview.vue
  99. 2 2
      src/views/platformaudit/transactioninformationreview.vue
  100. 2 2
      src/views/purchasingManagement/procurementPlanAdd.vue

+ 4 - 4
public/static/payprint.html

@@ -815,7 +815,7 @@
         let _data = decodeURIComponent(this.getQueryVariable('dataList'))
         let _data = decodeURIComponent(this.getQueryVariable('dataList'))
         if (!_data) {
         if (!_data) {
           this.selectPrint = true;
           this.selectPrint = true;
-          this.printData1 = JSON.parse(sessionStorage.getItem('selectPrint_selectPrintList'))
+          this.printData1 = JSON.parse(localStorage.getItem('selectPrint_selectPrintList'))
         } else {
         } else {
           this.printData = JSON.parse(_data)
           this.printData = JSON.parse(_data)
           this.selectPrint = false;
           this.selectPrint = false;
@@ -824,12 +824,12 @@
         this.showType = decodeURIComponent(this.getQueryVariable('printTypeList'))
         this.showType = decodeURIComponent(this.getQueryVariable('printTypeList'))
         let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
         let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
         if (!_data1) {
         if (!_data1) {
-          this.customerList1 = JSON.parse(sessionStorage.getItem('selectPrint_selectCustomerList'))
+          this.customerList1 = JSON.parse(localStorage.getItem('selectPrint_selectCustomerList'))
         } else {
         } else {
           this.customerList = JSON.parse(_data1)
           this.customerList = JSON.parse(_data1)
         }
         }
-        console.log('cwprint', sessionStorage.getItem('cwprint'))
-        var cwprint = sessionStorage.getItem('cwprint')
+        console.log('cwprint', localStorage.getItem('cwprint'))
+        var cwprint = localStorage.getItem('cwprint')
         if (cwprint == "true") {
         if (cwprint == "true") {
           if (this.selectPrint) {
           if (this.selectPrint) {
             for (let i = 0; i < this.customerList1.length; i++) {
             for (let i = 0; i < this.customerList1.length; i++) {

+ 3 - 3
public/static/tradeServicesPrint.html

@@ -438,7 +438,7 @@
         let _data = decodeURIComponent(this.getQueryVariable('dataList'))
         let _data = decodeURIComponent(this.getQueryVariable('dataList'))
         if (!_data) {
         if (!_data) {
           this.selectPrint = true;
           this.selectPrint = true;
-          this.printData1 = JSON.parse(sessionStorage.getItem('selectPrint_selectPrintList'))
+          this.printData1 = JSON.parse(localStorage.getItem('selectPrint_selectPrintList'))
         } else {
         } else {
           this.printData = JSON.parse(_data)
           this.printData = JSON.parse(_data)
           console.log("打印磅单",this.printData)
           console.log("打印磅单",this.printData)
@@ -448,11 +448,11 @@
         // this.showType = decodeURIComponent(this.getQueryVariable('printTypeList'))
         // this.showType = decodeURIComponent(this.getQueryVariable('printTypeList'))
         // let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
         // let _data1 = decodeURIComponent(this.getQueryVariable('customerList'))
         // if (!_data1) {
         // if (!_data1) {
-        //   this.customerList1 = JSON.parse(sessionStorage.getItem('selectPrint_selectCustomerList'))
+        //   this.customerList1 = JSON.parse(localStorage.getItem('selectPrint_selectCustomerList'))
         // } else {
         // } else {
         //   this.customerList = JSON.parse(_data1)
         //   this.customerList = JSON.parse(_data1)
         // }
         // }
-        // var cwprint = sessionStorage.getItem('cwprint')
+        // var cwprint = localStorage.getItem('cwprint')
         // if (cwprint == "true") {
         // if (cwprint == "true") {
         //   if (this.selectPrint) {
         //   if (this.selectPrint) {
         //     for (let i = 0; i < this.customerList1.length; i++) {
         //     for (let i = 0; i < this.customerList1.length; i++) {

+ 1 - 1
public/static/weightCheck.html

@@ -434,7 +434,7 @@
         }
         }
         if (_data == 'false') {
         if (_data == 'false') {
           this.selectPrint = true;
           this.selectPrint = true;
-          this.tableData1 = JSON.parse(sessionStorage.getItem('selectPrint_jjSelectPrintList'))
+          this.tableData1 = JSON.parse(localStorage.getItem('selectPrint_jjSelectPrintList'))
         } else {
         } else {
           this.tableData = JSON.parse(_data)
           this.tableData = JSON.parse(_data)
           console.log(this.tableData)
           console.log(this.tableData)

+ 6 - 6
src/business/common/index.js

@@ -26,7 +26,7 @@ function getVesselList (commit, vesselsList) {
     commit('SET_VESSEL_LIST', vesselsList)
     commit('SET_VESSEL_LIST', vesselsList)
     return vesselsList
     return vesselsList
   }
   }
-  return (JSON.parse(sessionStorage.getItem('ws-pf_vessels')) || []).map(item => {
+  return (JSON.parse(localStorage.getItem('ws-pf_vessels')) || []).map(item => {
     return {
     return {
       ...item,
       ...item,
       vesselNameZh: item.vesselName,
       vesselNameZh: item.vesselName,
@@ -82,7 +82,7 @@ const actions = {
    * @param {*} { commit, state }
    * @param {*} { commit, state }
    * @param {*} params {}
    * @param {*} params {}
    */
    */
-  async getVesselDeptByCompId ({ commit, state }, params = { compId: sessionStorage.getItem('ws-pf_compId') }) {
+  async getVesselDeptByCompId ({ commit, state }, params = { compId: localStorage.getItem('ws-pf_compId') }) {
     if (state.deptList.length === 0) {
     if (state.deptList.length === 0) {
       let deptList = await getVesselDeptByCompId(params).toPromise()
       let deptList = await getVesselDeptByCompId(params).toPromise()
       const loadData = deptList.map(item => {
       const loadData = deptList.map(item => {
@@ -101,7 +101,7 @@ const actions = {
    * @param {*} param0
    * @param {*} param0
    * @param {*} params
    * @param {*} params
    */
    */
-  async getDeptListByCompId ({ commit, state }, params = { compId: sessionStorage.getItem('ws-pf_compId'), vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag') }) {
+  async getDeptListByCompId ({ commit, state }, params = { compId: localStorage.getItem('ws-pf_compId'), vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag') }) {
     if (state.landBasedDeptList.length === 0) {
     if (state.landBasedDeptList.length === 0) {
       let deptList = await getDeptListByCompId(params).toPromise()
       let deptList = await getDeptListByCompId(params).toPromise()
       const loadData = deptList.map(item => {
       const loadData = deptList.map(item => {
@@ -120,7 +120,7 @@ const actions = {
   * @param {*} param0
   * @param {*} param0
   * @param {*} params
   * @param {*} params
   */
   */
-  async getDeptListByCompIdAll ({ commit, state }, params = { compId: sessionStorage.getItem('ws-pf_compId') }) {
+  async getDeptListByCompIdAll ({ commit, state }, params = { compId: localStorage.getItem('ws-pf_compId') }) {
     if (state.landBasedDeptListAll.length === 0) {
     if (state.landBasedDeptListAll.length === 0) {
       let deptList = await getDeptListByCompId(params).toPromise()
       let deptList = await getDeptListByCompId(params).toPromise()
       const loadData = deptList.map(item => {
       const loadData = deptList.map(item => {
@@ -142,7 +142,7 @@ const actions = {
    * @param {*} { commit, state }
    * @param {*} { commit, state }
    * @param {*} params {}
    * @param {*} params {}
    */
    */
-  async getVessleRoleByCompId ({ commit, state }, params = { compId: sessionStorage.getItem('ws-pf_compId') }) {
+  async getVessleRoleByCompId ({ commit, state }, params = { compId: localStorage.getItem('ws-pf_compId') }) {
     if (state.vessleRoleList.length === 0) {
     if (state.vessleRoleList.length === 0) {
       let vessleRoleList = await getVessleRoleByCompId(params).toPromise()
       let vessleRoleList = await getVessleRoleByCompId(params).toPromise()
       commit('SET_VESSLEROLE_LIST', vessleRoleList)
       commit('SET_VESSLEROLE_LIST', vessleRoleList)
@@ -156,7 +156,7 @@ const actions = {
    * @param {*} { commit, state }
    * @param {*} { commit, state }
    * @param {*} params {}
    * @param {*} params {}
    */
    */
-  async getParameterCompany ({ commit, state }, params = { compId: sessionStorage.getItem('ws-pf_compId') }) {
+  async getParameterCompany ({ commit, state }, params = { compId: localStorage.getItem('ws-pf_compId') }) {
     if (!state.parameterCompany[params.constCode]) {
     if (!state.parameterCompany[params.constCode]) {
       let parameterCompany = await getParameterTenant(params).toPromise()
       let parameterCompany = await getParameterTenant(params).toPromise()
       commit('SET_COMPANY_LIST', { data: parameterCompany, constCode: params.constCode })
       commit('SET_COMPANY_LIST', { data: parameterCompany, constCode: params.constCode })

+ 9 - 9
src/components/RookieTraining/index.vue

@@ -231,7 +231,7 @@ export default {
       auth: '',
       auth: '',
       settleUserName: '',
       settleUserName: '',
       formData: new FormData(),
       formData: new FormData(),
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         feedbackContent: [{ required: true, message: '请输入反馈内容' }]
         feedbackContent: [{ required: true, message: '请输入反馈内容' }]
       },
       },
@@ -272,12 +272,12 @@ export default {
           this.auth = params
           this.auth = params
           let guideList = []
           let guideList = []
           let data = await setNewGuideline({
           let data = await setNewGuideline({
-            userId: sessionStorage.getItem('ws-pf_userId'),
+            userId: localStorage.getItem('ws-pf_userId'),
             newGuidelineType: '1'
             newGuidelineType: '1'
           }).toPromise()
           }).toPromise()
           guideList = data.newGuidelineType.split(',')
           guideList = data.newGuidelineType.split(',')
 
 
-          // let localKey = sessionStorage.getItem('ws-pf_staffName') + 'guide'
+          // let localKey = localStorage.getItem('ws-pf_staffName') + 'guide'
           // let guideList = localStorage.getItem(localKey)
           // let guideList = localStorage.getItem(localKey)
           console.info(guideList, 'guideList')
           console.info(guideList, 'guideList')
           let isShow = true
           let isShow = true
@@ -293,7 +293,7 @@ export default {
             this.isTrain = true
             this.isTrain = true
           }
           }
           await setNewGuideline({
           await setNewGuideline({
-            userId: sessionStorage.getItem('ws-pf_userId'),
+            userId: localStorage.getItem('ws-pf_userId'),
             newGuidelineType: guideList.join(',')
             newGuidelineType: guideList.join(',')
           }).toPromise()
           }).toPromise()
           // })
           // })
@@ -305,7 +305,7 @@ export default {
     async getProblems () {
     async getProblems () {
       let obj = {
       let obj = {
         showNumber: 3,
         showNumber: 3,
-        functionModuleCode: sessionStorage.getItem('ws-pf_authority')
+        functionModuleCode: localStorage.getItem('ws-pf_authority')
       }
       }
       const data = await getHighFrequencyProblems(obj).toPromise()
       const data = await getHighFrequencyProblems(obj).toPromise()
       this.questionList = data
       this.questionList = data
@@ -314,8 +314,8 @@ export default {
     // 查看更多
     // 查看更多
     goMore (questionBankId) {
     goMore (questionBankId) {
       let query = {
       let query = {
-        roleId: sessionStorage.getItem('ws-pf_roleId'),
-        authority: sessionStorage.getItem('ws-pf_authority')
+        roleId: localStorage.getItem('ws-pf_roleId'),
+        authority: localStorage.getItem('ws-pf_authority')
       }
       }
       if (questionBankId && questionBankId.length > 0) {
       if (questionBankId && questionBankId.length > 0) {
         query.questionBankId = questionBankId
         query.questionBankId = questionBankId
@@ -355,10 +355,10 @@ export default {
     },
     },
     showFeedback () {
     showFeedback () {
       this.feedbackObj.moduleName = this.$t(
       this.feedbackObj.moduleName = this.$t(
-        'route.' + sessionStorage.getItem('ws-pf_moduleName')
+        'route.' + localStorage.getItem('ws-pf_moduleName')
       )
       )
       this.feedbackObj.screenName = this.$t(
       this.feedbackObj.screenName = this.$t(
-        'route.' + sessionStorage.getItem('ws-pf_menuName')
+        'route.' + localStorage.getItem('ws-pf_menuName')
       )
       )
       this.feedbackObj.feedbackContent = ''
       this.feedbackObj.feedbackContent = ''
       this.feedbackFlag = true
       this.feedbackFlag = true

+ 2 - 2
src/components/ShipDown/index.vue

@@ -44,7 +44,7 @@ export default {
     }
     }
   },
   },
   created () {
   created () {
-    this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+    this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
     this.basicData()
     this.basicData()
   },
   },
   watch: {
   watch: {
@@ -68,7 +68,7 @@ export default {
     },
     },
     basicData () {
     basicData () {
       // 船岸端判断
       // 船岸端判断
-      if (sessionStorage.getItem('ws-pf_vesselBankFlag') === 'V') {
+      if (localStorage.getItem('ws-pf_vesselBankFlag') === 'V') {
         this.vesselBankFlag = true
         this.vesselBankFlag = true
         // this.allShipName = this.shipList[0].vesselName;
         // this.allShipName = this.shipList[0].vesselName;
         // this.vesselId = this.shipList[0].vesselId;
         // this.vesselId = this.shipList[0].vesselId;

+ 1 - 1
src/components/Tinymce/components/editorImage.vue

@@ -96,7 +96,7 @@ export default {
   },
   },
   data () {
   data () {
     return {
     return {
-      // vesselBankFlag: sessionStorage.getItem("ws-pf_serviceTypeFlag") == "true" ? "B" : "V",
+      // vesselBankFlag: localStorage.getItem("ws-pf_serviceTypeFlag") == "true" ? "B" : "V",
       vesselBankFlag: 'V',
       vesselBankFlag: 'V',
       curFileNum: 0,
       curFileNum: 0,
       tempFileList: [],
       tempFileList: [],

+ 1 - 1
src/components/Upload/showFile.vue

@@ -54,7 +54,7 @@ export default {
       model: '',
       model: '',
       oldAppendixIds: '',
       oldAppendixIds: '',
       newAppendixIds: '',
       newAppendixIds: '',
-      companyId: sessionStorage.getItem('ws-pf_compId')
+      companyId: localStorage.getItem('ws-pf_compId')
     }
     }
   },
   },
   watch: {
   watch: {

+ 1 - 1
src/components/Upload/upload.vue

@@ -152,7 +152,7 @@ export default {
       // date = date > 9 ? date.toString() : '0' + date
       // date = date > 9 ? date.toString() : '0' + date
       // // fileName 生成
       // // fileName 生成
       // // 生成规则 saas/1/finance/payment/2019/0620/d496c207-16ca-45ce-976d-4982be23571b.txt
       // // 生成规则 saas/1/finance/payment/2019/0620/d496c207-16ca-45ce-976d-4982be23571b.txt
-      // const fileName = `saas/${sessionStorage.getItem('ws-pf_tenantId')}/${this.procurementName
+      // const fileName = `saas/${localStorage.getItem('ws-pf_tenantId')}/${this.procurementName
       //   }/${this.frameName}/${year}${month}${date}/${oldFileName}`
       //   }/${this.frameName}/${year}${month}${date}/${oldFileName}`
 
 
       // this.fileImage()
       // this.fileImage()

+ 1 - 1
src/components/WinseaCom/upload.vue

@@ -88,7 +88,7 @@ export default {
   },
   },
   data () {
   data () {
     return {
     return {
-      systemUrl: sessionStorage.getItem('ws-pf_systemUrl'),
+      systemUrl: localStorage.getItem('ws-pf_systemUrl'),
       showFile: false, // 是否显示已上传文件列表
       showFile: false, // 是否显示已上传文件列表
       enlargeShow: false,
       enlargeShow: false,
       zoomInPicture: '',
       zoomInPicture: '',

+ 3 - 3
src/components/WsAutograph/index.vue

@@ -127,7 +127,7 @@ export default {
     return {
     return {
       vesselBankFlag: 'V',
       vesselBankFlag: 'V',
       // vesselBankFlag:
       // vesselBankFlag:
-      //   sessionStorage.getItem('ws-pf_serviceTypeFlag') == 'true' ? 'B' : 'V',
+      //   localStorage.getItem('ws-pf_serviceTypeFlag') == 'true' ? 'B' : 'V',
       curFileNum: 0,
       curFileNum: 0,
       tempFileList: [],
       tempFileList: [],
       initFileList: [],
       initFileList: [],
@@ -275,7 +275,7 @@ export default {
           appendixName: data.appendixName,
           appendixName: data.appendixName,
           appendixPath: data.appendixPath,
           appendixPath: data.appendixPath,
           appendixSize: this.toKB(file.size),
           appendixSize: this.toKB(file.size),
-          appendixType: sessionStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
+          appendixType: localStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
             ? 'B'
             ? 'B'
             : 'V',
             : 'V',
           fromTableName: this.tableName,
           fromTableName: this.tableName,
@@ -457,7 +457,7 @@ export default {
     getFilePath (path) {
     getFilePath (path) {
       // if (this.vesselBankFlag === 'V') {
       // if (this.vesselBankFlag === 'V') {
       //   return (
       //   return (
-      //     sessionStorage.getItem('ws-pf_systemUrl') +
+      //     localStorage.getItem('ws-pf_systemUrl') +
       //     '/static/' +
       //     '/static/' +
       //     this.slash(path)
       //     this.slash(path)
       //   )
       //   )

+ 3 - 3
src/components/WsAvatar/index.vue

@@ -124,7 +124,7 @@ export default {
     return {
     return {
       vesselBankFlag: 'V',
       vesselBankFlag: 'V',
       // vesselBankFlag:
       // vesselBankFlag:
-      //   sessionStorage.getItem('ws-pf_serviceTypeFlag') == 'true' ? 'B' : 'V',
+      //   localStorage.getItem('ws-pf_serviceTypeFlag') == 'true' ? 'B' : 'V',
       curFileNum: 0,
       curFileNum: 0,
       tempFileList: [],
       tempFileList: [],
       initFileList: [],
       initFileList: [],
@@ -279,7 +279,7 @@ export default {
             appendixName: data.appendixName,
             appendixName: data.appendixName,
             appendixPath: data.appendixPath,
             appendixPath: data.appendixPath,
             appendixSize: this.toKB(file.size),
             appendixSize: this.toKB(file.size),
-            appendixType: sessionStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
+            appendixType: localStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
               ? 'B'
               ? 'B'
               : 'V',
               : 'V',
             fromTableName: this.tableName,
             fromTableName: this.tableName,
@@ -462,7 +462,7 @@ export default {
     getFilePath (path) {
     getFilePath (path) {
       // if (this.vesselBankFlag === 'V') {
       // if (this.vesselBankFlag === 'V') {
       //   return (
       //   return (
-      //     sessionStorage.getItem('ws-pf_systemUrl') +
+      //     localStorage.getItem('ws-pf_systemUrl') +
       //     '/static/' +
       //     '/static/' +
       //     this.slash(path)
       //     this.slash(path)
       //   )
       //   )

+ 3 - 3
src/components/WsUpload/index.vue

@@ -200,7 +200,7 @@ export default {
       pdfUrl: '',
       pdfUrl: '',
       pdfFileName: '',
       pdfFileName: '',
       isShowPdf: false,
       isShowPdf: false,
-      // vesselBankFlag: sessionStorage.getItem("ws-pf_serviceTypeFlag") == "true" ? "B" : "V",
+      // vesselBankFlag: localStorage.getItem("ws-pf_serviceTypeFlag") == "true" ? "B" : "V",
       vesselBankFlag: 'V',
       vesselBankFlag: 'V',
       curFileNum: 0,
       curFileNum: 0,
       tempFileList: [],
       tempFileList: [],
@@ -216,7 +216,7 @@ export default {
         companyId: this.compId,
         companyId: this.compId,
         basePath: '', //config.getUploadPath(this.ossKey, this.compId)
         basePath: '', //config.getUploadPath(this.ossKey, this.compId)
       },
       },
-      clientFag: sessionStorage.getItem('ws-pf_clientFag'),
+      clientFag: localStorage.getItem('ws-pf_clientFag'),
     }
     }
   },
   },
   computed: {
   computed: {
@@ -378,7 +378,7 @@ export default {
             appendixSize: this.toKB(file.size),
             appendixSize: this.toKB(file.size),
             // appendixType: "V",
             // appendixType: "V",
             appendixType:
             appendixType:
-              sessionStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
+              localStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
                 ? 'B'
                 ? 'B'
                 : 'V',
                 : 'V',
             fromTableName: this.tableName,
             fromTableName: this.tableName,

+ 1 - 1
src/components/base/BaseDepartMentDropdown/index.vue

@@ -55,7 +55,7 @@ export default {
   data () {
   data () {
     return {
     return {
       allDepartment: 'bj.qualityFeedback.department',
       allDepartment: 'bj.qualityFeedback.department',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag') === 'V' && sessionStorage.getItem('ws-pf_dutyId') !== '1', //船岸端判断
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag') === 'V' && localStorage.getItem('ws-pf_dutyId') !== '1', //船岸端判断
       departmentList: [],
       departmentList: [],
       value2: '',
       value2: '',
       changeIcon: false,
       changeIcon: false,

+ 1 - 1
src/components/base/BaseParameterSelect/index.vue

@@ -99,7 +99,7 @@ export default {
      * 刷新数据集合 当远程加载的时候  远程加载数据接口,不使用远程加载的时候自动从本地获取数据
      * 刷新数据集合 当远程加载的时候  远程加载数据接口,不使用远程加载的时候自动从本地获取数据
      */
      */
     async onRefresh () {
     async onRefresh () {
-      this.options = (this.parameters || []).length > 0 ? cloneDeep(this.parameters) : await this.getParameterCompany({ constCode: this.typeCode, compId: sessionStorage.getItem('ws-pf_compId') })
+      this.options = (this.parameters || []).length > 0 ? cloneDeep(this.parameters) : await this.getParameterCompany({ constCode: this.typeCode, compId: localStorage.getItem('ws-pf_compId') })
       this.$emit('on-mounted', this.options);
       this.$emit('on-mounted', this.options);
     },
     },
     /**
     /**

+ 1 - 1
src/components/base/BaseShipDropdown/index.vue

@@ -68,7 +68,7 @@ export default {
   data () {
   data () {
     return {
     return {
       allShip: 'bj.qualityFeedback.allShipName',
       allShip: 'bj.qualityFeedback.allShipName',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag') === 'V' && sessionStorage.getItem('ws-pf_dutyId') !== '1', //船岸端判断
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag') === 'V' && localStorage.getItem('ws-pf_dutyId') !== '1', //船岸端判断
       options: [],
       options: [],
       value2: '',
       value2: '',
       changeIcon: false,
       changeIcon: false,

+ 2 - 2
src/components/editSelect/index.vue

@@ -155,7 +155,7 @@ export default {
         constKey: '',
         constKey: '',
         constValue: '',
         constValue: '',
         id: '',
         id: '',
-        compId: sessionStorage.getItem('ws-pf_compId')
+        compId: localStorage.getItem('ws-pf_compId')
       }
       }
     }
     }
   },
   },
@@ -179,7 +179,7 @@ export default {
   methods: {
   methods: {
     getUnitList () {
     getUnitList () {
       customDropDown({
       customDropDown({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         constCode: this.type
         constCode: this.type
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.unitList = response
         this.unitList = response

+ 1 - 1
src/components/purHistory/index.vue

@@ -144,7 +144,7 @@ export default {
       total: 10,
       total: 10,
       // 查询数据结构
       // 查询数据结构
       listQuery: {
       listQuery: {
-        compId: sessionStorage.getItem('ws-pf_compId'), // 公司ID
+        compId: localStorage.getItem('ws-pf_compId'), // 公司ID
         currentPage: 1, // 当前页码
         currentPage: 1, // 当前页码
         pageSize: 10 // 一页记录数
         pageSize: 10 // 一页记录数
       },
       },

+ 3 - 3
src/components/shipDrop/index.vue

@@ -49,14 +49,14 @@ export default {
     }
     }
   },
   },
   created () {
   created () {
-    this.shipGather = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+    this.shipGather = JSON.parse(localStorage.getItem('ws-pf_vessels'))
     this.shipGather.unshift({ vesselId: '', vesselName: '全部船舶' })
     this.shipGather.unshift({ vesselId: '', vesselName: '全部船舶' })
     // this.selectOption.vesselName = this.shipGather[0].vesselName;
     // this.selectOption.vesselName = this.shipGather[0].vesselName;
     this.selectOption.vesselName = this.defaultShowOption
     this.selectOption.vesselName = this.defaultShowOption
-    if (sessionStorage.getItem('ws-pf_vesselBankFlag') === 'V') {
+    if (localStorage.getItem('ws-pf_vesselBankFlag') === 'V') {
       // 当为V时是船端,当为B时是岸端
       // 当为V时是船端,当为B时是岸端
       this.showType = false
       this.showType = false
-      this.defaultShipId = sessionStorage.getItem('ws-pf_vesselId')
+      this.defaultShipId = localStorage.getItem('ws-pf_vesselId')
       this.$emit('command', this.defaultShipId)
       this.$emit('command', this.defaultShipId)
       this.getOptions()
       this.getOptions()
     } else {
     } else {

+ 5 - 5
src/components/typeDropdown/index.vue

@@ -40,8 +40,8 @@ export default {
       },
       },
       showType: true,
       showType: true,
       model: '',
       model: '',
-      deptId: sessionStorage.getItem('ws-pf_deptId'),
-      deptName: sessionStorage.getItem('ws-pf_deptName')
+      deptId: localStorage.getItem('ws-pf_deptId'),
+      deptName: localStorage.getItem('ws-pf_deptName')
     };
     };
   },
   },
   computed: {
   computed: {
@@ -66,14 +66,14 @@ export default {
       this.$emit('command', id);
       this.$emit('command', id);
     },
     },
     getOptions () {
     getOptions () {
-      const compId = sessionStorage.getItem('ws-pf_compId');
+      const compId = localStorage.getItem('ws-pf_compId');
       if (this.typeKeyword === 'VESSEL_DEPT') {
       if (this.typeKeyword === 'VESSEL_DEPT') {
-        const roleName = sessionStorage.getItem('ws-pf_roleName');
+        const roleName = localStorage.getItem('ws-pf_roleName');
 
 
         if (
         if (
           roleName === '船长' ||
           roleName === '船长' ||
           roleName == 'CAPT' ||
           roleName == 'CAPT' ||
-          sessionStorage.getItem('ws-pf_vesselBankFlag') !== 'V'
+          localStorage.getItem('ws-pf_vesselBankFlag') !== 'V'
         ) {
         ) {
           let data = [];
           let data = [];
           let varL = [];
           let varL = [];

+ 1 - 1
src/config/page.js

@@ -10,7 +10,7 @@ const pages = {}
  */
  */
 export default function page (name, _comp) {
 export default function page (name, _comp) {
   if (pages[name]) {
   if (pages[name]) {
-    var compId = sessionStorage.getItem('ws-pf_compId');
+    var compId = localStorage.getItem('ws-pf_compId');
     return pages[name][compId] || pages[name]['default'];
     return pages[name][compId] || pages[name]['default'];
   }
   }
   return Promise.reject();
   return Promise.reject();

+ 2 - 2
src/global/sys_prototypes_old.js

@@ -166,13 +166,13 @@ Vue.prototype.isRepeat = function (arr) {
   return false
   return false
 }
 }
 
 
-//监听sessionStorage变化
+//监听localStorage变化
 Vue.prototype.resetSetItem = function (key, newVal) {
 Vue.prototype.resetSetItem = function (key, newVal) {
   // 创建一个StorageEvent事件
   // 创建一个StorageEvent事件
   const newStorageEvent = document.createEvent('StorageEvent')
   const newStorageEvent = document.createEvent('StorageEvent')
   const storage = {
   const storage = {
     setItem: function (k, val) {
     setItem: function (k, val) {
-      sessionStorage.setItem(k, val)
+      localStorage.setItem(k, val)
       // 初始化创建的事件
       // 初始化创建的事件
       newStorageEvent.initStorageEvent(
       newStorageEvent.initStorageEvent(
         'setItem',
         'setItem',

+ 12 - 12
src/layout/index/top/index.vue

@@ -291,9 +291,9 @@ export default {
       // deptName: '',
       // deptName: '',
       // deptId: '',
       // deptId: '',
       // staffName: '',
       // staffName: '',
-      account: sessionStorage.getItem('ws-pf_account'),
+      account: localStorage.getItem('ws-pf_account'),
       // compName: '',
       // compName: '',
-      companyId: sessionStorage.getItem('ws-pf_compId'),
+      companyId: localStorage.getItem('ws-pf_compId'),
     }
     }
   },
   },
   filters: {},
   filters: {},
@@ -328,7 +328,7 @@ export default {
     ]),
     ]),
     getDay() {
     getDay() {
       const { statusFlag = -1, daysRemaining } =
       const { statusFlag = -1, daysRemaining } =
-        JSON.parse(sessionStorage.getItem('ws_login_getTenantInfoByUser')) || {}
+        JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')) || {}
       return statusFlag * 1 === 2 ? daysRemaining + '' : ''
       return statusFlag * 1 === 2 ? daysRemaining + '' : ''
     },
     },
     showTooltip() {
     showTooltip() {
@@ -386,15 +386,15 @@ export default {
         cancelButtonText: this.$t('cancelText'),
         cancelButtonText: this.$t('cancelText'),
         type: 'warning',
         type: 'warning',
       }).then(async () => {
       }).then(async () => {
-        sessionStorage.removeItem('ws-pf_roleName')
-        sessionStorage.removeItem('ws-pf_roleId')
-        sessionStorage.removeItem('ws-pf_staffName')
-        sessionStorage.removeItem('ws-pf_deptId')
-        sessionStorage.removeItem('ws-pf_deptName')
-        sessionStorage.removeItem('ws-pf_organMonetaryKey')
-        sessionStorage.removeItem('ws-pf_organMonetaryValue')
-        sessionStorage.removeItem('ws-pf_vessels')
-        sessionStorage.removeItem('ws-pf_isLandBasedFlag')
+        localStorage.removeItem('ws-pf_roleName')
+        localStorage.removeItem('ws-pf_roleId')
+        localStorage.removeItem('ws-pf_staffName')
+        localStorage.removeItem('ws-pf_deptId')
+        localStorage.removeItem('ws-pf_deptName')
+        localStorage.removeItem('ws-pf_organMonetaryKey')
+        localStorage.removeItem('ws-pf_organMonetaryValue')
+        localStorage.removeItem('ws-pf_vessels')
+        localStorage.removeItem('ws-pf_isLandBasedFlag')
         await this.$store.dispatch('user/logout')
         await this.$store.dispatch('user/logout')
         this.$router.push(
         this.$router.push(
           process.env.VUE_APP_PACKAGE_ENV === 'ship' ? '/ship_login' : '/login'
           process.env.VUE_APP_PACKAGE_ENV === 'ship' ? '/ship_login' : '/login'

+ 2 - 2
src/layout/index/top/top-setting.vue

@@ -59,7 +59,7 @@ export default {
   },
   },
   data () {
   data () {
     return {
     return {
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag'),
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag'),
       drawer: false,
       drawer: false,
       direction: 'rtl',
       direction: 'rtl',
       setting: 'false',
       setting: 'false',
@@ -112,7 +112,7 @@ export default {
     async changeVesslBankMethod (val) {
     async changeVesslBankMethod (val) {
       this.changeVesslBank([{
       this.changeVesslBank([{
         id: this.userSetting['shipMap'][0].id,
         id: this.userSetting['shipMap'][0].id,
-        staffId: sessionStorage.getItem('ws-pf_userId'),
+        staffId: localStorage.getItem('ws-pf_userId'),
         typeId: 'shipMap',
         typeId: 'shipMap',
         showFlag: val
         showFlag: val
       }])
       }])

+ 3 - 3
src/main.js

@@ -44,8 +44,8 @@ AMap.initAMapApiLoader({
 //   'saas-test.winsea.com'
 //   'saas-test.winsea.com'
 // ]
 // ]
 // urls.includes(window.location.host)
 // urls.includes(window.location.host)
-//   ? sessionStorage.setItem('ws_login_type', 2)
-//   : sessionStorage.removeItem('ws_login_type')
+//   ? localStorage.setItem('ws_login_type', 2)
+//   : localStorage.removeItem('ws_login_type')
 
 
 // ------------ 通过域名判断起始的登陆页面 结束 --------------------
 // ------------ 通过域名判断起始的登陆页面 结束 --------------------
 
 
@@ -58,5 +58,5 @@ var vue = new Vue({
 })
 })
 
 
 // 初始化通知监听
 // 初始化通知监听
-notification.init(vue, sessionStorage.getItem('ws-pf_userId'))
+notification.init(vue, localStorage.getItem('ws-pf_userId'))
 notification.start()
 notification.start()

+ 4 - 4
src/mixins/crud.js

@@ -18,10 +18,10 @@ export default (app, option = {}) => {
         page: {},
         page: {},
         isOpenLoadding: false,
         isOpenLoadding: false,
         // 常规参数
         // 常规参数
-        compId: sessionStorage.getItem('ws-pf_compId'),
-        vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag'),
-        dutyId: sessionStorage.getItem('ws-pf_dutyId'),
-        createUserId: sessionStorage.getItem('ws-pf_userId')
+        compId: localStorage.getItem('ws-pf_compId'),
+        vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag'),
+        dutyId: localStorage.getItem('ws-pf_dutyId'),
+        createUserId: localStorage.getItem('ws-pf_userId')
       }
       }
     },
     },
     computed: {
     computed: {

+ 5 - 5
src/mixins/viewUtil.js

@@ -16,11 +16,11 @@ export default {
   // 通用数据
   // 通用数据
   data () {
   data () {
     return {
     return {
-      compId: sessionStorage.getItem('ws-pf_compId'),
-      tenantId: sessionStorage.getItem('ws-pf_tenantId'),
-      userId: sessionStorage.getItem('ws-pf_userId'),
-      roleId: sessionStorage.getItem('ws-pf_roleId'),
-      vesselBankFlag: sessionStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
+      compId: localStorage.getItem('ws-pf_compId'),
+      tenantId: localStorage.getItem('ws-pf_tenantId'),
+      userId: localStorage.getItem('ws-pf_userId'),
+      roleId: localStorage.getItem('ws-pf_roleId'),
+      vesselBankFlag: localStorage.getItem('ws-pf_serviceTypeFlag') == 'true'
     }
     }
   },
   },
   // 通用计算属性
   // 通用计算属性

+ 1 - 1
src/permission.js

@@ -16,7 +16,7 @@ const whiteList = ['/login', '/ship_login', '/userAgreement', '/privacyAgreement
 router.beforeEach(async (to, _, next) => {
 router.beforeEach(async (to, _, next) => {
   NProgress.start();
   NProgress.start();
 
 
-  // 用户刷新页面,sessionStorage还在,但vuex.store里的东西会reset
+  // 用户刷新页面,localStorage还在,但vuex.store里的东西会reset
   const hasToken = getToken();
   const hasToken = getToken();
   if (hasToken) {
   if (hasToken) {
     if (whiteList.includes(to.path)) {
     if (whiteList.includes(to.path)) {

+ 6 - 6
src/router/index.js

@@ -158,18 +158,18 @@ router.beforeEach(async (to, from, next) => {
       to.matched[1].parent.meta &&
       to.matched[1].parent.meta &&
       to.matched[1].parent.meta.title
       to.matched[1].parent.meta.title
     ) {
     ) {
-      sessionStorage.setItem(
+      localStorage.setItem(
         'ws-pf_moduleName',
         'ws-pf_moduleName',
         to.matched[1].parent.meta.title
         to.matched[1].parent.meta.title
       )
       )
     } else {
     } else {
-      sessionStorage.setItem('ws-pf_moduleName', to.meta.title)
+      localStorage.setItem('ws-pf_moduleName', to.meta.title)
     }
     }
     if (to.meta.module || to.meta.auth) {
     if (to.meta.module || to.meta.auth) {
-      sessionStorage.setItem('ws-pf_authority', to.meta.auth || to.meta.module)
+      localStorage.setItem('ws-pf_authority', to.meta.auth || to.meta.module)
     }
     }
   }
   }
-  sessionStorage.setItem('ws-pf_menuName', to.meta.title)
+  localStorage.setItem('ws-pf_menuName', to.meta.title)
   const { baseInfo } = store.getters
   const { baseInfo } = store.getters
   if (Object.keys(baseInfo).length === 0) {
   if (Object.keys(baseInfo).length === 0) {
     store.dispatch('user/getBaseInfo')
     store.dispatch('user/getBaseInfo')
@@ -215,8 +215,8 @@ router.beforeEach(async (to, from, next) => {
       }
       }
     }
     }
     renewalHead(data).toPromise().then(() => {
     renewalHead(data).toPromise().then(() => {
-      console.log('paymentManagementReturn',sessionStorage.getItem('paymentManagementReturn'))
-      if(to.name=='settlement'&&sessionStorage.getItem('paymentManagementReturn')=='true'){
+      console.log('paymentManagementReturn',localStorage.getItem('paymentManagementReturn'))
+      if(to.name=='settlement'&&localStorage.getItem('paymentManagementReturn')=='true'){
         next(`/houseSelfCollect/paymentManagement`);
         next(`/houseSelfCollect/paymentManagement`);
       }else{
       }else{
         next()
         next()

+ 29 - 29
src/store/modules/user.js

@@ -96,27 +96,27 @@ const actions = {
 
 
     // {TYPE='' MESSAGE} [第一次,失效].indexOf(type){type,msg,到期时间}
     // {TYPE='' MESSAGE} [第一次,失效].indexOf(type){type,msg,到期时间}
     // EventBus.$emit('success', '登录成功')
     // EventBus.$emit('success', '登录成功')
-    sessionStorage.setItem('ws-pf_compId', compId)
-    sessionStorage.setItem('ws-pf_userId', userId)
-    sessionStorage.setItem('ws-pf_tenantId', tenantId)
-    sessionStorage.setItem('ws-pf_vesselId', vesselId) // 仅适用于一条船
-    sessionStorage.setItem('ws-pf_vesselBankFlag', vesselBankFlag) // 当前登录人是船端还是岸端的人员
-    sessionStorage.setItem('ws-pf_clientFag', clientFag)
+    localStorage.setItem('ws-pf_compId', compId)
+    localStorage.setItem('ws-pf_userId', userId)
+    localStorage.setItem('ws-pf_tenantId', tenantId)
+    localStorage.setItem('ws-pf_vesselId', vesselId) // 仅适用于一条船
+    localStorage.setItem('ws-pf_vesselBankFlag', vesselBankFlag) // 当前登录人是船端还是岸端的人员
+    localStorage.setItem('ws-pf_clientFag', clientFag)
     notification.setSessionId(userId) // 设置通知唯一标识
     notification.setSessionId(userId) // 设置通知唯一标识
     notification.start() // 开始监听通知
     notification.start() // 开始监听通知
     // 查询当前租户服务类型
     // 查询当前租户服务类型
     await isLandBased().toPromise().then(response => {
     await isLandBased().toPromise().then(response => {
-      sessionStorage.setItem('ws-pf_serviceTypeFlag', response)
+      localStorage.setItem('ws-pf_serviceTypeFlag', response)
     })
     })
     const { organizationMonetaryKey,
     const { organizationMonetaryKey,
       compName,
       compName,
       compDomainName,
       compDomainName,
       organizationMonetaryValue
       organizationMonetaryValue
     } = await companyInfo({ compId: compId }).toPromise()
     } = await companyInfo({ compId: compId }).toPromise()
-    sessionStorage.setItem('ws-pf_organMonetaryKey', organizationMonetaryKey)
-    sessionStorage.setItem('ws-pf_compName', compName)
-    sessionStorage.setItem('ws-pf_compDomainName', compDomainName)
-    sessionStorage.setItem('ws-pf_organMonetaryValue', organizationMonetaryValue)
+    localStorage.setItem('ws-pf_organMonetaryKey', organizationMonetaryKey)
+    localStorage.setItem('ws-pf_compName', compName)
+    localStorage.setItem('ws-pf_compDomainName', compDomainName)
+    localStorage.setItem('ws-pf_organMonetaryValue', organizationMonetaryValue)
     dispatch('getUserInfo', { vesselBankFlag, compName })
     dispatch('getUserInfo', { vesselBankFlag, compName })
     dispatch('toSetShow', userId)
     dispatch('toSetShow', userId)
     setToken('Admin-Token')
     setToken('Admin-Token')
@@ -135,18 +135,18 @@ const actions = {
       vesselId,
       vesselId,
       vesselBankFlag
       vesselBankFlag
     } = data
     } = data
-    sessionStorage.setItem('ws-pf_compId', compId)
-    sessionStorage.setItem('ws-pf_userId', userId)
-    sessionStorage.setItem('ws-pf_tenantId', tenantId)
-    sessionStorage.setItem('ws-pf_vesselId', vesselId) // 仅适用于一条船
-    sessionStorage.setItem('ws-pf_vesselBankFlag', vesselBankFlag) // 当前登录人是船端还是岸端的人员
+    localStorage.setItem('ws-pf_compId', compId)
+    localStorage.setItem('ws-pf_userId', userId)
+    localStorage.setItem('ws-pf_tenantId', tenantId)
+    localStorage.setItem('ws-pf_vesselId', vesselId) // 仅适用于一条船
+    localStorage.setItem('ws-pf_vesselBankFlag', vesselBankFlag) // 当前登录人是船端还是岸端的人员
 
 
     notification.setSessionId(userId) // 设置通知唯一标识
     notification.setSessionId(userId) // 设置通知唯一标识
     notification.start() // 开始监听通知
     notification.start() // 开始监听通知
 
 
     // 查询当前租户服务类型
     // 查询当前租户服务类型
     isLandBased().toPromise().then(response => {
     isLandBased().toPromise().then(response => {
-      sessionStorage.setItem('ws-pf_serviceTypeFlag', response)
+      localStorage.setItem('ws-pf_serviceTypeFlag', response)
     })
     })
     const {
     const {
       organizationMonetaryKey,
       organizationMonetaryKey,
@@ -154,9 +154,9 @@ const actions = {
       organizationMonetaryValue
       organizationMonetaryValue
     } = await companyInfo({ compId: compId }).toPromise()
     } = await companyInfo({ compId: compId }).toPromise()
 
 
-    sessionStorage.setItem('ws-pf_organMonetaryKey', organizationMonetaryKey)
-    sessionStorage.setItem('ws-pf_compName', compName)
-    sessionStorage.setItem(
+    localStorage.setItem('ws-pf_organMonetaryKey', organizationMonetaryKey)
+    localStorage.setItem('ws-pf_compName', compName)
+    localStorage.setItem(
       'ws-pf_organMonetaryValue',
       'ws-pf_organMonetaryValue',
       organizationMonetaryValue
       organizationMonetaryValue
     )
     )
@@ -256,15 +256,15 @@ const actions = {
     dispatch('common/setLocalVessels', vessels, { root: true })
     dispatch('common/setLocalVessels', vessels, { root: true })
     commit('SET_USER_INFO', content)
     commit('SET_USER_INFO', content)
 
 
-    sessionStorage.setItem('ws-pf_dutyId', dutyId || response.roles[0].dutyId)
-    sessionStorage.setItem('ws-pf_roleName', roleName || roles[0].roleName)
+    localStorage.setItem('ws-pf_dutyId', dutyId || response.roles[0].dutyId)
+    localStorage.setItem('ws-pf_roleName', roleName || roles[0].roleName)
 
 
-    sessionStorage.setItem('ws-pf_staffName', staffName)
-    sessionStorage.setItem('ws-pf_deptId', deptId)
-    sessionStorage.setItem('ws-pf_deptName', deptName)
-    sessionStorage.setItem('ws-pf_deptNameEn', deptNameEn)
-    sessionStorage.setItem('ws-pf_vessels', JSON.stringify(vessels))
-    sessionStorage.setItem('ws-pf_roleId', roleId || roles[0].roleId)
+    localStorage.setItem('ws-pf_staffName', staffName)
+    localStorage.setItem('ws-pf_deptId', deptId)
+    localStorage.setItem('ws-pf_deptName', deptName)
+    localStorage.setItem('ws-pf_deptNameEn', deptNameEn)
+    localStorage.setItem('ws-pf_vessels', JSON.stringify(vessels))
+    localStorage.setItem('ws-pf_roleId', roleId || roles[0].roleId)
 
 
   },
   },
   async toSetShow({ commit, dispatch }, { userId = '' }) {
   async toSetShow({ commit, dispatch }, { userId = '' }) {
@@ -279,7 +279,7 @@ const actions = {
   },
   },
   async changeVesslBank({ commit, dispatch, state }, showVal) {
   async changeVesslBank({ commit, dispatch, state }, showVal) {
     await updateShowInfo(showVal).toPromise()
     await updateShowInfo(showVal).toPromise()
-    dispatch('toSetShow', { userId: sessionStorage.getItem('ws-pf_userId') })
+    dispatch('toSetShow', { userId: localStorage.getItem('ws-pf_userId') })
   }
   }
 }
 }
 
 

+ 3 - 3
src/utils/auth.js

@@ -4,15 +4,15 @@ const TokenKey = 'wf-pf_admin-token'
 const CompanyId = 'Company'
 const CompanyId = 'Company'
 
 
 export function getToken() {
 export function getToken() {
-  return sessionStorage.getItem(TokenKey)
+  return localStorage.getItem(TokenKey)
 }
 }
 
 
 export function setToken(token) {
 export function setToken(token) {
-  return sessionStorage.setItem(TokenKey, token)
+  return localStorage.setItem(TokenKey, token)
 }
 }
 
 
 export function clearStorage() {
 export function clearStorage() {
-  return sessionStorage.clear();
+  return localStorage.clear();
 }
 }
 
 
 export function getCompanyId() {
 export function getCompanyId() {

+ 7 - 7
src/utils/store.js

@@ -20,7 +20,7 @@ export const setStore = (params = {}) => {
     type: type,
     type: type,
     datetime: new Date().getTime()
     datetime: new Date().getTime()
   }
   }
-  if (type) window.sessionStorage.setItem(name, JSON.stringify(obj));
+  if (type) window.localStorage.setItem(name, JSON.stringify(obj));
   else window.localStorage.setItem(name, JSON.stringify(obj));
   else window.localStorage.setItem(name, JSON.stringify(obj));
 }
 }
 /**
 /**
@@ -35,7 +35,7 @@ export const getStore = (params = {}) => {
   name = keyName + name
   name = keyName + name
   let obj = {},
   let obj = {},
     content;
     content;
-  obj = window.sessionStorage.getItem(name);
+  obj = window.localStorage.getItem(name);
   if (validatenull(obj)) obj = window.localStorage.getItem(name);
   if (validatenull(obj)) obj = window.localStorage.getItem(name);
   if (validatenull(obj)) return;
   if (validatenull(obj)) return;
   try {
   try {
@@ -67,7 +67,7 @@ export const removeStore = (params = {}) => {
   } = params;
   } = params;
   name = keyName + name
   name = keyName + name
   if (type) {
   if (type) {
-    window.sessionStorage.removeItem(name);
+    window.localStorage.removeItem(name);
   } else {
   } else {
     window.localStorage.removeItem(name);
     window.localStorage.removeItem(name);
   }
   }
@@ -83,11 +83,11 @@ export const getAllStore = (params = {}) => {
     type
     type
   } = params;
   } = params;
   if (type) {
   if (type) {
-    for (let i = 0; i <= window.sessionStorage.length; i++) {
+    for (let i = 0; i <= window.localStorage.length; i++) {
       list.push({
       list.push({
-        name: window.sessionStorage.key(i),
+        name: window.localStorage.key(i),
         content: getStore({
         content: getStore({
-          name: window.sessionStorage.key(i),
+          name: window.localStorage.key(i),
           type: 'session'
           type: 'session'
         })
         })
       })
       })
@@ -113,7 +113,7 @@ export const getAllStore = (params = {}) => {
 export const clearStore = (params = {}) => {
 export const clearStore = (params = {}) => {
   let { type } = params;
   let { type } = params;
   if (type) {
   if (type) {
-    window.sessionStorage.clear();
+    window.localStorage.clear();
   } else {
   } else {
     window.localStorage.clear()
     window.localStorage.clear()
   }
   }

+ 3 - 4
src/views/contractManagement/futuresPurchaseContract.vue

@@ -4,7 +4,6 @@
 		<BaseHeaderLayout :leftSpan="8">
 		<BaseHeaderLayout :leftSpan="8">
 			<template slot="left">
 			<template slot="left">
 				<ws-button type="primary" @click="handleAdd()"
 				<ws-button type="primary" @click="handleAdd()"
-
 					v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">添加</ws-button>
 					v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">添加</ws-button>
 				<ws-button @click="exportlist()" v-hasPermission="
 				<ws-button @click="exportlist()" v-hasPermission="
             `contractManagement.buyContract.buyContractInfo.view`
             `contractManagement.buyContract.buyContractInfo.view`
@@ -197,7 +196,7 @@
 				historyList: [],
 				historyList: [],
 				appendixIdss: [],
 				appendixIdss: [],
 				fileList: [],
 				fileList: [],
-				compId: sessionStorage.getItem('ws-pf_compId'),
+				compId: localStorage.getItem('ws-pf_compId'),
 				accessoryTFs: false,
 				accessoryTFs: false,
 				taskTypeList: [{
 				taskTypeList: [{
 						value: '未完成',
 						value: '未完成',
@@ -328,7 +327,7 @@
 			},
 			},
 			getList() {
 			getList() {
 				getList({
 				getList({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 						contractType: this.contractType,
 						contractType: this.contractType,
 						goodsType: this.goodsType,
 						goodsType: this.goodsType,
 						currentPage: this.currentPage,
 						currentPage: this.currentPage,
@@ -471,7 +470,7 @@
 				const {
 				const {
 					data
 					data
 				} = await export1({
 				} = await export1({
-					compId: sessionStorage.getItem('ws-pf_compId'),
+					compId: localStorage.getItem('ws-pf_compId'),
 					contractType: this.contractType,
 					contractType: this.contractType,
 					goodsType: this.goodsType,
 					goodsType: this.goodsType,
 					currentPage: this.currentPage,
 					currentPage: this.currentPage,

+ 3 - 3
src/views/contractManagement/futuresPurchaseContractAdd.vue

@@ -416,7 +416,7 @@
         }],
         }],
 
 
         packtypeList: [],
         packtypeList: [],
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         rules: {
         rules: {
           // contractNo: [
           // contractNo: [
           //   { required: true, message: '请输入合同编号', trigger: 'blur' },
           //   { required: true, message: '请输入合同编号', trigger: 'blur' },
@@ -487,7 +487,7 @@
       this.deptBudgetList.contractGoodsInfo.grade = '一等品'
       this.deptBudgetList.contractGoodsInfo.grade = '一等品'
       this.deptBudgetList.contractGoodsInfo.gradeKey = 1
       this.deptBudgetList.contractGoodsInfo.gradeKey = 1
       getstaff({
       getstaff({
-          compId: sessionStorage.getItem('ws-pf_compId')
+          compId: localStorage.getItem('ws-pf_compId')
         })
         })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
@@ -692,7 +692,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 3 - 3
src/views/contractManagement/futuresPurchaseContractEdit.vue

@@ -703,13 +703,13 @@ export default {
         },
         },
       },
       },
       acceptanceCheck: {},
       acceptanceCheck: {},
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
 
 
     }
     }
   },
   },
 
 
   activated() {
   activated() {
-    getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
+    getstaff({ compId: localStorage.getItem('ws-pf_compId') })
       .toPromise()
       .toPromise()
       .then((response) => {
       .then((response) => {
         this.options = response
         this.options = response
@@ -894,7 +894,7 @@ export default {
     },
     },
     getUnitList() {
     getUnitList() {
       xiala({
       xiala({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         constCode: 'TYPEYAN',
         constCode: 'TYPEYAN',
       })
       })
         .toPromise()
         .toPromise()

+ 2 - 2
src/views/contractManagement/futuresPurchaseContractExamine.vue

@@ -246,7 +246,7 @@
         mainReportAdd: {},
         mainReportAdd: {},
         list: {},
         list: {},
         id: '',
         id: '',
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
 
 
       }
       }
     },
     },
@@ -317,7 +317,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 3 - 3
src/views/contractManagement/futuresSalesContract.vue

@@ -203,7 +203,7 @@
 				historyList: [],
 				historyList: [],
 				appendixIdss: [],
 				appendixIdss: [],
 				fileList: [],
 				fileList: [],
-				compId: sessionStorage.getItem('ws-pf_compId'),
+				compId: localStorage.getItem('ws-pf_compId'),
 				pickerBeginDateBefore: {
 				pickerBeginDateBefore: {
 					disabledDate: (time) => {
 					disabledDate: (time) => {
 						return time.getTime() > Date.now()
 						return time.getTime() > Date.now()
@@ -339,7 +339,7 @@
 			},
 			},
 			getList() {
 			getList() {
 				getList({
 				getList({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 						contractType: this.contractType,
 						contractType: this.contractType,
 						goodsType: this.goodsType,
 						goodsType: this.goodsType,
 						currentPage: this.currentPage,
 						currentPage: this.currentPage,
@@ -482,7 +482,7 @@
 				const {
 				const {
 					data
 					data
 				} = await export1({
 				} = await export1({
-					compId: sessionStorage.getItem('ws-pf_compId'),
+					compId: localStorage.getItem('ws-pf_compId'),
 					contractType: this.contractType,
 					contractType: this.contractType,
 					goodsType: this.goodsType,
 					goodsType: this.goodsType,
 					currentPage: this.currentPage,
 					currentPage: this.currentPage,

+ 3 - 3
src/views/contractManagement/futuresSalesContractAdd.vue

@@ -401,7 +401,7 @@
         }],
         }],
 
 
         packtypeList: [],
         packtypeList: [],
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         rules: {
         rules: {
           // contractNo: [
           // contractNo: [
           //   { required: true, message: '请输入合同编号', trigger: 'blur' },
           //   { required: true, message: '请输入合同编号', trigger: 'blur' },
@@ -470,7 +470,7 @@
       this.deptBudgetList.contractGoodsInfo.grade = '一等品'
       this.deptBudgetList.contractGoodsInfo.grade = '一等品'
       this.deptBudgetList.contractGoodsInfo.gradeKey = 1
       this.deptBudgetList.contractGoodsInfo.gradeKey = 1
       getstaff({
       getstaff({
-          compId: sessionStorage.getItem('ws-pf_compId')
+          compId: localStorage.getItem('ws-pf_compId')
         })
         })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
@@ -671,7 +671,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 4 - 17
src/views/contractManagement/futuresSalesContractEdit.vue

@@ -305,8 +305,7 @@
       <ws-input v-model="deptBudgetList.remarks" type="textarea" row="3" placeholder="请输入备注信息,不超过200字"
       <ws-input v-model="deptBudgetList.remarks" type="textarea" row="3" placeholder="请输入备注信息,不超过200字"
         maxlength="200" />
         maxlength="200" />
 
 
-      <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size"
-        @onChange="onChange" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
+      <ws-upload ref="upload" :comp-id="compId" :editable="false" :appendix-ids="deptBudgetList.addressUrl"  accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
     </ws-form>
     </ws-form>
     <div v-if="dialogVisible" class="map">
     <div v-if="dialogVisible" class="map">
       <map-drag @marker="marker" :isShowaddress="true" v-on:addressListen="getAddress" :type="type">
       <map-drag @marker="marker" :isShowaddress="true" v-on:addressListen="getAddress" :type="type">
@@ -410,13 +409,13 @@
           },
           },
         },
         },
         acceptanceCheck: {},
         acceptanceCheck: {},
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       }
       }
     },
     },
 
 
     activated() {
     activated() {
       getstaff({
       getstaff({
-          compId: sessionStorage.getItem('ws-pf_compId')
+          compId: localStorage.getItem('ws-pf_compId')
         })
         })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
@@ -598,21 +597,9 @@
           constKey: '',
           constKey: '',
         })
         })
       },
       },
-      // 上传附件
-      onChange() {
-        this.$refs.upload
-          .handleSaveBill()
-          .then(async response => {
-            this.deptBudgetList.addressUrl = response
-          })
-          .catch(res => {
-            EventBus.$emit('error', (JSON.parse(res) || {}).message)
-            this.$refs.upload.clearFiles()
-          })
-      },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 2 - 2
src/views/contractManagement/futuresSalesContractExamine.vue

@@ -241,7 +241,7 @@
         mainReportAdd: {},
         mainReportAdd: {},
         list: {},
         list: {},
         id: '',
         id: '',
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       }
       }
     },
     },
 
 
@@ -311,7 +311,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 1 - 1
src/views/contractManagement/priceConfirmationSheet.vue

@@ -210,7 +210,7 @@ export default {
       size: 10,
       size: 10,
       unitList: [],
       unitList: [],
       deptBudgetList: [],
       deptBudgetList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       appendixIdss:[]
       appendixIdss:[]
     }
     }
   },
   },

+ 1 - 1
src/views/contractManagement/priceConfirmationSheetAdd.vue

@@ -168,7 +168,7 @@
           addressUrl: '',
           addressUrl: '',
         },
         },
         deptBudgetList: {},
         deptBudgetList: {},
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       }
       }
     },
     },
     mounted() {
     mounted() {

+ 1 - 1
src/views/contractManagement/priceConfirmationSheetEdit.vue

@@ -239,7 +239,7 @@ export default {
          addressUrl: '',
          addressUrl: '',
       },
       },
       deptBudgetList: {},
       deptBudgetList: {},
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
     }
     }
   },
   },
   activated() {
   activated() {

+ 3 - 3
src/views/contractManagement/purchaseContract.vue

@@ -274,7 +274,7 @@
 				historyList: [],
 				historyList: [],
 				appendixIdss: [],
 				appendixIdss: [],
 				fileList: [],
 				fileList: [],
-				compId: sessionStorage.getItem('ws-pf_compId'),
+				compId: localStorage.getItem('ws-pf_compId'),
 				pickerBeginDateBefore: {
 				pickerBeginDateBefore: {
 					disabledDate: (time) => {
 					disabledDate: (time) => {
 						return time.getTime() > Date.now()
 						return time.getTime() > Date.now()
@@ -407,7 +407,7 @@
 			},
 			},
 			getList() {
 			getList() {
 				getList({
 				getList({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 						contractType: this.contractType,
 						contractType: this.contractType,
 						goodsType: this.goodsType,
 						goodsType: this.goodsType,
 						currentPage: this.currentPage,
 						currentPage: this.currentPage,
@@ -549,7 +549,7 @@
 				const {
 				const {
 					data
 					data
 				} = await export1({
 				} = await export1({
-					compId: sessionStorage.getItem('ws-pf_compId'),
+					compId: localStorage.getItem('ws-pf_compId'),
 					contractType: this.contractType,
 					contractType: this.contractType,
 					goodsType: this.goodsType,
 					goodsType: this.goodsType,
 					currentPage: this.currentPage,
 					currentPage: this.currentPage,

+ 3 - 4
src/views/contractManagement/purchaseContractAdd.vue

@@ -434,7 +434,7 @@
         }],
         }],
 
 
         packtypeList: [],
         packtypeList: [],
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         rules: {
         rules: {
           // contractNo: [
           // contractNo: [
           //   { required: true, message: '请输入合同编号', trigger: 'blur' },
           //   { required: true, message: '请输入合同编号', trigger: 'blur' },
@@ -576,7 +576,6 @@
             this.deptBudgetList.sellerPhone=this.customerinfo[i].customerPhone
             this.deptBudgetList.sellerPhone=this.customerinfo[i].customerPhone
           }
           }
         }
         }
-        
       },
       },
       getAddress(data) {
       getAddress(data) {
         console.log('getAddress', data)
         console.log('getAddress', data)
@@ -705,7 +704,7 @@
           .then((response) => {
           .then((response) => {
             this.contractNoList = response
             this.contractNoList = response
           })
           })
-          getcustomerinfo({compId: sessionStorage.getItem('ws-pf_compId'),}).toPromise()
+          getcustomerinfo({compId: localStorage.getItem('ws-pf_compId'),}).toPromise()
           .then((response) => {
           .then((response) => {
             var arr=[]
             var arr=[]
             for (let i = 0; i < response.length; i++) {
             for (let i = 0; i < response.length; i++) {
@@ -747,7 +746,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 2 - 2
src/views/contractManagement/purchaseContractEdit.vue

@@ -369,7 +369,7 @@
           },
           },
         },
         },
         acceptanceCheck: {},
         acceptanceCheck: {},
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       }
       }
     },
     },
 
 
@@ -545,7 +545,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 2 - 2
src/views/contractManagement/purchaseContractExamine.vue

@@ -256,7 +256,7 @@
         },
         },
         mainReportAdd: {},
         mainReportAdd: {},
         list: {},
         list: {},
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       }
       }
     },
     },
 
 
@@ -324,7 +324,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 4 - 3
src/views/contractManagement/salesContract.vue

@@ -295,7 +295,7 @@
 				rulesVendor: {},
 				rulesVendor: {},
 				size: 10,
 				size: 10,
 				appendixIdss: [],
 				appendixIdss: [],
-				compId: sessionStorage.getItem('ws-pf_compId'),
+				compId: localStorage.getItem('ws-pf_compId'),
 				deptCircularPage: {},
 				deptCircularPage: {},
 				date: {
 				date: {
 					year: dayjs().format('YYYY'),
 					year: dayjs().format('YYYY'),
@@ -445,9 +445,10 @@
 				console.log(`当前页: ${val}`)
 				console.log(`当前页: ${val}`)
 				this.getList()
 				this.getList()
 			},
 			},
+			
 			getList() {
 			getList() {
 				getList({
 				getList({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 						contractType: this.contractType,
 						contractType: this.contractType,
 						goodsType: this.goodsType,
 						goodsType: this.goodsType,
 						currentPage: this.currentPage,
 						currentPage: this.currentPage,
@@ -603,7 +604,7 @@
 				const {
 				const {
 					data
 					data
 				} = await export1({
 				} = await export1({
-					compId: sessionStorage.getItem('ws-pf_compId'),
+					compId: localStorage.getItem('ws-pf_compId'),
 					contractType: this.contractType,
 					contractType: this.contractType,
 					goodsType: this.goodsType,
 					goodsType: this.goodsType,
 					currentPage: this.currentPage,
 					currentPage: this.currentPage,

+ 5 - 5
src/views/contractManagement/salesContractAdd.vue

@@ -427,7 +427,7 @@
         }, ],
         }, ],
         trainingMethods: {},
         trainingMethods: {},
         packtypeList: [],
         packtypeList: [],
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         mainReportAdd: {},
         mainReportAdd: {},
         appendixIdsAdd: '',
         appendixIdsAdd: '',
         size: 10,
         size: 10,
@@ -633,7 +633,7 @@
           .then((response) => {
           .then((response) => {
             this.contractNoList = response
             this.contractNoList = response
           })
           })
-          getcustomerinfo({compId: sessionStorage.getItem('ws-pf_compId'),}).toPromise()
+          getcustomerinfo({compId: localStorage.getItem('ws-pf_compId'),}).toPromise()
           .then((response) => {
           .then((response) => {
             var arr=[]
             var arr=[]
             for (let i = 0; i < response.length; i++) {
             for (let i = 0; i < response.length; i++) {
@@ -675,7 +675,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()
@@ -1406,7 +1406,7 @@
         }
         }
         if (item.flag == 'add') {
         if (item.flag == 'add') {
           item.constKey = Math.random() * 20
           item.constKey = Math.random() * 20
-          this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
+          this.trainingMethods.compId = localStorage.getItem('ws-pf_compId')
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constValue = item.constValue
           this.trainingMethods.constValue = item.constValue
@@ -1417,7 +1417,7 @@
               this.getUnitList()
               this.getUnitList()
             })
             })
         } else if (item.flag == 'check') {
         } else if (item.flag == 'check') {
-          this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
+          this.trainingMethods.compId = localStorage.getItem('ws-pf_compId')
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constValue = item.constValue
           this.trainingMethods.constValue = item.constValue

+ 4 - 4
src/views/contractManagement/salesContractEdit.vue

@@ -428,7 +428,7 @@
         selectpackingMethod: {},
         selectpackingMethod: {},
         unitList: {},
         unitList: {},
         packtypeList: [],
         packtypeList: [],
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         appendixIdsAdd: '',
         appendixIdsAdd: '',
         size: 10,
         size: 10,
         deptBudgetList: {
         deptBudgetList: {
@@ -605,7 +605,7 @@
 
 
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()
@@ -676,7 +676,7 @@
         }
         }
         if (item.flag == 'add') {
         if (item.flag == 'add') {
           item.constKey = Math.random() * 20
           item.constKey = Math.random() * 20
-          this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
+          this.trainingMethods.compId = localStorage.getItem('ws-pf_compId')
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constValue = item.constValue
           this.trainingMethods.constValue = item.constValue
@@ -687,7 +687,7 @@
               this.getUnitList()
               this.getUnitList()
             })
             })
         } else if (item.flag == 'check') {
         } else if (item.flag == 'check') {
-          this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
+          this.trainingMethods.compId = localStorage.getItem('ws-pf_compId')
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constKey = item.constKey
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constCode = 'TYPEYAN'
           this.trainingMethods.constValue = item.constValue
           this.trainingMethods.constValue = item.constValue

+ 2 - 2
src/views/contractManagement/salesContractExamine.vue

@@ -363,7 +363,7 @@
         mainReportAdd: {},
         mainReportAdd: {},
         list: {},
         list: {},
         historyList: [],
         historyList: [],
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       }
       }
     },
     },
 
 
@@ -432,7 +432,7 @@
       },
       },
       getUnitList() {
       getUnitList() {
         xiala({
         xiala({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             constCode: 'TYPEYAN',
             constCode: 'TYPEYAN',
           })
           })
           .toPromise()
           .toPromise()

+ 3 - 3
src/views/customer/customerList.vue

@@ -302,7 +302,7 @@ export default {
       depositRatio: '700',
       depositRatio: '700',
       id: '',
       id: '',
       money: '',
       money: '',
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       customerList: [],
       customerList: [],
       deptBudgetList: {},
       deptBudgetList: {},
@@ -443,7 +443,7 @@ export default {
     //列表查询
     //列表查询
     getList() {
     getList() {
       getList({
       getList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchKeyWord: this.searchKeyWord,
         searchKeyWord: this.searchKeyWord,
@@ -495,7 +495,7 @@ export default {
           return
           return
         }
         }
         installDepositRatio({
         installDepositRatio({
-          compId: sessionStorage.getItem('ws-pf_compId'),
+          compId: localStorage.getItem('ws-pf_compId'),
           depositRatio: this.depositRatio,
           depositRatio: this.depositRatio,
         })
         })
           .toPromise()
           .toPromise()

+ 1 - 1
src/views/customerFundManagement/customerFundAdd.vue

@@ -387,7 +387,7 @@ export default {
         })
         })
         return
         return
       }
       }
-      this.customerList.compId = sessionStorage.getItem('ws-pf_compId')
+      this.customerList.compId = localStorage.getItem('ws-pf_compId')
 
 
       this.$confirm('确定提交客户信息?', '提示', {
       this.$confirm('确定提交客户信息?', '提示', {
         confirmButtonText: '确定',
         confirmButtonText: '确定',

+ 1 - 1
src/views/customerFundManagement/customerFundEdit.vue

@@ -406,7 +406,7 @@ export default {
         })
         })
         return
         return
       }
       }
-      this.customerList.compId = sessionStorage.getItem('ws-pf_compId')
+      this.customerList.compId = localStorage.getItem('ws-pf_compId')
 
 
       this.$confirm('确定修改客户信息?', '提示', {
       this.$confirm('确定修改客户信息?', '提示', {
         confirmButtonText: '确定',
         confirmButtonText: '确定',

+ 2 - 2
src/views/customerFundManagement/customerFundList.vue

@@ -156,7 +156,7 @@ export default {
       spanArr: [],
       spanArr: [],
       id: '',
       id: '',
       money: '',
       money: '',
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       customerList: [],
       customerList: [],
       deptBudgetList: {},
       deptBudgetList: {},
@@ -272,7 +272,7 @@ export default {
     //列表查询
     //列表查询
     getList() {
     getList() {
       getCustomerList({
       getCustomerList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchKeyWord: this.searchKeyWord,
         searchKeyWord: this.searchKeyWord,

+ 6 - 6
src/views/dataManageMent/list.vue

@@ -374,7 +374,7 @@ export default {
       treeNodeId: '',
       treeNodeId: '',
       treeNode: {},
       treeNode: {},
       // listLoading: false,
       // listLoading: false,
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       word: false,
       word: false,
       //  附件
       //  附件
       appendixIds: '',
       appendixIds: '',
@@ -410,12 +410,12 @@ export default {
       // 左侧树
       // 左侧树
       TreeData: [],
       TreeData: [],
       parentId: '',
       parentId: '',
-      uploadUrl: '', //config.getUploadPath('systemOperation', sessionStorage.getItem('ws-pf_compId'))
+      uploadUrl: '', //config.getUploadPath('systemOperation', localStorage.getItem('ws-pf_compId'))
       filePath: ''
       filePath: ''
     }
     }
   },
   },
   created () {
   created () {
-    // this.vesselList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+    // this.vesselList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
     this.getSystemFolderList()
     this.getSystemFolderList()
     this.getFileTypeList()
     this.getFileTypeList()
   },
   },
@@ -494,7 +494,7 @@ export default {
     },
     },
     // 文件类型数据
     // 文件类型数据
     async getFileTypeList () {
     async getFileTypeList () {
-      await findFileType({ compId: sessionStorage.getItem('ws-pf_compId') }).toPromise().then(
+      await findFileType({ compId: localStorage.getItem('ws-pf_compId') }).toPromise().then(
         res => {
         res => {
           this.fileTypeList = res
           this.fileTypeList = res
             .filter(item => (item != ''))
             .filter(item => (item != ''))
@@ -698,7 +698,7 @@ export default {
     async getSystemFolderList (defaultId = '') {
     async getSystemFolderList (defaultId = '') {
       // this.elLoading()
       // this.elLoading()
       // this.listLoading  = true
       // this.listLoading  = true
-      await findTreeList({ compId: sessionStorage.getItem('ws-pf_compId') }).toPromise().then(
+      await findTreeList({ compId: localStorage.getItem('ws-pf_compId') }).toPromise().then(
         response => {
         response => {
           this.TreeData = response
           this.TreeData = response
           this.getTreeChildren(this.TreeData)
           this.getTreeChildren(this.TreeData)
@@ -729,7 +729,7 @@ export default {
           await addFile({
           await addFile({
             appendixIds: response.split(','),
             appendixIds: response.split(','),
             folderId: this.treeNodeId,
             folderId: this.treeNodeId,
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             filePath: this.filePath
             filePath: this.filePath
           }).toPromise()
           }).toPromise()
             .catch(res => {
             .catch(res => {

+ 1 - 1
src/views/dynamicRport/add.vue

@@ -72,7 +72,7 @@ export default {
       typeList: [],
       typeList: [],
       statusList: [],
       statusList: [],
       flag: false,
       flag: false,
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         type: [{ required: true, message: '请选择报告类型', trigger: ['blur', 'change'] }],
         type: [{ required: true, message: '请选择报告类型', trigger: ['blur', 'change'] }],
         status: [{ required: true, message: '请选择航行状态', trigger: ['blur', 'change'] }],
         status: [{ required: true, message: '请选择航行状态', trigger: ['blur', 'change'] }],

+ 6 - 6
src/views/dynamicRport/components/addAnchorageReport.vue

@@ -404,7 +404,7 @@ export default {
   props: ['callbackdata', 'authFlag'],
   props: ['callbackdata', 'authFlag'],
   data () {
   data () {
     return {
     return {
-      my_VesselId: sessionStorage.getItem('ws-pf_vesselId'),
+      my_VesselId: localStorage.getItem('ws-pf_vesselId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -472,7 +472,7 @@ export default {
       typeList: [],
       typeList: [],
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         reportTypeId: [
         reportTypeId: [
           {
           {
@@ -527,7 +527,7 @@ export default {
       appendixIds: '',
       appendixIds: '',
       activities: [],
       activities: [],
       approveStatus: '',
       approveStatus: '',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag')
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag')
     }
     }
   },
   },
   created () { },
   created () { },
@@ -539,7 +539,7 @@ export default {
     if (this.callbackdata) {
     if (this.callbackdata) {
       this.editFlag = this.callbackdata
       this.editFlag = this.callbackdata
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -578,9 +578,9 @@ export default {
     },
     },
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       if (this.vesselBankFlag == 'V') {
       if (this.vesselBankFlag == 'V') {
-        this.shipMan.vesselId = sessionStorage.getItem('ws-pf_vesselId')
+        this.shipMan.vesselId = localStorage.getItem('ws-pf_vesselId')
         this.shipMan.vesselName = this.shipList.find(
         this.shipMan.vesselName = this.shipList.find(
           item => this.shipMan.vesselId == item.vesselId
           item => this.shipMan.vesselId == item.vesselId
         ).vesselName
         ).vesselName

+ 6 - 6
src/views/dynamicRport/components/addBerthReport.vue

@@ -392,7 +392,7 @@ export default {
   props: ['callbackdata', 'authFlag'],
   props: ['callbackdata', 'authFlag'],
   data () {
   data () {
     return {
     return {
-      my_VesselId: sessionStorage.getItem('ws-pf_vesselId'),
+      my_VesselId: localStorage.getItem('ws-pf_vesselId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -461,7 +461,7 @@ export default {
       typeList: [],
       typeList: [],
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         reportTypeId: [
         reportTypeId: [
           {
           {
@@ -516,7 +516,7 @@ export default {
       appendixIds: '',
       appendixIds: '',
       activities: [],
       activities: [],
       approveStatus: '',
       approveStatus: '',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag')
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag')
     }
     }
   },
   },
   created () { },
   created () { },
@@ -528,7 +528,7 @@ export default {
     if (this.callbackdata) {
     if (this.callbackdata) {
       this.editFlag = this.callbackdata
       this.editFlag = this.callbackdata
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -567,9 +567,9 @@ export default {
     },
     },
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       if (this.vesselBankFlag == 'V') {
       if (this.vesselBankFlag == 'V') {
-        this.shipMan.vesselId = sessionStorage.getItem('ws-pf_vesselId')
+        this.shipMan.vesselId = localStorage.getItem('ws-pf_vesselId')
         this.shipMan.vesselName = this.shipList.find(
         this.shipMan.vesselName = this.shipList.find(
           item => this.shipMan.vesselId == item.vesselId
           item => this.shipMan.vesselId == item.vesselId
         ).vesselName
         ).vesselName

+ 6 - 6
src/views/dynamicRport/components/addConstructionReport.vue

@@ -690,7 +690,7 @@ export default {
   props: ['callbackdata', 'authFlag'],
   props: ['callbackdata', 'authFlag'],
   data () {
   data () {
     return {
     return {
-      my_VesselId: sessionStorage.getItem('ws-pf_vesselId'),
+      my_VesselId: localStorage.getItem('ws-pf_vesselId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -767,7 +767,7 @@ export default {
       typeList: [],
       typeList: [],
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         reportTypeId: [
         reportTypeId: [
           {
           {
@@ -822,7 +822,7 @@ export default {
       appendixIds: '',
       appendixIds: '',
       activities: [],
       activities: [],
       approveStatus: '',
       approveStatus: '',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag')
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag')
     }
     }
   },
   },
   created () { },
   created () { },
@@ -834,7 +834,7 @@ export default {
     if (this.callbackdata) {
     if (this.callbackdata) {
       this.editFlag = this.callbackdata
       this.editFlag = this.callbackdata
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -873,9 +873,9 @@ export default {
     },
     },
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       if (this.vesselBankFlag == 'V') {
       if (this.vesselBankFlag == 'V') {
-        this.shipMan.vesselId = sessionStorage.getItem('ws-pf_vesselId')
+        this.shipMan.vesselId = localStorage.getItem('ws-pf_vesselId')
         this.shipMan.vesselName = this.shipList.find(
         this.shipMan.vesselName = this.shipList.find(
           item => this.shipMan.vesselId == item.vesselId
           item => this.shipMan.vesselId == item.vesselId
         ).vesselName
         ).vesselName

+ 6 - 6
src/views/dynamicRport/components/addDispatchReport.vue

@@ -392,7 +392,7 @@ export default {
   props: ['callbackdata', 'authFlag'],
   props: ['callbackdata', 'authFlag'],
   data () {
   data () {
     return {
     return {
-      my_VesselId: sessionStorage.getItem('ws-pf_vesselId'),
+      my_VesselId: localStorage.getItem('ws-pf_vesselId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -448,7 +448,7 @@ export default {
       statusList: [],
       statusList: [],
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         reportTypeId: [
         reportTypeId: [
           {
           {
@@ -503,7 +503,7 @@ export default {
       appendixIds: '',
       appendixIds: '',
       activities: [],
       activities: [],
       approveStatus: '',
       approveStatus: '',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag')
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag')
     }
     }
   },
   },
   created () { },
   created () { },
@@ -515,7 +515,7 @@ export default {
     if (this.callbackdata) {
     if (this.callbackdata) {
       this.editFlag = this.callbackdata
       this.editFlag = this.callbackdata
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -554,9 +554,9 @@ export default {
     },
     },
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       if (this.vesselBankFlag == 'V') {
       if (this.vesselBankFlag == 'V') {
-        this.shipMan.vesselId = sessionStorage.getItem('ws-pf_vesselId')
+        this.shipMan.vesselId = localStorage.getItem('ws-pf_vesselId')
         this.shipMan.vesselName = this.shipList.find(
         this.shipMan.vesselName = this.shipList.find(
           item => this.shipMan.vesselId == item.vesselId
           item => this.shipMan.vesselId == item.vesselId
         ).vesselName
         ).vesselName

+ 6 - 6
src/views/dynamicRport/components/addDispatchReport_arrival.vue

@@ -432,7 +432,7 @@ export default {
   props: ['callbackdata', 'authFlag'],
   props: ['callbackdata', 'authFlag'],
   data () {
   data () {
     return {
     return {
-      my_VesselId: sessionStorage.getItem('ws-pf_vesselId'),
+      my_VesselId: localStorage.getItem('ws-pf_vesselId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -499,7 +499,7 @@ export default {
       statusList: [],
       statusList: [],
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         reportTypeId: [
         reportTypeId: [
           {
           {
@@ -554,7 +554,7 @@ export default {
       appendixIds: '',
       appendixIds: '',
       activities: [],
       activities: [],
       approveStatus: '',
       approveStatus: '',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag')
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag')
     }
     }
   },
   },
   mounted () {
   mounted () {
@@ -565,7 +565,7 @@ export default {
     if (this.callbackdata) {
     if (this.callbackdata) {
       this.editFlag = this.callbackdata
       this.editFlag = this.callbackdata
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -604,9 +604,9 @@ export default {
     },
     },
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       if (this.vesselBankFlag == 'V') {
       if (this.vesselBankFlag == 'V') {
-        this.shipMan.vesselId = sessionStorage.getItem('ws-pf_vesselId')
+        this.shipMan.vesselId = localStorage.getItem('ws-pf_vesselId')
         this.shipMan.vesselName = this.shipList.find(
         this.shipMan.vesselName = this.shipList.find(
           item => this.shipMan.vesselId == item.vesselId
           item => this.shipMan.vesselId == item.vesselId
         ).vesselName
         ).vesselName

+ 6 - 6
src/views/dynamicRport/components/addDispatchReport_sailing.vue

@@ -421,7 +421,7 @@ export default {
   props: ['callbackdata', 'authFlag'],
   props: ['callbackdata', 'authFlag'],
   data () {
   data () {
     return {
     return {
-      my_VesselId: sessionStorage.getItem('ws-pf_vesselId'),
+      my_VesselId: localStorage.getItem('ws-pf_vesselId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -485,7 +485,7 @@ export default {
       statusList: [],
       statusList: [],
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         reportTypeId: [
         reportTypeId: [
           {
           {
@@ -540,7 +540,7 @@ export default {
       appendixIds: '',
       appendixIds: '',
       activities: [],
       activities: [],
       approveStatus: '',
       approveStatus: '',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag')
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag')
     }
     }
   },
   },
   created () { },
   created () { },
@@ -552,7 +552,7 @@ export default {
     if (this.callbackdata) {
     if (this.callbackdata) {
       this.editFlag = this.callbackdata
       this.editFlag = this.callbackdata
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -591,9 +591,9 @@ export default {
     },
     },
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       if (this.vesselBankFlag == 'V') {
       if (this.vesselBankFlag == 'V') {
-        this.shipMan.vesselId = sessionStorage.getItem('ws-pf_vesselId')
+        this.shipMan.vesselId = localStorage.getItem('ws-pf_vesselId')
         this.shipMan.vesselName = this.shipList.find(
         this.shipMan.vesselName = this.shipList.find(
           item => this.shipMan.vesselId == item.vesselId
           item => this.shipMan.vesselId == item.vesselId
         ).vesselName
         ).vesselName

+ 6 - 6
src/views/dynamicRport/components/addRepairReport.vue

@@ -348,7 +348,7 @@ export default {
   props: ['callbackdata', 'authFlag'],
   props: ['callbackdata', 'authFlag'],
   data () {
   data () {
     return {
     return {
-      my_VesselId: sessionStorage.getItem('ws-pf_vesselId'),
+      my_VesselId: localStorage.getItem('ws-pf_vesselId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -412,7 +412,7 @@ export default {
       typeList: [],
       typeList: [],
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       rules: {
       rules: {
         reportTypeId: [
         reportTypeId: [
           {
           {
@@ -467,7 +467,7 @@ export default {
       appendixIds: '',
       appendixIds: '',
       activities: [],
       activities: [],
       approveStatus: '',
       approveStatus: '',
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag')
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag')
     }
     }
   },
   },
   created () { },
   created () { },
@@ -479,7 +479,7 @@ export default {
     if (this.callbackdata) {
     if (this.callbackdata) {
       this.editFlag = this.callbackdata
       this.editFlag = this.callbackdata
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -518,9 +518,9 @@ export default {
     },
     },
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       if (this.vesselBankFlag == 'V') {
       if (this.vesselBankFlag == 'V') {
-        this.shipMan.vesselId = sessionStorage.getItem('ws-pf_vesselId')
+        this.shipMan.vesselId = localStorage.getItem('ws-pf_vesselId')
         this.shipMan.vesselName = this.shipList.find(
         this.shipMan.vesselName = this.shipList.find(
           item => this.shipMan.vesselId == item.vesselId
           item => this.shipMan.vesselId == item.vesselId
         ).vesselName
         ).vesselName

+ 4 - 4
src/views/dynamicRport/components/checkAnchorageReport.vue

@@ -348,7 +348,7 @@ export default {
       },
       },
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       // 新上传
       // 新上传
       oldAppendixIds: '',
       oldAppendixIds: '',
       newAppendixs: [],
       newAppendixs: [],
@@ -366,7 +366,7 @@ export default {
       'px'
       'px'
   },
   },
   beforeDestroy () {
   beforeDestroy () {
-    sessionStorage.setItem('ws_dynamicReport_id', '')
+    localStorage.setItem('ws_dynamicReport_id', '')
   },
   },
   methods: {
   methods: {
     initData () {
     initData () {
@@ -374,7 +374,7 @@ export default {
         this.shipList = response
         this.shipList = response
       })
       })
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -405,7 +405,7 @@ export default {
       }
       }
     },
     },
     back () {
     back () {
-      sessionStorage.setItem('ws_dynamicReport_id', '')
+      localStorage.setItem('ws_dynamicReport_id', '')
       this.$router.back(-1)
       this.$router.back(-1)
     }
     }
   }
   }

+ 4 - 4
src/views/dynamicRport/components/checkBerthReport.vue

@@ -347,7 +347,7 @@ export default {
         }
         }
       },
       },
       shipList: [],
       shipList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       // 新上传
       // 新上传
       oldAppendixIds: '',
       oldAppendixIds: '',
       newAppendixs: [],
       newAppendixs: [],
@@ -366,7 +366,7 @@ export default {
       'px'
       'px'
   },
   },
   beforeDestroy () {
   beforeDestroy () {
-    sessionStorage.setItem('ws_dynamicReport_id', '')
+    localStorage.setItem('ws_dynamicReport_id', '')
   },
   },
   props: [],
   props: [],
   methods: {
   methods: {
@@ -375,7 +375,7 @@ export default {
         this.shipList = response
         this.shipList = response
       })
       })
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -406,7 +406,7 @@ export default {
       }
       }
     },
     },
     back () {
     back () {
-      sessionStorage.setItem('ws_dynamicReport_id', '')
+      localStorage.setItem('ws_dynamicReport_id', '')
       this.$router.back(-1)
       this.$router.back(-1)
     }
     }
   }
   }

+ 5 - 5
src/views/dynamicRport/components/checkConstructionReport.vue

@@ -339,8 +339,8 @@ export default {
   name: 'basicMsg',
   name: 'basicMsg',
   data () {
   data () {
     return {
     return {
-      compId: sessionStorage.getItem('ws-pf_compId'),
-      seafarerId: sessionStorage.getItem('ws-pf_platformCrewSeafarerId'),
+      compId: localStorage.getItem('ws-pf_compId'),
+      seafarerId: localStorage.getItem('ws-pf_platformCrewSeafarerId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -385,13 +385,13 @@ export default {
       'px'
       'px'
   },
   },
   beforeDestroy () {
   beforeDestroy () {
-    sessionStorage.setItem('ws_dynamicReport_id', '')
+    localStorage.setItem('ws_dynamicReport_id', '')
   },
   },
   props: [],
   props: [],
   methods: {
   methods: {
     initData () {
     initData () {
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -416,7 +416,7 @@ export default {
       }
       }
     },
     },
     back () {
     back () {
-      sessionStorage.setItem('ws_dynamicReport_id', '')
+      localStorage.setItem('ws_dynamicReport_id', '')
       this.$router.back(-1)
       this.$router.back(-1)
     }
     }
   },
   },

+ 4 - 4
src/views/dynamicRport/components/checkDispatchReport.vue

@@ -334,7 +334,7 @@ export default {
       },
       },
       shipList: [],
       shipList: [],
       timeList: [],
       timeList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       // 新上传
       // 新上传
       oldAppendixIds: '',
       oldAppendixIds: '',
       newAppendixs: [],
       newAppendixs: [],
@@ -353,7 +353,7 @@ export default {
       'px'
       'px'
   },
   },
   beforeDestroy () {
   beforeDestroy () {
-    sessionStorage.setItem('ws_dynamicReport_id', '')
+    localStorage.setItem('ws_dynamicReport_id', '')
   },
   },
   methods: {
   methods: {
     initData () {
     initData () {
@@ -361,7 +361,7 @@ export default {
         this.shipList = response
         this.shipList = response
       })
       })
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -392,7 +392,7 @@ export default {
       }
       }
     },
     },
     back () {
     back () {
-      sessionStorage.setItem('ws_dynamicReport_id', '')
+      localStorage.setItem('ws_dynamicReport_id', '')
       this.$router.back(-1)
       this.$router.back(-1)
     }
     }
   },
   },

+ 4 - 4
src/views/dynamicRport/components/checkDispatchReport_arrival.vue

@@ -310,7 +310,7 @@ export default {
   name: 'addDispatchReport_arrival',
   name: 'addDispatchReport_arrival',
   data () {
   data () {
     return {
     return {
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -392,7 +392,7 @@ export default {
       'px'
       'px'
   },
   },
   beforeDestroy () {
   beforeDestroy () {
-    sessionStorage.setItem('ws_dynamicReport_id', '')
+    localStorage.setItem('ws_dynamicReport_id', '')
   },
   },
   methods: {
   methods: {
     initData () {
     initData () {
@@ -400,7 +400,7 @@ export default {
         this.shipList = response
         this.shipList = response
       })
       })
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -431,7 +431,7 @@ export default {
       }
       }
     },
     },
     back () {
     back () {
-      sessionStorage.setItem('ws_dynamicReport_id', '')
+      localStorage.setItem('ws_dynamicReport_id', '')
       this.$router.back(-1)
       this.$router.back(-1)
     }
     }
   }
   }

+ 4 - 4
src/views/dynamicRport/components/checkDispatchReport_sailing.vue

@@ -305,7 +305,7 @@ export default {
   name: 'addDispatchReport_salling',
   name: 'addDispatchReport_salling',
   data () {
   data () {
     return {
     return {
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       openMsg: [
       openMsg: [
         {
         {
           key: 0,
           key: 0,
@@ -385,7 +385,7 @@ export default {
       'px'
       'px'
   },
   },
   beforeDestroy () {
   beforeDestroy () {
-    sessionStorage.setItem('ws_dynamicReport_id', '')
+    localStorage.setItem('ws_dynamicReport_id', '')
   },
   },
   methods: {
   methods: {
     initData () {
     initData () {
@@ -393,7 +393,7 @@ export default {
         this.shipList = response
         this.shipList = response
       })
       })
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -424,7 +424,7 @@ export default {
       }
       }
     },
     },
     back () {
     back () {
-      sessionStorage.setItem('ws_dynamicReport_id', '')
+      localStorage.setItem('ws_dynamicReport_id', '')
       this.$router.back(-1)
       this.$router.back(-1)
     }
     }
   }
   }

+ 4 - 4
src/views/dynamicRport/components/checkRepairReport.vue

@@ -315,7 +315,7 @@ export default {
         }
         }
       },
       },
       shipList: [],
       shipList: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       // 新上传
       // 新上传
       oldAppendixIds: '',
       oldAppendixIds: '',
       newAppendixs: [],
       newAppendixs: [],
@@ -334,7 +334,7 @@ export default {
       'px'
       'px'
   },
   },
   beforeDestroy () {
   beforeDestroy () {
-    sessionStorage.setItem('ws_dynamicReport_id', '')
+    localStorage.setItem('ws_dynamicReport_id', '')
   },
   },
   methods: {
   methods: {
     initData () {
     initData () {
@@ -342,7 +342,7 @@ export default {
         this.shipList = response
         this.shipList = response
       })
       })
       getReportInfoById({
       getReportInfoById({
-        id: sessionStorage.getItem('ws_dynamicReport_id')
+        id: localStorage.getItem('ws_dynamicReport_id')
       }).toPromise().then(response => {
       }).toPromise().then(response => {
         this.shipMan = response
         this.shipMan = response
         if (this.shipMan.appendixFileUrls) {
         if (this.shipMan.appendixFileUrls) {
@@ -373,7 +373,7 @@ export default {
       }
       }
     },
     },
     back () {
     back () {
-      sessionStorage.setItem('ws_dynamicReport_id', '')
+      localStorage.setItem('ws_dynamicReport_id', '')
       this.$router.back(-1)
       this.$router.back(-1)
     }
     }
   }
   }

+ 2 - 2
src/views/dynamicRport/dynamicReport.vue

@@ -50,8 +50,8 @@ export default {
   },
   },
   methods: {
   methods: {
     cellClick (row) {
     cellClick (row) {
-      const usrId = sessionStorage.getItem('ws-pf_userId')
-      sessionStorage.setItem('ws_dynamicReport_id', row.id)
+      const usrId = localStorage.getItem('ws-pf_userId')
+      localStorage.setItem('ws_dynamicReport_id', row.id)
       let param = { type: row.reportTypeId, status: row.sailingStatusId }
       let param = { type: row.reportTypeId, status: row.sailingStatusId }
       if (Object.is(row.statusFlag, '0') || Object.is(row.statusFlag, '1')) {
       if (Object.is(row.statusFlag, '0') || Object.is(row.statusFlag, '1')) {
         if (Object.is(row.createUserId, usrId)) {
         if (Object.is(row.createUserId, usrId)) {

+ 3 - 3
src/views/dynamicRport/report.vue

@@ -284,7 +284,7 @@ export default {
   methods: {
   methods: {
     initData () {
     initData () {
       // 所属船舶
       // 所属船舶
-      this.shipList = JSON.parse(sessionStorage.getItem('ws-pf_vessels'))
+      this.shipList = JSON.parse(localStorage.getItem('ws-pf_vessels'))
       this.shipList.unshift({
       this.shipList.unshift({
         vesselName: this.$t('deploy.allShipName'),
         vesselName: this.$t('deploy.allShipName'),
         vesselId: 'all'
         vesselId: 'all'
@@ -367,8 +367,8 @@ export default {
       })
       })
     },
     },
     cellClick (row, column, event, cell) {
     cellClick (row, column, event, cell) {
-      const usrId = sessionStorage.getItem('ws-pf_userId')
-      sessionStorage.setItem('ws_dynamicReport_id', row.id)
+      const usrId = localStorage.getItem('ws-pf_userId')
+      localStorage.setItem('ws_dynamicReport_id', row.id)
       let param = { type: row.reportTypeId, status: row.sailingStatusId }
       let param = { type: row.reportTypeId, status: row.sailingStatusId }
       if (Object.is(row.statusFlag, '0') || Object.is(row.statusFlag, '1')) {
       if (Object.is(row.statusFlag, '0') || Object.is(row.statusFlag, '1')) {
         if (Object.is(row.createUserId, usrId)) {
         if (Object.is(row.createUserId, usrId)) {

+ 4 - 4
src/views/financialManagement/collectionManagementList.vue

@@ -389,8 +389,8 @@ export default {
       fileList: [],
       fileList: [],
       dataList: {},
       dataList: {},
       staffQO: {},
       staffQO: {},
-      compId: sessionStorage.getItem('ws-pf_compId'),
-      roleId: sessionStorage.getItem('ws-pf_roleId'),
+      compId: localStorage.getItem('ws-pf_compId'),
+      roleId: localStorage.getItem('ws-pf_roleId'),
       pickerBeginDateBefore: {
       pickerBeginDateBefore: {
         disabledDate: time => {
         disabledDate: time => {
           return time.getTime() > Date.now()
           return time.getTime() > Date.now()
@@ -736,7 +736,7 @@ export default {
     },
     },
     getList() {
     getList() {
       caiwuList({
       caiwuList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         // contractNo: this.contractNo,
         // contractNo: this.contractNo,
@@ -912,7 +912,7 @@ export default {
     async exportlist() {
     async exportlist() {
       const { data } = await export1(
       const { data } = await export1(
         {
         {
-          compId: sessionStorage.getItem('ws-pf_compId'),
+          compId: localStorage.getItem('ws-pf_compId'),
           contractType: this.contractType,
           contractType: this.contractType,
           goodsType: this.goodsType,
           goodsType: this.goodsType,
           currentPage: this.currentPage,
           currentPage: this.currentPage,

+ 1 - 1
src/views/helpCenter/index.vue

@@ -104,7 +104,7 @@ export default {
   data () {
   data () {
     return {
     return {
       activeNames: [],
       activeNames: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       activeIndex: '',
       activeIndex: '',
       menuInfo: [],
       menuInfo: [],
       menuList: [],
       menuList: [],

+ 16 - 16
src/views/home/index.vue

@@ -116,7 +116,7 @@ export default {
         overdue: 0,
         overdue: 0,
         news: 0
         news: 0
       },
       },
-      vesselBankFlag: sessionStorage.getItem('ws-pf_vesselBankFlag'),
+      vesselBankFlag: localStorage.getItem('ws-pf_vesselBankFlag'),
       shezhiVal: '',
       shezhiVal: '',
       text:'数据',
       text:'数据',
       reader:null,
       reader:null,
@@ -245,24 +245,24 @@ export default {
         loginInfo: { loginFlag = 0 },
         loginInfo: { loginFlag = 0 },
         daysRemaining,
         daysRemaining,
         customerServiceStaffPhone
         customerServiceStaffPhone
-      } = JSON.parse(sessionStorage.getItem('ws_login_getTenantInfoByUser'))
+      } = JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser'))
       if (statusFlag * 1 === 3) {
       if (statusFlag * 1 === 3) {
         // 判断后台返回的是空 还是 0  是空还是 0 的时候请求后台接口 不懂啥意思 为啥要这么弄
         // 判断后台返回的是空 还是 0  是空还是 0 的时候请求后台接口 不懂啥意思 为啥要这么弄
-        if (!loginFlag && !sessionStorage.getItem('isShowTryUserDialog') * 1) {
-          let newId = JSON.parse(sessionStorage.getItem('ws_login_accountId'))
+        if (!loginFlag && !localStorage.getItem('isShowTryUserDialog') * 1) {
+          let newId = JSON.parse(localStorage.getItem('ws_login_accountId'))
           this.phone = customerServiceStaffPhone
           this.phone = customerServiceStaffPhone
           this.successfulDialog = true
           this.successfulDialog = true
-          sessionStorage.setItem('isShowTryUserDialog', '1')
+          localStorage.setItem('isShowTryUserDialog', '1')
           await getChangeLoginFlag({ accountId: newId }).toPromise()
           await getChangeLoginFlag({ accountId: newId }).toPromise()
         }
         }
       }
       }
       // 试用租户
       // 试用租户
       const dayDialog = [30, 15, 7, 5, 3, 2, 1, 0]
       const dayDialog = [30, 15, 7, 5, 3, 2, 1, 0]
-      if (statusFlag * 1 === 2 && dayDialog.indexOf(daysRemaining) > -1 && !sessionStorage.getItem('isShowTryUserDialog') * 1) {
+      if (statusFlag * 1 === 2 && dayDialog.indexOf(daysRemaining) > -1 && !localStorage.getItem('isShowTryUserDialog') * 1) {
         this.day = daysRemaining
         this.day = daysRemaining
         this.phone = customerServiceStaffPhone
         this.phone = customerServiceStaffPhone
         this.trialNotExpired = true
         this.trialNotExpired = true
-        sessionStorage.setItem('isShowTryUserDialog', '1')
+        localStorage.setItem('isShowTryUserDialog', '1')
       }
       }
     },
     },
     trialNotExpiredClose () {
     trialNotExpiredClose () {
@@ -330,7 +330,7 @@ export default {
       this.showBlockList = []
       this.showBlockList = []
       this.setFlag = true
       this.setFlag = true
       // getStaffHomeShowList({
       // getStaffHomeShowList({
-      //   staffId: sessionStorage.getItem('ws-pf_userId')
+      //   staffId: localStorage.getItem('ws-pf_userId')
       // }).toPromise().then(data => {
       // }).toPromise().then(data => {
       //   for (let i = 0; i < data.length; i++) {
       //   for (let i = 0; i < data.length; i++) {
       //     if (data[i].typeId === 'shipMap' && data[i].showFlag) {
       //     if (data[i].typeId === 'shipMap' && data[i].showFlag) {
@@ -363,14 +363,14 @@ export default {
     toHide (index) {
     toHide (index) {
       this.changeVesslBank([{
       this.changeVesslBank([{
         id: this.userSetting['shipMap'][0].id,
         id: this.userSetting['shipMap'][0].id,
-        staffId: sessionStorage.getItem('ws-pf_userId'),
+        staffId: localStorage.getItem('ws-pf_userId'),
         typeId: 'shipMap',
         typeId: 'shipMap',
         showFlag: false
         showFlag: false
       }])
       }])
     },
     },
     getRouteList () {
     getRouteList () {
       let data = {
       let data = {
-        accountId: sessionStorage.getItem('ws-pf_userId'),
+        accountId: localStorage.getItem('ws-pf_userId'),
         pageSize: 30
         pageSize: 30
       }
       }
       findHottestRouting(data).toPromise().then(res => {
       findHottestRouting(data).toPromise().then(res => {
@@ -385,8 +385,8 @@ export default {
       let data = {
       let data = {
         currentPage: 1,
         currentPage: 1,
         pageSize: 2,
         pageSize: 2,
-        loginUserId: sessionStorage.getItem('ws-pf_userId'),
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        loginUserId: localStorage.getItem('ws-pf_userId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         releaseFlag: 0
         releaseFlag: 0
       }
       }
       // queryHomePage(data).toPromise().then(resNewList => {
       // queryHomePage(data).toPromise().then(resNewList => {
@@ -413,10 +413,10 @@ export default {
     //     currentPage: 1,
     //     currentPage: 1,
     //     pageSize: pagesize || 3,
     //     pageSize: pagesize || 3,
     //     vesselDeptId:
     //     vesselDeptId:
-    //       sessionStorage.getItem('ws-pf_vesselBankFlag') === 'V'
-    //         ? sessionStorage.getItem('ws-pf_vesselId')
-    //         : sessionStorage.getItem('ws-pf_deptId'),
-    //     compId: sessionStorage.getItem('ws-pf_compId')
+    //       localStorage.getItem('ws-pf_vesselBankFlag') === 'V'
+    //         ? localStorage.getItem('ws-pf_vesselId')
+    //         : localStorage.getItem('ws-pf_deptId'),
+    //     compId: localStorage.getItem('ws-pf_compId')
     //   }
     //   }
     //   // TODO: 【此处有问题】接口变更的不对
     //   // TODO: 【此处有问题】接口变更的不对
     //   queryCircularManagementReceiveList(data)
     //   queryCircularManagementReceiveList(data)

+ 7 - 7
src/views/houseSelfCollect/acquisitionManagement.vue

@@ -137,9 +137,9 @@ export default {
   },
   },
   activated() {
   activated() {
     //获取公司id
     //获取公司id
-    this.compId = sessionStorage.getItem('ws-pf_compId')
+    this.compId = localStorage.getItem('ws-pf_compId')
     //用户名
     //用户名
-    this.accountName = sessionStorage.getItem('ws-pf_staffName')
+    this.accountName = localStorage.getItem('ws-pf_staffName')
     this.getWarehouseSelf()
     this.getWarehouseSelf()
     //获取用户权限,决策人、统计
     //获取用户权限,决策人、统计
     this.getUserJurisdiction()
     this.getUserJurisdiction()
@@ -169,7 +169,7 @@ export default {
     warehouseChange(e) {
     warehouseChange(e) {
       for (let i = 0; i < this.warehouseList.length; i++) {
       for (let i = 0; i < this.warehouseList.length; i++) {
         if (this.warehouseList[i].id == this.selectVal) {
         if (this.warehouseList[i].id == this.selectVal) {
-          sessionStorage.setItem(
+          localStorage.setItem(
             'houseSelfCollect_house',
             'houseSelfCollect_house',
             JSON.stringify(this.warehouseList[i])
             JSON.stringify(this.warehouseList[i])
           )
           )
@@ -229,7 +229,7 @@ export default {
           // if(this.userJurisdiction){
           // if(this.userJurisdiction){
           //   this.warehouseList.unshift({warehouseName:response[0].flag})
           //   this.warehouseList.unshift({warehouseName:response[0].flag})
           // }
           // }
-          let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
+          let _wareHouse = localStorage.getItem('houseSelfCollect_house')
           if (_wareHouse) {
           if (_wareHouse) {
             _wareHouse = JSON.parse(_wareHouse)
             _wareHouse = JSON.parse(_wareHouse)
             this.selectVal = _wareHouse.id
             this.selectVal = _wareHouse.id
@@ -283,14 +283,14 @@ export default {
       })
       })
         .toPromise()
         .toPromise()
         .then(response => {
         .then(response => {
-           let _data = sessionStorage.getItem('houseSelfCollect_house')
-           _data = JSON.parse(sessionStorage.getItem('houseSelfCollect_house'))
+           let _data = localStorage.getItem('houseSelfCollect_house')
+           _data = JSON.parse(localStorage.getItem('houseSelfCollect_house'))
            if(_data.allowEdit==0){
            if(_data.allowEdit==0){
              _data.allowEdit = 1
              _data.allowEdit = 1
            }else{
            }else{
              _data.allowEdit = 0
              _data.allowEdit = 0
            } 
            } 
-            sessionStorage.setItem('houseSelfCollect_house',JSON.stringify(_data))
+            localStorage.setItem('houseSelfCollect_house',JSON.stringify(_data))
             this.getWarehouseSelf()
             this.getWarehouseSelf()
           // this.tableData = response.records
           // this.tableData = response.records
         })
         })

+ 4 - 4
src/views/houseSelfCollect/customerManagement.vue

@@ -99,7 +99,7 @@
         this.customerDialogVisible = true
         this.customerDialogVisible = true
         if(!this.qrcode||this.qrcode == ""){
         if(!this.qrcode||this.qrcode == ""){
           getQRCode({
           getQRCode({
-            compId: sessionStorage.getItem('ws-pf_compId')
+            compId: localStorage.getItem('ws-pf_compId')
           })
           })
           .toPromise()
           .toPromise()
           .then((response) => {
           .then((response) => {
@@ -146,7 +146,7 @@
           })
           })
           .then(() => {
           .then(() => {
             getCustomerDelete({
             getCustomerDelete({
-                compId: sessionStorage.getItem('ws-pf_compId'),
+                compId: localStorage.getItem('ws-pf_compId'),
                 id: row.id,
                 id: row.id,
               })
               })
               .toPromise()
               .toPromise()
@@ -161,7 +161,7 @@
       },
       },
       getList() {
       getList() {
         getCustomerManage({
         getCustomerManage({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             currentPage: this.currentPage,
             currentPage: this.currentPage,
             pageSize: this.pageSize,
             pageSize: this.pageSize,
             searchKeyWord: this.searchKeyWord,
             searchKeyWord: this.searchKeyWord,
@@ -171,7 +171,7 @@
           .then((response) => {
           .then((response) => {
             this.customertList = response.records
             this.customertList = response.records
             for(let i=0;i<response.records.length;i++){
             for(let i=0;i<response.records.length;i++){
-              if(response.records[i].compId==sessionStorage.getItem('ws-pf_compId')){
+              if(response.records[i].compId==localStorage.getItem('ws-pf_compId')){
                 response.records[i].isEdit = true
                 response.records[i].isEdit = true
               }else{
               }else{
                  response.records[i].isEdit = false
                  response.records[i].isEdit = false

+ 1 - 1
src/views/houseSelfCollect/customerManagementAdd.vue

@@ -431,7 +431,7 @@
           })
           })
           .toPromise()
           .toPromise()
           .then((response) => {
           .then((response) => {
-            this.customerList.compId = sessionStorage.getItem('ws-pf_compId')
+            this.customerList.compId = localStorage.getItem('ws-pf_compId')
             this.customerList.cardAddressUrl = this.identity.toString()
             this.customerList.cardAddressUrl = this.identity.toString()
             this.customerList.payeeAddressUrl = this.bank.toString()
             this.customerList.payeeAddressUrl = this.bank.toString()
             this.customerList.customerTypeFlag = 1
             this.customerList.customerTypeFlag = 1

+ 10 - 10
src/views/houseSelfCollect/inspectInfo.vue

@@ -591,9 +591,9 @@
           return
           return
         }
         }
         this.inspect.warehouseName = this.warehouseName
         this.inspect.warehouseName = this.warehouseName
-        this.inspect.compId = sessionStorage.getItem('ws-pf_compId')
+        this.inspect.compId = localStorage.getItem('ws-pf_compId')
         if (this.types == 1) {
         if (this.types == 1) {
-          this.inspect.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
+          this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
           this.$confirm('确定保存质检信息?', '提示', {
           this.$confirm('确定保存质检信息?', '提示', {
               confirmButtonText: '确定',
               confirmButtonText: '确定',
               cancelButtonText: '取消',
               cancelButtonText: '取消',
@@ -623,7 +623,7 @@
               return false
               return false
             })
             })
         } else if (this.types == 3) {
         } else if (this.types == 3) {
-          this.inspect.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
+          this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
           this.inspect.flag=0
           this.inspect.flag=0
           this.$confirm('确定保存初检信息?', '提示', {
           this.$confirm('确定保存初检信息?', '提示', {
               confirmButtonText: '确定',
               confirmButtonText: '确定',
@@ -645,7 +645,7 @@
         }
         }
         else if (this.types == 4) {
         else if (this.types == 4) {
           this.inspect.flag=1
           this.inspect.flag=1
-          this.inspect.reInspector=sessionStorage.getItem('ws-pf_roleName') + sessionStorage.getItem('ws-pf_staffName')
+          this.inspect.reInspector=localStorage.getItem('ws-pf_roleName') + localStorage.getItem('ws-pf_staffName')
           this.$confirm('确定保存复检信息?', '提示', {
           this.$confirm('确定保存复检信息?', '提示', {
               confirmButtonText: '确定',
               confirmButtonText: '确定',
               cancelButtonText: '取消',
               cancelButtonText: '取消',
@@ -665,7 +665,7 @@
             })
             })
         }else if (this.types == 5) {
         }else if (this.types == 5) {
           this.inspect.flag=2
           this.inspect.flag=2
-          // this.inspect.reInspector=sessionStorage.getItem('ws-pf_roleName') + sessionStorage.getItem('ws-pf_staffName')
+          // this.inspect.reInspector=localStorage.getItem('ws-pf_roleName') + localStorage.getItem('ws-pf_staffName')
           this.$confirm('确定保存质检信息?', '提示', {
           this.$confirm('确定保存质检信息?', '提示', {
               confirmButtonText: '确定',
               confirmButtonText: '确定',
               cancelButtonText: '取消',
               cancelButtonText: '取消',
@@ -715,7 +715,7 @@
           // //查看当前用户对应货名有未结算状态的送货
           // //查看当前用户对应货名有未结算状态的送货
         let count = 0
         let count = 0
         getCount({
         getCount({
-          compId: sessionStorage.getItem('ws-pf_compId'),
+          compId: localStorage.getItem('ws-pf_compId'),
           customerName: this.inspect.customerName,
           customerName: this.inspect.customerName,
           goodsName: this.inspect.goodsName,
           goodsName: this.inspect.goodsName,
           customerNumberCard:this.inspect.customerNumberCard
           customerNumberCard:this.inspect.customerNumberCard
@@ -725,7 +725,7 @@
           })
           })
           //  客户下拉校验
           //  客户下拉校验
         getamount({
         getamount({
-          compId: sessionStorage.getItem('ws-pf_compId'),
+          compId: localStorage.getItem('ws-pf_compId'),
           customerName: this.inspect.customerName,
           customerName: this.inspect.customerName,
           goodsName: this.inspect.goodsName,
           goodsName: this.inspect.goodsName,
           customerNumberCard:this.inspect.customerNumberCard
           customerNumberCard:this.inspect.customerNumberCard
@@ -811,7 +811,7 @@
           this.inspect.customerName 
           this.inspect.customerName 
         ) {
         ) {
           getCount({
           getCount({
-          compId: sessionStorage.getItem('ws-pf_compId'),
+          compId: localStorage.getItem('ws-pf_compId'),
           customerName: this.inspect.customerName,
           customerName: this.inspect.customerName,
           goodsName: this.inspect.goodsName,
           goodsName: this.inspect.goodsName,
           customerNumberCard:this.inspect.customerNumberCard
           customerNumberCard:this.inspect.customerNumberCard
@@ -821,7 +821,7 @@
           })
           })
         //  货名下拉校验
         //  货名下拉校验
         getamount({
         getamount({
-          compId: sessionStorage.getItem('ws-pf_compId'),
+          compId: localStorage.getItem('ws-pf_compId'),
           customerName: this.inspect.customerName,
           customerName: this.inspect.customerName,
           goodsName: this.inspect.goodsName,
           goodsName: this.inspect.goodsName,
           customerNumberCard:this.inspect.customerNumberCard
           customerNumberCard:this.inspect.customerNumberCard
@@ -862,7 +862,7 @@
           })
           })
         //客户
         //客户
         getcustomer({
         getcustomer({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             authenticationStatusKey:7
             authenticationStatusKey:7
           })
           })
           .toPromise()
           .toPromise()

+ 4 - 4
src/views/houseSelfCollect/inspectionManagement.vue

@@ -215,7 +215,7 @@
 				}
 				}
 				for (let i = 0; i < this.warehouseList1.length; i++) {
 				for (let i = 0; i < this.warehouseList1.length; i++) {
 					if (this.warehouseList1[i].warehouseName == e) {
 					if (this.warehouseList1[i].warehouseName == e) {
-						sessionStorage.setItem('houseSelfCollect_house', JSON.stringify(this.warehouseList[i]))
+						localStorage.setItem('houseSelfCollect_house', JSON.stringify(this.warehouseList[i]))
 					}
 					}
 				}
 				}
 				this.getList()
 				this.getList()
@@ -259,13 +259,13 @@
 			},
 			},
 			selectWarehouse() {
 			selectWarehouse() {
 				selectWarehouseSelf({
 				selectWarehouseSelf({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 					})
 					})
 					.toPromise()
 					.toPromise()
 					.then((response) => {
 					.then((response) => {
 						this.warehouseList1 = response
 						this.warehouseList1 = response
 						this.warehouseList = []
 						this.warehouseList = []
-						let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
+						let _wareHouse = localStorage.getItem('houseSelfCollect_house')
 						_wareHouse = JSON.parse(_wareHouse)
 						_wareHouse = JSON.parse(_wareHouse)
 						if (_wareHouse) {
 						if (_wareHouse) {
 								this.cangid = _wareHouse.id
 								this.cangid = _wareHouse.id
@@ -308,7 +308,7 @@
 			},
 			},
 			getList() {
 			getList() {
 				getinspectList({
 				getinspectList({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 						currentPage: this.currentPage,
 						currentPage: this.currentPage,
 						pageSize: this.pageSize,
 						pageSize: this.pageSize,
 						searchKeyWord: (this.searchKeyWord).toUpperCase(),
 						searchKeyWord: (this.searchKeyWord).toUpperCase(),

+ 14 - 14
src/views/houseSelfCollect/paymentManagement.vue

@@ -707,10 +707,10 @@ import download from '../../components/WsDownload/download'
         }
         }
       },
       },
       getWarehouse() {
       getWarehouse() {
-        let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
+        let _wareHouse = localStorage.getItem('houseSelfCollect_house')
         _wareHouse = JSON.parse(_wareHouse)
         _wareHouse = JSON.parse(_wareHouse)
         selectWarehouseSelf({
         selectWarehouseSelf({
-            compId: sessionStorage.getItem('ws-pf_compId')
+            compId: localStorage.getItem('ws-pf_compId')
           })
           })
           .toPromise()
           .toPromise()
           .then(response => {
           .then(response => {
@@ -745,12 +745,12 @@ import download from '../../components/WsDownload/download'
         let _list1 = []
         let _list1 = []
         let _list2 = []
         let _list2 = []
         if (this.printType == 1) {
         if (this.printType == 1) {
-          sessionStorage.setItem('cwprint', true)
+          localStorage.setItem('cwprint', true)
           // 财务批量打印数据
           // 财务批量打印数据
-          sessionStorage.setItem('selectPrint_selectPrintList', JSON.stringify(this.selectPrintList))
-          sessionStorage.setItem('selectPrint_selectCustomerList', JSON.stringify(this.selectCustomerList))
+          localStorage.setItem('selectPrint_selectPrintList', JSON.stringify(this.selectPrintList))
+          localStorage.setItem('selectPrint_selectCustomerList', JSON.stringify(this.selectCustomerList))
         } else if (this.printType == 0) {
         } else if (this.printType == 0) {
-          sessionStorage.setItem('cwprint', true)
+          localStorage.setItem('cwprint', true)
           _list1 = JSON.stringify(this.printData)
           _list1 = JSON.stringify(this.printData)
           _list2 = JSON.stringify(this.customerList)
           _list2 = JSON.stringify(this.customerList)
         } else {
         } else {
@@ -786,7 +786,7 @@ import download from '../../components/WsDownload/download'
         searchType: searchParam,
         searchType: searchParam,
         warehouseName: this.warehouseName,
         warehouseName: this.warehouseName,
         managementType: 1,
         managementType: 1,
-        compId: sessionStorage.getItem('ws-pf_compId')
+        compId: localStorage.getItem('ws-pf_compId')
       })
       })
         .toPromise()
         .toPromise()
         .then(response => {
         .then(response => {
@@ -796,7 +796,7 @@ import download from '../../components/WsDownload/download'
       // getJurisdiction({
       // getJurisdiction({
       //   managementType: 1,
       //   managementType: 1,
       //   warehouseName: this.warehouseName,
       //   warehouseName: this.warehouseName,
-      //   compId: sessionStorage.getItem('ws-pf_compId')
+      //   compId: localStorage.getItem('ws-pf_compId')
       // })
       // })
       //   .toPromise()
       //   .toPromise()
       //   .then(response => {
       //   .then(response => {
@@ -835,7 +835,7 @@ import download from '../../components/WsDownload/download'
       },
       },
       settlement(index, row) {
       settlement(index, row) {
         if (row.goodsName) {
         if (row.goodsName) {
-          sessionStorage.setItem('paymentManagementReturn', false)
+          localStorage.setItem('paymentManagementReturn', false)
           this.$router.push({
           this.$router.push({
             path: 'settlement',
             path: 'settlement',
             query: {
             query: {
@@ -892,7 +892,7 @@ import download from '../../components/WsDownload/download'
           return
           return
         }
         }
         this.payments.paymentScreenshot = this.imageUrl
         this.payments.paymentScreenshot = this.imageUrl
-        this.payments.cashier = sessionStorage.getItem('ws-pf_staffName')
+        this.payments.cashier = localStorage.getItem('ws-pf_staffName')
         this.payments.paymentManagementList = this.modification
         this.payments.paymentManagementList = this.modification
         this.$confirm('确定提交付款信息?', '提示', {
         this.$confirm('确定提交付款信息?', '提示', {
             confirmButtonText: '确定',
             confirmButtonText: '确定',
@@ -937,7 +937,7 @@ import download from '../../components/WsDownload/download'
         if (index < this.modification.length) {
         if (index < this.modification.length) {
           if (status == true && item.status == '已驳回') {
           if (status == true && item.status == '已驳回') {
             auditpayment({
             auditpayment({
-                compId: sessionStorage.getItem('ws-pf_compId'),
+                compId: localStorage.getItem('ws-pf_compId'),
                 id: item.id
                 id: item.id
               })
               })
               .toPromise()
               .toPromise()
@@ -1003,11 +1003,11 @@ import download from '../../components/WsDownload/download'
         this.printType = 0
         this.printType = 0
         this.isShowPrintType = true
         this.isShowPrintType = true
         this.rowData = row
         this.rowData = row
-        sessionStorage.setItem('cwprint', true)
+        localStorage.setItem('cwprint', true)
       },
       },
       print(row) {
       print(row) {
         this.printType = 2
         this.printType = 2
-        sessionStorage.setItem('cwprint', false)
+        localStorage.setItem('cwprint', false)
         getpaymentexamine({
         getpaymentexamine({
             id: row.id
             id: row.id
           })
           })
@@ -1067,7 +1067,7 @@ import download from '../../components/WsDownload/download'
         for (let i = 0; i < this.warehouseList.length; i++) {
         for (let i = 0; i < this.warehouseList.length; i++) {
           if (this.warehouseList[i].id == this.warehouseNameKey) {
           if (this.warehouseList[i].id == this.warehouseNameKey) {
             this.warehouseName = this.warehouseList[i].warehouseName
             this.warehouseName = this.warehouseList[i].warehouseName
-            sessionStorage.setItem(
+            localStorage.setItem(
               'houseSelfCollect_house',
               'houseSelfCollect_house',
               JSON.stringify(this.warehouseList[i])
               JSON.stringify(this.warehouseList[i])
             )
             )

+ 3 - 3
src/views/houseSelfCollect/settlement.vue

@@ -739,7 +739,7 @@ export default {
 
 
       this.paymentList.id=this.$route.query.id 
       this.paymentList.id=this.$route.query.id 
       this.paymentList.amountIngPayable = this.paymentList.actualPayment
       this.paymentList.amountIngPayable = this.paymentList.actualPayment
-      this.paymentList.settlementClerk =  sessionStorage.getItem('ws-pf_staffName')
+      this.paymentList.settlementClerk =  localStorage.getItem('ws-pf_staffName')
       postpaymentedit(this.paymentList).toPromise().then((response) => {
       postpaymentedit(this.paymentList).toPromise().then((response) => {
          getpaymentexamine({id:this.$route.query.id}).toPromise().then((response) => {
          getpaymentexamine({id:this.$route.query.id}).toPromise().then((response) => {
              this.printData= response
              this.printData= response
@@ -769,12 +769,12 @@ export default {
     cancel() {
     cancel() {
       this.isShowPrint = false
       this.isShowPrint = false
       this.paymentList = [] 
       this.paymentList = [] 
-      sessionStorage.setItem('paymentManagementReturn', true)
+      localStorage.setItem('paymentManagementReturn', true)
       this.$router.push({ path: 'paymentManagement' })
       this.$router.push({ path: 'paymentManagement' })
     },
     },
     closePrint(){
     closePrint(){
         this.isShowPrint = false
         this.isShowPrint = false
-         sessionStorage.setItem('paymentManagementReturn', true)
+         localStorage.setItem('paymentManagementReturn', true)
         this.$router.push({path:'paymentManagement'})
         this.$router.push({path:'paymentManagement'})
       },
       },
   },
   },

+ 7 - 7
src/views/houseSelfCollect/weighingManagement.vue

@@ -190,7 +190,7 @@
       },
       },
       printBig(type, radioType) {
       printBig(type, radioType) {
         if (type == 1) {
         if (type == 1) {
-          sessionStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.jjSelectPrintList))
+          localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.jjSelectPrintList))
           window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType)
           window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType)
         } else {
         } else {
 
 
@@ -246,8 +246,8 @@
             this.common.name = this.warehouseList[i].value
             this.common.name = this.warehouseList[i].value
             this.monitorUrl1 = this.warehouseList[i].monitorUrl1
             this.monitorUrl1 = this.warehouseList[i].monitorUrl1
             this.monitorUrl2 = this.warehouseList[i].monitorUrl2
             this.monitorUrl2 = this.warehouseList[i].monitorUrl2
-            sessionStorage.setItem('ck', e)
-            sessionStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
+            localStorage.setItem('ck', e)
+            localStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
           }
           }
         }
         }
         this.getList()
         this.getList()
@@ -292,10 +292,10 @@
         this.getList()
         this.getList()
       },
       },
       selectWarehouse() {
       selectWarehouse() {
-        let _wareHouse = sessionStorage.getItem('houseSelfCollect_house1')
+        let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
         _wareHouse = JSON.parse(_wareHouse)
         _wareHouse = JSON.parse(_wareHouse)
         selectWarehouseSelf({
         selectWarehouseSelf({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
           })
           })
           .toPromise()
           .toPromise()
           .then((response) => {
           .then((response) => {
@@ -343,14 +343,14 @@
                 }
                 }
               }
               }
             }
             }
-            sessionStorage.setItem('ck', this.common.name)
+            localStorage.setItem('ck', this.common.name)
             console.log(this.warehouseList)
             console.log(this.warehouseList)
             this.getList()
             this.getList()
           })
           })
       },
       },
       getList() {
       getList() {
         getweighingList({
         getweighingList({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             currentPage: this.currentPage,
             currentPage: this.currentPage,
             pageSize: this.pageSize,
             pageSize: this.pageSize,
             searchKeyWord: this.searchKeyWord,
             searchKeyWord: this.searchKeyWord,

+ 5 - 5
src/views/houseSelfCollect/weightCheck.vue

@@ -286,11 +286,11 @@
             this.purchasePriceList = response
             this.purchasePriceList = response
           })
           })
         getweighingList({
         getweighingList({
-            compId: sessionStorage.getItem('ws-pf_compId'),
+            compId: localStorage.getItem('ws-pf_compId'),
             currentPage: this.currentPage,
             currentPage: this.currentPage,
             pageSize: this.pageSize,
             pageSize: this.pageSize,
             searchKeyWord: '',
             searchKeyWord: '',
-            warehouseName: sessionStorage.getItem('ck'),
+            warehouseName: localStorage.getItem('ck'),
             managementType: 1,
             managementType: 1,
             // viewFlag:'1'
             // viewFlag:'1'
           })
           })
@@ -666,7 +666,7 @@
             if (this.tpyeNo == 1) {
             if (this.tpyeNo == 1) {
               //毛检保存前进行校验
               //毛检保存前进行校验
               getamount({
               getamount({
-                  compId: sessionStorage.getItem('ws-pf_compId'),
+                  compId: localStorage.getItem('ws-pf_compId'),
                   customerName: this.weighingList.customer,
                   customerName: this.weighingList.customer,
                   goodsName: this.weighingList.goodsName,
                   goodsName: this.weighingList.goodsName,
                 })
                 })
@@ -702,7 +702,7 @@
                       } else {
                       } else {
                         //累计售粮没有超上限完成毛检保存
                         //累计售粮没有超上限完成毛检保存
                         this.weighingList.relationId = this.relationId;
                         this.weighingList.relationId = this.relationId;
-                        this.weighingList.secretaryWeigher = sessionStorage.getItem('ws-pf_staffName'),
+                        this.weighingList.secretaryWeigher = localStorage.getItem('ws-pf_staffName'),
                           grossWeight(this.weighingList)
                           grossWeight(this.weighingList)
                           .toPromise()
                           .toPromise()
                           .then((response) => {
                           .then((response) => {
@@ -728,7 +728,7 @@
               // this.weighingList.netWeight/=1000
               // this.weighingList.netWeight/=1000
               this.weighingList.warehouseId = this.warehouseId;
               this.weighingList.warehouseId = this.warehouseId;
               (this.weighingList.skinInspector =
               (this.weighingList.skinInspector =
-                sessionStorage.getItem('ws-pf_staffName')),
+                localStorage.getItem('ws-pf_staffName')),
               tare(this.weighingList)
               tare(this.weighingList)
                 .toPromise()
                 .toPromise()
                 .then((response) => {
                 .then((response) => {

+ 8 - 8
src/views/login/index.vue

@@ -530,7 +530,7 @@
         Cookies.get('ws_login_pwd') :
         Cookies.get('ws_login_pwd') :
         ''
         ''
       this.rememberMe = Cookies.get('ws_login_rememberMe') === '1'
       this.rememberMe = Cookies.get('ws_login_rememberMe') === '1'
-      sessionStorage.setItem('ws_login_type', 2)
+      localStorage.setItem('ws_login_type', 2)
       const arr = JSON.parse(JSON.stringify(zhJs))
       const arr = JSON.parse(JSON.stringify(zhJs))
       this.loop(arr, null)
       this.loop(arr, null)
       if (this.loginForm.username === '') {
       if (this.loginForm.username === '') {
@@ -821,7 +821,7 @@
         this.$refs.loginForm.validate(async (valid) => {
         this.$refs.loginForm.validate(async (valid) => {
           if (valid) {
           if (valid) {
             const res = await this.login(this.loginForm)
             const res = await this.login(this.loginForm)
-            sessionStorage.setItem('ws_login_type', 2)
+            localStorage.setItem('ws_login_type', 2)
             Cookies.set('ws_login_companyShortName', this.loginForm.companyName, {
             Cookies.set('ws_login_companyShortName', this.loginForm.companyName, {
               expires: 365,
               expires: 365,
             })
             })
@@ -850,14 +850,14 @@
               this.$router.push('/')
               this.$router.push('/')
             }
             }
             const data = await this.getTenantUser()
             const data = await this.getTenantUser()
-            sessionStorage.setItem(
+            localStorage.setItem(
               'ws_login_getTenantInfoByUser',
               'ws_login_getTenantInfoByUser',
               JSON.stringify({
               JSON.stringify({
                 ...data,
                 ...data,
                 loginInfo: res
                 loginInfo: res
               })
               })
             )
             )
-            sessionStorage.setItem(
+            localStorage.setItem(
               'ws_login_accountId',
               'ws_login_accountId',
               JSON.stringify(res.accountId)
               JSON.stringify(res.accountId)
             )
             )
@@ -882,7 +882,7 @@
             this.zhArray.push(obj)
             this.zhArray.push(obj)
           }
           }
         }
         }
-        sessionStorage.setItem(
+        localStorage.setItem(
           'InterNational_zh_array',
           'InterNational_zh_array',
           JSON.stringify(this.zhArray)
           JSON.stringify(this.zhArray)
         )
         )
@@ -892,7 +892,7 @@
         this.$refs['loginForm2'].validate(async (valid) => {
         this.$refs['loginForm2'].validate(async (valid) => {
           if (valid) {
           if (valid) {
             const res = await this.fastLogin(this.queryLoginForm)
             const res = await this.fastLogin(this.queryLoginForm)
-            sessionStorage.setItem('ws_login_type', 2)
+            localStorage.setItem('ws_login_type', 2)
             const redirect = this.$route.query.redirect
             const redirect = this.$route.query.redirect
             if (redirect) {
             if (redirect) {
               this.$router.push(redirect)
               this.$router.push(redirect)
@@ -902,14 +902,14 @@
             const {
             const {
               data
               data
             } = await this.getTenantUser()
             } = await this.getTenantUser()
-            sessionStorage.setItem(
+            localStorage.setItem(
               'ws_login_getTenantInfoByUser',
               'ws_login_getTenantInfoByUser',
               JSON.stringify({
               JSON.stringify({
                 ...data,
                 ...data,
                 loginInfo: res
                 loginInfo: res
               })
               })
             )
             )
-            sessionStorage.setItem(
+            localStorage.setItem(
               'ws_login_accountId',
               'ws_login_accountId',
               JSON.stringify(res.accountId)
               JSON.stringify(res.accountId)
             )
             )

+ 2 - 2
src/views/login/index_ship.vue

@@ -246,7 +246,7 @@ export default {
             .then(async res => {
             .then(async res => {
               let userPas =
               let userPas =
                 this.loginForm.username.trim() + ',' + this.loginForm.password
                 this.loginForm.username.trim() + ',' + this.loginForm.password
-              sessionStorage.setItem('ws-pf_token', this.b64Encode(userPas))
+              localStorage.setItem('ws-pf_token', this.b64Encode(userPas))
               Cookies.set('ws_login_account', this.loginForm.username, { expires: 365 })
               Cookies.set('ws_login_account', this.loginForm.username, { expires: 365 })
               if (this.rememberMe) {
               if (this.rememberMe) {
                 Cookies.set('ws_login_pwd', this.loginForm.password, { expires: 365 })
                 Cookies.set('ws_login_pwd', this.loginForm.password, { expires: 365 })
@@ -284,7 +284,7 @@ export default {
           this.zhArray.push(obj)
           this.zhArray.push(obj)
         }
         }
       }
       }
-      sessionStorage.setItem(
+      localStorage.setItem(
         'InterNational_zh_array',
         'InterNational_zh_array',
         JSON.stringify(this.zhArray)
         JSON.stringify(this.zhArray)
       )
       )

+ 3 - 3
src/views/outboundManagement/collectionManagement.vue

@@ -303,7 +303,7 @@ export default {
       contractNo: '全部合同',
       contractNo: '全部合同',
       dialogVisible: false,
       dialogVisible: false,
       form: {},
       form: {},
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       collectForm: false,
       collectForm: false,
       collectForm1: false,
       collectForm1: false,
       managementType : 3,
       managementType : 3,
@@ -417,7 +417,7 @@ export default {
       type: index, 
       type: index, 
       id: row.id ,
       id: row.id ,
       relationId :row.relationId,
       relationId :row.relationId,
-      compId: sessionStorage.getItem('ws-pf_compId')} })
+      compId: localStorage.getItem('ws-pf_compId')} })
       // this.$router.push({ path: 'settlement', query: { type: index,id: row.id,waterMin:data1.waterMin} })
       // this.$router.push({ path: 'settlement', query: { type: index,id: row.id,waterMin:data1.waterMin} })
     },
     },
     collect() {
     collect() {
@@ -547,7 +547,7 @@ export default {
            this.deptBudgetTotal = response.total
            this.deptBudgetTotal = response.total
         })
         })
       contractList({
       contractList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
       })
       })

+ 2 - 2
src/views/outboundManagement/collectionment.vue

@@ -168,7 +168,7 @@ export default {
         },
         },
       disabled:false,
       disabled:false,
       types:'',
       types:'',
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       information:'结算',
       information:'结算',
     }
     }
   },
   },
@@ -188,7 +188,7 @@ export default {
       getcollectionexamine({
       getcollectionexamine({
         id:this.$route.query.id,
         id:this.$route.query.id,
         relationId: this.$route.query.relationId,
         relationId: this.$route.query.relationId,
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       })     
       })     
       .toPromise()
       .toPromise()
       .then((response) => {
       .then((response) => {

+ 2 - 2
src/views/outboundManagement/qualityInspection.vue

@@ -223,8 +223,8 @@ export default {
     print() {
     print() {
       this.inspect.warehouseName = this.warehouseName
       this.inspect.warehouseName = this.warehouseName
       this.inspect.id = this.$route.query.id
       this.inspect.id = this.$route.query.id
-      this.inspect.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
-      this.inspect.compId = sessionStorage.getItem('ws-pf_compId')
+      this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
+      this.inspect.compId = localStorage.getItem('ws-pf_compId')
               if (!this.inspect.grade) {
               if (!this.inspect.grade) {
           this.$message({
           this.$message({
             message: '等级不能为空',
             message: '等级不能为空',

+ 2 - 2
src/views/outboundManagement/qualityInspectionManagement.vue

@@ -147,7 +147,7 @@ export default {
     },
     },
   selectWarehouse(){
   selectWarehouse(){
     selectWarehouseSelf({
     selectWarehouseSelf({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
       })
       })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
@@ -165,7 +165,7 @@ export default {
     },
     },
     getList() {
     getList() {
       getinspectList({
       getinspectList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchKeyWord: this.searchKeyWord,
         searchKeyWord: this.searchKeyWord,

+ 4 - 4
src/views/outboundManagement/weighing.vue

@@ -102,7 +102,7 @@
 					storageNumber: '',
 					storageNumber: '',
 					addressUrl: '',
 					addressUrl: '',
 					buckleMiscellaneous: 0,
 					buckleMiscellaneous: 0,
-					compId: sessionStorage.getItem('ws-pf_compId'),
+					compId: localStorage.getItem('ws-pf_compId'),
 					grossWeight:'',
 					grossWeight:'',
 					tare:''
 					tare:''
 				},
 				},
@@ -132,7 +132,7 @@
 				],
 				],
 				relationId: '',
 				relationId: '',
 				warehouseId: '', //仓库id
 				warehouseId: '', //仓库id
-				compId: sessionStorage.getItem('ws-pf_compId'),
+				compId: localStorage.getItem('ws-pf_compId'),
 				size: 10,
 				size: 10,
 				reader:null,
 				reader:null,
 				param:9600
 				param:9600
@@ -331,7 +331,7 @@
 					})
 					})
 				//合同编号
 				//合同编号
 				contractListWeighing({
 				contractListWeighing({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 						flag: 5
 						flag: 5
 					})
 					})
 					.toPromise()
 					.toPromise()
@@ -450,7 +450,7 @@
 					}
 					}
 				}
 				}
 				this.weighingList.warehouseName = this.warehouseName
 				this.weighingList.warehouseName = this.warehouseName
-				this.weighingList.secretaryWeigher = sessionStorage.getItem('ws-pf_staffName')
+				this.weighingList.secretaryWeigher = localStorage.getItem('ws-pf_staffName')
 				this.$confirm('确定保存检斤信息?', '提示', {
 				this.$confirm('确定保存检斤信息?', '提示', {
 						confirmButtonText: '确定',
 						confirmButtonText: '确定',
 						cancelButtonText: '取消',
 						cancelButtonText: '取消',

+ 3 - 3
src/views/outboundManagement/weighingManagement.vue

@@ -110,7 +110,7 @@
 				accessoryTFs: false,
 				accessoryTFs: false,
 				appendixIdss: [],
 				appendixIdss: [],
 				addressUrls: [],
 				addressUrls: [],
-				compId: sessionStorage.getItem('ws-pf_compId'),
+				compId: localStorage.getItem('ws-pf_compId'),
 			}
 			}
 		},
 		},
 		activated() {
 		activated() {
@@ -192,7 +192,7 @@
 			},
 			},
 			selectWarehouse() {
 			selectWarehouse() {
 				selectWarehouseSelf({
 				selectWarehouseSelf({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 					})
 					})
 					.toPromise()
 					.toPromise()
 					.then((response) => {
 					.then((response) => {
@@ -210,7 +210,7 @@
 			},
 			},
 			getList() {
 			getList() {
 				getweighingList({
 				getweighingList({
-						compId: sessionStorage.getItem('ws-pf_compId'),
+						compId: localStorage.getItem('ws-pf_compId'),
 						currentPage: this.currentPage,
 						currentPage: this.currentPage,
 						pageSize: this.pageSize,
 						pageSize: this.pageSize,
 						searchKeyWord: this.searchKeyWord,
 						searchKeyWord: this.searchKeyWord,

+ 2 - 2
src/views/platformaudit/driverreview.vue

@@ -349,7 +349,7 @@ export default {
       submitType: true,
       submitType: true,
       size: 10,
       size: 10,
       spanArr: [],
       spanArr: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       date: {
       date: {
         year: dayjs().format('YYYY'),
         year: dayjs().format('YYYY'),
@@ -525,7 +525,7 @@ export default {
     },
     },
     getList() {
     getList() {
       driverList({
       driverList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchType: this.searchType,
         searchType: this.searchType,

+ 1 - 1
src/views/platformaudit/grainPulseDynamic.vue

@@ -203,7 +203,7 @@ export default {
       size: 10,
       size: 10,
       spanArr: [],
       spanArr: [],
       searchType: 1,
       searchType: 1,
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       dynamicsList: [],
       dynamicsList: [],
       pcFlag: 1,
       pcFlag: 1,

+ 2 - 2
src/views/platformaudit/grainmerchantreview.vue

@@ -346,7 +346,7 @@ export default {
       submitType: true,
       submitType: true,
       size: 10,
       size: 10,
       spanArr: [],
       spanArr: [],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       date: {
       date: {
         year: dayjs().format('YYYY'),
         year: dayjs().format('YYYY'),
@@ -493,7 +493,7 @@ export default {
     },
     },
     getList() {
     getList() {
       grainMerchantsList({
       grainMerchantsList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchType: this.searchType,
         searchType: this.searchType,

+ 2 - 2
src/views/platformaudit/grainpulseenterprisereview.vue

@@ -409,7 +409,7 @@ export default {
       srcList: [
       srcList: [
           
           
         ],
         ],
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       grainList: [],
       grainList: [],
       searchTypeList: [
       searchTypeList: [
@@ -495,7 +495,7 @@ export default {
     //列表
     //列表
     getList() {
     getList() {
       settledList({
       settledList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         searchType: this.searchType,
         searchType: this.searchType,
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,

+ 2 - 2
src/views/platformaudit/saletransactioninformationreview.vue

@@ -185,7 +185,7 @@ export default {
       searchType: 1,
       searchType: 1,
       startDate: null,
       startDate: null,
       endDate: null,
       endDate: null,
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       tranManagementList: [],
       tranManagementList: [],
       deptBudgetList: {},
       deptBudgetList: {},
@@ -343,7 +343,7 @@ export default {
     //销售列表
     //销售列表
     getList() {
     getList() {
       saleList ({
       saleList ({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         searchType: this.searchType,
         searchType: this.searchType,
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,

+ 2 - 2
src/views/platformaudit/transactioninformationreview.vue

@@ -186,7 +186,7 @@ export default {
       searchType: 1,
       searchType: 1,
       startDate: null,
       startDate: null,
       endDate: null,
       endDate: null,
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       tranManagementList: [],
       tranManagementList: [],
       deptBudgetList: {},
       deptBudgetList: {},
@@ -395,7 +395,7 @@ export default {
     //采购列表
     //采购列表
     getList() {
     getList() {
       transactionInformationList({
       transactionInformationList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
+        compId: localStorage.getItem('ws-pf_compId'),
         searchType: this.searchType,
         searchType: this.searchType,
         currentPage: this.currentPage,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         pageSize: this.pageSize,

+ 2 - 2
src/views/purchasingManagement/procurementPlanAdd.vue

@@ -376,7 +376,7 @@ export default {
       },
       },
       outputYear: [],
       outputYear: [],
       size: 10,
       size: 10,
-      compId: sessionStorage.getItem('ws-pf_compId'),
+      compId: localStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       deptCircularPage: {},
       packtypeList: {},
       packtypeList: {},
       date: {
       date: {
@@ -867,7 +867,7 @@ return Num
               // this.dataList.contractType = 1
               // this.dataList.contractType = 1
               // this.dataList.goodsType = 1
               // this.dataList.goodsType = 1
               this.dataList.pcFlag = 1
               this.dataList.pcFlag = 1
-              this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
+              this.dataList.compId = localStorage.getItem('ws-pf_compId')
               console.log(this.dataList,'查看添加对象')
               console.log(this.dataList,'查看添加对象')
               procurementAdd(this.dataList)
               procurementAdd(this.dataList)
                 .toPromise()
                 .toPromise()

Some files were not shown because too many files changed in this diff