apply-clients 4.1.10-11 → 4.1.10-weinan

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.
Files changed (70) hide show
  1. package/index.html +30 -21
  2. package/package.json +10 -7
  3. package/src/AndroidApp.vue +1 -1
  4. package/src/apply.js +16 -7
  5. package/src/applyAndroid.js +43 -50
  6. package/src/components/Table.js +13 -13
  7. package/src/components/app_apply/AppChargeManagement.vue +622 -0
  8. package/src/components/app_apply/ApplyInfo.vue +56 -56
  9. package/src/components/app_apply/ApplyToDoList.vue +144 -165
  10. package/src/components/app_apply/FieldExploration.vue +3 -3
  11. package/src/components/app_apply/PlaceControler.vue +255 -258
  12. package/src/components/app_apply/ServiceControl.vue +289 -267
  13. package/src/components/app_apply/ServiceView.vue +363 -355
  14. package/src/components/app_apply/ToolsPage.vue +1 -1
  15. package/src/components/app_apply/Ventilation.vue +10 -10
  16. package/src/components/app_apply/materialshoufei.vue +184 -0
  17. package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -251
  18. package/src/components/product/Function/InstallFunction.vue +120 -95
  19. package/src/components/product/Function/InstallInfoSelect.vue +268 -206
  20. package/src/components/product/Function/Service/FunctionServiceControl.vue +206 -386
  21. package/src/components/product/Function/StopApplyCrrdList.vue +1 -1
  22. package/src/components/product/Function/functions/StopInstall.vue +7 -1
  23. package/src/components/product/Process/ExplorationSelect.vue +377 -501
  24. package/src/components/product/Process/ExplorationUser.vue +100 -133
  25. package/src/components/product/Process/Processes/InstallationDetails.vue +276 -246
  26. package/src/components/product/Process/Processes/UserFireInfo.vue +409 -0
  27. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +1458 -99
  28. package/src/components/product/Process/Processes/addressAndUserinfoManagementPro.vue +1221 -0
  29. package/src/components/product/Process/Processes/chargeManagement.vue +545 -552
  30. package/src/components/product/Process/Processes/devicesDetails.vue +834 -0
  31. package/src/components/product/Process/Processes/materialshoufei.vue +182 -0
  32. package/src/components/product/Process/Processes/printCharge.vue +12 -8
  33. package/src/components/product/Process/Processes/recordcancel.vue +50 -0
  34. package/src/components/product/Process/Processes/selectUserinfo.vue +199 -0
  35. package/src/components/product/Process/Processes/splitMaterial.vue +358 -0
  36. package/src/components/product/Process/Service/ServiceControl.vue +1236 -726
  37. package/src/components/product/Process/ShowBackReason.vue +21 -6
  38. package/src/components/product/ServiceView.vue +557 -575
  39. package/src/components/product/Stop/StopApply.vue +101 -0
  40. package/src/components/product/Stop/StopApplyList.vue +257 -0
  41. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +150 -210
  42. package/src/components/product/Supervisory/SupervisoryControl.vue +124 -173
  43. package/src/components/product/Supervisory/SupervisoryList.vue +191 -310
  44. package/src/components/product/Supervisory/SupervisoryhCart.vue +76 -99
  45. package/src/components/product/Test.vue +8 -4
  46. package/src/components/product/VueUtils/ApplyUpload.vue +4 -4
  47. package/src/components/product/VueUtils/ToolsPage.vue +1 -1
  48. package/src/main.js +25 -32
  49. package/static/images/lefticon//347/237/251/345/275/2421183.png +0 -0
  50. package/src/components/app_apply/android/ExplorationSelectApp.vue +0 -404
  51. package/src/components/app_apply/android/ExplorationUserApp.vue +0 -189
  52. package/src/components/app_apply/android/ServiceControlApp.vue +0 -714
  53. package/src/components/app_apply/android/ServiceViewApp.vue +0 -736
  54. package/src/components/product/Function/OrderCenter/Step.vue +0 -153
  55. package/src/components/product/Function/OrderCenter/download.png +0 -0
  56. package/src/components/product/Function/OrderCenter/orderApplyDispose.vue +0 -203
  57. package/src/components/product/Function/OrderCenter/orderCenter.vue +0 -41
  58. package/src/components/product/Function/OrderCenter/orderList.vue +0 -265
  59. package/src/components/product/Function/functions/InstallFee.vue +0 -1047
  60. package/src/components/product/Function/functions/PrestoreFee.vue +0 -630
  61. package/src/components/product/Procedures/ProceduresDataGrid.vue +0 -1022
  62. package/src/components/product/Process/ModifyUserFiles.vue +0 -452
  63. package/src/components/product/Process/ProcessInfo/history_control.vue +0 -135
  64. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +0 -1073
  65. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +0 -949
  66. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +0 -203
  67. package/src/components/product/Process/Processes/Service/GasStop.vue +0 -96
  68. package/src/components/product/Process/Processes/Service/ServiceControl.vue +0 -2569
  69. package/src/components/product/ReportForm/WaterReport.vue +0 -359
  70. package/src/components/product/VueUtils/rightview/InstallCardList2.vue +0 -261
