zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<template>
    <el-dialog title="详情"
        width="80%"
        ref="dialog"
        id="pedetail"
        @close="close"
        :visible.sync="dialogVisible">
        <div slot="title"
            class="header">详情</div>
        <ul class="pedetail_Summary">
            <li>
                <span>银行名称</span>
                <span>{{infoData.bankName}}</span>
            </li>
            <li>
                <span>银行账户</span>
                <span>{{infoData.acctNo}}</span>
            </li>
            <li>
                <span>备注</span>
                <span>{{infoData.remark}}</span>
            </li>
        </ul>
        <div class="pedetail-title clearfix">
            <h5>交易汇总详情</h5>
            <el-table :data="tableData.acctTransDetails"
                v-loading="loading"
                class="table">
                <el-table-column prop="transTime"
                    align="center"
                    min-width="80"
                    label="交易时间">
                </el-table-column>
                <el-table-column prop="income"
                    align="center"
                    min-width="120"
                    label="收入">
                </el-table-column>
                <el-table-column prop="payeeAcctname"
                    align="center"
                    min-width="150"
                    label="对方户名">
                </el-table-column>
                <el-table-column prop="payeeAcctno"
                    align="center"
                    min-width="150"
                    label="对方账号">
                </el-table-column>
                <el-table-column prop="summary"
                    align="center"
                    min-width="100"
                    label="摘要">
                </el-table-column>
                <el-table-column prop="remark"
                    align="center"
                    min-width="100"
                    label="备注">
                </el-table-column>
                <el-table-column prop="orderNo"
                    align="center"
                    min-width="120"
                    label="回单编号">
                </el-table-column>
                <el-table-column prop="reqNo"
                    align="center"
                    min-width="120"
                    label="网银流水">
                </el-table-column>
                <el-table-column align="center"
                    min-width="80"
                    fixed="right"
                    label="操作"
                    v-if="infoData.uploadStatus !== '1'"
                    >
                    <template slot-scope="scope">
                        <el-button size="mini"
                            type="danger"
                            @click="handleDelete(scope.$index, scope.row)">删除</el-button>
                    </template>
                </el-table-column>
            </el-table>
            <el-pagination @current-change="handleCurrentChange"
                :current-page.sync="asyncValue.page"
                :page-size="10"
                class="paging"
                background
                layout="total,prev, pager, next, jumper"
                :total="tableData.totalSize">
            </el-pagination>
        </div>
    </el-dialog>
</template>
 
<script>
import { PipelinDetail, PipelinDetele,detailDelete } from "@/assets/api/api";
 
export default {
  name: "peDetail",
 
  props: {
    value: {
      type: String,
      default: ""
    },
    batchNo: {
      type: String
    },
    infoData: {
      type: Object,
      default() {
        return {};
      }
    }
  },
 
  watch: {
    value: function(n) {
      this.dialogVisible = this.value === "detail" ? true : false;
      if (this.dialogVisible) {
        this.asyncValue.batchNo = this.infoData.batchNo;
        this.getData();
      }
    }
  },
 
  data() {
    return {
      dialogVisible: false,
      loading: false,
      tableData: {
        acctTransDetails: [],
        totalSize: 1
      },
      asyncValue: {
        page: 1,
        pageSize: 6,
        batchNo: null
      }
    };
  },
 
  methods: {
    // 关闭
    close() {
      this.$emit("input", "");
    },
 
    // 删除
    async handleDelete(index, val) {
      let res = await detailDelete(val);
      if (res.data.retHeader.retCode === "0000") {
        this.$message({
          message: "删除成功",
          type: "success"
        });
        this.getData();
      } else {
        this.$message({
          message: res.data.retHeader.retMessage,
          type: "warning"
        });
      }
    },
 
    // 分页处理
    handleCurrentChange(page) {
      this.asyncValue.page = page;
      this.getData();
    },
 
    // 获取数据
    async getData() {
      this.loading = true;
      let res = await PipelinDetail(this.asyncValue);
      if (res.data.retHeader.retCode === "0000") {
        this.tableData = res.data.retBody;
      } else if(res.data.retHeader.retCode === "2002") {
        this.tableData = {acctTransDetails: [], totalSize: 0}
      } else {
        this.$message.error(res.data.retHeader.retMessage)
      }
      this.loading = false;
    }
  }
};
</script>
 
<style lang="less" >
#pedetail {
  .el-dialog__header {
    background-color: #eef1f6;
  }
  .pedetail_Summary {
    list-style: none;
    border: 1px solid #ebeef5;
    margin: 0px;
    padding: 0px;
    > li {
      width: 100%;
      line-height: 32px;
      height: 32px;
      overflow: hidden;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #ebeef5;
      > span {
        text-align: center;
      }
      > span:first-child {
        border-right: 1px solid #ebeef5;
        flex-basis: 200px;
      }
      > span:nth-child(2) {
        flex: 1;
      }
    }
    > li:last-child {
      border-bottom: none;
    }
  }
  .pedetail-title {
    > h5 {
      font-size: 16px;
      margin: 26px 0px 6px;
    }
  }
  .paging {
    margin: 10px 0px;
  }
}
</style>