apply-clients 5.0.35-73 → 5.0.35-76

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": "5.0.35-73",
3
+ "version": "5.0.35-76",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -97,6 +97,8 @@ export default {
97
97
  f_room:this.models2.f_room,
98
98
  f_address:this.models2.f_address,
99
99
  f_idnumber:this.models2.f_social_credit_code,
100
+ f_apply_source:this.models2.f_apply_source,
101
+ f_sub_state:'未完工',
100
102
  user:Vue.user
101
103
  }
102
104
  await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
@@ -653,6 +655,8 @@ export default {
653
655
  let http = new HttpResetClass()
654
656
  if (this.data.defname === '通气转单'&& model.button.button_name === '提交'){
655
657
  requestData.model.f_sub_state = '完工'
658
+ }else {
659
+ requestData.model.f_sub_state = '未完工'
656
660
  }
657
661
  var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
658
662
  // let res = await http.load('POST',url,{data:data}, {resolveMsg: null, rejectMsg: null})
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
  </div>
24
24
  <div class="col-sm-2">
25
- <label class="col-sm-4 control-label">报装地址</label>
25
+ <label class="col-sm-4 control-label">工程地址</label>
26
26
  <div class="col-sm-8">
27
27
  <input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
28
28
  v-on:keyup.enter="search"
@@ -82,19 +82,14 @@
82
82
  </div>
83
83
 
84
84
  <div class="col-sm-2" style="float: left">
85
- <label class="col-sm-4 control-label">报装来源</label>
85
+ <label class="col-sm-4 control-label">工程来源</label>
86
86
  <div class="col-sm-8">
87
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'住建局',value:'住建局'}]"
88
- condition="f_apply_source = '{}'" placeholder='报装来源'
87
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},...this.$appdata.getParam('报装来源')]"
88
+ condition="f_apply_source = '{}'" placeholder='工程来源'
89
89
  v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
90
90
  </v-select>
91
91
  </div>
92
92
  </div>
93
-
94
-
95
-
96
- </div>
97
- <div class="col-sm-12 " style="margin-top:5px">
98
93
  <div class="col-sm-2">
99
94
  <label class="col-sm-4 control-label ">用户类型</label>
100
95
  <div class="col-sm-8">
@@ -104,6 +99,10 @@
104
99
  </v-select>
105
100
  </div>
106
101
  </div>
102
+
103
+ </div>
104
+ <div class="col-sm-12 " style="margin-top:5px">
105
+
107
106
  </div>
108
107
 
109
108
 
