Blame view

admin-web-master/src/views/customer/rsaManagement/index.vue 36.4 KB
3f535f30   杨鑫   '初始'
1
2
  <template>
    <div style="background-color:#f7f7f7;padding:10px 10px;">
b1fef010   杨鑫   '最新代码'
3
      <div class="zhuti" v-if="ggXin == false && detbox==false && genjinShow==false && tanpanShow ==false">
3f535f30   杨鑫   '初始'
4
5
6
7
8
9
10
11
12
13
14
        <div style="height:58px;line-height:58px;">
          <div style="color:#0006"> <span>商户寻租管理</span> <span style="padding:0 5px;">></span> <span
              style="color:#000000e6">寻租申请管理</span></div>
        </div>
        <div>
          <!-- 搜索 -->
          <div class="formSearch">
            <el-form :inline="true" :model="formSel">
              <el-form-item label="意向客户名称">
                <el-input v-model="formSel.intentCustomerName" placeholder="请输入" class="moren" style="width:168px" />
              </el-form-item>
3f535f30   杨鑫   '初始'
15
              <el-form-item label="意向资源类型">
b1fef010   杨鑫   '最新代码'
16
                <el-select v-model="formSel.leaseType" placeholder="请选择" style="width:168px">
3f535f30   杨鑫   '初始'
17
18
                  <el-option label="商铺" value="商铺" />
                  <el-option label="广告位" value="广告位" />
e5b57447   杨鑫   '分包问卷'
19
                  <el-option label="场地" value="场地" />
3f535f30   杨鑫   '初始'
20
21
                </el-select>
              </el-form-item>
3f535f30   杨鑫   '初始'
22
23
  
            </el-form>
b1fef010   杨鑫   '最新代码'
24
            <div style="width: 18%;">
3f535f30   杨鑫   '初始'
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
              <el-button style="background-color: #3F9B6A;color: #fff" @click="onSubmit">查询
              </el-button>
              <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;"
                @click="resetting">重置
              </el-button>
            </div>
  
          </div>
          <div style="margin-bottom:20px;">
            <el-button style="background-color: #3F9B6A;color: #fff;padding:8px 15px;" icon="el-icon-circle-plus-outline"
              @click="addbuss">新增</el-button>
          </div>
          <!-- 表格 -->
          <el-table :data="
              tableData.slice(
                (currentPage - 1) * pageSize,
                currentPage * pageSize
              )
            " :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
            <el-table-column label="序号" min-width="80">
              <template slot-scope="scope">
                {{scope.$index+1}}
              </template>
            </el-table-column>
b1fef010   杨鑫   '最新代码'
49
50
51
52
53
54
55
         <el-table-column label="意向客户名称" prop="intentCustomerName" min-width="150" />
            <el-table-column label="手机号" prop="phone" min-width="180" />
            <el-table-column label="意向租赁类型" prop="leaseType" min-width="120" />
            <el-table-column label="意向租赁周期" prop="leaseCycle" min-width="120" />
            <el-table-column label="意向租金(月)" prop="rentalRent" min-width="120" />
            <el-table-column label="意向区域" prop="intentionRegion" min-width="180" />
  
8550d958   杨鑫   '最新'
56
            <el-table-column label="操作" min-width="260" fixed="right">
3f535f30   杨鑫   '初始'
57
58
59
60
              <template slot-scope="scope">
                <div class="tableBtn greens" @click="handleEditForm(scope.row)">
                  查看
                </div>
b1fef010   杨鑫   '最新代码'
61
                <div class="tableBtn greens" @click="bianjilist(scope.row)" >
3f535f30   杨鑫   '初始'
62
63
                  编辑
                </div>
8550d958   杨鑫   '最新'
64
65
                <!-- v-if="scope.row.auditStatus =='1'" -->
                <div class="tableBtn greens" @click="delGuan(scope.row)">
3f535f30   杨鑫   '初始'
66
67
                  删除
                </div>
b1fef010   杨鑫   '最新代码'
68
              <!--  <div class="tableBtn greens" @click="chehui(scope.row)" v-if="scope.row.auditStatus =='2'">
3f535f30   杨鑫   '初始'
69
70
71
72
                  撤回
                </div>
                <div class="tableBtn greens" @click="getshen(scope.row)" v-if="scope.row.auditStatus =='1'">
                  提交审核
b1fef010   杨鑫   '最新代码'
73
74
75
                </div> -->
                <div class="tableBtn greens" @click="shengRenwu(scope.row)" >
                  跟进日志
3f535f30   杨鑫   '初始'
76
                </div>
b1fef010   杨鑫   '最新代码'
77
78
                <div class="tableBtn greens" @click="tanRenwu(scope.row)" >
                  谈判日志
3f535f30   杨鑫   '初始'
79
                </div>
b1fef010   杨鑫   '最新代码'
80
                <!-- <div class="tableBtn greens" @click="pipei(scope.row)" v-if="scope.row.auditStatus =='1'">
3f535f30   杨鑫   '初始'
81
                  一键匹配
b1fef010   杨鑫   '最新代码'
82
                </div> -->
3f535f30   杨鑫   '初始'
83
84
85
              </template>
            </el-table-column>
          </el-table>
8550d958   杨鑫   '最新'
86
87
88
89
90
91
92
          <div class="fenye">
            <el-pagination class="pagination" :hide-on-single-page="flag" background small :current-page="currentPage"
              layout="prev, pager, next,total" :total="total" @size-change="handleSizeChange"
              @current-change="handleCurrentChange" />
          </div>
        </div>
      </div>
