apply-clients 3.3.110-243 → 3.3.110-246

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.110-243",
3
+ "version": "3.3.110-246",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -328,7 +328,7 @@ export default {
328
328
  this.$refs.cp.$refs.cri.search()
329
329
  },
330
330
  searchCondition (args) {
331
- args.condition = args.condition + `and (f_apply_type ='团购转散户' and (act.defname!='信息确认' or act.defname!='合同签订') )`
331
+ args.condition = args.condition + `and (act.defname!='信息确认' or act.defname!='合同签订') `
332
332
  this.model.search(args.condition, args.model)
333
333
  },
334
334
  click (row) {
@@ -89,7 +89,21 @@
89
89
  </tr>
90
90
  <tr>
91
91
  <td>销售方(章)</td>
92
- <td colspan="4"></td>
92
+ <td colspan="4" v-if="charge.f_orgname==='郸城县天然气有限公司'">
93
+ <img src="../../../../image/郸城收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
94
+ </td>
95
+ <td colspan="4" v-if="charge.f_orgname==='周口市天然气有限公司'">
96
+ <img src="../../../../image/周口收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
97
+ </td>
98
+ <td colspan="4" v-if="charge.f_orgname==='项城市天然气有限公司'">
99
+ <img src="../../../../image/项城收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
100
+ </td>
101
+ <td colspan="4" v-if="charge.f_orgname==='西华县天然气有限公司'">
102
+ <img src="../../../../image/西华收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
103
+ </td>
104
+ <td colspan="4" v-if="charge.f_orgname==='鹿邑县天然气有限公司'">
105
+ <img src="../../../../image/鹿邑收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
106
+ </td>
93
107
  </tr>
94
108
  <tr>
95
109
  <td>备&emsp;&emsp;注</td>
@@ -101,7 +115,7 @@
101
115
  </td>
102
116
  </tr>
103
117
  </table>
104
- <img class="seal" border="0" :src="src" alt="">
118
+ <!-- <img class="seal" border="0" :src="src" alt="">-->
105
119
  </div>
106
120
 
107
121
  <print-element v-show="false" v-ref:print id='printCharge' styleid='printChargeStyle'
@@ -856,10 +856,7 @@ export default {
856
856
  const year = date.year.toString().substring(2,4) //年份
857
857
 
858
858
  let data = {
859
- dataYm: dataYm,
860
- newYear: newYear,
861
- orgid: this.$login.f.orgid,
862
- condition: `f_apply_nature = '${this.show_data.f_apply_nature}'`
859
+ orgid: this.$login.f.orgid
863
860
  }
864
861
 
865
862
  let http = new HttpResetClass()
@@ -867,13 +864,23 @@ export default {
867
864
  resolveMsg: null,
868
865
  rejectMsg: null
869
866
  })
870
- if (res.data[0].count === 0) {
871
- f_contract_number = dir + type + nature + year + newMonth + '001'
872
- console.log("触发if", f_contract_number)
873
- } else {
874
- let count = res.data[0].count
875
- f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
876
- console.log("触发else", f_contract_number)
867
+ let oldDate
868
+ for (const item of res.data) {
869
+ if (item.name === '合同编号最后更新日期'){
870
+ oldDate = item.value
871
+ }
872
+ }
873
+ for (const item of res.data){
874
+ if (item.name === '合同编号'){
875
+ if (item.value === 0 || Date.parse(oldDate) < Date.parse(dataYm)) {
876
+ f_contract_number = dir + type + nature + year + newMonth + '001'
877
+ console.log("触发if", f_contract_number)
878
+ } else {
879
+ let count = res.item.value
880
+ f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
881
+ console.log("触发else", f_contract_number)
882
+ }
883
+ }
877
884
  }
878
885
  this.selectdata.f_contract_number = f_contract_number
879
886
  this.show_data.f_contract_number = f_contract_number
@@ -1581,7 +1588,7 @@ export default {
1581
1588
  }
1582
1589
  }
1583
1590
  if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
1584
- && (this.show_data.defname === '报装申请')){
1591
+ && (this.show_data.defname === '报装申请') && this.show_data.button.button_name === '提交'){
1585
1592
  await this.contract_number()
1586
1593
  }