@@ -258,7 +257,7 @@ export default {
258
257
  containt: this.$appdata.getParam('工作内容'),
259
258
  condition:'',
260
259
  select: '',
261
- alloptions:[],
260
+ alloptions:[{label:"踏勘",value:"踏勘"},{label:"施工",value:"施工"},{label:"施工验收",value:"施工验收"},{label:"通气转单",value:"通气转单"}],
262
261
  button_name:"查询",
263
262
  showstopinfoflag:false,
264
263
  stopremarks:"",
@@ -305,7 +304,7 @@ export default {
305
304
  closestopinfo(){
306
305
  this.showstopinfoflag = close;
307
306
  },
308
- getapplyName(str){
307
+ /* getapplyName(str){
309
308
  console.log("开始获取所有名")
310
309
  console.log(JSON.stringify(str.activitys))
311
310
  let param = [];
@@ -318,7 +317,7 @@ export default {
318
317
  })
319
318
  this.alloptions = param;
320
319
 
321
- },
320
+ },*/
322
321
  generateUUID() {
323
322
  var d = new Date().getTime()
324
323
  var uuid = 'xxxxxxxx-xxxx-xxxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
@@ -64,6 +64,9 @@
64
64
  <th>
65
65
  <nobr>地址</nobr>
66
66
  </th>
67
+ <th>
68
+ <nobr>缴费状态</nobr>
69
+ </th>
67
70
  <th>
68
71
  <nobr>操作</nobr>
69
72
  </th>
@@ -74,8 +77,9 @@
74
77
  <td style="text-align: center">{{row.f_user_name}}</td>
75
78
  <td style="text-align: center">{{row.f_user_phone}}</td>
76
79
  <td style="text-align: center">{{row.address}}</td>
80
+ <td style="text-align: center">{{row.f_charging_status=='有效'?'已缴':'未缴'}}</td>
77
81
  <button type="button" name="button" class="btn btn-link"
78
- @click.stop="$parent.$parent.$parent.getUserinfo($index)">收费
82
+ @click.stop="$parent.$parent.$parent.getUserinfo($index)">{{row.f_charging_status=='有效'?'已收':'收费'}}
79
83
  </button>
80
84
  </template>
81
85
  </data-grid>
@@ -1059,8 +1063,11 @@
1059
1063
  resolveMsg: null,
1060
1064
  rejectMsg: '获取用户信息失败!'
1061
1065
  })
1066
+ console.dir(userinfores.data)
1067
+ console.log(userinfores.data[0].f_charging_status=='有效'?'已缴':'未缴')
1062
1068
  this.userinfoRow.rows = userinfores.data;
1063
1069
 
1070
+
1064
1071
  this.oldInfo.f_user_name = this.model.f_user_name;
1065
1072
  this.oldInfo.f_phone = this.model.f_phone;
1066
1073
  this.oldInfo.f_address = this.model.f_address;
@@ -181,8 +181,9 @@
181
181
  <div novalidate class="form-inline auto" partial>
182
182
  <p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
183
183
  <span style="color: red">{{modeluse.rows.length}}</span>笔,
184
- 合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
185
- 已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元
184
+ 收款金额合计<span style="color: red">{{price.rows[0].f_charge_money}}</span>元,
185
+ <!--合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
186
+ 已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元-->
186
187
  </p>
187
188
  </div>
188
189
  </div>
@@ -211,6 +211,8 @@
211
211
  f_room:this.models2.f_room,
212
212
  f_address:this.models2.f_address,
213
213
  f_idnumber:this.models2.f_social_credit_code,
214
+ f_apply_source:this.models2.f_apply_source,
215
+ f_sub_state:'未完工',
214
216
  user:this.$login.f
215
217
  }
216
218
  await http.load('POST','rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
@@ -1926,6 +1928,10 @@
1926
1928
  }
1927
1929
  console.log('本次点击button执行的操作是=>' + operate)
1928
1930
  model = Object.assign({}, this.selectdata, model)
1931
+ model.f_sub_state = '未完工'
1932
+ if (this.data.defname === '通气转单' && model.button.button_name === '提交'){
1933
+ model.f_sub_state = '完工'
1934
+ }
1929
1935
  let http = new HttpResetClass()
1930
1936
  var url
1931
1937
  var requestData = {
@@ -1961,12 +1967,11 @@
1961
1967
  this.models2 = model
1962
1968
  return
1963
1969
  }
1964
- if (this.data.defname === '通气转单'&& model.button.button_name === '提交'){
1965
- requestData.model.f_sub_state = '完工'
1966
- }
1970
+
1967
1971
  requestData.start_activity = this.$workflow_vue.start_activity
1968
1972
  requestData.loginUser = this.$login.f
1969
1973
  requestData.workflow_xmlfilename = this.$workflow_vue.workflow_xmlfilename
1974
+
1970
1975
  console.log('即将发送请求url=>' + url + ',参数=>' + JSON.stringify(requestData))
1971
1976
  let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
1972
1977
  console.log("service处理完成返回数据:", JSON.stringify(res.data))
@@ -1,350 +1,403 @@
1
- <template>
2
- <div class="d1">
3
- <div class="left col-sm-12">
4
- <criteria-paged :model="model" v-ref:cp>
5
- <criteria partial='criteria' @condition-changed='search' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
6
- <form novalidate class="" partial>
7
- <div class="col-sm-12">
8
- <div class="col-sm-2 ">
9
- <label class="col-sm-4 control-label ">联系人</label>
10
- <div class="col-sm-8">
11
- <input type="text" class="form-control" placeholder='联系人' v-model="model.f_user_name"
12
- v-on:keyup.enter="search"
13
- condition="f_user_name like '%{}%'">
14
- </div>
15
- </div>
16
-
17
- <div class="col-sm-2 ">
18
- <label class="col-sm-4 control-label">报建编号</label>
19
- <div class="col-sm-8">
20
- <input type="text" class="form-control" placeholder='报建编号' v-model="model.f_phone"
21
- v-on:keyup.enter="search"
22
- condition="f_apply_num like '{}%'">
23
- </div>
24
- </div>
25
-
26
- <div class="col-sm-2 ">
27
- <label class="col-sm-4 control-label">地址</label>
28
- <div class="col-sm-8">
29
- <input type="text" class="form-control" placeholder='地址' v-model="model.f_address"
30
- v-on:keyup.enter="search"
31
- condition="f_address like '%{}%'">
32
- </div>
33
- </div>
34
-
35
- <div class="col-sm-2 ">
36
- <label class="col-sm-4 control-label">单位/小区名称</label>
37
- <div class="col-sm-8">
38
- <input type="text" class="form-control" placeholder='单位/小区名称' v-model="model.f_residential_area"
39
- v-on:keyup.enter="search"
40
- condition="f_residential_area like '%{}%'">
41
- </div>
42
- </div>
43
- <div class="col-sm-2 ">
44
- <label class="col-sm-4 control-label">用户类型</label>
45
- <div class="col-sm-8">
46
- <v-select :options="$parent.$parent.usertype"
47
- placeholder='用户类型'
48
- condition="f_user_type like '{}%'"
49
- :width="100"
50
- style="width:100%"
51
- v-model="model.f_user_type"
52
- :value.sync="model.f_user_type" close-on-select>
53
- </v-select>
54
- </div>
55
- </div>
56
-
57
- </div>
58
- <div class="col-sm-12" style="margin-top:5px;">
59
- <div class="col-sm-2">
60
- <label class="col-sm-4 control-label">流程状态</label>
61
- <div class="col-sm-8">
62
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.alloptions"
63
- condition="defname = '{}'" placeholder='流程状态'
64
- v-model="model.defname" :value.sync="model.defname" close-on-select>
65
- </v-select>
66
- </div>
67
- </div>
68
- <div class="col-sm-2" >
69
- <label class="col-sm-4 control-label">业务类型</label>
70
- <div class="col-sm-8">
71
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'新报装',value:'新报装'},{label:'改管',value:'改管'}]"
72
- condition="f_work_type = '{}'" placeholder='业务类型'
73
- v-model="model.f_work_type" :value.sync="model.f_work_type" close-on-select>
74
- </v-select>
75
- </div>
76
- </div>
77
- <div class="col-sm-2">
78
- <label for="startDate" class="col-sm-4 control-label">开始日期</label>
79
- <div class="col-sm-8">
80
- <datepicker @change="$dispatch('setQueryCondition',model)" id="startDate" placeholder="开始日期"
81
- style="display: block;"
82
- v-model="model.startDate"
83
- :value.sync="model.startDate"
84
- :format="'yyyy-MM-dd HH:mm:ss'"
85
- :show-reset-button="true"
86
- condition="f_apply_date >= '{}'">
87
- </datepicker>
88
- </div>
89
- </div>
90
- <div class="col-sm-2">
91
- <label for="startDate" class="col-sm-4 control-label">终止日期</label>
92
- <div class="col-sm-8">
93
- <datepicker @change="$dispatch('setQueryCondition',model)" id="endDate" placeholder="终止日期"
94
- style="display: block;"
95
- v-model="model.endDate"
96
- :value.sync="model.endDate"
97
- :format="'yyyy-MM-dd HH:mm:ss'"
98
- :show-reset-button="true"
99
- condition="f_apply_date <= '{}'">
100
- </datepicker>
101
- </div>
102
-
103
- </div>
104
- <div class="col-sm-2">
105
- <label class="col-sm-4 control-label">终止查询</label>
106
- <div class="col-sm-8">
107
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'是',value:'终止'},{label:'否',value:''}]"
108
- condition="f_sub_state = '{}'" placeholder='终止查询'
109
- v-model="model.f_sub_state" :value.sync="model.f_sub_state" close-on-select>
110
- </v-select>
111
- </div>
112
- </div>
113
- <div class="col-sm-2" style="float: left">
114
- <label class="col-sm-4 control-label">报装来源</label>
115
- <div class="col-sm-8">
116
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
117
- condition="f_apply_source = '{}'" placeholder='报装来源'
118
- v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
119
- </v-select>
120
- </div>
121
- </div>
122
- <div class="col-sm-1" style="margin-left:20px;">
123
- <button style="margin-left:5%;" class="btn btn-primary btn-sm width-80 button_spacing" type="button" @click="search(),$parent.$parent.close()">
124
- <span class="glyphicon glyphicon-search"></span>查询
125
- </button>
126
- <button class="btn-primary btn btn-sm button_spacing" @click.prevent="$parent.$parent.clear()">清空</button>
127
- </div>
128
- </div>
129
- </form>
130
- </criteria>
131
- <data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
132
- <template partial='head'>
133
- <tr class="title">
134
- <th>
135
- <nobr>序号</nobr>
136
- </th>
137
- <th>
138
- <nobr>来源</nobr>
139
- </th>
140
- <th>
141
- <nobr>当前状态</nobr>
142
- </th>
143
- <th>
144
- <nobr>报建编号</nobr>
145
- </th>
146
- <th>
147
- <nobr>业务类型</nobr>
148
- </th>
149
- <th>
150
- <nobr>客户名称</nobr>
151
- </th>
152
- <th>
153
- <nobr>用户类型</nobr>
154
- </th>
155
- <th>
156
- <nobr>电话</nobr>
157
- </th>
158
- <th>
159
- <nobr>地址</nobr>
160
- </th>
161
- <th>
162
- <nobr>流程状态</nobr>
163
- </th>
164
- <th>
165
- <nobr>报建类型</nobr>
166
- </th>
167
- <th>
168
- <nobr>报建日期</nobr>
169
- </th>
170
- </tr>
171
- </template>
172
- <template partial='body'>
173
- <tr>
174
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
175
- <nobr>{{$index+1}}</nobr>
176
- </td>
177
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
178
- <nobr>{{row.f_apply_source}}</nobr>
179
- </td>
180
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
181
- <nobr>{{row.f_sub_state==''||!row.f_sub_state ?'未完工':row.f_sub_state}}</nobr>
182
- </td>
183
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
184
- <nobr>{{row.f_apply_num}}</nobr>
185
- </td>
186
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
187
- <nobr>{{row.f_work_type}}</nobr>
188
- </td>
189
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
190
- <nobr>{{row.f_user_name}}</nobr>
191
- </td>
192
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
193
- <nobr>{{row.f_user_type}}</nobr>
194
- </td>
195
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
196
- <nobr>{{row.f_phone}}</nobr>
197
- </td>
198
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
199
- <nobr>{{row.f_address}}</nobr>
200
- </td>
201
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
202
- <nobr>{{row.defname}}</nobr>
203
- </td>
204
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
205
- <nobr>{{row.f_apply_type}}</nobr>
206
- </td>
207
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
208
- <nobr>{{row.f_apply_date}}</nobr>
209
- </td>
210
- </tr>
211
- </template>
212
- </data-grid>
213
- </criteria-paged>
214
- </div>
215
- </div>
216
- </template>
217
- <script>
218
- import AppData from '../../../stores/AppData.js'
219
-
220
- import {
221
- PagedList
222
- } from 'vue-client'
223
- import getNowDate from '../../getNowDate.js'
224
- import {HttpResetClass} from 'vue-client'
225
- import * as Util from '../../Util'
226
- Date.prototype.Format = function (fmt) {
227
- var o = {
228
- "M+": this.getMonth() + 1, //月份
229
- "d+": this.getDate(), //日
230
- "H+": this.getHours(), //小时
231
- "m+": this.getMinutes(), //分
232
- "s+": this.getSeconds(), //秒
233
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
234
- "S": this.getMilliseconds() //毫秒
235
- };
236
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
237
- for (var k in o)
238
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
239
- return fmt;
240
- }
241
-
242
- export default {
243
- title: '勘探详情',
244
- data() {
245
- return {
246
- model: new PagedList('rs/sql/supervisory', 20, {
247
- data: {
248
- id: `${this.$login.f.name}`,
249
- fengongsi: `${this.$login.f.f_fengongsi}`,
250
- f_product_id :0
251
- }
252
- }),
253
- condition: '',
254
- select: '',
255
- alloptions:[]
256
- }
257
- },
258
- ready() {
259
- this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
260
- this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
261
- this.$refs.cp.$refs.cri.search()
262
- this.getConfig();
263
- },
264
- methods: {
265
- clear(){
266
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
267
- this.$refs.cp.$refs.cri.model[key] = []
268
- })
269
- },
270
- getapplyName(datas){
271
- console.log("开始获取所有名")
272
- let str = datas
273
- console.log("开始获取所有名"+JSON.stringify(str))
274
- let param = [];
275
- // let workflow = JSON.parse(str);
276
- param.push({label:"全部",value:""})
277
- str.activitys.forEach(function(item){
278
- let title = item.title;
279
- console.log(title)
280
- param.push({label:title,value:title});
281
- })
282
- this.alloptions = param;
283
-
284
- },
285
- async getConfig(){
286
- let http = new HttpResetClass()
287
- await http.load('POST','rs/logic/ApplyGetConfigs', {data:this.$login.f}, {resolveMsg: null, rejectMsg: null}
288
- ).then((res)=>{
289
- if(res.data.code && res.data.code == 200){
290
- this.getapplyName(res.data.workflow_vue);
291
- }else{
292
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
293
- return
294
- }
295
- })
296
-
297
- },
298
- generateUUID() {
299
- var d = new Date().getTime()
300
- var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
301
- var r = (d + Math.random() * 16) % 16 | 0
302
- d = Math.floor(d / 16)
303
- return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
304
- })
305
- return uuid
306
- },
307
- check(val) {
308
- val.appid=val.id
309
- this.$dispatch('check', val)
310
- },
311
- close() {
312
- this.$dispatch('close')
313
- },
314
- compare(val) {
315
- val === '完工'
316
- console.log('完工', val)
317
- return false
318
- }
319
- },
320
- computed: {
321
- date() {
322
- return getNowDate()
323
- },
324
- selected() {
325
- return this.$refs.cp.$refs.grid.selected
326
- },
327
- usertype() {
328
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
329
- },
330
- defnameType() {
331
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
332
- },
333
- applytype() {
334
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
335
- }
336
- }
337
- }
338
- </script>
339
- <style>
340
- label {
341
- display: flex;
342
- justify-content:center;
343
- align-items:Center;
344
- padding-top: 8px;
345
- }
346
- tr.title {
347
- background-color: #6666ff;
348
- }
349
-
350
- </style>
1
+ <template>
2
+ <div class="d1">
3
+ <div class="left col-sm-12" style="height:90%;">
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
6
+ <form novalidate class="" partial>
7
+ <div class="col-sm-12">
8
+ <div class="col-sm-2 ">
9
+ <label class="col-sm-4 control-label ">联系人</label>
10
+ <div class="col-sm-8">
11
+ <input type="text" class="form-control" placeholder='联系人' v-model="model.f_user_name"
12
+ v-on:keyup.enter="search"
13
+ condition="f_user_name like '%{}%'">
14
+ </div>
15
+ </div>
16
+
17
+ <div class="col-sm-2 ">
18
+ <label class="col-sm-4 control-label">报建编号</label>
19
+ <div class="col-sm-8">
20
+ <input type="text" class="form-control" placeholder='报建编号' v-model="model.f_phone"
21
+ v-on:keyup.enter="search"
22
+ condition="f_apply_num like '{}%'">
23
+ </div>
24
+ </div>
25
+
26
+ <div class="col-sm-2 ">
27
+ <label class="col-sm-4 control-label">地址</label>
28
+ <div class="col-sm-8">
29
+ <input type="text" class="form-control" placeholder='地址' v-model="model.f_address"
30
+ v-on:keyup.enter="search"
31
+ condition="f_address like '%{}%'">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="col-sm-2 ">
36
+ <label class="col-sm-4 control-label">单位/小区名称</label>
37
+ <div class="col-sm-8">
38
+ <input type="text" class="form-control" placeholder='单位/小区名称' v-model="model.f_residential_area"
39
+ v-on:keyup.enter="search"
40
+ condition="f_residential_area like '%{}%'">
41
+ </div>
42
+ </div>
43
+ <div class="col-sm-2 ">
44
+ <label class="col-sm-4 control-label">用户类型</label>
45
+ <div class="col-sm-8">
46
+ <v-select :options="$parent.$parent.usertype"
47
+ placeholder='用户类型'
48
+ condition="f_user_type like '{}%'"
49
+ :width="100"
50
+ style="width:100%"
51
+ v-model="model.f_user_type"
52
+ :value.sync="model.f_user_type" close-on-select>
53
+ </v-select>
54
+ </div>
55
+ </div>
56
+
57
+ </div>
58
+ <div class="col-sm-12" style="margin-top:5px;">
59
+ <div class="col-sm-2">
60
+ <label class="col-sm-4 control-label">流程状态</label>
61
+ <div class="col-sm-8">
62
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.alloptions"
63
+ condition="defname = '{}'" placeholder='流程状态'
64
+ v-model="model.defname" :value.sync="model.defname" close-on-select>
65
+ </v-select>
66
+ </div>
67
+ </div>
68
+ <div class="col-sm-2" >
69
+ <label class="col-sm-4 control-label">业务类型</label>
70
+ <div class="col-sm-8">
71
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'新报装',value:'新报装'},{label:'改管',value:'改管'}]"
72
+ condition="f_work_type = '{}'" placeholder='业务类型'
73
+ v-model="model.f_work_type" :value.sync="model.f_work_type" close-on-select>
74
+ </v-select>
75
+ </div>
76
+ </div>
77
+ <div class="col-sm-2">
78
+ <label for="startDate" class="col-sm-4 control-label">开始日期</label>
79
+ <div class="col-sm-8">
80
+ <datepicker @change="$dispatch('setQueryCondition',model)" id="startDate" placeholder="开始日期"
81
+ style="display: block;"
82
+ v-model="model.startDate"
83
+ :value.sync="model.startDate"
84
+ :format="'yyyy-MM-dd HH:mm:ss'"
85
+ :show-reset-button="true"
86
+ condition="f_apply_date >= '{}'">
87
+ </datepicker>
88
+ </div>
89
+ </div>
90
+ <div class="col-sm-2">
91
+ <label for="startDate" class="col-sm-4 control-label">终止日期</label>
92
+ <div class="col-sm-8">
93
+ <datepicker @change="$dispatch('setQueryCondition',model)" id="endDate" placeholder="终止日期"
94
+ style="display: block;"
95
+ v-model="model.endDate"
96
+ :value.sync="model.endDate"
97
+ :format="'yyyy-MM-dd HH:mm:ss'"
98
+ :show-reset-button="true"
99
+ condition="f_apply_date <= '{}'">
100
+ </datepicker>
101
+ </div>
102
+
103
+ </div>
104
+ <div class="col-sm-2">
105
+ <label class="col-sm-4 control-label">终止查询</label>
106
+ <div class="col-sm-8">
107
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'是',value:'终止'},{label:'否',value:''}]"
108
+ condition="f_sub_state = '{}'" placeholder='终止查询'
109
+ v-model="model.f_sub_state" :value.sync="model.f_sub_state" close-on-select>
110
+ </v-select>
111
+ </div>
112
+ </div>
113
+ <div class="col-sm-2" style="float: left">
114
+ <label class="col-sm-4 control-label">报装来源</label>
115
+ <div class="col-sm-8">
116
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
117
+ condition="f_apply_source = '{}'" placeholder='报装来源'
118
+ v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
119
+ </v-select>
120
+ </div>
121
+ </div>
122
+ <div class="col-sm-1" style="margin-left:20px;">
123
+ <button style="margin-left:5%;" class="btn btn-primary btn-sm width-80 button_spacing" type="button" @click="search(),$parent.$parent.cleaner()">
124
+ <span class="glyphicon glyphicon-search"></span>查询
125
+ </button>
126
+ <button class="btn-primary btn btn-sm button_spacing" @click.prevent="$parent.$parent.clear()">清空</button>
127
+ </div>
128
+ </div>
129
+ </form>
130
+ </criteria>
131
+ <data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
132
+ <template partial='head'>
133
+ <tr class="title">
134
+ <th>
135
+ <nobr>序号</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>来源</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>当前状态</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>报建编号</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>业务类型</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>客户名称</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>用户类型</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>电话</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>地址</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>流程状态</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>报建类型</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>应缴金额</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>已缴金额</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>未缴金额</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>报建日期</nobr>
178
+ </th>
179
+ </tr>
180
+ </template>
181
+ <template partial='body'>
182
+ <tr>
183
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
184
+ <nobr>{{$index+1}}</nobr>
185
+ </td>
186
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
187
+ <nobr>{{row.f_apply_source}}</nobr>
188
+ </td>
189
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
190
+ <nobr>{{row.f_sub_state==''||!row.f_sub_state ?'未完工':row.f_sub_state}}</nobr>
191
+ </td>
192
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
193
+ <nobr>{{row.f_apply_num}}</nobr>
194
+ </td>
195
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
196
+ <nobr>{{row.f_work_type}}</nobr>
197
+ </td>
198
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
199
+ <nobr>{{row.f_user_name}}</nobr>
200
+ </td>
201
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
202
+ <nobr>{{row.f_user_type}}</nobr>
203
+ </td>
204
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
205
+ <nobr>{{row.f_phone}}</nobr>
206
+ </td>
207
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
208
+ <nobr>{{row.f_address}}</nobr>
209
+ </td>
210
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
211
+ <nobr>{{row.defname}}</nobr>
212
+ </td>
213
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
214
+ <nobr>{{row.f_apply_type}}</nobr>
215
+ </td>
216
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
217
+ <nobr>{{row.f_total_cost}}</nobr>
218
+ </td>
219
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
220
+ <nobr>{{row.f_cumulative_money}}</nobr>
221
+ </td>
222
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
223
+ <nobr>{{row.f_unaccounts_money}}</nobr>
224
+ </td>
225
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
226
+ <nobr>{{row.f_apply_date}}</nobr>
227
+ </td>
228
+ </tr>
229
+ </template>
230
+ </data-grid>
231
+ </criteria-paged>
232
+ </div>
233
+ <div class="flex" style="height: 10%;width: 100%;">
234
+ <div novalidate class="form-inline auto" partial>
235
+ <p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
236
+ <span style="color: red">{{modeluse.rows.length}}</span>笔,
237
+ 合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
238
+ 已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元
239
+ </p>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </template>
244
+ <script>
245
+ import AppData from '../../../stores/AppData.js'
246
+
247
+ import {
248
+ PagedList
249
+ } from 'vue-client'
250
+ import getNowDate from '../../getNowDate.js'
251
+ import {HttpResetClass} from 'vue-client'
252
+ import * as Util from '../../Util'
253
+ Date.prototype.Format = function (fmt) {
254
+ var o = {
255
+ "M+": this.getMonth() + 1, //月份
256
+ "d+": this.getDate(), //日
257
+ "H+": this.getHours(), //小时
258
+ "m+": this.getMinutes(), //分
259
+ "s+": this.getSeconds(), //秒
260
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
261
+ "S": this.getMilliseconds() //毫秒
262
+ };
263
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
264
+ for (var k in o)
265
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
266
+ return fmt;
267
+ }
268
+
269
+ export default {
270
+ title: '勘探详情',
271
+ data() {
272
+ return {
273
+ model: new PagedList('rs/sql/supervisory', 20, {
274
+ data: {
275
+ id: `${this.$login.f.name}`,
276
+ fengongsi: `${this.$login.f.f_fengongsi}`,
277
+ f_product_id :0
278
+ }
279
+ }),
280
+ modeluse: new PagedList('rs/sql/supervisory', 999999, {
281
+ data: {
282
+ id: `${this.$login.f.name}`,
283
+ fengongsi: `${this.$login.f.f_fengongsi}`,
284
+ f_product_id :0
285
+ }
286
+ }),
287
+ price: new PagedList('rs/sql/getChargeAllSum', 999999, {orderitem: '`f_total_cost`'}),
288
+ condition: '',
289
+ select: '',
290
+ alloptions:[]
291
+ }
292
+ },
293
+ ready() {
294
+ this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
295
+ this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
296
+ this.search()
297
+ this.getConfig();
298
+ },
299
+ methods: {
300
+ search () {
301
+ let startDate = Util.toStandardDateString() + ' 00:00:00'
302
+ let endDate = Util.toStandardDateString() + ' 23:59:59'
303
+ let condition = "1=1 and f_charge_date >= '"+startDate+"' and f_charge_date <= '"+endDate+"'"
304
+ this.$refs.cp.$refs.cri.search()
305
+ let condition1 = condition
306
+ this.price.search(condition1)
307
+ },
308
+ cleaner () {
309
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
310
+ this.$refs.cp.$refs.cri.model[key] = ''
311
+ })
312
+ console.log('condition2:', this.$refs.cp.$refs.cri.condition)
313
+ let condition = this.$refs.cp.$refs.cri.condition
314
+ this.modeluse.search(condition)
315
+ let condition1 = condition
316
+ this.price.search(condition1)
317
+ },
318
+ clear(){
319
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
320
+ this.$refs.cp.$refs.cri.model[key] = []
321
+ })
322
+ },
323
+ getapplyName(datas){
324
+ console.log("开始获取所有名")
325
+ let str = datas
326
+ console.log("开始获取所有名"+JSON.stringify(str))
327
+ let param = [];
328
+ // let workflow = JSON.parse(str);
329
+ param.push({label:"全部",value:""})
330
+ str.activitys.forEach(function(item){
331
+ let title = item.title;
332
+ console.log(title)
333
+ param.push({label:title,value:title});
334
+ })
335
+ this.alloptions = param;
336
+
337
+ },
338
+ async getConfig(){
339
+ let http = new HttpResetClass()
340
+ await http.load('POST','rs/logic/ApplyGetConfigs', {data:this.$login.f}, {resolveMsg: null, rejectMsg: null}
341
+ ).then((res)=>{
342
+ if(res.data.code && res.data.code == 200){
343
+ this.getapplyName(res.data.workflow_vue);
344
+ }else{
345
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
346
+ return
347
+ }
348
+ })
349
+
350
+ },
351
+ generateUUID() {
352
+ var d = new Date().getTime()
353
+ var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
354
+ var r = (d + Math.random() * 16) % 16 | 0
355
+ d = Math.floor(d / 16)
356
+ return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
357
+ })
358
+ return uuid
359
+ },
360
+ check(val) {
361
+ val.appid=val.id
362
+ this.$dispatch('check', val)
363
+ },
364
+ close() {
365
+ this.$dispatch('close')
366
+ },
367
+ compare(val) {
368
+ val === '完工'
369
+ console.log('完工', val)
370
+ return false
371
+ }
372
+ },
373
+ computed: {
374
+ date() {
375
+ return getNowDate()
376
+ },
377
+ selected() {
378
+ return this.$refs.cp.$refs.grid.selected
379
+ },
380
+ usertype() {
381
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
382
+ },
383
+ defnameType() {
384
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
385
+ },
386
+ applytype() {
387
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
388
+ }
389
+ }
390
+ }
391
+ </script>
392
+ <style>
393
+ label {
394
+ display: flex;
395
+ justify-content:center;
396
+ align-items:Center;
397
+ padding-top: 8px;
398
+ }
399
+ tr.title {
400
+ background-color: #6666ff;
401
+ }
402
+
403
+ </style>