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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<template>
  <div id="area">
    <el-container>
      <el-main>
        <el-form label-position="right" ref="form" :model="form" id="search-form">
          <el-row :gutter="20">
            <el-col :md="8" :lg="6">
              <el-form-item label="统一社会信用码:" prop="unifiedsocialcreditcode">
                <el-input v-model.trim="form.unifiedsocialcreditcode" placeholder="请输入"></el-input>
              </el-form-item>
            </el-col>
            <el-col :md="8" :lg="6">
              <el-form-item label="合作方名称:" prop="reditcode">
                <el-input v-model.trim="form.channelname" placeholder="请输入"></el-input>
              </el-form-item>
            </el-col>
            <search-select
              v-model="form.flowstatuArray"
              prop="flowstatus"
              code-no="FlowStatus"
              label="合作方状态:"
            ></search-select>
              <search-select
                v-model="form.phaseNoArray"
                v-if="showFormMore"
                prop="PhaseNo"
                code-no="FlowPhase"
                label="当前流程阶段:"
              ></search-select>
              <search-select
                v-model="form.cooperationmodeArray"
                v-if="showFormMore"
                prop="cooperationmode"
                code-no="CooperationMode"
                label="合作模式:"
              ></search-select>
              <search-select
                v-model="form.channelareanameArray"
                v-if="showFormMore"
                prop="channelareaname"
                code-no="channelarea"
                label="合作方归属地区:"
              ></search-select>
              <el-col :md="8" :lg="6" v-if="showFormMore">
                <el-form-item label="当前申请人:" prop="curinputuser">
                  <el-input v-model.trim="form.inputUser" placeholder="请输入"></el-input>
                </el-form-item>
              </el-col>
            <el-col :md="8" :lg="6" >
              <el-button class="search-btn" @click="handleFormReset">重置</el-button>
              <el-button class="search-btn" type="primary" @click="handleSubmit">搜索</el-button>
              <el-button type="text" @click="handleFormMore">
                                {{ formMoreText }}
                                <i :class="showFormMore?'el-icon-arrow-up':'el-icon-arrow-down'"></i>
                            </el-button>
            </el-col>
          </el-row>
        </el-form>
        <el-row>
          <el-button
            type="primary"
            class="add-btn"
            icon="el-icon-circle-plus-outline"
            @click="showAddDialog = true"
            >新增申请</el-button
          >
        </el-row>
        <el-row>
          <el-table
            v-loading="listLoading"
            :data="tableData"
            border
            fit
            highlight-current-row
            style="width: 100%;margin-top: 30px;"
          >
            <el-table-column label=" " type="index" align="center" width="50px"> </el-table-column>
            <el-table-column prop="unifiedsocialcreditcode" label="统一社会信用码" width="180"> </el-table-column>
            <el-table-column prop="channelname" label="合作方名称" width="180"> </el-table-column>
            <el-table-column prop="flowstatus" label="合作方状态" width="100"> </el-table-column>
            <el-table-column prop="phasename" label="当前流程阶段" width="180"> </el-table-column>
            <el-table-column prop="cooperationmode" label="合作模式" width="180"> </el-table-column>
            <el-table-column prop="channelareaname" label="合作方归属地区" width="180"> </el-table-column>
            <el-table-column prop="inputdate" label="准入时间" width="180"> </el-table-column>
            <el-table-column prop="inputuser" label="准入人" width="180"> </el-table-column>
            <el-table-column prop="takeouttime" label="准出时间" width="180"> </el-table-column>
            <el-table-column prop="address" label="准出人"> </el-table-column>
            <el-table-column prop="lastupdatetime" label="上次修改时间" width="180"> </el-table-column>
            <el-table-column prop="lastupdateuser" label="上次修改用户" width="180"> </el-table-column>
            <el-table-column prop="curinputuser" label="当前申请人" width="180"> </el-table-column>
            <el-table-column label="申请管理" fixed="right" width="250">
              <template slot-scope="scope">
                <el-button v-if="scope.row.opertion.detail" type="text" size="small" @click="handleDetails(scope.row)"
                  >详情</el-button
                >
                <el-button
                  v-if="scope.row.opertion.cancelApply"
                  type="text"
                  size="small"
                  @click="handleCancel(scope.row)"
                  >取消申请</el-button
                >
                <el-button
                  v-if="scope.row.opertion.changeRequest"
                  @click="handleChangeDetails(scope.row)"
                  type="text"
                  size="small"
                  >变更申请
                </el-button>
                <el-button
                  v-if="scope.row.opertion.continueApply"
                  @click="handleContinue(scope.row)"
                  type="text"
                  size="small"
                  >继续处理</el-button
                >
                <el-button v-if="scope.row.opertion.prompt" @click="handleTakeOut(scope.row)" type="text" size="small"
                  >准出</el-button
                >
                <el-button
                  v-if="scope.row.opertion.repeatApply"
                  @click="handleReset(scope.row)"
                  type="text"
                  size="small"
                  >重新申请</el-button
                >
                <el-button
                  v-if="scope.row.opertion.withdrawalApply"
                  @click="handleWithdrawal(scope.row)"
                  type="text"
                  size="small"
                  >撤回申请</el-button
                >
                <el-button
                  v-if="scope.row.opertion.processNow"
                  @click="handleProcessNow(scope.row)"
                  type="text"
                  size="small"
                  >立即处理</el-button
                >
              </template>
            </el-table-column>
          </el-table>
          <pagination
            v-show="total > 0"
            :total="total"
            :page.sync="listQuery.currentPage"
            :limit.sync="listQuery.pageSize"
            @pagination="initTable"
          />
        </el-row>
      </el-main>
    </el-container>
    <add-dialog :show-dialog.sync="showAddDialog"></add-dialog>
  </div>
