apply-clients 3.1.40 → 3.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
7
7
  <div class="form-group col-sm-3">
8
- <label class="font_normal_body">客户名称/联系人:</label>
8
+ <label class="font_normal_body">客户名称:</label>
9
9
  <input type="text" class="input_search" v-model="model.f_user_name"
10
10
  v-on:keyup.enter="search" condition=" (f_user_name like '%{}%' or f_contact like '%{}%') " placeholder='二选一输入'>
11
11
  </div>
@@ -13,16 +13,23 @@
13
13
  <label class="font_normal_body">报建编号:</label>
14
14
  <input type="text" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
15
15
  v-on:keyup.enter="search"
16
- condition="f_apply_num like '%{}%'">
16
+ condition="u.f_apply_num like '%{}%'">
17
17
  </div>
18
18
  <div class="form-group col-sm-3">
19
- <label class="font_normal_body">合同编号:</label>
20
- <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
21
- v-on:keyup.enter="search"
22
- condition="f_contract_number like '%{}%'">
19
+ <label class="font_normal_body">工程类型:</label>
20
+ <v-select
21
+ v-model="model.f_project_type"
22
+ placeholder='请选择'
23
+ condition="u.f_project_type like '%{}%'"
24
+ :value.sync="model.f_project_type"
25
+ :options='$parent.$parent.projectType'
26
+ class="select select_list"
27
+ :value-single="true"
28
+ close-on-select ></v-select>
23
29
  </div>
24
30
  <div class="form-group col-sm-2 operate">
25
31
  <button type="button" class="btn btn-info head-but" @click="$parent.$parent.search(),$parent.$parent.close()" v-el:cx>查询</button>
32
+ <button type="button" class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
26
33
  <export-excel :data="$parent.$parent.getCondition"
27
34
  :field="$parent.$parent.getfield"
28
35
  sqlurl="rs/logic/applyExportfile"
@@ -39,6 +46,18 @@
39
46
  </div>
40
47
  </div>
41
48
  <div class="row" v-show="$parent.$parent.criteriaShow">
49
+ <div class="form-group col-sm-3">
50
+ <label class="font_normal_body">小&emsp;&emsp;区:</label>
51
+ <v-select
52
+ v-model="model.f_residential_area"
53
+ placeholder='请选择'
54
+ condition="u.f_residential_area = '{}'"
55
+ :value.sync="model.f_residential_area"
56
+ :options='$parent.$parent.area'
57
+ class="select select_list"
58
+ :value-single="true"
59
+ close-on-select ></v-select>
60
+ </div>
42
61
  <div class="form-group col-sm-3">
43
62
  <label class="font_normal_body">用户地址:</label>
44
63
  <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"
@@ -46,11 +65,17 @@
46
65
  condition="f_address like '%{}%'">
47
66
  </div>
48
67
  <div class="form-group col-sm-3">
49
- <label class="font_normal_body">票号:</label>
68
+ <label class="font_normal_body">票&emsp;&emsp;号:</label>
50
69
  <input type="text" class="input_search" placeholder='票号' v-model="model.f_ticket_number"
51
70
  v-on:keyup.enter="search"
52
71
  condition="c.f_ticket_number like '%{}%'">
53
72
  </div>
73
+ <div class="form-group col-sm-3">
74
+ <label class="font_normal_body">合同编号:</label>
75
+ <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
76
+ v-on:keyup.enter="search"
77
+ condition="f_contract_number like '%{}%'">
78
+ </div>
54
79
  <div class="col-sm-3 form-group">
55
80
  <label class="font_normal_body">报建类型:</label>
56
81
  <v-select
@@ -169,18 +194,18 @@
169
194
  defnames:[], // 所有流程节点
170
195
  condition: '', // 查询条件
171
196
  criteriaShow: false,
172
- processids: null,
197
+ area:[],
173
198
  getfield: {
174
- 'f_apply_num': '报建编号',
175
- 'defname': '当前环节',
176
- 'f_sub_state': '流程状态',
177
- 'f_user_name': '联系人',
178
- 'f_contact': '联系人',
179
- 'f_contract_number': '合同编号',
180
- 'f_phone': '电话',
181
- 'f_address': '地址',
182
- 'f_apply_type': '报建类型',
183
- 'f_apply_date': '报建日期'
199
+ 'f_apply_num': ' 报 建 编 号 ',
200
+ 'defname': ' 当 前 环 节 ',
201
+ 'f_sub_state': ' 流 程 状 态 ',
202
+ 'f_user_name': ' 客 户 名 称 ',
203
+ 'f_contact': ' 联 系 人 ',
204
+ 'f_contract_number': ' 合 同 编 号 ',
205
+ 'f_phone': ' 电 话 ',
206
+ 'f_address': ' 地 址 ',
207
+ 'f_apply_type': ' 报 建 类 型 ',
208
+ 'f_apply_date': ' 报 建 日 期 '
184
209
  }
185
210
  }
186
211
  },
@@ -189,10 +214,36 @@
189
214
 
190
215
  // 获取所有办理环节
191
216
  this.getDefnames()
217
+ this.getAreaAll()
192
218
  },
193
219
  events: {
194
220
  },
195
221
  methods: {
222
+ clear () {
223
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
224
+ this.$refs.cp.$refs.cri.model[key] = ''
225
+ })
226
+ },
227
+ //获取当前登录人已处理过的流程ID
228
+ async searchCondition() {
229
+ let http = new HttpResetClass()
230
+ let data = {
231
+ org: `${this.$login.f.orgs}`
232
+ }
233
+ let res = await http.load('POST', 'rs/sql/getActor', {data: data}, {
234
+ resolveMsg: null,
235
+ rejectMsg: '查询角色失败'
236
+ })
237
+ let x = []
238
+ for (let i = 0; i < res.data.length; i++) {
239
+ if (this.$login.f.f_role_name.includes(res.data[i].actor)) {
240
+ x.push(res.data[i].processid)
241
+ }
242
+ }
243
+ this.processids = JSON.stringify(x)
244
+
245
+ console.log("x的数据", this.processids)
246
+ },
196
247
  async search() {
197
248
  let http = new HttpResetClass()
198
249
  let data = {
@@ -242,6 +293,18 @@
242
293
  this.defnames = [{label: '全部', value: ''}, ...res.data]
243
294
  })
244
295
  },
296
+ async getAreaAll () {
297
+ let http = new HttpResetClass()
298
+ let condition = "f_filialeid = " + this.$login.f.orgid
299
+ let res = await http.load('POST','rs/logic/apply_queryArea',{data:{condition:condition}}, {resolveMsg: null, rejectMsg: null})
300
+
301
+ this.area = res.data.queryArea.map(item => {
302
+ return {
303
+ 'label': item.f_residential_area,
304
+ 'value': item.f_residential_area,
305
+ }
306
+ })
307
+ },
245
308
  check(val) {
246
309
  this.$dispatch('apply', val)
247
310
  },
@@ -250,6 +313,9 @@
250
313
  }
251
314
  },
252
315
  computed: {
316
+ projectType() {
317
+ return this.$appdata.getParam("工程类型")
318
+ },
253
319
  getCondition () {
254
320
  console.log("condition",this.$refs.cp.$refs.cri.condition)
255
321
  return {