3f535f30   杨鑫   '初始'
93
  
8550d958   杨鑫   '最新'
94
95
96
97
      <!-- 一键匹配 -->
      <el-dialog :visible.sync="pip" custom-class="tongyong_css" style="padding: 0" width="55%" center
        :close-on-click-modal="false" class="dialog_css_Xq">
        <div style="
3f535f30   杨鑫   '初始'
98
99
100
101
102
103
104
                background-color: #fafafa;
                border: 1px solid #eaeaea;
                height: 42px;
                width: 100%;
                padding: 0 20px;
                line-height: 42px;
              ">
8550d958   杨鑫   '最新'
105
106
107
108
          匹配记录
        </div>
        <div style="padding: 0 20px">
          <div style="
3f535f30   杨鑫   '初始'
109
110
111
112
113
                  display: flex;
                  justify-content: space-between;
                  font-size: 14px;
  
                ">
8550d958   杨鑫   '最新'
114
115
116
117
118
119
120
121
            <el-form ref="form" :inline="true" :model="pipeiSel" style="padding-top: 10px;">
              <el-form-item label="意向资源类型">
                <el-select v-model="pipeiSel.resources.cereRentalPolicies.businessType" placeholder="请选择"
                  style="width:168px">
                  <el-option label="商铺" value="sp" />
                  <el-option label="广告位" value="gg" />
                  <el-option label="场地" value="cd" />
                </el-select>
3f535f30   杨鑫   '初始'
122
  
8550d958   杨鑫   '最新'
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
              </el-form-item>
              <el-form-item label="租期">
                <el-select v-model="pipeiSel.resources.cereRentalPolicies.leaseTerm" style="width:168px">
                  <el-option label="年" value="年" />
                  <el-option label="月" value="月" />
                  <el-option label="日" value="日" />
                </el-select>
              </el-form-item>
              <el-form-item label="租金范围">
                <el-select v-model="pipeiSel.resources.cereRentalPolicies.rentalPrice" placeholder="请选择"
                  style="width:168px">
                  <el-option label="0-10000" value="0-10000" />
                  <el-option label="10000-20000" value="10000-20000" />
                  <el-option label="20000-50000" value="20000-50000" />
                  <el-option label="50000-100000" value="50000-100000" />
                </el-select>
              </el-form-item>
            </el-form>
            <div style="
3f535f30   杨鑫   '初始'
142
143
                      padding-top: 15px;
                    ">
8550d958   杨鑫   '最新'
144
145
146
147
148
149
              <el-button style="background-color: #3F9B6A;color: #fff" @click="pipeiBtn">查询</el-button>
              <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;"
                @click="pipeiClose">重置</el-button>
            </div>
          </div>
          <!-- <div style="margin-bottom:20px;">
3f535f30   杨鑫   '初始'
150
151
152
                <el-button style="background-color: #3F9B6A;color: #fff"
                >导出</el-button>
              </div> -->
8550d958   杨鑫   '最新'
153
          <el-table :data="
3f535f30   杨鑫   '初始'
154
155
156
157
158
                  pipData.slice(
                    (currentPage - 1) * pageSize,
                    currentPage * pageSize
                  )
                " :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
8550d958   杨鑫   '最新'
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
            <el-table-column label="序号" min-width="80">
              <template slot-scope="scope">
                {{scope.$index+1}}
              </template>
            </el-table-column>
            <el-table-column label="资源名称" prop="intentCustomerName" min-width="150" />
            <el-table-column label="编号" prop="resourcesId" min-width="150" />
            <el-table-column label="意向资源类型" prop="shopName" min-width="150" />
            <el-table-column label="最近释放日期" prop="businessStartTime" min-width="150" />
            <el-table-column label="最短租期" prop="contactInformation" min-width="150" />
            <el-table-column label="意向租金单价(元/平方)" prop="contactInformation" min-width="250" />
            <el-table-column prop="auditStatus" label="资源状态" min-width="150">
              <template slot-scope="scope">
  
              </template>
            </el-table-column>
  
          </el-table>
        </div>
      </el-dialog>
8550d958   杨鑫   '最新'
179
  
8550d958   杨鑫   '最新'
180
      <!-- 查看 -->
b1fef010   杨鑫   '最新代码'
181
182
183
184
      <div class="zhuti" v-if='detbox'>
            <div style="height:58px;line-height:58px;">
              <div style="color:#0006"> <span>商户寻租管理</span> <span style="padding:0 5px;">></span> <span
                  style="color:#000000e6">查看</span></div>
3f535f30   杨鑫   '初始'
185
            </div>
8550d958   杨鑫   '最新'
186
  
