apply-clients 3.4.3 → 3.4.4

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 (79) hide show
  1. package/package.json +1 -1
  2. package/src/AndroidApp.vue +18 -18
  3. package/src/android.js +1 -1
  4. package/src/apply.js +39 -20
  5. package/src/applyAndroid.js +23 -9
  6. package/src/components/android/AppOnetomany.vue +47 -5
  7. package/src/components/android/AppServiceView.vue +745 -566
  8. package/src/components/android/AppSign.vue +154 -142
  9. package/src/components/android/AppTakePic.vue +11 -11
  10. package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
  11. package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
  12. package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
  13. package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
  14. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
  15. package/src/components/android/Function/AppInstallFunction.vue +366 -0
  16. package/src/components/android/Process/AppExplorationUser.vue +217 -37
  17. package/src/components/android/Process/AppServiceControl.vue +1708 -757
  18. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
  19. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
  20. package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
  21. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -0
  22. package/src/components/android/Process/Processes/AppInstallationDetails.vue +482 -456
  23. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  24. package/src/components/android/Process/Processes/selectApply.vue +250 -0
  25. package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
  26. package/src/components/android/Supervisory/AppProcessSupervisory.vue +205 -71
  27. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -121
  28. package/src/components/common/TabButton.vue +149 -0
  29. package/src/components/common/Tabs.vue +67 -0
  30. package/src/components/image/dwg.jpg +0 -0
  31. package/src/components/image/txt.jpg +0 -0
  32. package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  33. package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  34. package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  35. package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  36. package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  37. package/src/components/product/ApplyCharge/ApplyChargeList.vue +272 -53
  38. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  39. package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
  40. package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
  41. package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
  42. package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
  43. package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
  44. package/src/components/product/Function/InstallFunction.vue +3 -2
  45. package/src/components/product/Function/InstallInfoSelect.vue +41 -21
  46. package/src/components/product/Function/Service/FunctionServiceControl.vue +96 -71
  47. package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
  48. package/src/components/product/Install/InstallProject.vue +194 -0
  49. package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
  50. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
  51. package/src/components/product/OldApply/OldApply.vue +209 -0
  52. package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
  53. package/src/components/product/Onetomany.vue +40 -11
  54. package/src/components/product/Process/ExplorationSelect.vue +495 -417
  55. package/src/components/product/Process/ExplorationUser.vue +145 -94
  56. package/src/components/product/Process/Processes/InstallationDetails.vue +610 -592
  57. package/src/components/product/Process/Processes/Print/printCharge.vue +166 -142
  58. package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
  59. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
  60. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -0
  61. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +4 -0
  62. package/src/components/product/Process/Processes/chargeManagement.vue +656 -638
  63. package/src/components/product/Process/Processes/devicesManagement.vue +484 -478
  64. package/src/components/product/Process/Processes/selectApply.vue +2 -2
  65. package/src/components/product/Process/Service/ServiceControl.vue +628 -10
  66. package/src/components/product/Process/ShowBackReason.vue +33 -0
  67. package/src/components/product/ServiceView.vue +981 -631
  68. package/src/components/product/Stop/StopApply.vue +26 -30
  69. package/src/components/product/Stop/StopApplyList.vue +27 -25
  70. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +732 -34
  71. package/src/components/product/Supervisory/SupervisoryControl.vue +38 -1
  72. package/src/components/product/Supervisory/SupervisoryList.vue +404 -233
  73. package/src/components/product/Supervisory/SupervisoryhCart.vue +51 -28
  74. package/src/components/product/VueUtils/ApplyUpload.vue +40 -38
  75. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
  76. package/src/components/product/VueUtils/ToolsPage.vue +51 -0
  77. package/src/components/product/VueUtils/Tree.vue +330 -0
  78. package/src/expandcssAndroid.less +362 -879
  79. package/src/main.js +3 -0
