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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!-- 待完成任务 -->
<template>
  <div>
    <div class="header-block">
      <p class="section-title">待完成任务</p>
      <div class="list-table">
        <el-form ref="ruleForm" :model="ruleForm" :show-message="false">
          <el-table :data="ruleForm.tableData" fit stripe size="small">
            <el-table-column prop="index" width="50px">
              <template slot="header">
                <span>
                  <span>序号</span>
                </span>
              </template>
              <template slot-scope="scope">
                <div>{{ scope.row.index }}</div>
              </template>
            </el-table-column>
            <el-table-column prop="nodeName" width="200px">
              <template slot="header">
                <span>
                  <span>待完成任务名称</span>
                </span>
              </template>
              <template slot-scope="scope">
                <div>{{ scope.row.nodeName }}</div>
              </template>
            </el-table-column>
            <el-table-column prop="startTime" width="250px">
              <template slot="header">
                <span>
                  <span>任务生成时间</span>
                </span>
              </template>
              <template slot-scope="scope">
                <div>{{ scope.row.startTime }}</div>
              </template>
            </el-table-column>
            <el-table-column prop="endTime" width="250px">
              <template slot="header">
                <span>
                  <span>任务完成截止时间</span>
                </span>
              </template>
              <template slot-scope="scope">
                <div>{{ scope.row.endTime }}</div>
              </template>
            </el-table-column>
            <el-table-column prop="finishState" width="250px">
              <template slot="header">
                <span>
                  <span>任务状态</span>
                </span>
              </template>
              <template slot-scope="scope">
                <div>{{ finishStateType[scope.row.finishState] }}</div>
              </template>
            </el-table-column>
          </el-table>
        </el-form>
      </div>
    </div>
  </div>
</template>
<script>
import {
  queryAcctLoan,
  overdueImportCollectionExcel,
  overdueQueryCollectionLetter,
  overdueQueryNotFinishTask,
} from "@comprehensive/serve/public";
export default {
  props: {
    // 申请编号
    serialNo: {
      type: String,
      // required: true,
    },
    caseId: {
      type: String,
    },
    promissNoteNo: {
      type: String,
    },
    canEdit: {
      type: Boolean,
    },
    objectType: {
      type: String,
      default: "",
    },
    customerID: {
      type: String,
      default: "",
    },
  },
  components: {},
  data() {
    return {
      ruleForm: {
        tableData: [],
      },
      finishStateType: {
        '0': '未完成',
        '1': '人工完成',
        '2': '系统自动完成',
      },
    };
  },
  created() {
    this.init();
  },
  methods: {
    init() {
      this.requestOverdueQueryNotFinishTask();
    },
    async requestOverdueQueryNotFinishTask() {
      const { promissNoteNo } = this;
      if (promissNoteNo) {
        const resp = await overdueQueryNotFinishTask({
          loanId: promissNoteNo,
        });
 
        if (resp.code == "00") {
          let tempArr = resp.result
          for (let i = 0; i < tempArr.length; i++) {
            tempArr[i].index = i + 1;
          }
          this.ruleForm.tableData = resp.result;
        }
      }
    },
  },
  watch: {
    promissNoteNo: {
      handler(newVal) {
        this.requestOverdueQueryNotFinishTask();
      },
    },
  },
};
</script>
<style lang="postcss" scoped>
.list-table {
  .poptext {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  & >>> .el-table th {
    background: #f5f5f5;
    color: #222222;
    padding: 0;
    border-color: #ebeef5;
  }
  & >>> .el-table tr {
    height: 48px;
    line-height: 48px;
  }
  & >>> .el-table tr th {
    line-height: 44px;
  }
  & >>> .el-table .select-row td {
    color: #222;
    background-color: #e7f4fe;
  }
  & >>> .el-table td {
    color: #666666;
    border-color: #eee;
    padding: 0;
    height: 48px;
    & .cell {
      line-height: 18px;
    }
  }
  & a {
    color: #0081f0;
    cursor: pointer;
  }
  & >>> .item-inner p {
    padding: 0;
    margin: 0;
    &.showTooltip {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  & >>> .item-inner p .el-button + .el-button {
    padding-left: 10px;
  }
  & >>> .el-table__body-wrapper {
    &::-webkit-scrollbar {
      height: 10px;
      width: 10px;
    }
    &::-webkit-scrollbar-track-piece {
    }
    &::-webkit-scrollbar-track-piece {
    }
    &::-webkit-scrollbar-track {
      border-radius: 1em;
      /* background-color: rgba(50, 50, 50, 0.1); */
      background-color: #ffffff;
    }
    &::-webkit-scrollbar-thumb {
      border-radius: 1em;
      /* background-color: rgba(50, 50, 50, 0.2); */
      background-color: rgba(0, 0, 0, 0.5);
    }
  }
  & .pagination {
    padding: 20px 0;
    color: #666666;
    & >>> .el-pagination__total {
      margin-left: 20px;
      font-size: 14px;
      color: #666666;
    }
    & >>> .el-pager li {
      width: auto;
      min-width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 1);
      border-radius: 4px;
      border: 1px solid rgba(238, 238, 238, 1);
      font-size: 14px;
      color: #666666;
      font-weight: normal;
      /* min-width: 34px; */
    }
    & >>> .el-pagination__jump {
      font-size: 14px;
      color: #666666;
    }
    & >>> .btn-next,
    & >>> .btn-prev {
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 1);
      border-radius: 4px;
      border: 1px solid rgba(238, 238, 238, 1);
      font-size: 14px;
      color: #666666;
    }
    & >>> .btn-next:disabled,
    & >>> .btn-prev:disabled {
      opacity: 0.6;
    }
  }
  & .buttons-links >>> .el-link {
    margin-right: 20px;
    &:last-child {
      margin: 0;
    }
  }
  & .button-select {
    cursor: pointer;
    color: #0081f0;
    padding-left: 20px;
    & >>> .el-icon--right {
      margin: 0;
    }
  }
  & .button-select-disabled {
    color: #c5c5c5;
    padding-left: 20px;
    /* padding-right: 2em; */
  }
  & p.buttons-wraper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-right: 10px;
  }
}
.padding-right {
  padding-right: 40px;
}
.listcontent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 20px;
  & >>> p {
    width: 25%;
    margin-bottom: 10px;
    font-size: 13px;
  }
}
</style>
<style lang="postcss" scoped>
.form-section {
  display: flex;
  align-items: baseline;
  & .search {
    margin: 10px 0 0 50px;
    padding: 0;
  }
}
.header-block {
  margin-bottom: 25px;
  & .section-title {
    margin: 30px 0 20px 0;
    padding: 0 0 0 10px;
    border-left: solid 2px #0081f0;
    line-height: 16px;
    font-size: 14px;
    color: #222222;
  }
}
</style>