b1fef010   杨鑫   '最新代码'
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
                <div style="margin-top: 30px;" class="editcss">
                  <TitleWithCircle title="意向信息"></TitleWithCircle>
                  <div style="padding: 20px;">
                    <el-form :model="secondData" ref="ruleForm" label-width="150px" class="demo-ruleForm">
                      <el-row :gutter="20">
                        <el-col :span="12">
  
  
  
                          <el-form-item label="意向租赁类型" prop="leaseType">
                            <div  class="duiqi">{{secondData.leaseType}}</div>
  
                          </el-form-item>
                        </el-col>
                        <el-col :span="12">
                          <el-form-item label="意向租赁周期" prop="leaseCycle">
                            <div  class="duiqi">{{secondData.leaseCycle}}</div>
  
                          </el-form-item>
                        </el-col>
                      </el-row>
                      <el-row :gutter="20">
                        <el-col :span="12">
                          <el-form-item label="意向租金(月)" prop="rentalRent">
                            <div  class="duiqi">{{secondData.rentalRent}}</div>
  
                          </el-form-item>
                        </el-col>
                        <el-col :span="12">
                             <el-form-item label="意向经营类型" prop="operationType">
                            <div  class="duiqi">{{secondData.operationType}}</div>
  
                          </el-form-item>
                        </el-col>
                      </el-row>
                      <el-row :gutter="20">
                        <el-col :span="12">
                          <el-form-item label="意向区域" prop="intentionRegion">
                              <div  class="duiqi">{{secondData.intentionRegion}}</div>
                          </el-form-item>
                        </el-col>
  
                      </el-row>
                <TitleWithCircle title="商家信息"></TitleWithCircle>
8550d958   杨鑫   '最新'
231
232
                <el-row :gutter="20">
                  <el-col :span="12">
b1fef010   杨鑫   '最新代码'
233
234
                    <el-form-item label="姓名" prop="intentCustomerName">
                        <div  class="duiqi">{{secondData.intentCustomerName}}</div>
8550d958   杨鑫   '最新'
235
                    </el-form-item>
8550d958   杨鑫   '最新'
236
237
                  </el-col>
                  <el-col :span="12">
b1fef010   杨鑫   '最新代码'
238
239
                    <el-form-item label="手机号" prop="phone">
                        <div  class="duiqi">{{secondData.phone}}</div>
8550d958   杨鑫   '最新'
240
                    </el-form-item>
8550d958   杨鑫   '最新'
241
242
                  </el-col>
                </el-row>
8550d958   杨鑫   '最新'
243
244
                <el-row :gutter="20">
                  <el-col :span="12">
b1fef010   杨鑫   '最新代码'
245
246
                    <el-form-item label="身份证号码" prop="idCardNumber">
                        <div  class="duiqi">{{secondData.idCardNumber}}</div>
8550d958   杨鑫   '最新'
247
248
249
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
b1fef010   杨鑫   '最新代码'
250
251
                    <el-form-item label="身份证有效期">
                        <div  class="duiqi">{{secondData.idCardValidStart}}-{{secondData.idCardValidEnd}}</div>
8550d958   杨鑫   '最新'
252
                    </el-form-item>
8550d958   杨鑫   '最新'
253
254
                  </el-col>
                </el-row>
8550d958   杨鑫   '最新'
255
256
                <el-row :gutter="20">
                  <el-col :span="12">
b1fef010   杨鑫   '最新代码'
257
258
259
                    <el-form-item label="身份证照片(正面)" prop="businessScope">
                      <!-- {{idCardPhotoFront}} -->
                      <el-image :src="$baseURL +secondData.idCardPhotoFront"></el-image>
8550d958   杨鑫   '最新'
260
                    </el-form-item>
8550d958   杨鑫   '最新'
261
262
263
264
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
b1fef010   杨鑫   '最新代码'
265
266
267
                    <el-form-item label="身份证照片(反面面)" prop="businessScope">
                      <!-- idCardPhotoBack -->
                      <el-image :src="$baseURL +secondData.idCardPhotoBack"></el-image>
8550d958   杨鑫   '最新'
268
269
                    </el-form-item>
                  </el-col>
8550d958   杨鑫   '最新'
270
                </el-row>
b1fef010   杨鑫   '最新代码'
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
                    </el-form>
                  </div>
                </div>
      <el-row :gutter="20">
                          <el-col :span="12">
                              <div style="padding-left:160px;">
                               <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;"
                                 @click="detbox = false">取消</el-button>
                              </div>
  
                          </el-col>
                        </el-row>
          </div>
      <!-- 新增 -->
      <div class="zhuti" v-if="ggXin">
            <div style="height:58px;line-height:58px;">
              <div style="color:#0006"> <span>商户寻租管理</span> <span style="padding:0 5px;">></span> <span
                  style="color:#000000e6">{{edit?'新增':'编辑'}}</span></div>
3f535f30   杨鑫   '初始'
289
            </div>
8550d958   杨鑫   '最新'
290
            <div style="margin-top: 30px;">
b1fef010   杨鑫   '最新代码'
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
              <TitleWithCircle title="意向信息"></TitleWithCircle>
              <div style="padding: 20px 20px 20px 0;">
                <el-form ref="AddFromOne"  :model="ruleForm" :rules="rulesOne" label-width="150px">
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item label="意向租赁类型" prop="leaseType">
                        <el-select v-model="ruleForm.leaseType" placeholder="请选择" style="width:100%">
                          <el-option label="商铺" value="商铺" />
                          <el-option label="场地" value="场地" />
                          <el-option label="广告位" value="广告位" />
                        </el-select>
                      </el-form-item>
                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="意向租赁周期" prop="leaseCycle">
                        <el-input v-model="ruleForm.leaseCycle" placeholder="请输入" />
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item label="意向租金(月)" prop="rentalRent">
                        <el-input v-model.number="ruleForm.rentalRent" placeholder="请输入" />
                      </el-form-item>
                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="意向经营类型" prop="operationType">
                        <el-input v-model="ruleForm.operationType" placeholder="请输入" />
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item label="意向区域" prop="intentionRegion">
                        <el-input v-model="ruleForm.intentionRegion" placeholder="请输入" />
  
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <TitleWithCircle title="商家信息"></TitleWithCircle>
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item label="姓名" prop="intentCustomerName">
                        <el-input v-model="ruleForm.intentCustomerName" placeholder="请输入" />
                      </el-form-item>
                    </el-col>
      <el-col :span="12">
                      <el-form-item label="手机号" prop="phone">
                      <el-input v-model="ruleForm.phone" placeholder="请输入" />
                      </el-form-item>
                    </el-col>
                  </el-row>
  
                  <el-row :gutter="20">
                                <el-col :span="12">
                                  <el-form-item label="身份证号码" prop="idCardNumber">
                                    <el-input v-model="ruleForm.idCardNumber" placeholder="请输入" />
                                  </el-form-item>
                                </el-col>
