浏览代码

no message

aXin-0810 9 月之前
父节点
当前提交
3bf88ed689

+ 8 - 13
src/views/auxiliaryFittings/salesManagement/attachmentSalesOrder/index.vue

@@ -89,10 +89,16 @@ export default {
       formDialogTitles: ['新增', '编辑', '详情'],
       formDialog: false,
       id: '',
-      flag: this?.$route?.params?.pageCode || '',
+      flag: !!~['SAVE', 'SUBMIT', 'PAY_NOT_TAKE', 'PAY_TAKE', 'CANCEL'].indexOf(this?.$route?.params?.pageCode)
+        ? this?.$route?.params?.pageCode
+        : '',
+      orderEnginBaseId: !~['SAVE', 'SUBMIT', 'PAY_NOT_TAKE', 'PAY_TAKE', 'CANCEL'].indexOf(
+        this?.$route?.params?.pageCode
+      )
+        ? this?.$route?.params?.pageCode
+        : '',
       websitList: [],
       isShowTab: true,
-      orderEnginBaseId: '',
       payQrcode: JSON.parse(localStorage.getItem('greemall_user')).payQrcode,
       billTitle: JSON.parse(localStorage.getItem('greemall_user')).billTitle, //打印名称
       showImportResult: false,
@@ -157,17 +163,6 @@ export default {
       this.formDialogType = 2
       this.openForm()
     }
-    if (this.pageCode) {
-      this.orderEnginBaseId = this.pageCode
-    }
-  },
-  watch: {
-    flag() {
-      this.isShowTab = false
-      this.$nextTick(() => {
-        this.isShowTab = true
-      })
-    }
   },
   methods: {
     // 切换状态

+ 8 - 4
src/views/auxiliaryFittings/salesManagement/auxiliarySalesReturnOrder/index.vue

@@ -66,8 +66,12 @@ export default {
       formDialog: false,
       id: '',
       isShowTab: true,
-      retState: this?.$route?.params?.pageName == '审核通过数量' ? this?.$route?.params?.pageCode : '',
-      orderEnginBaseId: this?.$route?.params?.pageName != '审核通过数量' ? this?.$route?.params?.pageCode : ''
+      retState: !!~['SAVE', 'SUBMIT', 'WAIT', 'OK'].indexOf(this?.$route?.params?.pageCode)
+        ? this?.$route?.params?.pageCode
+        : '',
+      orderEnginBaseId: !~['SAVE', 'SUBMIT', 'WAIT', 'OK'].indexOf(this?.$route?.params?.pageCode)
+        ? this?.$route?.params?.pageCode
+        : ''
     }
   },
   computed: {
@@ -92,12 +96,12 @@ export default {
   methods: {
     // 切换状态
     changeType(val) {
-      this.$refs.pageRef.refreshList()
+      this.$refs?.pageRef?.refreshList()
     },
     backList() {
       this.id = ''
       this.formDialog = false
-      this.$refs.pageRef.refreshList()
+      this.$refs?.pageRef?.refreshList()
     },
     // 列表请求函数
     getList(p, cb) {