Browse Source

订单管理审核调整

qymljy 2 months ago
parent
commit
15b228292f

+ 8 - 3
src/HDrpManagement/orderManage/details/index.vue

@@ -12,6 +12,7 @@
         tags=""
         :statusCheck="[{key:'status',value:'审核'},{key:'status',value:'提交'},{key:'status',value:'关闭'}]"
         :tabs="['订单明细','基本信息','订单进度','居间费明细','发货单','物流单','发票记录','收支明细','核销记录','erp对接记录','变更记录']"
+        @onTabClick="onTabClick"
         @pageChange="pageChange"
         @onEditSuccess="queryMainData($route.query.id)">
         <div slot="customOperation"  v-if="Object.keys(mainData).length > 0">
@@ -177,7 +178,8 @@ export default {
       checked:0,
       typeNew:'',
       fullscreenLoading:false,
-      siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
+      siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid,
+      tabNow:'tab0'
     }
   },
   provide () {
@@ -550,6 +552,10 @@ export default {
         })
       })
     },
+    onTabClick(val){
+      console.log(val,'tabs当前')
+      this.tabNow = val
+    },
     // 提交审核订单
     onSubmit (type) {
       if (type == '提交' && (this.siteid == 'HY' || this.siteid == 'YOSTEST1')){
@@ -561,7 +567,7 @@ export default {
           cancelButtonText: this.$t('取消'),
           type: 'warning'
         }).then(async () => {
-          if (this.$refs.prod.time == null){
+          if (this.tabNow != 'tab0' || this.$refs.prod.time == null){
             const res = await this.$api.requested({
               "id": type === '审核'?20221108153502:20221108153402,
               "content": {
@@ -576,7 +582,6 @@ export default {
               this.queryMainData()
             })
           }else {
-            this.queryMainData()
             this.typeNew = type
           }
         }).catch((err) => {

+ 2 - 2
src/components/normal-basic-layout/details/index.vue

@@ -416,8 +416,8 @@ export default {
         return false
       }
     },
-    onTabClick () {
-      this.$emit('onTabClick')
+    onTabClick (val) {
+      this.$emit('onTabClick',val)
     },
     onCollapse () {
       this.collapse?this.collapse = false:this.collapse = true

+ 1 - 1
src/components/normal-basic-layout/details/modules/tabs/tab.vue

@@ -66,7 +66,7 @@ export default {
     },
     handleClick(){
       console.log(this.activeName)
-      this.$emit('onTabClick')
+      this.$emit('onTabClick',this.activeName)
     },
     newFollow(){
       this.$emit('newFollow')