8550d958   杨鑫   '最新'
350
                  <el-col :span="12">
b1fef010   杨鑫   '最新代码'
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
                                  <el-form-item label="身份证有效期" prop="idCardValidStart">
                                  <el-date-picker v-model="ruleForm.idTime" type="daterange" range-separator="至"
                                    start-placeholder="开始时间" end-placeholder="结束时间" value-format="yyyy-MM-dd" style="width:100%" @change="idCardchange"/>
                                  </el-form-item>
                                </el-col>
                              </el-row>
                              <el-row :gutter="20">
                                            <el-col :span="12">
                                              <el-form-item label="身份证照片(正面)" prop="idCardPhotoFront">
                                                <upimg filePath="yixiang" inputtype="idCardPhotoFront" :value="ruleForm.idCardPhotoFront"
                                                  @changimg="e=>changimg(e,'idCardPhotoFront')" :limit="1" ></upimg>
  
                                              </el-form-item>
                                            </el-col>
                                          </el-row>
                                          <el-row :gutter="20">
                                                        <el-col :span="12">
                                                          <el-form-item label="身份证照片(反面)" prop="idCardPhotoBack">
                                                            <upimg filePath="yixiang" inputtype="idCardPhotoBack" :value="ruleForm.idCardPhotoBack"
                                                              @changimg="e=>changimg(e,'idCardPhotoBack')" :limit="1" ></upimg>
                                                          </el-form-item>
                                                        </el-col>
                                                      </el-row>
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item>
                        <div style="margin-top: 20px">
                          <el-button style="background-color: #3F9B6A;color: #fff"
                            @click="addCheck">确 定</el-button>
                         <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;"
                           @click="closeFn">取 消</el-button>
  
                        </div>
  
                      </el-form-item>
                    </el-col>
                  </el-row>
8550d958   杨鑫   '最新'
388
  
b1fef010   杨鑫   '最新代码'
389
                </el-form>
3f535f30   杨鑫   '初始'
390
              </div>
b1fef010   杨鑫   '最新代码'
391
            </div>
3f535f30   杨鑫   '初始'
392
          </div>
b1fef010   杨鑫   '最新代码'
393
394
          <genjin v-if="genjinShow" @cancel="cancel"  :message="genjinId"></genjin>
          <tanpan v-if="tanpanShow" @cancel="tancel"  :message="genjinId"></tanpan>
3f535f30   杨鑫   '初始'
395
396
397
398
399
400
401
402
403
404
405
406
407
    </div>
  </template>
  
  <script>
    import {
      uploadUrl,
      token
    } from '@/utils/request'
    import {
      rsaManAll,
      rsaManAdd,
      rsaManEdit,
      rsaManDel,
e5b57447   杨鑫   '分包问卷'
408
      ziyuanduiy,
3f535f30   杨鑫   '初始'
409
410
    } from '../../../api/rsaManagement'
    import {
b1fef010   杨鑫   '最新代码'
411
412
413
      icManAdd,
    } from '../../../api/icManagement';
    import {
8550d958   杨鑫   '最新'
414
      genAdd,
3f535f30   杨鑫   '初始'
415
416
    } from '../../../api/followup.js'
    import {
8550d958   杨鑫   '最新'
417
      getAlls
3f535f30   杨鑫   '初始'
418
419
420
421
422
    } from '../../../api/information.js'
    import {
      getAlls as map1
    } from '../../../api/map1'
    import upimg from "@/components/ImageUpload/index"
b1fef010   杨鑫   '最新代码'
423
424
425
    import TitleWithCircle from '@/components/top/index';
    import genjin from './genjin';
    import tanpan from './tanpan';