@@ -1,340 +1,221 @@
1
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
6
- style="padding: 20px;background-color: #f6f6f6;">
7
- <form novalidate class="" partial>
8
- <div class="col-sm-12">
9
- <div class="form-group col-sm-2">
10
- <label class=" col-sm-6" style="padding-top: 8px">客户名称/联系人:</label>
11
- <div class="col-sm-6">
12
- <input type="text" class="form-control" v-model="model.f_user_name"
13
- condition=" (f_user_name like '%{}%' or f_contact like '%{}%') " placeholder='二选一输入'>
14
- </div>
15
- </div>
16
- <div class="col-sm-1">
17
- <!--<label class="col-sm-6">合同编号</label>-->
18
- <div class="col-sm-12">
19
- <input type="text" class="form-control" placeholder='合同编号' v-model="model.f_contract_number"
20
- v-on:keyup.enter="search"
21
- condition="f_contract_number like '%{}%'">
22
- </div>
23
- </div>
24
- <div class="col-sm-1">
25
- <!--<label class="col-sm-6">用户地址</label>-->
26
- <div class="col-sm-12">
27
- <input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
28
- v-on:keyup.enter="search"
29
- condition="f_address like '%{}%'">
30
- </div>
31
- </div>
32
- <div class="col-sm-1">
33
- <!--<label class="col-sm-6"> 报建类型:</label>-->
34
- <div class="col-sm-12" v-if="!this.$login.f.f_fengongsi.includes('中燃')">
35
- <v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.applytype" placeholder='报建类型' condition="f_apply_type like '%{}%'"
36
- v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
37
- </v-select>
38
- </div>
39
- </div>
40
- <div class="col-sm-1">
41
- <div class="col-sm-12">
42
- <v-select :width ="'100%'" style="width: 100%" :options="this.state" placeholder='当前状态' condition="f_sub_state = '{}'"
43
- v-model="model.f_sub_state" :value.sync="model.f_sub_state" close-on-select>
44
- </v-select>
45
- </div>
46
- </div>
47
- <div class="col-sm-2">
48
- <!-- <label class="col-sm-6">办理环节:</label>-->
49
- <div class="col-sm-6">
50
- <v-select :width ="'90%'" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.defnames"
51
- condition="defname = '{}'" placeholder='办理环节'
52
- v-model="model.defname" :value.sync="model.defname" close-on-select>
53
- </v-select>
54
- </div>
55
- </div>
56
- <div class="col-sm-1">
57
- <input type="text" class="form-control" placeholder='经办人' v-model="model.f_survey_name"
58
- v-on:keyup.enter="search"
59
- condition=" (f_apply_kefu_employee like '%{}%' or f_survey_name like '%{}%') ">
60
- </div>
61
- <div class="col-sm-1">
62
- <button class="btn btn-primary btn-sm" type="button" @click="search(),$parent.$parent.close()">
63
- <span class="glyphicon glyphicon-search"></span>查询
64
- </button>
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-4">
8
+ <label class="font_normal_body">项目名称:</label>
9
+ <input type="text" class="input_search" v-model="model.f_entry_name"
10
+ v-on:keyup.enter="search" condition=" f_entry_name like '%{}%' " placeholder='请输入'>
11
+ </div>
12
+ <div class="form-group col-sm-3">
13
+ <label class="font_normal_body">报建编号:</label>
14
+ <input type="text" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
15
+ v-on:keyup.enter="search"
16
+ condition="f_apply_num like '%{}%'">
17
+ </div>
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 '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-2 button-range">
25
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
26
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
27
+ <div
28
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
29
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
30
+ class="button_spacing"
31
+ style="float: right">
65
32
  </div>