1587
1594
  if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '保存'||this.show_data.button.button_name === '提交')){
@@ -1,400 +1,399 @@
1
- <template>
2
- <div class="col-sm-12">
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">客户名称:</label>
9
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
- </div>
12
- <div class="form-group col-sm-3">
13
- <label class="font_normal_body">组织机构:</label>
14
- <res-select
15
- restype='organization'
16
- :initresid='$parent.$parent.curorgid'·
17
- @res-select="$parent.$parent.getorg"
18
- is-mul="false"
19
- ></res-select>
20
- </div>
21
- <!-- <div class="form-group col-sm-3">-->
22
- <!-- <label class="font_normal_body">工程编号:</label>-->
23
- <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
- <!-- v-on:keyup.enter="search"-->
25
- <!-- condition="f_apply_num = '{}'">-->
26
- <!-- </div>-->
27
- <div class="form-group col-sm-2 button-range">
28
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
29
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
30
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
31
- <export-excel :data="$parent.$parent.getCondition"
32
- :field="$parent.$parent.getfield"
33
- sqlurl="rs/logic/applyExportfile"
34
- sql-name="supervisory"
35
- template-name='报装信息导出'
36
- :choose-col="true"></export-excel>
37
- <div
38
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
40
- class="button_spacing"
41
- style="float: right">
42
- </div>
43
- </div>
44
- </div>
45
- <div class="row" v-show="$parent.$parent.criteriaShow">
46
- <!-- <div class="form-group col-sm-3">-->
47
- <!-- <label class="font_normal_body">客户名称:</label>-->
48
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
49
- <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
50
- <!-- </div>-->
51
- <div class="form-group col-sm-3">
52
- <label class="font_normal_body">工程编号:</label>
53
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
54
- v-on:keyup.enter="search"
55
- condition="f_apply_num = '{}'">
56
- </div>
57
- <div class="form-group col-sm-3">
58
- <label class="font_normal_body">合同编号:</label>
59
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_money"
60
- v-on:keyup.enter="$parent.$parent.search()"
61
- condition="f_contract_money like '%{}%'">
62
- </div>
63
- <div class="form-group col-sm-3">
64
- <label class="font_normal_body">联系电话:</label>
65
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
66
- v-on:keyup.enter="search"
67
- condition="f_phone like '%{}%'">
68
- </div>
69
- <div class="form-group col-sm-3">
70
- <label class="font_normal_body">合同编号:</label>
71
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
72
- v-on:keyup.enter="search"
73
- condition="f_contract_number = '{}'">
74
- </div>
75
- <div class="form-group col-sm-3">
76
- <label class="font_normal_body">报建类型:</label>
77
- <v-select
78
- v-model="model.f_apply_type"
79
- placeholder='报建类型'
80
- condition="f_apply_type = '{}'"
81
- :value.sync="model.f_apply_type"
82
- :options='$parent.$parent.applytype'
83
- class="select select_list"
84
- :value-single="true"
85
- @change="$parent.$parent.applyTypeChange()"
86
- close-on-select ></v-select>
87
- </div>
88
- <div class="form-group col-sm-3">
89
- <label class="font_normal_body">办理环节:</label>
90
- <v-select
91
- v-model="model.defname"
92
- placeholder='办理环节'
93
- condition="defname = '{}'"
94
- :value.sync="model.defname"
95
- :options='$parent.$parent.defnames'
96
- class="select select_list"
97
- :value-single="true"
98
- close-on-select ></v-select>
99
- </div>
100
- <div class="form-group col-sm-3">
101
- <label class="font_normal_body">报建性质:</label>
102
- <v-select
103
- v-model="model.f_apply_nature"
104
- placeholder='报建性质'
105
- condition="f_apply_nature = '{}'"
106
- :value.sync="model.f_apply_nature"
107
- :options='$parent.$parent.applyNatures'
108
- class="select select_list"
109
- :value-single="true"
110
- close-on-select ></v-select>
111
- </div>
112
- <div class="form-group col-sm-3">
113
- <label class="font_normal_body">流程状态:</label>
114
- <v-select
115
- v-model="model.f_sub_state"
116
- placeholder='流程状态'
117
- condition="f_sub_state = '{}'"
118
- :value.sync="model.f_sub_state"
119
- :options='$parent.$parent.subStates'
120
- class="select select_list"
121
- :value-single="true"
122
- close-on-select ></v-select>
123
- </div>
124
- <div class="form-group col-sm-3">
125
- <label class="font_normal_body">用户地址:</label>
126
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
127
- v-on:keyup.enter="search"
128
- condition="f_address like '%{}%'">
129
- </div>
130
- <div class="form-group col-sm-3">
131
- <label for="startDate" class="font_normal_body">开始时间:</label>
132
- <datepicker id="startDate" placeholder="开始日期"
133
- style="width: 60%!important;"
134
- v-model="model.startDate"
135
- :value.sync="model.startDate"
136
- :format="'yyyy-MM-dd 00:00:00'"
137
- :show-reset-button="true"
138
- condition="f_apply_date >= '{}'">
139
- </datepicker>
140
- </div>
141
- <div class="form-group col-sm-3">
142
- <label for="endDate" class="font_normal_body">结束时间:</label>
143
- <datepicker id="endDate" placeholder="结束日期"
144
- style="width: 60%!important;"
145
- v-model="model.endDate"
146
- :value.sync="model.endDate"
147
- :format="'yyyy-MM-dd 23:59:59'"
148
- :show-reset-button="true"
149
- condition="f_apply_date <= '{}'">
150
- </datepicker>
151
- </div>
152
- <div class="form-group col-sm-3">
153
- <label class="font_normal_body">施工单位:</label>
154
- <input type="text" style="width:60%" class="input_search" v-model="model.f_construction_unit"
155
- v-on:keyup.enter="$parent.$parent.search()" condition="f_construction_unit like '%{}%'" placeholder='施工单位'>
156
- </div>
157
- <div class="form-group col-sm-3">
158
- <label class="font_normal_body">表&emsp;&emsp;号:</label>
159
- <input type="text" style="width:60%" class="input_search" placeholder='表号' v-model="model.f_meternumber"
160
- v-on:keyup.enter="$parent.$parent.search()"
161
- condition="meternumber like '%{}%'">
162
- </div>
163
- <div class="form-group col-sm-3">
164
- <label class="font_normal_body">领用人:</label>
165
- <input type="text" style="width:60%" class="input_search" placeholder='领用人' v-model="model.lyr"
166
- v-on:keyup.enter="$parent.$parent.search()"
167
- condition="lyr like '%{}%'">
168
- </div>
169
- <div class="form-group col-sm-3">
170
- <label class="font_normal_body">发货人:</label>
171
- <input type="text" style="width:60%" class="input_search" placeholder='发货人' v-model="model.fyr"
172
- v-on:keyup.enter="$parent.$parent.search()"
173
- condition="fyr like '%{}%'">
174
- </div>
175
- <div class="form-group col-sm-3">
176
- <label class="font_normal_body">发起人:</label>
177
- <input type="text" style="width:60%" class="input_search" placeholder='发起人' v-model="model.f_operator"
178
- v-on:keyup.enter="$parent.$parent.search()"
179
- condition="f_operator like '%{}%'">
180
- </div>
181
- <div class="form-group col-sm-3">
182
- <label class="font_normal_body">领用状态:</label>
183
- <v-select
184
- v-model="model.frstate"
185
- placeholder='流程状态'
186
- condition="frstate = '{}'"
187
- :value.sync="model.frstate"
188
- :options='$parent.$parent.lyStates'
189
- class="select select_list"
190
- :value-single="true"
191
- close-on-select ></v-select>
192
- </div>
193
- </div>
194
- </div>
195
- </criteria>
196
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
197
- <template partial='head'>
198
- <tr>
199
- <th style="white-space: nowrap;">序号</th>
200
- <th style="white-space: nowrap;">工程编号</th>
201
- <th style="white-space: nowrap;">客户名称</th>
202
- <th style="white-space: nowrap;">合同编号</th>
203
- <th style="white-space: nowrap;">电话</th>
204
- <th style="white-space: nowrap;">地址</th>
205
- <th style="white-space: nowrap;">来源</th>
206
- <th style="white-space: nowrap;">报建类型</th>
207
- <th style="white-space: nowrap;">办理环节</th>
208
- <th style="white-space: nowrap;">流程状态</th>
209
- <th style="white-space: nowrap;">报建日期</th>
210
- <th style="white-space: nowrap;">安装项目</th>
211
- <th style="white-space: nowrap;">施工单位</th>
212
- <th style="white-space: nowrap;">施工时间</th>
213
- <th style="white-space: nowrap;">缴费金额</th>
214
- <th style="white-space: nowrap;">领用人</th>
215
- <th style="white-space: nowrap;">发货人</th>
216
- <th style="white-space: nowrap;">发起人</th>
217
- </tr>
218
- </template>
219
- <template partial='body'>
220
- <tr>
221
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
222
- <nobr>{{$index+1}}</nobr>
223
- </td>
224
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
225
- <nobr>{{row.f_apply_num}}</nobr>
226
- </td>
227
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
228
- <nobr>{{row.f_user_name}}</nobr>
229
- </td>
230
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
231
- <nobr>{{row.f_contract_number}}</nobr>
232
- </td>
233
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
234
- <nobr>{{row.f_phone}}</nobr>
235
- </td>
236
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
237
- <nobr>{{row.f_address}}</nobr>
238
- </td>
239
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
240
- <nobr>{{row.f_apply_source}}</nobr>
241
- </td>
242
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
243
- <nobr>{{row.f_apply_type}}</nobr>
244
- </td>
245
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
246
- <nobr>{{row.defname}}</nobr>
247
- </td>
248
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
249
- <nobr>{{row.f_sub_state}}</nobr>
250
- </td>
251
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
252
- <nobr>{{row.f_apply_date}}</nobr>
253
- </td>
254
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
255
- <nobr>{{row.f_install_project}}</nobr>
256
- </td>
257
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
258
- <nobr>{{row.f_construction_unit}}</nobr>
259
- </td>
260
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
261
- <nobr>{{row.f_construction_date}}</nobr>
262
- </td>
263
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
264
- <nobr>{{row.f_cumulative_payment_money}}</nobr>
265
- </td>
266
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
267
- <nobr>{{row.lyr}}</nobr>
268
- </td>
269
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
270
- <nobr>{{row.fyr}}</nobr>
271
- </td>
272
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
273
- <nobr>{{row.f_operator}}</nobr>
274
- </td>
275
- </tr>
276
- </template>
277
- </data-grid>
278
- </criteria-paged>
279
- </div>
280
- </template>
281
- <script>
282
- import {PagedList} from 'vue-client'
283
- import {isEmpty} from '../../Util'
284
- export default {
285
- title: '勘探详情',
286
- props: ['showData'],
287
- data () {
288
- return {
289
- model: new PagedList('rs/sql/supervisory', 20, {
290
- data: {
291
- orgid: this.$login.f.orgid
292
- }
293
- }),
294
- curorgid: [this.$login.f.orgid],
295
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
296
- defnames: [{label: '全部', value: ''}], // 流程节点
297
- applyNatures: [{label: '全部', value: ''}], // 报建性质
298
- criteriaShow: false,
299
- subStates: [
300
- {label: '全部', value: ''},
301
- {label: '新增', value: '新增'},
302
- {label: '暂停', value: '暂停'},
303
- {label: '终止', value: '终止'},
304
- {label: '完工', value: '完工'},
305
- {label: '正在进行', value: '正在进行'}
306
- ], // 流程状态
307
- lyStates: [
308
- {label: '全部', value: ''},
309
- {label: '已领', value: '已领'},
310
- {label: '未领', value: '未领'}
311
-
312
- ], // 流程状态
313
- getfield: {
314
- 'f_apply_num': '工程编号',
315
- 'f_user_name': '客户名称',
316
- 'f_contract_number': '合同编号',
317
- 'f_phone': '电话',
318
- 'f_address': '地址',
319
- 'f_apply_type': '报建类型',
320
- 'f_apply_nature': '报建性质',
321
- 'f_cumulative_payment_money': '收费金额',
322
- 'defname': '办理环节',
323
- 'f_sub_state': '流程状态',
324
- 'f_apply_date': '报建日期',
325
- 'f_apply_remarks': '备注',
326
- 'f_payment_remarks': '缴费备注',
327
- 'f_install_project': '安装项目',
328
- 'f_construction_unit': '施工单位',
329
- 'f_construction_date': '施工时间',
330
- 'f_operator': '发起人',
331
- 'f_depname':'发起人部门',
332
- 'lyr': '领用人',
333
- 'fdnyr':'领用人部门',
334
- 'fyr': '发货人',
335
- 'fdnfr':'发货人部门',
336
- 'meternumber':'表号'
337
- },
338
- getCondition : {
339
- condition: '',
340
- data: {
341
- orgid: this.$login.f.orgid
342
- }
343
- }
344
-
345
- }
346
- },
347
- ready () {
348
- // 调用查询
349
- this.search()
350
- },
351
- events: {
352
- },
353
- methods: {
354
- loadPage () {
355
- this.$dispatch('loadPage')
356
- },
357
- // 查询
358
- search () {
359
- this.getCondition.condition = this.model.condition
360
- this.getCondition.data.orgid = this.model.params.data.orgid
361
- this.$dispatch('search')
362
- },
363
- check (val) {
364
- this.$dispatch('apply', val)
365
- },
366
- async applyTypeChange () {
367
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
368
- let res = await this.$resetpost('rs/logic/getDefnameByType',
369
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
370
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
371
- )
372
-
373
- this.defnames = [{label: '全部', value: ''}, ...res.data]
374
-
375
- this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
376
- } else {
377
- this.defnames = [{label: '全部', value: ''}]
378
- this.applyNatures = [{label: '全部', value: ''}]
379
- }
380
- },
381
- clear () {
382
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
383
- this.$refs.cp.$refs.cri.model[key] = null
384
- })
385
- },
386
- getorg (val) {
387
- if (val.length <= 0) {
388
- return
389
- }
390
- this.model.params.data={orgid:this.$login.f.orgid}
391
- this.model.params.data.orgid = val[0]
392
- }
393
- },
394
- computed: {
395
-
396
- }
397
- }
398
- </script>
399
- <style scoped>
400
- </style>
1
+ <template>
2
+ <div class="col-sm-12">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">客户名称:</label>
9
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
10
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
+ </div>
12
+ <div class="form-group col-sm-3">
13
+ <label class="font_normal_body">组织机构:</label>
14
+ <res-select
15
+ restype='organization'
16
+ :initresid='$parent.$parent.curorgid'·
17
+ @res-select="$parent.$parent.getorg"
18
+ is-mul="false"
19
+ ></res-select>
20
+ </div>
21
+ <!-- <div class="form-group col-sm-3">-->
22
+ <!-- <label class="font_normal_body">工程编号:</label>-->
23
+ <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
+ <!-- v-on:keyup.enter="search"-->
25
+ <!-- condition="f_apply_num = '{}'">-->
26
+ <!-- </div>-->
27
+ <div class="form-group col-sm-2 button-range">
28
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
29
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
30
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
31
+ <export-excel :data="$parent.$parent.getCondition"
32
+ :field="$parent.$parent.getfield"
33
+ sqlurl="rs/logic/applyExportfile"
34
+ sql-name="supervisory"
35
+ template-name='报装信息导出'
36
+ :choose-col="true"></export-excel>
37
+ <div
38
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
40
+ class="button_spacing"
41
+ style="float: right">
42
+ </div>
43
+ </div>
44
+ </div>
45
+ <div class="row" v-show="$parent.$parent.criteriaShow">
46
+ <!-- <div class="form-group col-sm-3">-->
47
+ <!-- <label class="font_normal_body">客户名称:</label>-->
48
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
49
+ <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
50
+ <!-- </div>-->
51
+ <div class="form-group col-sm-3">
52
+ <label class="font_normal_body">工程编号:</label>
53
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
54
+ v-on:keyup.enter="search"
55
+ condition="f_apply_num = '{}'">
56
+ </div>
57
+ <div class="form-group col-sm-3">
58
+ <label class="font_normal_body">合同金额:</label>
59
+ <input type="text" style="width:60%" class="input_search" placeholder='合同金额' v-model="model.f_contract_money"
60
+ v-on:keyup.enter="$parent.$parent.search()"
61
+ condition="f_contract_money like '%{}%'">
62
+ </div>
63
+ <div class="form-group col-sm-3">
64
+ <label class="font_normal_body">联系电话:</label>
65
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
66
+ v-on:keyup.enter="search"
67
+ condition="f_phone like '%{}%'">
68
+ </div>
69
+ <div class="form-group col-sm-3">
70
+ <label class="font_normal_body">合同编号:</label>
71
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
72
+ v-on:keyup.enter="search"
73
+ condition="f_contract_number = '{}'">
74
+ </div>
75
+ <div class="form-group col-sm-3">
76
+ <label class="font_normal_body">报建类型:</label>
77
+ <v-select
78
+ v-model="model.f_apply_type"
79
+ placeholder='报建类型'
80
+ condition="f_apply_type = '{}'"
81
+ :value.sync="model.f_apply_type"
82
+ :options='$parent.$parent.applytype'
83
+ class="select select_list"
84
+ :value-single="true"
85
+ @change="$parent.$parent.applyTypeChange()"
86
+ close-on-select ></v-select>
87
+ </div>
88
+ <div class="form-group col-sm-3">
89
+ <label class="font_normal_body">办理环节:</label>
90
+ <v-select
91
+ v-model="model.defname"
92
+ placeholder='办理环节'
93
+ condition="defname = '{}'"
94
+ :value.sync="model.defname"
95
+ :options='$parent.$parent.defnames'
96
+ class="select select_list"
97
+ :value-single="true"
98
+ close-on-select ></v-select>
99
+ </div>
100
+ <div class="form-group col-sm-3">
101
+ <label class="font_normal_body">报建性质:</label>
102
+ <v-select
103
+ v-model="model.f_apply_nature"
104
+ placeholder='报建性质'
105
+ condition="f_apply_nature = '{}'"
106
+ :value.sync="model.f_apply_nature"
107
+ :options='$parent.$parent.applyNatures'
108
+ class="select select_list"
109
+ :value-single="true"
110
+ close-on-select ></v-select>
111
+ </div>
112
+ <div class="form-group col-sm-3">
113
+ <label class="font_normal_body">流程状态:</label>
114
+ <v-select
115
+ v-model="model.f_sub_state"
116
+ placeholder='流程状态'
117
+ condition="f_sub_state = '{}'"
118
+ :value.sync="model.f_sub_state"
119
+ :options='$parent.$parent.subStates'
120
+ class="select select_list"
121
+ :value-single="true"
122
+ close-on-select ></v-select>
123
+ </div>
124
+ <div class="form-group col-sm-3">
125
+ <label class="font_normal_body">用户地址:</label>
126
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
127
+ v-on:keyup.enter="search"
128
+ condition="f_address like '%{}%'">
129
+ </div>
130
+ <div class="form-group col-sm-3">
131
+ <label for="startDate" class="font_normal_body">开始时间:</label>
132
+ <datepicker id="startDate" placeholder="开始日期"
133
+ style="width: 60%!important;"
134
+ v-model="model.startDate"
135
+ :value.sync="model.startDate"
136
+ :format="'yyyy-MM-dd 00:00:00'"
137
+ :show-reset-button="true"
138
+ condition="f_apply_date >= '{}'">
139
+ </datepicker>
140
+ </div>
141
+ <div class="form-group col-sm-3">
142
+ <label for="endDate" class="font_normal_body">结束时间:</label>
143
+ <datepicker id="endDate" placeholder="结束日期"
144
+ style="width: 60%!important;"
145
+ v-model="model.endDate"
146
+ :value.sync="model.endDate"
147
+ :format="'yyyy-MM-dd 23:59:59'"
148
+ :show-reset-button="true"
149
+ condition="f_apply_date <= '{}'">
150
+ </datepicker>
151
+ </div>
152
+ <div class="form-group col-sm-3">
153
+ <label class="font_normal_body">施工单位:</label>
154
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_construction_unit"
155
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_construction_unit like '%{}%'" placeholder='施工单位'>
156
+ </div>
157
+ <div class="form-group col-sm-3">
158
+ <label class="font_normal_body">表&emsp;&emsp;号:</label>
159
+ <input type="text" style="width:60%" class="input_search" placeholder='表号' v-model="model.f_meternumber"
160
+ v-on:keyup.enter="$parent.$parent.search()"
161
+ condition="meternumber like '%{}%'">
162
+ </div>
163
+ <div class="form-group col-sm-3">
164
+ <label class="font_normal_body">领用人:</label>
165
+ <input type="text" style="width:60%" class="input_search" placeholder='领用人' v-model="model.lyr"
166
+ v-on:keyup.enter="$parent.$parent.search()"
167
+ condition="lyr like '%{}%'">
168
+ </div>
169
+ <div class="form-group col-sm-3">
170
+ <label class="font_normal_body">发货人:</label>
171
+ <input type="text" style="width:60%" class="input_search" placeholder='发货人' v-model="model.fyr"
172
+ v-on:keyup.enter="$parent.$parent.search()"
173
+ condition="fyr like '%{}%'">
174
+ </div>
175
+ <div class="form-group col-sm-3">
176
+ <label class="font_normal_body">发起人:</label>
177
+ <input type="text" style="width:60%" class="input_search" placeholder='发起人' v-model="model.f_operator"
178
+ v-on:keyup.enter="$parent.$parent.search()"
179
+ condition="f_operator like '%{}%'">
180
+ </div>
181
+ <div class="form-group col-sm-3">
182
+ <label class="font_normal_body">领用状态:</label>
183
+ <v-select
184
+ v-model="model.frstate"
185
+ placeholder='流程状态'
186
+ condition="frstate = '{}'"
187
+ :value.sync="model.frstate"
188
+ :options='$parent.$parent.lyStates'
189
+ class="select select_list"
190
+ :value-single="true"
191
+ close-on-select ></v-select>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </criteria>
196
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
197
+ <template partial='head'>
198
+ <tr>
199
+ <th style="white-space: nowrap;">序号</th>
200
+ <th style="white-space: nowrap;">工程编号</th>
201
+ <th style="white-space: nowrap;">客户名称</th>
202
+ <th style="white-space: nowrap;">合同编号</th>
203
+ <th style="white-space: nowrap;">电话</th>
204
+ <th style="white-space: nowrap;">地址</th>
205
+ <th style="white-space: nowrap;">来源</th>
206
+ <th style="white-space: nowrap;">报建类型</th>
207
+ <th style="white-space: nowrap;">办理环节</th>
208
+ <th style="white-space: nowrap;">流程状态</th>
209
+ <th style="white-space: nowrap;">报建日期</th>
210
+ <th style="white-space: nowrap;">安装项目</th>
211
+ <th style="white-space: nowrap;">施工单位</th>
212
+ <th style="white-space: nowrap;">施工时间</th>
213
+ <th style="white-space: nowrap;">缴费金额</th>
214
+ <th style="white-space: nowrap;">领用人</th>
215
+ <th style="white-space: nowrap;">发货人</th>
216
+ <th style="white-space: nowrap;">发起人</th>
217
+ </tr>
218
+ </template>
219
+ <template partial='body'>
220
+ <tr>
221
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
222
+ <nobr>{{$index+1}}</nobr>
223
+ </td>
224
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
225
+ <nobr>{{row.f_apply_num}}</nobr>
226
+ </td>
227
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
228
+ <nobr>{{row.f_user_name}}</nobr>
229
+ </td>
230
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
231
+ <nobr>{{row.f_contract_number}}</nobr>
232
+ </td>
233
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
234
+ <nobr>{{row.f_phone}}</nobr>
235
+ </td>
236
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
237
+ <nobr>{{row.f_address}}</nobr>
238
+ </td>
239
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
240
+ <nobr>{{row.f_apply_source}}</nobr>
241
+ </td>
242
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
243
+ <nobr>{{row.f_apply_type}}</nobr>
244
+ </td>
245
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
246
+ <nobr>{{row.defname}}</nobr>
247
+ </td>
248
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
249
+ <nobr>{{row.f_sub_state}}</nobr>
250
+ </td>
251
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
252
+ <nobr>{{row.f_apply_date}}</nobr>
253
+ </td>
254
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
255
+ <nobr>{{row.f_install_project}}</nobr>
256
+ </td>
257
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
258
+ <nobr>{{row.f_construction_unit}}</nobr>
259
+ </td>
260
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
261
+ <nobr>{{row.f_construction_date}}</nobr>
262
+ </td>
263
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
264
+ <nobr>{{row.f_cumulative_payment_money}}</nobr>
265
+ </td>
266
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
267
+ <nobr>{{row.lyr}}</nobr>
268
+ </td>
269
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
270
+ <nobr>{{row.fyr}}</nobr>
271
+ </td>
272
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
273
+ <nobr>{{row.f_operator}}</nobr>
274
+ </td>
275
+ </tr>
276
+ </template>
277
+ </data-grid>
278
+ </criteria-paged>
279
+ </div>
280
+ </template>
281
+ <script>
282
+ import {PagedList} from 'vue-client'
283
+ import {isEmpty} from '../../Util'
284
+ export default {
285
+ title: '勘探详情',
286
+ props: ['showData'],
287
+ data () {
288
+ return {
289
+ model: new PagedList('rs/sql/supervisory', 20, {
290
+ data: {
291
+ orgid: this.$login.f.orgid
292
+ }
293
+ }),
294
+ orgid:'',
295
+ curorgid: [this.$login.f.orgid],
296
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
297
+ defnames: [{label: '全部', value: ''}], // 流程节点
298
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
299
+ criteriaShow: false,
300
+ subStates: [
301
+ {label: '全部', value: ''},
302
+ {label: '新增', value: '新增'},
303
+ {label: '暂停', value: '暂停'},
304
+ {label: '终止', value: '终止'},
305
+ {label: '完工', value: '完工'},
306
+ {label: '正在进行', value: '正在进行'}
307
+ ], // 流程状态
308
+ lyStates: [
309
+ {label: '全部', value: ''},
310
+ {label: '已领', value: '已领'},
311
+ {label: '未领', value: '未领'}
312
+
313
+ ], // 流程状态
314
+ getfield: {
315
+ 'f_apply_num': '工程编号',
316
+ 'f_user_name': '客户名称',
317
+ 'f_contract_number': '合同编号',
318
+ 'f_phone': '电话',
319
+ 'f_address': '地址',
320
+ 'f_apply_type': '报建类型',
321
+ 'f_apply_nature': '报建性质',
322
+ 'f_cumulative_payment_money': '收费金额',
323
+ 'defname': '办理环节',
324
+ 'f_sub_state': '流程状态',
325
+ 'f_apply_date': '报建日期',
326
+ 'f_apply_remarks': '备注',
327
+ 'f_payment_remarks': '缴费备注',
328
+ 'f_install_project': '安装项目',
329
+ 'f_construction_unit': '施工单位',
330
+ 'f_construction_date': '施工时间',
331
+ 'f_operator': '发起人',
332
+ 'f_depname':'发起人部门',
333
+ 'lyr': '领用人',
334
+ 'fdnyr':'领用人部门',
335
+ 'fyr': '发货人',
336
+ 'fdnfr':'发货人部门',
337
+ 'meternumber':'表号'
338
+ }
339
+ }
340
+ },
341
+ ready () {
342
+ // 调用查询
343
+ this.search()
344
+ },
345
+ events: {
346
+ },
347
+ methods: {
348
+ loadPage () {
349
+ this.$dispatch('loadPage')
350
+ },
351
+ // 查询
352
+ search () {
353
+ this.$dispatch('search')
354
+ },
355
+ check (val) {
356
+ this.$dispatch('apply', val)
357
+ },
358
+ async applyTypeChange () {
359
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
360
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
361
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
362
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
363
+ )
364
+
365
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
366
+
367
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
368
+ } else {
369
+ this.defnames = [{label: '全部', value: ''}]
370
+ this.applyNatures = [{label: '全部', value: ''}]
371
+ }
372
+ },
373
+ clear () {
374
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
375
+ this.$refs.cp.$refs.cri.model[key] = null
376
+ })
377
+ },
378
+ getorg (val) {
379
+ if (val.length <= 0) {
380
+ return
381
+ }
382
+ this.model.params.data.orgid = val[0]
383
+ this.orgid= val[0]
384
+ }
385
+ },
386
+ computed: {
387
+ getCondition () {
388
+ return {
389
+ condition: this.model.condition,
390
+ data: {
391
+ orgid: this.orgid
392
+ }
393
+ }
394
+ }
395
+ }
396
+ }
397
+ </script>
398
+ <style scoped>
399
+ </style>