Browse Source

Merge branch 'master' of https://gogs.zfire.top/linwenxin/jsm-mall-front into 中差评申诉

linwenxin 4 months ago
parent
commit
c710a25d6f
1 changed files with 9 additions and 8 deletions
  1. 9 8
      src/views/mallManagement/settleManagElecpay/index.vue

+ 9 - 8
src/views/mallManagement/settleManagElecpay/index.vue

@@ -342,12 +342,7 @@ export default {
       return this.operationBtn({
         details: {
           click: ({ row, index, column }) => {
-            settlementOrderNewDetail({
-              id: row.settlementOrderId
-            }).then(res => {
-              this.formData = res.data
-              this.openForm()
-            })
+            this.openForm(row)
           }
         },
         settle: {
@@ -392,7 +387,7 @@ export default {
         cb && cb()
       })
     },
-    openForm() {
+    openForm(row) {
       this.$refs.tabPage.addTab({
         // 对应显示的模块
         activeKey: 'details',
@@ -401,7 +396,13 @@ export default {
         // 页签名称
         label: '详情',
         // 打开时事件
-        triggerEvent: () => {},
+        triggerEvent: () => {
+          settlementOrderNewDetail({
+            id: row.settlementOrderId
+          }).then(res => {
+            this.formData = res.data
+          })
+        },
         // 关闭时事件
         closeEvent: () => {
           this.$data.formData = this.$options.data().formData