66
33
  </div>
67
- </form>
68
- </criteria>
69
- <data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
70
- <template partial='head'>
71
- <tr class="title">
72
- <th>
73
- <nobr>序号</nobr>
74
- </th>
75
- <th>
76
- <nobr>当前状态</nobr>
77
- </th>
78
- <th>
79
- <nobr>当前办理人</nobr>
80
- </th>
81
- <th><nobr>客户名称/联系人</nobr></th>
82
- <th>
83
- <nobr>合同编号</nobr>
84
- </th>
85
- <th>
86
- <nobr>用户类型</nobr>
87
- </th>
88
- <th>
89
- <nobr>电话</nobr>
90
- </th>
91
- <th>
92
- <nobr>地址</nobr>
93
- </th>
94
- <th>
95
- <nobr>流程状态</nobr>
96
- </th>
97
- <th>
98
- <nobr>报建类型</nobr>
99
- </th>
100
- <th>
101
- <nobr>报建日期</nobr>
102
- </th>
103
- </tr>
104
- </template>
105
- <template partial='body'>
106
- <tr>
107
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
108
- <nobr>{{$index+1}}</nobr>
109
- </td>
110
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
111
- <nobr>{{row.f_sub_state}}</nobr>
112
- </td>
113
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
114
- <nobr>{{row.applysite}}</nobr>
115
- </td>
116
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
117
- <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
118
- </td>
119
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
120
- <nobr>{{row.f_contract_number}}</nobr>
121
- </td>
122
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
123
- <nobr>{{row.f_user_type}}</nobr>
124
- </td>
125
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
126
- <nobr>{{row.f_phone}}</nobr>
127
- </td>
128
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
129
- <nobr>{{row.f_address}}</nobr>
130
- </td>
131
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
132
- <nobr>{{row.defname}}</nobr>
133
- </td>
134
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
135
- <nobr>{{row.f_apply_type}}</nobr>
136
- </td>
137
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
138
- <nobr>{{row.f_apply_date}}</nobr>
139
- </td>
140
- </tr>
141
- </template>
142
- </data-grid>
143
- </criteria-paged>
144
- </div>
34
+ </div>
35
+ <div class="row" v-show="$parent.$parent.criteriaShow">
36
+ <div class="form-group col-sm-3">
37
+ <label class="font_normal_body">报建类型:</label>
38
+ <v-select
39
+ v-model="model.f_apply_type"
40
+ placeholder='报建类型'
41
+ condition="f_apply_type like '%{}%'"
42
+ :value.sync="model.f_apply_type"
43
+ :options='$parent.$parent.applytype'
44
+ class="select select_list"
45
+ :value-single="true"
46
+ @change="$parent.$parent.applyTypeChange()"
47
+ close-on-select ></v-select>
48
+ </div>
49
+ <div class="form-group col-sm-3">
50
+ <label class="font_normal_body">办理环节:</label>
51
+ <v-select
52
+ v-model="model.defname"
53
+ placeholder='办理环节'
54
+ condition="defname = '{}'"
55
+ :value.sync="model.defname"
56
+ :options='$parent.$parent.defnames'
57
+ class="select select_list"
58
+ :value-single="true"
59
+ close-on-select ></v-select>
60
+ </div>
61
+ <div class="form-group col-sm-3">
62
+ <label class="font_normal_body">流程状态:</label>
63
+ <v-select
64
+ v-model="model.f_sub_state"
65
+ placeholder='流程状态'
66
+ condition="f_sub_state = '{}'"
67
+ :value.sync="model.f_sub_state"
68
+ :options='$parent.$parent.f_sub_state'
69
+ class="select select_list"
70
+ :value-single="true"
71
+ close-on-select ></v-select>
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_phone"-->
76
+ <!-- v-on:keyup.enter="search"-->
77
+ <!-- condition="f_phone like '%{}%'">-->
78
+ <!-- </div>-->
79
+ <!-- <div class="form-group col-sm-3">-->
80
+ <!-- <label class="font_normal_body">用户地址:</label>-->
81
+ <!-- <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"-->
82
+ <!-- v-on:keyup.enter="search"-->
83
+ <!-- condition="f_address like '%{}%'">-->
84
+ <!-- </div>-->
85
+ <div class="form-group col-sm-3">
86
+ <label for="startDate" class="font_normal_body">开始时间:</label>
87
+ <datepicker id="startDate" placeholder="开始日期"
88
+ style="width: 60%!important;"
89
+ v-model="model.startDate"
90
+ :value.sync="model.startDate"
91
+ :format="'yyyy-MM-dd HH:mm:ss'"
92
+ :show-reset-button="true"
93
+ condition="f_apply_date >= '{}'">
94
+ </datepicker>
95
+ </div>
96
+ <div class="form-group col-sm-3">
97
+ <label for="endDate" class="font_normal_body">结束时间:</label>
98
+ <datepicker id="endDate" placeholder="结束日期"
99
+ style="width: 60%!important;"
100
+ v-model="model.endDate"
101
+ :value.sync="model.endDate"
102
+ :format="'yyyy-MM-dd HH:mm:ss'"
103
+ :show-reset-button="true"
104
+ condition="f_apply_date <= '{}'">
105
+ </datepicker>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </criteria>
110
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
111
+ <template partial='head'>
112
+ <tr>
113
+ <th style="white-space: nowrap;">序号</th>
114
+ <th style="white-space: nowrap;">报建编号</th>
115
+ <th style="white-space: nowrap;">项目名称</th>
116
+ <th style="white-space: nowrap;">合同编号</th>
117
+ <!-- <th style="white-space: nowrap;">电话</th>-->
118
+ <!-- <th style="white-space: nowrap;">地址</th>-->
119
+ <th style="white-space: nowrap;">报建类型</th>
120
+ <th style="white-space: nowrap;">办理环节</th>
121
+ <th style="white-space: nowrap;">流程状态</th>
122
+ <th style="white-space: nowrap;">报建日期</th>
123
+ </tr>
124
+ </template>
125
+ <template partial='body'>
126
+ <tr>
127
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
128
+ <nobr>{{$index+1}}</nobr>
129
+ </td>
130
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
131
+ <nobr>{{row.f_apply_num}}</nobr>
132
+ </td>
133
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
134
+ <nobr>{{row.f_entry_name}}</nobr>
135
+ </td>
136
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
137
+ <nobr>{{row.f_contract_number}}</nobr>
138
+ </td>
139
+ <!-- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">-->
140
+ <!-- <nobr>{{row.f_phone}}</nobr>-->
141
+ <!-- </td>-->
142
+ <!-- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">-->
143
+ <!-- <nobr>{{row.f_address}}</nobr>-->
144
+ <!-- </td>-->
145
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
146
+ <nobr>{{row.f_apply_type}}</nobr>
147
+ </td>
148
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
149
+ <nobr>{{row.defname}}</nobr>
150
+ </td>
151
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
152
+ <nobr>{{row.f_sub_state}}</nobr>
153
+ </td>
154
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
155
+ <nobr>{{row.f_apply_date}}</nobr>
156
+ </td>
157
+ </tr>
158
+ </template>
159
+ </data-grid>
160
+ </criteria-paged>
145
161
  </div>