</template>
 
<script>
import Pagination from '@/components/Pagination'
import {
  qryChannelAdmitInList,
  qryEnpDetailParams,
  channelTakeOut,
  channelCancelApply,
  channelRecallApply,
  addChannelChangeApply,
  channelApplyAgain
} from '@/api/area/partner'
import AddDialog from './AddDialog'
import SearchSelect from './SearchSelect'
export default {
  components: { SearchSelect, Pagination, AddDialog },
  data: function() {
    return {
      showAddDialog: false,
      form: {
                unifiedsocialcreditcode: '',
                channelname: '',
                flowstatuArray: [],
                phaseNoArray: [],
                cooperationmodeArray: [],
                channelareanameArray: [],
        channelname: '',
        inputUser: '',
      },
      formMoreText: '展开',
      showFormMore: false,
      // 分页
      listLoading: true,
      tableData: [],
      total: 0,
      listQuery: {
        currentPage: 1,
        pageSize: 10
      }
    }
  },
  created() {
    this.initTable()
  },
  methods: {
    initTable() {
      this.listLoading = true
      let params = Object.assign(this.listQuery, this.form)
      qryChannelAdmitInList(params).then(res => {
        this.tableData = res.result.records
        this.total = res.result.total
        this.listLoading = false
      })
    },
    handleFormMore() {
      this.showFormMore = !this.showFormMore
      this.showFormMore ? (this.formMoreText = '收起') : (this.formMoreText = '展开')
    },
    handleSubmit() {
            this.listQuery.currentPage = 1
      this.initTable()
    },
    handleFormReset() {
            this.form.unifiedsocialcreditcode = ''
            this.form.channelname = ''
            this.form.flowstatuArray = []
            this.form.phaseNoArray = []
            this.form.cooperationmodeArray = []
            this.form.channelareanameArray = []
            this.form.inputUser = ''
      // this.$refs['form'].resetFields()
    },
    // 重新申请
    async handleReset(row) {
      let confirm = await this.$confirm('确定重新申请?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          return true
        })
        .catch(() => {})
      if (confirm) {
        let params = {
          queryType: 1, // 0-详情,1-继续处理
          unifiedsocialcreditcode: row.unifiedsocialcreditcode
        }
        let res = await qryEnpDetailParams(params)
        let resetParams = {
          ftserialno: res.result.ftserialno,
          objectType: res.result.objectType,
          objectno: res.result.objectno,
          serialno: res.result.serialno,
          queryType: 1
        }
        channelApplyAgain(resetParams).then(res => {
          if (res.code === '00') {
            this.$message.success('操作成功!')
            this.initTable()
          }
        })
      }
    },
    // 继续处理
    async handleContinue(row) {
      let params = {
        queryType: 1, // 0-详情,1-继续处理
        unifiedsocialcreditcode: row.unifiedsocialcreditcode
      }
      let res = await qryEnpDetailParams(params)
      let partnerParams = {
        serialno: res.result.serialno,
        objectno: res.result.objectno,
        objectType: res.result.objectType,
        ftserialno: res.result.ftserialno,
        unifiedsocialcreditcode: row.unifiedsocialcreditcode,
        pageType: 'update'
      }
      this.$store.commit('SET_partnerParams', partnerParams)
      this.$router.push({ path: '/area/partner/update/' })
    },
    // 打开详情
    async handleDetails(row) {
      let params = {
        queryType: 0, // 0-详情,1-继续处理
        unifiedsocialcreditcode: row.unifiedsocialcreditcode
      }
      let res = await qryEnpDetailParams(params)
      let partnerParams = {
        serialno: res.result.serialno,
        objectno: res.result.objectno,
        objectType: res.result.objectType,
        ftserialno: res.result.ftserialno,
        unifiedsocialcreditcode: row.unifiedsocialcreditcode,
        pageType: 'details'
      }
      this.$store.commit('SET_partnerParams', partnerParams)
      this.$router.push({ path: '/area/partner/details/' })
    },
    // 撤回申请
    async handleWithdrawal(row) {
      let confirm = await this.$confirm('确定撤回申请?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        center: true
      })
        .then(() => {
          return true
        })
        .catch(() => {})
      if (confirm) {
        let params = {
          queryType: 1, // 0-详情,1-继续处理
          unifiedsocialcreditcode: row.unifiedsocialcreditcode
        }
        let res = await qryEnpDetailParams(params)
        let takeoutParams = {
          ftserialno: res.result.ftserialno,
          objecttype: res.result.objectType,
          objectno: res.result.objectno,
          serialno: res.result.serialno
        }
        channelRecallApply(takeoutParams).then(res => {
          if (res.code === '00') {
            this.$message.success('撤回成功!')
            this.initTable()
          }
        })
      }
    },
    // 准出
    async handleTakeOut(row) {
      let confirm = await this.$confirm('确定准出?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          return true
        })
        .catch(() => {})
      if (confirm) {
        let params = {
          queryType: 1, // 0-详情,1-继续处理
          unifiedsocialcreditcode: row.unifiedsocialcreditcode
        }
        let res = await qryEnpDetailParams(params)
        let takeoutParams = {
          ftserialno: res.result.ftserialno,
          objectType: res.result.objectType,
          objectno: res.result.objectno,
          serialno: res.result.serialno
        }
        channelTakeOut(takeoutParams).then(res => {
          if (res.code === '00') {
            this.$message.success('准出成功!')
            this.initTable()
          }
        })
      }
    },
    // 变更申请
    async handleChangeDetails(row) {
      let confirm = await this.$confirm('确定变更申请?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          return true
        })
        .catch(() => {
          return false
        })
      if (confirm) {
        let params = {
          unifiedsocialcreditcode: row.unifiedsocialcreditcode
        }
        let res = await addChannelChangeApply(params)
        let partnerParams = {
          serialno: res.result.serialNo,
          objectno: res.result.objectno,
          objectType: res.result.objecttype,
          ftserialno: res.result.ftSerialNo,
          unifiedsocialcreditcode: row.unifiedsocialcreditcode,
          pageType: 'update'
        }
        this.$store.commit('SET_partnerParams', partnerParams)
        this.$router.push({ path: '/area/partner/update/' })
      }
    },
    // 取消申请
    async handleCancel(row) {
      let confirm = await this.$confirm('确定取消申请?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          return true
        })
        .catch(() => {
          return false
        })
      if (confirm) {
        let params = {
          queryType: 1, // 0-详情,1-继续处理
          unifiedsocialcreditcode: row.unifiedsocialcreditcode
        }
        let res = await qryEnpDetailParams(params)
        let takeoutParams = {
          ftserialno: res.result.ftserialno,
          objectType: res.result.objectType,
          objectno: res.result.objectno,
          serialno: res.result.serialno
        }
        channelCancelApply(takeoutParams).then(res => {
          if (res.code === '00') {
            this.$message.success('取消成功!')
            this.initTable()
          }
        })
      }
    }
  }
}
</script>
 
<style scoped></style>