3f535f30   杨鑫   '初始'
426
427
    export default {
      components: {
b1fef010   杨鑫   '最新代码'
428
429
430
431
        upimg,
        TitleWithCircle,
        genjin,
        tanpan
3f535f30   杨鑫   '初始'
432
433
434
435
436
437
      },
  
      data() {
        return {
          detbox: false, // 详情
          edit: true, // 编辑
8550d958   杨鑫   '最新'
438
          addMing: false, //资源
3f535f30   杨鑫   '初始'
439
440
441
442
443
444
445
446
          selshop: [], //意向资源列表
          action: uploadUrl, // 上传图片
          myHeaders: {
            'Authorization-admin': token
          },
          ggXin: false, // 新增
          sel: [], // 选择资源
          stepNum: 0, // 切换
3f535f30   杨鑫   '初始'
447
          formSel: {
8550d958   杨鑫   '最新'
448
            intentCustomerName: '',
b1fef010   杨鑫   '最新代码'
449
450
            leaseType:'',
            pageNumber: 0,
3f535f30   杨鑫   '初始'
451
452
453
            pageSize: 10,
          },
          ruleForm: {
b1fef010   杨鑫   '最新代码'
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
           intentCustomerName:'', //意向客户名称
           leaseType:'',//租赁类型
           leaseCycle:'',//租赁周期
           rentalRent:null,//意向租金
           operationType:'',//经营类型
           intentionRegion:'',//意向区域
           idCardNumber:'',//身份证号
          idCardType:'',//证件类型
          phone:'',//手机号
          idTime:[],
          idCardValidStart:'',//身份证有效开始时间
          idCardValidEnd:'',//身份证有效结束时间
          idCardPhotoFront:'',//身份证照片(正面)
          idCardPhotoBack:'',//身份证照片(反面)
          source:0
3f535f30   杨鑫   '初始'
469
          },
b1fef010   杨鑫   '最新代码'
470
  
3f535f30   杨鑫   '初始'
471
472
          secondData: {},
          currentPage: 1,
b1fef010   杨鑫   '最新代码'
473
          total: 0,
3f535f30   杨鑫   '初始'
474
475
476
          flag: false,
          pageSize: 10,
          tableData: [],
b1fef010   杨鑫   '最新代码'
477
  
3f535f30   杨鑫   '初始'
478
          pageindex: {
b1fef010   杨鑫   '最新代码'
479
            pageNumber: 0,
3f535f30   杨鑫   '初始'
480
481
            pageSize: 10,
          },
8550d958   杨鑫   '最新'
482
483
484
485
486
487
488
489
490
491
492
493
          ziyuanData: [],
          multipleSelection: [],
          pip: false,
          pipData: [],
          pipeiSel: {
            resources: {
              cereRentalPolicies: {
                businessType: '',
                leaseTerm: '',
                rentalPrice: ''
              }
            },
b1fef010   杨鑫   '最新代码'
494
            pageNumber: 0,
8550d958   杨鑫   '最新'
495
496
            pageSize: 10,
          },
8550d958   杨鑫   '最新'
497
  
b1fef010   杨鑫   '最新代码'
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
          rulesOne: {
  
            intentCustomerName: [{
              required: true,
              message: '请输入姓名',
              trigger: 'blur'
            }, ],
            leaseType: [{
              required: true,
              message: '请选择租赁类型',
              trigger: 'change'
            }],
            leaseCycle: [{
              required: true,
              message: '请输入租赁周期',
              trigger: 'blur'
            }, ],
            rentalRent: [{
              required: true,
              message: '请输入意向租金(月)',
              trigger: 'blur'
            }, ],
            operationType: [{
              required: true,
              message: '请输入经营类型',
              trigger: 'blur'
            }, ],
            intentionRegion: [{
              required: true,
              message: '请输入意向区域',
              trigger: 'blur'
            }, ],
            idCardNumber: [{
              required: true,
              message: '请输入身份证号',
              trigger: 'blur'
            }, ],
            phone: [{
              required: true,
              message: '请输入手机号',
              trigger: 'blur'
            }, ],
            idCardValidStart: [{
              required: true,
              message: '请选择身份证有效时间',
              trigger: 'change'
            }, ],
            idCardPhotoFront: [{
              required: true,
              message: '请输入身份证照片(正面)',
              trigger: 'change'
            }, ],
            idCardPhotoBack: [{
              required: true,
              message: '请选择身份证照片(反面)',
              trigger: 'change'
            }, ],
          },
          genjinId:'',
          genjinShow:false,
          tanpanShow:false,
e5b57447   杨鑫   '分包问卷'
559
        }
3f535f30   杨鑫   '初始'
560
561
562
563
564
565
566
567
568
569
570
571
      },
  
      created() {
        this.getAll();
      },
      mounted() {},
      // beforeDestroy() {
      //   const editor = this.editor
      //   if (editor == null) return
      //   editor.destroy() // 组件销毁时,及时销毁编辑器
      // },
      methods: {
b1fef010   杨鑫   '最新代码'
572
573
574
        changimg(e,type) {
          this.ruleForm[type] = e
        },
3f535f30   杨鑫   '初始'
575
576
577
578
579
580
581
582
583
584
        // 获取当前时间
        updateCurrentTime() {
          const now = new Date();
          const year = now.getFullYear();
          const month = (now.getMonth() + 1).toString().padStart(2, '0');
          const day = now.getDate().toString().padStart(2, '0');
          const hours = now.getHours().toString().padStart(2, '0');
          const minutes = now.getMinutes().toString().padStart(2, '0');
          const seconds = now.getSeconds().toString().padStart(2, '0');
  
b1fef010   杨鑫   '最新代码'
585
          return `${year}-${month}-${day} ${hours}:${minutes}`;
3f535f30   杨鑫   '初始'
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
        },
        handleSelectionChange(val) {
          this.multipleSelection = val;
        },
        lextStep(val) {
          if (val == 0) {
            this.stepNum = this.stepNum - 1;
          } else {
            this.stepNum = this.stepNum + 1;
          }
        },
        // 查询全数据
        async getAll() {
          const res = await rsaManAll(this.pageindex);
          this.tableData = res.data.content;
          this.total = res.data.content.length
8550d958   杨鑫   '最新'
602
603
604
          const ziyuan = await getAlls(this.pageindex)
          const ggw = await map1(this.pageindex)
          this.ziyuanData = [...ziyuan.data.content, ...ggw.data.content]
3f535f30   杨鑫   '初始'
605
606
607
        },
        // 编辑确认
        async msgeditS() {
b1fef010   杨鑫   '最新代码'
608
609
610
          await rsaManEdit(this.ruleForm);
          this.ggXin = false
          this.getAll()
3f535f30   杨鑫   '初始'
611
612
613
        },
        // 编辑
        bianjilist(item) {
b1fef010   杨鑫   '最新代码'
614
615
616
617
618
619
620
621
          this.ruleForm = item
          this.ruleForm.idTime = []
          this.ruleForm.idTime[0] = item.idCardValidStart
          this.ruleForm.idTime[1] = item.idCardValidEnd
         if(this.edit){
           this.edit =false
         }
         this.ggXin = true
3f535f30   杨鑫   '初始'
622
        },
8550d958   杨鑫   '最新'
623
624
625
626
627
628
629
630
631
632
633
634
        async chehui(item) {
          await rsaManEdit({
            id: item.id,
            auditStatus: '1'
          })
          this.getAll()
        },
        async getshen(item) {
          await rsaManEdit({
            id: item.id,
            auditStatus: '2'
          })
3f535f30   杨鑫   '初始'
635
636
          this.getAll()
        },
3f535f30   杨鑫   '初始'
637
638
639
  
  
        // 详情点击
8550d958   杨鑫   '最新'
640
        handleEditForm(item) {
3f535f30   杨鑫   '初始'
641
          this.secondData = item
b1fef010   杨鑫   '最新代码'
642
          this.detbox = true
3f535f30   杨鑫   '初始'
643
644
645
646
        },
        // 新增
        addbuss() {
          this.ruleForm = {
b1fef010   杨鑫   '最新代码'
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
           intentCustomerName:'', //意向客户名称
           leaseType:'',//租赁类型
           leaseCycle:'',//租赁周期
           rentalRent:null,//意向租金
           operationType:'',//经营类型
           intentionRegion:'',//意向区域
           idCardNumber:'',//身份证号
          idCardType:'',//证件类型
          phone:'',//手机号
          idTime:[],
          idCardValidStart:'',//身份证有效开始时间
          idCardValidEnd:'',//身份证有效结束时间
          idCardPhotoFront:'',//身份证照片(正面)
          idCardPhotoBack:'',//身份证照片(反面)
          source:0
3f535f30   杨鑫   '初始'
662
          }
b1fef010   杨鑫   '最新代码'
663
664
  this.edit = true
          this.ggXin = true
3f535f30   杨鑫   '初始'
665
666
          this.getAll();
        },
b1fef010   杨鑫   '最新代码'
667
668
669
670
671
672
        idCardchange(e){
  
        this.ruleForm.idCardValidStart = e[0]
        this.ruleForm.idCardValidEnd = e[1]
  
        },
3f535f30   杨鑫   '初始'
673
        // 新增确定
b1fef010   杨鑫   '最新代码'
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
         addCheck() {
  
            this.$refs.AddFromOne.validate((valid) => {
              if (valid) {
                 if(this.edit){
                   rsaManAdd(this.ruleForm).then(res => {
                     icManAdd(this.ruleForm).then(res=>{
                       this.$message({
                         message: '保存成功',
                         type: 'success'
                       })
                       this.getAll();
                       this.ggXin = false
                       this.$refs.AddFrom.resetFields()
                     })
  
                   })
                 }else{
                   rsaManEdit(this.ruleForm).then(res => {
                     this.$message({
                       message: '修改成功',
                       type: 'success'
                     })
                     this.getAll();
                     this.ggXin = false
                     this.$refs.AddFrom.resetFields()
                   })
                 }
3f535f30   杨鑫   '初始'
702
  
b1fef010   杨鑫   '最新代码'
703
704
705
706
707
708
709
710
              } else {
                this.$message({
                  message: '请填写完整信息',
                  type: 'error'
                })
  
              }
            })
3f535f30   杨鑫   '初始'
711
712
713
714
715
716
717
718
719
        },
        handleCurrentChange(val) {
          this.currentPage = val;
        },
        handleSizeChange(val) {
          this.pageSize = val;
        },
        // 取消
        closeFn(val) {
b1fef010   杨鑫   '最新代码'
720
           this.ggXin = false;
3f535f30   杨鑫   '初始'
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
        },
        //删除管理列表
        async delGuan(item) {
          const h = this.$createElement;
          this.$msgbox({
            title: '消息',
            message: h('p', null, [
              h('span', null, '是否删除 '),
            ]),
            showCancelButton: true,
            showClose: false,
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            customClass: 'oe-dialog-btn',
            beforeClose: (action, instance, done) => {
              if (action === 'confirm') {
                rsaManDel({
                  id: item.id
                }).then(res => {
                  this.getAll()
                  done();
                })
              } else {
                done();
              }
            }
          })
  
        },
  
        handlePreview(file) {
          console.log(file);
        },
        handleRemove(file, fileList) {
          console.log(file, fileList);
        },
  
        // 重置按钮
        resetting() {
          this.formSel = {
8550d958   杨鑫   '最新'
761
            intentCustomerName: '',
b1fef010   杨鑫   '最新代码'
762
763
            leaseType:'',
            pageNumber: 0,
3f535f30   杨鑫   '初始'
764
765
766
767
768
769
770
771
772
773
            pageSize: 10,
          };
          this.getAll()
        },
        // 查询
        async onSubmit() {
          const res = await rsaManAll(this.formSel)
          this.tableData = res.data.content
          this.total = res.data.content.length
        },
8550d958   杨鑫   '最新'
774
775
        mingClose() {
          this.multipleSelection = []
3f535f30   杨鑫   '初始'
776
777
778
779
780
781
          this.addMing = false
  
        },
        minSev() {
          this.selshop = this.multipleSelection
          this.addMing = false
8550d958   杨鑫   '最新'
782
          this.multipleSelection = []
3f535f30   杨鑫   '初始'
783
        },
8550d958   杨鑫   '最新'
784
        pipei(item) {
3f535f30   杨鑫   '初始'
785
          this.pip = true
e5b57447   杨鑫   '分包问卷'
786
          this.pipData = []
3f535f30   杨鑫   '初始'
787
        },
8550d958   杨鑫   '最新'
788
        shengRenwu(item) {
b1fef010   杨鑫   '最新代码'
789
790
791
792
793
794
795
796
797
798
799
        this.genjinId = item.id
        this.genjinShow = true
          // genAdd({
          //   potentialCustomer: item.id,
          //   status: '1'
          // }).then(res => {
          //   this.$message({
          //     message: '生成成功',
          //     type: 'success'
          //   })
          // })
3f535f30   杨鑫   '初始'
800
801
  
        },
b1fef010   杨鑫   '最新代码'
802
803
804
805
        tanRenwu(item){
          this.genjinId = item.id
          this.tanpanShow = true
        },
8550d958   杨鑫   '最新'
806
807
        pipeiBtn() {
          if (this.pipeiSel.resources.cereRentalPolicies.businessType == 'sp') {
e5b57447   杨鑫   '分包问卷'
808
            this.pipeiSel.resourcesId = 'sp'
8550d958   杨鑫   '最新'
809
810
811
812
          } else if (this.pipeiSel.resources.cereRentalPolicies.businessType == 'cd') {
            this.pipeiSel.resourcesId = 'cd'
          } else {
            this.pipeiSel.resourcesId = 'gg'
e5b57447   杨鑫   '分包问卷'
813
          }
8550d958   杨鑫   '最新'
814
          ziyuanduiy(this.pipeiSel).then(res => {
e5b57447   杨鑫   '分包问卷'
815
816
817
            this.pipData = res.data.content
          })
        },
8550d958   杨鑫   '最新'
818
819
820
821
822
823
824
825
826
827
828
829
830
831
        pipeiClose() {
          this.pipeiSel = {
              resources: {
                cereRentalPolicies: {
                  businessType: '',
                  leaseTerm: '',
                  rentalPrice: ''
                }
              },
              resourcesId: '',
              pageNumber: 1,
              pageSize: 10,
            },
            this.pipData = []
e5b57447   杨鑫   '分包问卷'
832
        },
b1fef010   杨鑫   '最新代码'
833
834
835
836
837
838
839
840
        cancel(e){
          this.genjinShow = e
          this.getAll()
        },
        tancel(e){
          this.tanpanShow = e
          this.getAll()
        },
3f535f30   杨鑫   '初始'
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
      }
    }
  </script>
  <style src="@wangeditor/editor/dist/css/style.css"></style>
  <style scoped>
    /deep/ .first-column-bg {
      background-color: #f4f4f5 !important;
    }
  
    .zhuti {
      padding: 0 20px 20px 20px;
      min-height: calc(100vh - 50px - 20px);
      background-color: #fff;
    }
  
  