146
162
  </template>
147
163
  <script>
148
- import AppData from '../../../stores/AppData.js'
149
- import PagedListLogic from '../../../stores/PagedListLogic'
150
- import getNowDate from '../../getNowDate.js'
164
+ import {PagedList} from 'vue-client'
151
165
  import {HttpResetClass} from 'vue-client'
152
-
166
+ import {isEmpty} from '../../Util'
153
167
  export default {
154
168
  title: '勘探详情',
155
- data() {
169
+ props: ['showData'],
170
+ data () {
156
171
  return {
157
- applytype: this.$appdata.getParam('报建类型'),
158
- model: new PagedListLogic('rs/sql/supervisory', 20, {
172
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
173
+ model: new PagedList('rs/sql/supervisory', 20, {
159
174
  data: {
160
175
  id: `${this.$login.f.name}`,
161
- fengongsi: `${this.$login.f.f_fengongsi}`
176
+ orgid: this.$login.f.orgid
162
177
  }
163
178
  }),
164
- users:[],
165
- defnames:[],
166
- condition: '',
167
- select: '',
168
- state: []
179
+ f_sub_state: [{label: '全部', value: ''}, {label: '完工', value: '完工'}, {label: '正在进行', value: '正在进行'}],
180
+ defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
181
+ criteriaShow: false
169
182
  }
170
183
  },
171
- async ready() {
172
- let http3 = new HttpResetClass()
173
- http3.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
174
- resolveMsg: null,
175
- rejectMsg: null
176
- }).then((res)=>{
177
- // 先获取所有流程环节
178
- this.defnames = [{label: '全部', value: ''}]
179
- for(let i=0;i<res.data.length;i++){
180
- this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
181
- }
182
- })
183
-
184
- let http = new HttpResetClass()
185
- let data = {
186
- columnname: 'id,name',
187
- tablename: 't_user',
188
- condition: '1=1'
189
- }
190
- let res = await http.load('POST','rs/sql/singleTable',{data:data}, {
191
- resolveMsg: null,
192
- rejectMsg: '获取人员失败'
193
- })
194
- this.users = res.data
195
- this.$refs.cp.$refs.cri.search()
196
- this.applytype = [{label: '散户报装', value: '散户报装'},{label: '庭院报装', value: '庭院报装'}]
197
- this.state = [{label: '进行中', value: '进行中'},{label: '已办结', value: '已办结'},{label: '已终止', value: '已终止'}]
184
+ ready () {
185
+ // 调用查询
186
+ this.search()
198
187
  },
199
188
  events: {
200
- async dataGrid() {
201
- // //获取购货方信息
202
- // let data = {
203
- // tablename: 't_user',
204
- // condition: `1=1`
205
- // }
206
- // let buyerinfos = await this.$resetpost('rs/sql/singleTable', {data: data}, {
207
- // resolveMsg: null,
208
- // rejectMsg: '获取user失败'
209
- // })
210
- // let users = buyerinfos.data
211
- if (!this.$refs.cp.$refs.grid.model.rows) return
212
- let rows = this.$refs.cp.$refs.grid.model.rows
213
- for (let i = 0; i < rows.length; i++) {
214
- let expe = rows[i].actorexpression
215
- if(expe.includes('getChildren')||expe.includes('getChildByName')){//{source:'this.getParentByType($organization$).getChildByName($客户服务部门$).getChildByName($客户服务部负责人$).getChildren()','userid':'12290'
216
- let arr = expe.split('$')
217
- this.$refs.cp.$refs.grid.model.rows[i].applysite = arr[arr.length - 2]
218
- }else{ //{source: 'this', userid: '12290'}
219
- let arr = expe.split('\'')
220
- let userid = arr[arr.length - 2]
221
- for(let j =0;j<this.users.length;j++){
222
- if(this.users[j].id == userid){
223
- this.$refs.cp.$refs.grid.model.rows[i].applysite = this.users[j].name
224
- }
225
- }
226
- }
227
-
228
-
229
-
230
- //
231
- // if (expe.indexOf("'this'") == -1) {
232
- // let arr = expe.split('$')
233
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = arr[arr.length - 2]
234
- // } else if (rows[i].f_survey_name && typeof rows[i].f_survey_name == 'string' && rows[i].f_survey_name.includes("\"")) {
235
- // // 如果是属于工程技术部的就给工程技术部
236
- // let flag = ''
237
- // let str = this.$appdata.getSingleValue("客户服务部")
238
- // let str2 = this.$appdata.getSingleValue("工程技术部")
239
- // let arr = str.split(",")
240
- // let arr2 = str2.split(",")
241
- // for (let p = 0; p < arr.length; p++) {
242
- // if (arr[p] == rows[i].f_apply_type) {
243
- // flag = '客户服务部'
244
- // console.log(rows[i].f_apply_num, flag)
245
- // break
246
- // }
247
- // }
248
- // for (let p = 0; p < arr2.length; p++) {
249
- // if (arr2[p] == rows[i].f_apply_type) {
250
- // flag = '工程技术部'
251
- // console.log(rows[i].f_apply_num, flag)
252
- // break
253
- // }
254
- // }
255
- //
256
- // if (flag == '工程技术部') {
257
- // let js = JSON.parse(rows[i].f_survey_name)
258
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = js.name
259
- // } else if (flag == '客户服务部') {
260
- // let rows2 = this.$refs.cp.$refs.grid.model.rows
261
- // for (let i = 0; i < rows2.length; i++) {
262
- // if (!this.$refs.cp.$refs.grid.model.rows[i].applysite) {
263
- // if (rows2[i].f_apply_kefu_employee) {
264
- // if (rows2[i].f_apply_kefu_employee.startsWith("{")) {
265
- // let obj = JSON.parse(rows2[i].f_apply_kefu_employee)
266
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = obj.name
267
- // } else {
268
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = rows2[i].f_apply_kefu_employee
269
- // }
270
- // }
271
- // }
272
- // }
273
- // }
274
- // }
275
- // let numReg = /^[0-9]+$/
276
- // let numRe = new RegExp(numReg)
277
- // if (numRe.test(this.$refs.cp.$refs.grid.model.rows[i].applysite)) {
278
- // let querydata = {
279
- // tablename: 't_user',
280
- // condition: `id = ${this.$refs.cp.$refs.grid.model.rows[i].applysite}`
281
- // }
282
- // let http = new HttpResetClass()
283
- // http.load('POST','rs/sql/singleTable', {data: querydata}, {
284
- // resolveMsg: null,
285
- // rejectMsg: '获取人员失败'
286
- // }).then((res)=>{
287
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = res.data[0].name
288
- // })
289
- // }
290
- }
291
-
292
- }
293
189
  },
294
190
  methods: {
295
- generateUUID() {
296
- var d = new Date().getTime()
297
- var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
298
- var r = (d + Math.random() * 16) % 16 | 0
299
- d = Math.floor(d / 16)
300
- return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
301
- })
302
- return uuid
191
+ // 查询
192
+ search () {
193
+ this.$dispatch('search')
303
194
  },
304
- check(val) {
305
- this.$dispatch('check', val)
195
+ clear () {
196
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
197
+ this.$refs.cp.$refs.cri.model[key] = []
198
+ })
306
199
  },
307
- close() {
308
- this.$dispatch('close')
200
+ applyTypeChange () {
201
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
202
+ let http = new HttpResetClass()
203
+ http.load('POST', 'rs/logic/getDefnameByType', {
204
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
205
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
206
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
207
+ })
208
+ } else {
209
+ this.defnames = [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
210
+ }
309
211
  },
310
- compare(val) {
311
- val === '完工'
312
- console.log('完工', val)
313
- return false
212
+ check (val) {
213
+ this.$dispatch('apply', val)
314
214
  }
315
215
  },
316
216
  computed: {
317
- date() {
318
- return getNowDate()
319
- },
320
- selected() {
321
- return this.$refs.cp.$refs.grid.selected
322
- },
323
- usertype() {
324
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
325
- },
326
- defnameType() {
327
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
328
- },
329
- applytype() {
330
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
331
- }
332
217
  }
333
218
  }
334
219
  </script>
335
- <style>
336
- tr.title {
337
- background-color: #6666ff;
338
- }
339
-
220
+ <style scoped>
340
221
  </style>