@@ -0,0 +1,194 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
+ <div class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-3">
9
+ <label class="font_normal_body">组织机构:</label>
10
+ <res-select
11
+ restype='organization'
12
+ :initresid='$parent.$parent.curorgid'
13
+ @res-select="$parent.$parent.getorg"
14
+ is-mul="false"
15
+ ></res-select>
16
+ </div>
17
+ <div class="form-group col-sm-3">
18
+ <label class="font_normal_body">工程编号:</label>
19
+ <input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
20
+ v-on:keyup.enter="$parent.$parent.search()"
21
+ condition="f_apply_num = '{}'">
22
+ </div>
23
+ <div class="form-group col-sm-3">
24
+ <label class="font_normal_body">施工单位:</label>
25
+ <input type="text" style="width: 60%" class="input_search" placeholder='施工单位' v-model="model.f_construction_unit"
26
+ v-on:keyup.enter="$parent.$parent.search()"
27
+ condition="f_construction_unit like '%{}%'">
28
+ </div>
29
+ <div class="form-group col-sm-3 button-range">
30
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
31
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
32
+ <export-excel :data="$parent.$parent.getCondition"
33
+ :field="$parent.$parent.getfield"
34
+ sqlurl="rs/logic/applyExportfile"
35
+ sql-name="applyGetMaterial"
36
+ template-name='材料明细导出'
37
+ :choose-col="true"></export-excel>
38
+ <div
39
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
40
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
41
+ class="button_spacing"
42
+ style="float: right">
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <div class="row" v-show="$parent.$parent.criteriaShow">
47
+ <div class="form-group col-sm-3">
48
+ <label class="font_normal_body">客户名称:</label>
49
+ <input type="text" style="width: 60%" class="input_search" placeholder='客户名称' v-model="model.f_user_name"
50
+ v-on:keyup.enter="$parent.$parent.search()"
51
+ condition="f_user_name = '{}'">
52
+ </div>
53
+ <div class="form-group col-sm-3">
54
+ <label class="font_normal_body">安装项目:</label>
55
+ <v-select
56
+ v-model="$parent.$parent.f_install_project"
57
+ placeholder='安装项目'
58
+ :value.sync="$parent.$parent.f_install_project"
59
+ :options='$parent.$parent.installProjects'
60
+ class="select select_list"
61
+ :value-single="true"
62
+ close-on-select ></v-select>
63
+ </div>
64
+ <div class="form-group col-sm-3">
65
+ <label for="startDate" class="font_normal_body">开始时间:</label>
66
+ <datepicker id="startDate" placeholder="开始日期"
67
+ style="width: 60%!important;"
68
+ v-model="model.startDate"
69
+ :value.sync="model.startDate"
70
+ :format="'yyyy-MM-dd 00:00:00'"
71
+ :show-reset-button="true"
72
+ condition="f_construction_date >= '{}'">
73
+ </datepicker>
74
+ </div>
75
+ <div class="form-group col-sm-3">
76
+ <label for="endDate" class="font_normal_body">结束时间:</label>
77
+ <datepicker id="endDate" placeholder="结束日期"
78
+ style="width: 60%!important;"
79
+ v-model="model.endDate"
80
+ :value.sync="model.endDate"
81
+ :format="'yyyy-MM-dd 23:59:59'"
82
+ :show-reset-button="true"
83
+ condition="f_construction_date <= '{}'">
84
+ </datepicker>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </criteria>
89
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
90
+ <template partial='head'>
91
+ <tr>
92
+ <th>序号</th>
93
+ <th>工程编号</th>
94
+ <th>客户名称</th>
95
+ <th>安装项目</th>
96
+ <th>施工单位</th>
97
+ <th>施工时间</th>
98
+ </tr>
99
+ </template>
100
+ <template partial='body'>
101
+ <tr >
102
+ <td style="text-align: center;">
103
+ <nobr><font>{{$index+1}}</font></nobr>
104
+ </td>
105
+ <td style="text-align: center;">
106
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
107
+ </td>
108
+ <td style="text-align: center;">
109
+ <nobr><font>{{row.f_user_name}}</font></nobr>
110
+ </td>
111
+ <td style="text-align: center;">
112
+ <nobr><font>{{row.f_install_project}}</font></nobr>
113
+ </td>
114
+ <td style="text-align: center;">
115
+ <nobr><font>{{row.f_construction_unit}}</font></nobr>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <nobr><font>{{row.f_construction_date}}</font></nobr>
119
+ </td>
120
+ </tr>
121
+ </template>
122
+ </data-grid>
123
+ </criteria-paged>
124
+ </div>
125
+ </div>
126
+ </template>
127
+
128
+ <script>
129
+ import {PagedList} from 'vue-client'
130
+ import {HttpResetClass} from 'vue-client'
131
+ export default {
132
+ title: '安装项目',
133
+ data () {
134
+ return {
135
+ model: new PagedList('rs/sql/applyGetInstall', 30, {
136
+ data: {
137
+ f_install_project: this.f_install_project
138
+ }
139
+ }),
140
+ f_install_project: null,
141
+ curorgid: [this.$login.f.orgid],
142
+ installProjects: [{label: '全部', value: ''}, ...this.$appdata.getParam('安装项目')],
143
+ criteriaShow: false,
144
+ getfield: {
145
+ 'f_apply_num': '工程编号',
146
+ 'f_user_name': '客户名称',
147
+ 'f_install_project': '安装项目',
148
+ 'f_construction_unit': '施工单位',
149
+ 'f_construction_date': '施工时间'
150
+ }
151
+ }
152
+ },
153
+ ready () {
154
+ this.model.f_install_project = null
155
+ // 调用查询
156
+ this.search()
157
+ },
158
+ methods: {
159
+ clear () {
160
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
161
+ this.$refs.cp.$refs.cri.model[key] = ''
162
+ })
163
+ },
164
+ searchCondition (args) {
165
+ args.condition = args.condition + ` and f_orgid = '${this.curorgid[0]}'`
166
+ // if (this.model.model && this.model.model.f_install_project) {
167
+ // this.model.f_install_project = this.model.model.f_install_project
168
+ // }
169
+ this.model.search(args.condition, args.model)
170
+ },
171
+ // 查询
172
+ search () {
173
+ this.$refs.cp.$refs.cri.search()
174
+ },
175
+ getorg (val) {
176
+ if (val.length <= 0) {
177
+ return
178
+ }
179
+ this.curorgid = val
180
+ this.search()
181
+ }
182
+ },
183
+ computed: {
184
+ getCondition () {
185
+ return {
186
+ condition: this.$refs.cp.$refs.cri.condition
187
+ }
188
+ }
189
+ }
190
+ }
191
+ </script>
192
+
193
+ <style scoped>
194
+ </style>
@@ -0,0 +1,337 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-3">
9
+ <label class="font_normal_body">组织机构:</label>
10
+ <res-select
11
+ restype='organization'
12
+ :initresid='$parent.$parent.curorgid'
13
+ @res-select="$parent.$parent.getorg"
14
+ is-mul="false"
15
+ ></res-select>
16
+ </div>
17
+ <div class="form-group col-sm-3">
18
+ <label class="font_normal_body">工程编号:</label>
19
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
20
+ v-on:keyup.enter="$parent.$parent.search()"
21
+ condition="f_apply_num like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-3">
24
+ <label class="font_normal_body">客户名称:</label>
25
+ <input type="text" style="width:60%" class="input_search" placeholder='客户名称' v-model="model.f_user_name"
26
+ v-on:keyup.enter="$parent.$parent.search()"
27
+ condition="f_user_name like '%{}%'">
28
+ </div>
29
+ <div class="form-group col-sm-3 button-range">
30
+ <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.create()" v-el:cx>创建档案</button>
31
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
32
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
33
+ <div
34
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
35
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
36
+ class="button_spacing"
37
+ style="float: right">
38
+ </div>
39
+ </div>
40
+ </div>
41
+ <div class="row" v-show="$parent.$parent.criteriaShow">
42
+ <div class="form-group col-sm-3">
43
+ <label class="font_normal_body">客户编号:</label>
44
+ <input type="text" style="width:60%" class="input_search" placeholder='客户编号' v-model="model.f_userinfo_code"
45
+ v-on:keyup.enter="$parent.$parent.search()"
46
+ condition="f_userinfo_code = '{}'">
47
+ </div>
48
+ <div class="form-group col-sm-3">
49
+ <label class="font_normal_body">联系电话:</label>
50
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
51
+ v-on:keyup.enter="$parent.$parent.search()"
52
+ condition="f_phone like '%{}%'">
53
+ </div>
54
+ <div class="form-group col-sm-3">
55
+ <label class="font_normal_body">地&emsp;&emsp;址:</label>
56
+ <input type="text" style="width:60%" class="input_search" placeholder='地址' v-model="model.f_address"
57
+ v-on:keyup.enter="$parent.$parent.search()"
58
+ condition="f_address like '%{}%'">
59
+ </div>
60
+ <div class="form-group col-sm-3">
61
+ <label class="font_normal_body">表&emsp;&emsp;号:</label>
62
+ <input type="text" style="width:60%" class="input_search" placeholder='表号' v-model="model.f_meternumber"
63
+ v-on:keyup.enter="$parent.$parent.search()"
64
+ condition="f_meternumber like '%{}%'">
65
+ </div>
66
+ <div class="form-group col-sm-3">
67
+ <label class="font_normal_body">报建类型:</label>
68
+ <v-select
69
+ v-model="model.f_apply_type"
70
+ placeholder='报建类型'
71
+ condition="f_apply_type like '%{}%'"
72
+ :value.sync="model.f_apply_type"
73
+ :options='$parent.$parent.applyTypes'
74
+ class="select select_list"
75
+ :value-single="true"
76
+ close-on-select ></v-select>
77
+ </div>
78
+ <div class="form-group col-sm-3">
79
+ <label class="font_normal_body">流程状态:</label>
80
+ <v-select
81
+ v-model="model.f_sub_state"
82
+ placeholder='流程状态'
83
+ condition="f_sub_state = '{}'"
84
+ :value.sync="model.f_sub_state"
85
+ :options='$parent.$parent.subStates'
86
+ class="select select_list"
87
+ :value-single="true"
88
+ close-on-select ></v-select>
89
+ </div>
90
+ <div class="form-group col-sm-3">
91
+ <label class="font_normal_body">真实流程状态:</label>
92
+ <v-select
93
+ v-model="model.f_reality_sub_state"
94
+ placeholder='流程状态'
95
+ condition="f_reality_sub_state = '{}'"
96
+ :value.sync="model.f_reality_sub_state"
97
+ :options='$parent.$parent.showrevise'
98
+ class="select select_list"
99
+ :value-single="true"
100
+ close-on-select ></v-select>
101
+ </div>
102
+ <div class="form-group col-sm-3">
103
+ <label class="font_normal_body">用气性质:</label>
104
+ <v-select
105
+ v-model="model.f_gas_nature"
106
+ placeholder='用气性质'
107
+ condition="f_gas_nature = '{}'"
108
+ :value.sync="model.f_gas_nature"
109
+ :options='$parent.$parent.gasNatures'
110
+ class="select select_list"
111
+ :value-single="true"
112
+ close-on-select ></v-select>
113
+ </div>
114
+ <div class="form-group col-sm-3">
115
+ <label for="startDate" class="font_normal_body">开始时间:</label>
116
+ <datepicker id="startDate" placeholder="开始日期"
117
+ style="width: 60%!important;"
118
+ v-model="model.startDate"
119
+ :value.sync="model.startDate"
120
+ :format="'yyyy-MM-dd 00:00:00'"
121
+ :show-reset-button="true"
122
+ condition="f_apply_date >= '{}'">
123
+ </datepicker>
124
+ </div>
125
+ <div class="form-group col-sm-3">
126
+ <label for="endDate" class="font_normal_body">结束时间:</label>
127
+ <datepicker id="endDate" placeholder="结束日期"
128
+ style="width: 60%!important;"
129
+ v-model="model.endDate"
130
+ :value.sync="model.endDate"
131
+ :format="'yyyy-MM-dd 23:59:59'"
132
+ :show-reset-button="true"
133
+ condition="f_apply_date <= '{}'">
134
+ </datepicker>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ </criteria>
139
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
140
+ <template partial='head'>
141
+ <tr>
142
+ <th style="white-space: nowrap;">序号</th>
143
+ <th style="white-space: nowrap;">工程编号</th>
144
+ <th style="white-space: nowrap;">客户名称</th>
145
+ <th style="white-space: nowrap;">电话</th>
146
+ <th style="white-space: nowrap;">地址</th>
147
+ <th style="white-space: nowrap;">报建类型</th>
148
+ <th style="white-space: nowrap;">用气性质</th>
149
+ <th style="white-space: nowrap;">流程状态</th>
150
+ <th style="white-space: nowrap;">真实流程状态</th>
151
+ <th style="white-space: nowrap;">收费项目</th>
152
+ <th style="white-space: nowrap;">合同金额</th>
153
+ <th style="white-space: nowrap;">表号</th>
154
+ <th style="white-space: nowrap;">防盗卡号</th>
155
+ <th style="white-space: nowrap;">报建日期</th>
156
+ <th style="white-space: nowrap;">客户编号</th>
157
+
158
+ <th style="white-space: nowrap;">修改日期</th>
159
+ <th style="white-space: nowrap;">修改人</th>
160
+ <th style="white-space: nowrap;">操作</th>
161
+ </tr>
162
+ </template>
163
+ <template partial='body'>
164
+ <tr>
165
+ <td style="text-align: center;">
166
+ <nobr><font>{{$index+1}}</font></nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr><font>{{row.f_user_name}}</font></nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr><font>{{row.f_phone}}</font></nobr>
176
+ </td>
177
+ <td style="text-align: center;">
178
+ <nobr><font>{{row.f_address}}</font></nobr>
179
+ </td>
180
+ <td style="text-align: center;">
181
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <nobr><font>{{row.f_gas_nature}}</font></nobr>
185
+ </td>
186
+ <td style="text-align: center;">
187
+ <nobr><font>{{row.f_sub_state}}</font></nobr>
188
+ </td>
189
+ <td style="text-align: center;">
190
+ <nobr><font>{{row.f_reality_sub_state}}</font></nobr>
191
+ </td>
192
+ <td style="text-align: center;">
193
+ <nobr><font>{{row.f_payment_term}}</font></nobr>
194
+ </td>
195
+ <td style="text-align: center;">
196
+ <nobr><font>{{row.f_contract_money}}</font></nobr>
197
+ </td>
198
+ <td style="text-align: center;">
199
+ <nobr><font>{{row.f_meternumber}}</font></nobr>
200
+ </td>
201
+ <td style="text-align: center;">
202
+ <nobr><font>{{row.f_card_number}}</font></nobr>
203
+ </td>
204
+ <td style="text-align: center;">
205
+ <nobr><font>{{row.f_apply_date}}</font></nobr>
206
+ </td>
207
+ <td style="text-align: center;">
208
+ <nobr><font>{{row.f_userinfo_code}}</font></nobr>
209
+ </td>
210
+
211
+ <td style="text-align: center;">
212
+ <nobr><font>{{row.f_reality_sub_date}}</font></nobr>
213
+ </td>
214
+ <td style="text-align: center;">
215
+ <nobr><font>{{row.f_reality_sub_user}}</font></nobr>
216
+ </td>
217
+ <td style="text-align: center;">
218
+ <dropdown>
219
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
220
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
221
+ </button>
222
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
223
+ <li>
224
+ <a href="#" v-if="row.f_sub_state !== '完工' && (this.$login.f.rolesnames.indexOf('工程部派工') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1 || (this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 && row.f_sub_state === '待点火'))" @click="$parent.$parent.$parent.click(row)">{{row.f_sub_state}}</a>
225
+ <a href="#" v-if="row.f_sub_state !== '完工' && (this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1)" @click="$parent.$parent.$parent.stopApply(row)">异常终止</a>
226
+ <a href="#" v-if="row.f_sub_state === '完工' && (this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1)" @click="$parent.$parent.$parent.reviseApply(row)">修改真实流程状态</a>
227
+ </li>
228
+ </ul>
229
+ </dropdown>
230
+ </td>
231
+ </tr>
232
+ </template>
233
+ </data-grid>
234
+ </criteria-paged>
235
+ </div>
236
+ </div>
237
+ </template>
238
+
239
+ <script>
240
+ import {PagedList} from 'vue-client'
241
+
242
+ export default {
243
+ title: '数据处理',
244
+ data () {
245
+ return {
246
+ model: new PagedList('rs/sql/getOldApply', 20, null),
247
+ criteriaShow: false,
248
+ curorgid: [this.$login.f.orgid],
249
+ applyTypes: [
250
+ {label: '全部',value: ''},
251
+ {label: '学校报装',value: '学校报装'},
252
+ {label: '散户报装',value: '散户报装'},
253
+ {label: '工商业报装',value: '工商业报装'},
254
+ {label: 'CNG车辆',value: 'CNG车辆'},
255
+ {label: '团购报装',value: '团购报装'},
256
+ {label: '乡镇',value: '乡镇'}
257
+ ],
258
+ subStates: [
259
+ {label: '全部',value: ''},
260
+ {label: '待受理',value: '待受理'},
261
+ {label: '待安装',value: '待安装'},
262
+ {label: '待点火',value: '待点火'},
263
+ {label: '完工',value: '完工'},
264
+ {label: '终止',value: '终止'}
265
+ ],
266
+ gasNatures: [
267
+ {label: '全部',value: ''},
268
+ {label: '民用',value: '民用'},
269
+ {label: '商业',value: '商业'},
270
+ {label: '工业',value: '工业'}
271
+ ],
272
+ showrevise:this.$appdata.getParam('真实流程状态')
273
+ }
274
+ },
275
+ ready () {
276
+ this.search()
277
+ },
278
+ methods: {
279
+ stopApply (row) {
280
+ this.$dispatch('stopApply', row)
281
+ },
282
+ reviseApply (row) {
283
+ this.$dispatch('reviseApply', row)
284
+ },
285
+ click (row) {
286
+ this.$dispatch('openApply', row, 'handle')
287
+ },
288
+ searchCondition (args) {
289
+ args.condition = args.condition + ` and f_orgid = '${this.curorgid[0]}'`
290
+
291
+ if (this.$login.f.rolesnames.indexOf('工程部派工') !== -1 && this.$login.f.rolesnames.indexOf('运营部派工') !== -1) {
292
+ args.condition = args.condition + ` and (f_sub_state = '待安装' or f_sub_state = '待点火' or f_sub_state = '完工')`
293
+ } else if (this.$login.f.rolesnames.indexOf('工程部派工') !== -1) {
294
+ args.condition = args.condition + ` and (f_sub_state = '待安装' or f_sub_state = '完工')`
295
+ } else if (this.$login.f.rolesnames.indexOf('运营部派工') !== -1) {
296
+ args.condition = args.condition + ` and (f_sub_state = '待点火' or f_sub_state = '完工')`
297
+ } else {
298
+ args.condition = args.condition + ` and (f_sub_state = '待安装' or f_sub_state = '待点火' or f_sub_state = '完工')`
299
+ }
300
+
301
+ this.model.search(args.condition, args.model)
302
+ },
303
+ search () {
304
+ this.$refs.cp.$refs.cri.search()
305
+ },
306
+ loadPage () {
307
+ this.$refs.cp.loadPage(this.model.pageIndex)
308
+ },
309
+ clear () {
310
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
311
+ this.$refs.cp.$refs.cri.model[key] = null
312
+ })
313
+ },
314
+ getorg (val) {
315
+ if (val.length <= 0) {
316
+ return
317
+ }
318
+ this.curorgid = val
319
+ },
320
+ async create () {
321
+ let data = {
322
+ user: this.$login.f
323
+ }
324
+
325
+ let res = await this.$resetpost(
326
+ `rs/logic/createOldApplyUserinfo`,
327
+ data,
328
+ {resolveMsg: null,rejectMsg: '处理失败!!!'}
329
+ )
330
+ }
331
+ }
332
+ }
333
+ </script>
334
+
335
+ <style scoped>
336
+
337
+ </style>