b1fef010   杨鑫   '最新代码'
857
  
3f535f30   杨鑫   '初始'
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
  
    .formSearch {
  
      display: flex;
      width: 100%;
      font-size: 14px;
      justify-content: space-between;
  
    }
  
    .greens {
      color: #3f9b6a;
    }
  
    /deep/ .el-table__row {
      font-size: 14px;
      color: #000000e6;
      height: 42px;
    }
  
    .fenye {
      margin-top: 20px;
      display: flex;
      justify-content: flex-end;
      position: relative;
    }
  
    /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
      background-color: #3f9b6a;
    }
  
    :last-child {
      margin-bottom: 0;
    }
  
    .el-col {
      border-radius: 4px;
    }
  
    .bg-purple-dark {
      background: #99a9bf;
    }
  
    .bg-purple {
      /* background: #d3dce6; */
    }
  
    .bg-purple-light {
      background: #e5e9f2;
    }
  
    .grid-content {
      border-radius: 4px;
      min-height: 36px;
    }
  
    .row-bg {
      padding: 10px 0;
      background-color: #f9fafc;
    }
  
    /deep/ .bg-purple[data-v-0e3fe4ec] {
      background: #fff;
      height: 50px;
    }
  
    /deep/ .el-form--label-top .el-form-item__label {
      padding: 0;
    }
  
    .demo-input-suffix {
      display: flex;
      margin-right: 20px;
    }
  
    .pagination {
      text-align: right;
      line-height: 20px;
    }
  
  
    .dialog_css {
      padding: 0px;
    }
  
    .dialog_xin {
      padding: 0px;
    }
  
    /deep/.el-dialog__body {
      padding: 0px;
    }
  
    /deep/ .el-dialog__header {
      background-color: #fff;
      padding: 0;
    }
  
    /deep/.el-dialog__title {
      color: #000;
    }
  
    .el-row {
8550d958   杨鑫   '最新'
961
      margin-bottom: 16px;
3f535f30   杨鑫   '初始'
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
    }
  
    /deep/ .avatar-uploader .el-upload {
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
  
    .avatar-uploader .el-upload:hover {
      border-color: #409eff;
    }
  
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 108px;
      height: 108px;
      line-height: 108px;
      /*text-align: center;*/
    }
  
    .avatar {
      width: 108px;
      height: 108px;
      display: block;
    }
  
    ::v-deep .el-tabs__item.is-active {
      color: #3f9b6a;
      opacity: 1;
    }
  
    /deep/ .el-tabs__nav-wrap::after {
      background-color: #fff;
    }
  
    ::v-deep .el-tabs__item:hover {
      color: #3f9b6a;
      cursor: pointer;
      opacity: 1;
    }
  
    /deep/ .el-tabs__active-bar {
      background-color: #389865;
    }
  
    /deep/ .el-table_2_column_13 {
      font-weight: 100;
    }
  
    ::v-deep .el-input__inner:focus {
      border: #3f9b6a 1px solid;
    }
  
    ::v-deep .el-input__inner:hover {
      border: #3f9b6a 1px solid;
    }
  
    ::v-deep .el-select .el-input.is-focus .el-input__inner {
      border-color: #3f9b6a;
    }
  
  
    /* ::v-deep .el-steps .el-step__head.is-wait {
    background-color: red; /* 修改为你想要的颜色 */
  
    /* 修改未进行步骤的描述文字颜色 */
    ::v-deep .el-steps .el-step__description.is-wait {
      color: #999;
      /* 修改为你想要的颜色 */
    }
  
    /* 修改未进行步骤的图标颜色 */
    ::v-deep .el-steps .el-step__icon.is-text.is-wait {
      color: #999;
      /* 修改为你想要的颜色 */
    }
  
    /* 修改未进行步骤的边框色 */
    ::v-deep .el-steps .el-step__line.is-wait {
      border-color: #eee;
      /* 修改为你想要的颜色 */
    }
  
    ::v-deep .el-steps .is-process .el-step__line {
      background-color: #3f9b6a;
      /* 修改线的颜色 */
    }
  
    ::v-deep .el-steps .is-process .el-step__title {
      color: #fe7b6a;
      /* 修改进行中步骤的标题颜色 */
    }
  
    ::v-deep .el-steps .is-process .el-step__icon {
      color: #fff;
      /* 修改进行中步骤的图标颜色 */
      background: #3f9b6a;
      /* 修改进行中步骤图标的边框颜色 */
      border: 0px;
    }
  
    ::v-deep .el-step__icon-inner {
      line-height: 0;
    }
  
    /* 线条长度 */
    ::v-deep .el-step.is-vertical .el-step__line {
      top: 30px;
      height: 60px;
    }
  
    ::v-deep .moren {
      .el-input__inner {
        margin-top: 5px;
        padding: 0 20px;
      }
    }
  
    /deep/ .el-radio-group {
      margin-top: 11px;
    }
  
    /deep/ .el-radio__input.is-checked .el-radio__inner {
      border-color: #3f9b6a;
      background: #3f9b6a;
    }
  
    ::v-deep .el-col {
      padding: 0 !important;
    }
  
    /deep/ .el-radio-group {
      width: 100%;
    }
  
    .radio-right-side {
      width: 100%;
      display: flex;
      justify-content: space-between;
    }
  
    /deep/ .radio-right-side .el-radio__label {
      display: flex;
      align-items: center;
    }
  
    /deep/ .radio-right-side .el-radio__inner {
      order: 1;
    }
  
    /deep/ .radio-right-side .el-radio__input {
      display: flex;
      order: 2;
    }
  
    /deep/ .radio-right-side {
      &:hover {
        color: #000;
      }
    }
  
    ::v-deep .el-dialog__wrapper {
      .dialog_css {
        margin-right: 12px;
        margin-top: 61px !important;
  
        .el-dialog__title {
          font-size: 16px !important;
          font-weight: 600;
          color: #000;
        }
      }
    }
  
    ::v-deep .setup {
      .el-steps {
        justify-content: center;
      }
    }
  
    ::v-deep .el-step__head.is-finish {
      color: #c0c4cc;
      border-color: #c0c4cc;
    }
  
    ::v-deep .el-step__title.is-finish {
      color: #c0c4cc;
    }
  
    ::v-deep .el-step__title.is-process {
      color: #c0c4cc;
    }
  
    ::v-deep .el-tabs {
      width: 100%;
    }
  
    ::v-deep .setup {
      .el-step__main {
        margin-left: -17px;
      }
  
      .el-step__title.is-process {
        color: #3f9b6a;
      }
  
    }
  
    ::v-deep .el-pagination__jump {
      margin-top: 5px;
    }
  
    ::v-deep .linClass {
      .el-dialog__header {
        padding: 20px 20px 10px;
        font-size: 14px;
      }
    }
  </style>
  <style lang="scss" scoped>
    ::v-deep .bian_css {
      .el-dialog__header {
        padding: 0px;
      }
    }
  
    ::v-deep .buttonHover:hover {
      color: #3f9b6a !important;
      border-color: #c5e1d2 !important;
      background-color: #ecf5f0 !important;
      outline: none;
    }
  
    ::v-deep .el-pagination__total {
      position: absolute;
      left: 10px;
    }
  
    ::v-deep .diaslog_zhong {
      .el-dialog__body {
        padding: 10px 20px 20px 20px;
      }
  
      .el-upload--picture-card {
        width: 130px;
        height: 130px;
      }
    }
  </style>