apply-clients 3.3.47 → 3.3.51

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 (38) hide show
  1. package/build/dev-server.js +3 -2
  2. package/package.json +1 -1
  3. package/src/AndroidApp.vue +35 -35
  4. package/src/apply.js +93 -93
  5. package/src/applyAndroid.js +31 -31
  6. package/src/components/android/AppOnetomany.vue +301 -301
  7. package/src/components/android/AppServiceView.vue +566 -566
  8. package/src/components/android/AppSign.vue +142 -142
  9. package/src/components/android/Function/AppInstallFunction.vue +366 -366
  10. package/src/components/android/Process/AppExplorationUser.vue +340 -340
  11. package/src/components/android/Process/AppServiceControl.vue +4 -0
  12. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -46
  13. package/src/components/android/Supervisory/AppProcessSupervisory.vue +300 -300
  14. package/src/components/android/Supervisory/AppSupervisoryCart.vue +4 -0
  15. package/src/components/product/ApplyCharge/ApplyChargeList.vue +382 -367
  16. package/src/components/product/Function/InstallFunction.vue +132 -132
  17. package/src/components/product/Function/InstallInfoSelect.vue +320 -310
  18. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -445
  19. package/src/components/product/Material/MaterialDetailed.vue +235 -235
  20. package/src/components/product/OldApply/Monitor/MonitorApply.vue +329 -329
  21. package/src/components/product/OldApply/OldApply.vue +150 -150
  22. package/src/components/product/Onetomany.vue +377 -377
  23. package/src/components/product/Print/BuildOrder/buildOrderList.vue +264 -264
  24. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +153 -153
  25. package/src/components/product/Process/ExplorationSelect.vue +457 -457
  26. package/src/components/product/Process/ExplorationUser.vue +147 -147
  27. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -592
  28. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -142
  29. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -196
  30. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -207
  31. package/src/components/product/Process/Processes/chargeManagement.vue +17 -0
  32. package/src/components/product/Process/Service/ServiceControl.vue +1265 -1254
  33. package/src/components/product/ServiceView.vue +631 -631
  34. package/src/components/product/Supervisory/SupervisoryControl.vue +137 -137
  35. package/src/components/product/Supervisory/SupervisoryList.vue +296 -296
  36. package/src/components/product/Supervisory/SupervisoryhCart.vue +130 -130
  37. package/src/components/product/VueUtils/ApplyUpload.vue +273 -273
  38. package/src/components/product/VueUtils/HighMeter.vue +208 -208
@@ -1,264 +1,264 @@
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_user_name"
26
- v-on:keyup.enter="$parent.$parent.search()"
27
- condition="f_user_name = '{}'">
28
- </div>
29
- <div class="form-group col-sm-3 button-range">
30
- <button class="button_export button_spacing" @click="$parent.$parent.batchPrint()">批量打印</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">电&emsp;&emsp;话:</label>
44
- <input type="text" style="width: 60%" class="input_search" placeholder='电话' v-model="model.f_phone"
45
- v-on:keyup.enter="$parent.$parent.search()"
46
- condition="f_phone = '{}'">
47
- </div>
48
- <div class="form-group col-sm-3">
49
- <label class="font_normal_body">地&emsp;&emsp;址:</label>
50
- <input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
51
- v-on:keyup.enter="$parent.$parent.search()"
52
- condition="f_address like '%{}%'">
53
- </div>
54
- <div class="form-group col-sm-3">
55
- <label class="font_normal_body">安装单位:</label>
56
- <input type="text" style="width: 60%" class="input_search" placeholder='安装单位' v-model="model.f_construction_unit"
57
- v-on:keyup.enter="$parent.$parent.search()"
58
- condition="f_construction_unit = '{}'">
59
- </div>
60
- <div class="form-group col-sm-3">
61
- <label for="startDate" class="font_normal_body">开始时间:</label>
62
- <datepicker id="startDate" placeholder="开始日期"
63
- style="width: 60%!important;"
64
- v-model="model.startDate"
65
- :value.sync="model.startDate"
66
- :format="'yyyy-MM-dd 00:00:00'"
67
- :show-reset-button="true"
68
- condition="f_construction_date >= '{}'">
69
- </datepicker>
70
- </div>
71
- <div class="form-group col-sm-3">
72
- <label for="endDate" class="font_normal_body">结束时间:</label>
73
- <datepicker id="endDate" placeholder="结束日期"
74
- style="width: 60%!important;"
75
- v-model="model.endDate"
76
- :value.sync="model.endDate"
77
- :format="'yyyy-MM-dd 23:59:59'"
78
- :show-reset-button="true"
79
- condition="f_construction_date <= '{}'">
80
- </datepicker>
81
- </div>
82
- </div>
83
- </div>
84
- </criteria>
85
- <data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
86
- <template partial='head'>
87
- <tr>
88
- <th>序号</th>
89
- <th>工程编号</th>
90
- <th>客户名称</th>
91
- <th>电话</th>
92
- <th>地址</th>
93
- <th>安装单位</th>
94
- <th>安装时间</th>
95
- </tr>
96
- </template>
97
- <template partial='body'>
98
- <tr >
99
- <td style="text-align: center;">
100
- <nobr><font>{{$index+1}}</font></nobr>
101
- </td>
102
- <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
103
- <nobr><font>{{row.f_apply_num}}</font></nobr>
104
- </td>
105
- <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
106
- <nobr><font>{{row.f_user_name}}</font></nobr>
107
- </td>
108
- <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
109
- <nobr><font>{{row.f_phone}}</font></nobr>
110
- </td>
111
- <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
112
- <nobr><font>{{row.f_address}}</font></nobr>
113
- </td>
114
- <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
115
- <nobr><font>{{row.f_construction_unit}}</font></nobr>
116
- </td>
117
- <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
118
- <nobr><font>{{row.f_construction_date}}</font></nobr>
119
- </td>
120
- </tr>
121
- </template>
122
- </data-grid>
123
- </criteria-paged>
124
-
125
- <modal :show.sync="showPrint" title="打印预览" v-ref:modal :backdrop="false">
126
- <header slot="modal-header" class="modal-header">
127
- <button type="button" class="close" @click="colseModal()"><span>&times;</span></button>
128
- <h4 class="modal-title">打印预览</h4>
129
- </header>
130
- <article slot="modal-body" class="modal-body">
131
- <print-build-order :selectdata="selectdata" :type="type" v-ref:print></print-build-order>
132
- </article>
133
- <footer slot="modal-footer" class="modal-footer">
134
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
135
- </footer>
136
- </modal>
137
-
138
- <modal :show.sync="showProgress" v-ref:progress :backdrop="false">
139
- <header slot="modal-header" class="modal-header">
140
- <h4 class="modal-title">发送打印指令中,请耐心等待...</h4>
141
- </header>
142
- <article slot="modal-body" class="modal-body">
143
- <div class="progress" style="margin: 20px">
144
- <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
145
- {{ percent }}
146
- </div>
147
- </div>
148
- </article>
149
- <footer slot="modal-footer" class="modal-footer">
150
- </footer>
151
- </modal>
152
- </div>
153
- </div>
154
- </template>
155
-
156
- <script>
157
- import {PagedList} from 'vue-client'
158
- import {HttpResetClass} from 'vue-client'
159
- export default {
160
- title: '安装项目',
161
- data () {
162
- return {
163
- model: new PagedList('rs/sql/buildOrderList', 30, null),
164
- criteriaShow: false,
165
- curorgid: [this.$login.f.orgid],
166
- selectdata: null,
167
- showPrint: false,
168
- showProgress: false,
169
- percent: 0,
170
- type: 'PREVIEW'
171
- }
172
- },
173
- ready () {
174
- // 调用查询
175
- this.search()
176
- },
177
- methods: {
178
- async batchPrint () {
179
- let selectPrint = this.$refs.cp.$refs.grid.getRowData()
180
- if (selectPrint.length > 0) {
181
- let res = await this.$showMessage(`当前数据条数: ${selectPrint.length}, 条数过大时打印时间可能会过长, 是否确认打印?`)
182
- if (res == 'confirm') {
183
- this.showProgress = true
184
- for (let i = 0; i < selectPrint.length; i++) {
185
- this.type = 'PRINT'
186
- await this.getData(selectPrint[i])
187
- this.print()
188
- this.percent = this.getPercent(i, selectPrint.length)
189
- console.log('-------------进度-----------')
190
- console.log(this.percent)
191
- }
192
- this.showProgress = false
193
- this.percent = 0
194
- this.$refs.cp.$refs.grid.selectInit()
195
- }
196
- } else {
197
- this.$showAlert('请选择要打印的单子', 'warning', 3000)
198
- }
199
- },
200
- getPercent (num, total){
201
- num = parseFloat(num);
202
- total = parseFloat(total);
203
- if (isNaN(num) || isNaN(total)) {
204
- return "-";
205
- }
206
- return total <= 0? "0%" : Math.round((num / total) * 10000) / 100.0 + "%";
207
- },
208
- print () {
209
- this.$refs.print.print()
210
- },
211
- colseModal () {
212
- this.showPrint = false
213
- this.selectdata = null
214
- },
215
- async click (row) {
216
- this.type = 'PREVIEW'
217
-
218
- this.getData(row)
219
-
220
- this.showPrint = true
221
- },
222
- async getData (row) {
223
- this.selectdata = null
224
-
225
- let http = new HttpResetClass()
226
- let data = {
227
- f_process_id: row.f_process_id,
228
- actid: row.actid
229
- }
230
- let res = await http.load('POST', 'rs/sql/getBuildOrder', {data:data}, {
231
- resolveMsg: null,
232
- rejectMsg: '获取施工单失败!!!'
233
- })
234
-
235
- this.selectdata = res.data[0]
236
- },
237
- clear () {
238
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
239
- this.$refs.cp.$refs.cri.model[key] = ''
240
- })
241
- },
242
- searchCondition (args) {
243
- args.condition = args.condition + ` and u.f_orgid = '${this.curorgid[0]}'`
244
- this.model.search(args.condition, args.model)
245
- },
246
- // 查询
247
- search () {
248
- this.$refs.cp.$refs.cri.search()
249
- },
250
- getorg (val) {
251
- if (val.length <= 0) {
252
- return
253
- }
254
- this.curorgid = val
255
- this.search()
256
- }
257
- },
258
- computed: {
259
- }
260
- }
261
- </script>
262
-
263
- <style scoped>
264
- </style>
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_user_name"
26
+ v-on:keyup.enter="$parent.$parent.search()"
27
+ condition="f_user_name = '{}'">
28
+ </div>
29
+ <div class="form-group col-sm-3 button-range">
30
+ <button class="button_export button_spacing" @click="$parent.$parent.batchPrint()">批量打印</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">电&emsp;&emsp;话:</label>
44
+ <input type="text" style="width: 60%" class="input_search" placeholder='电话' v-model="model.f_phone"
45
+ v-on:keyup.enter="$parent.$parent.search()"
46
+ condition="f_phone = '{}'">
47
+ </div>
48
+ <div class="form-group col-sm-3">
49
+ <label class="font_normal_body">地&emsp;&emsp;址:</label>
50
+ <input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
51
+ v-on:keyup.enter="$parent.$parent.search()"
52
+ condition="f_address like '%{}%'">
53
+ </div>
54
+ <div class="form-group col-sm-3">
55
+ <label class="font_normal_body">安装单位:</label>
56
+ <input type="text" style="width: 60%" class="input_search" placeholder='安装单位' v-model="model.f_construction_unit"
57
+ v-on:keyup.enter="$parent.$parent.search()"
58
+ condition="f_construction_unit = '{}'">
59
+ </div>
60
+ <div class="form-group col-sm-3">
61
+ <label for="startDate" class="font_normal_body">开始时间:</label>
62
+ <datepicker id="startDate" placeholder="开始日期"
63
+ style="width: 60%!important;"
64
+ v-model="model.startDate"
65
+ :value.sync="model.startDate"
66
+ :format="'yyyy-MM-dd 00:00:00'"
67
+ :show-reset-button="true"
68
+ condition="f_construction_date >= '{}'">
69
+ </datepicker>
70
+ </div>
71
+ <div class="form-group col-sm-3">
72
+ <label for="endDate" class="font_normal_body">结束时间:</label>
73
+ <datepicker id="endDate" placeholder="结束日期"
74
+ style="width: 60%!important;"
75
+ v-model="model.endDate"
76
+ :value.sync="model.endDate"
77
+ :format="'yyyy-MM-dd 23:59:59'"
78
+ :show-reset-button="true"
79
+ condition="f_construction_date <= '{}'">
80
+ </datepicker>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </criteria>
85
+ <data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
86
+ <template partial='head'>
87
+ <tr>
88
+ <th>序号</th>
89
+ <th>工程编号</th>
90
+ <th>客户名称</th>
91
+ <th>电话</th>
92
+ <th>地址</th>
93
+ <th>安装单位</th>
94
+ <th>安装时间</th>
95
+ </tr>
96
+ </template>
97
+ <template partial='body'>
98
+ <tr >
99
+ <td style="text-align: center;">
100
+ <nobr><font>{{$index+1}}</font></nobr>
101
+ </td>
102
+ <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
103
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
104
+ </td>
105
+ <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
106
+ <nobr><font>{{row.f_user_name}}</font></nobr>
107
+ </td>
108
+ <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
109
+ <nobr><font>{{row.f_phone}}</font></nobr>
110
+ </td>
111
+ <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
112
+ <nobr><font>{{row.f_address}}</font></nobr>
113
+ </td>
114
+ <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
115
+ <nobr><font>{{row.f_construction_unit}}</font></nobr>
116
+ </td>
117
+ <td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
118
+ <nobr><font>{{row.f_construction_date}}</font></nobr>
119
+ </td>
120
+ </tr>
121
+ </template>
122
+ </data-grid>
123
+ </criteria-paged>
124
+
125
+ <modal :show.sync="showPrint" title="打印预览" v-ref:modal :backdrop="false">
126
+ <header slot="modal-header" class="modal-header">
127
+ <button type="button" class="close" @click="colseModal()"><span>&times;</span></button>
128
+ <h4 class="modal-title">打印预览</h4>
129
+ </header>
130
+ <article slot="modal-body" class="modal-body">
131
+ <print-build-order :selectdata="selectdata" :type="type" v-ref:print></print-build-order>
132
+ </article>
133
+ <footer slot="modal-footer" class="modal-footer">
134
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
135
+ </footer>
136
+ </modal>
137
+
138
+ <modal :show.sync="showProgress" v-ref:progress :backdrop="false">
139
+ <header slot="modal-header" class="modal-header">
140
+ <h4 class="modal-title">发送打印指令中,请耐心等待...</h4>
141
+ </header>
142
+ <article slot="modal-body" class="modal-body">
143
+ <div class="progress" style="margin: 20px">
144
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
145
+ {{ percent }}
146
+ </div>
147
+ </div>
148
+ </article>
149
+ <footer slot="modal-footer" class="modal-footer">
150
+ </footer>
151
+ </modal>
152
+ </div>
153
+ </div>
154
+ </template>
155
+
156
+ <script>
157
+ import {PagedList} from 'vue-client'
158
+ import {HttpResetClass} from 'vue-client'
159
+ export default {
160
+ title: '安装项目',
161
+ data () {
162
+ return {
163
+ model: new PagedList('rs/sql/buildOrderList', 30, null),
164
+ criteriaShow: false,
165
+ curorgid: [this.$login.f.orgid],
166
+ selectdata: null,
167
+ showPrint: false,
168
+ showProgress: false,
169
+ percent: 0,
170
+ type: 'PREVIEW'
171
+ }
172
+ },
173
+ ready () {
174
+ // 调用查询
175
+ this.search()
176
+ },
177
+ methods: {
178
+ async batchPrint () {
179
+ let selectPrint = this.$refs.cp.$refs.grid.getRowData()
180
+ if (selectPrint.length > 0) {
181
+ let res = await this.$showMessage(`当前数据条数: ${selectPrint.length}, 条数过大时打印时间可能会过长, 是否确认打印?`)
182
+ if (res == 'confirm') {
183
+ this.showProgress = true
184
+ for (let i = 0; i < selectPrint.length; i++) {
185
+ this.type = 'PRINT'
186
+ await this.getData(selectPrint[i])
187
+ this.print()
188
+ this.percent = this.getPercent(i, selectPrint.length)
189
+ console.log('-------------进度-----------')
190
+ console.log(this.percent)
191
+ }
192
+ this.showProgress = false
193
+ this.percent = 0
194
+ this.$refs.cp.$refs.grid.selectInit()
195
+ }
196
+ } else {
197
+ this.$showAlert('请选择要打印的单子', 'warning', 3000)
198
+ }
199
+ },
200
+ getPercent (num, total){
201
+ num = parseFloat(num);
202
+ total = parseFloat(total);
203
+ if (isNaN(num) || isNaN(total)) {
204
+ return "-";
205
+ }
206
+ return total <= 0? "0%" : Math.round((num / total) * 10000) / 100.0 + "%";
207
+ },
208
+ print () {
209
+ this.$refs.print.print()
210
+ },
211
+ colseModal () {
212
+ this.showPrint = false
213
+ this.selectdata = null
214
+ },
215
+ async click (row) {
216
+ this.type = 'PREVIEW'
217
+
218
+ await this.getData(row)
219
+
220
+ this.showPrint = true
221
+ },
222
+ async getData (row) {
223
+ this.selectdata = null
224
+
225
+ let http = new HttpResetClass()
226
+ let data = {
227
+ f_process_id: row.f_process_id,
228
+ actid: row.actid
229
+ }
230
+ let res = await http.load('POST', 'rs/sql/getBuildOrder', {data:data}, {
231
+ resolveMsg: null,
232
+ rejectMsg: '获取施工单失败!!!'
233
+ })
234
+
235
+ this.selectdata = res.data[0]
236
+ },
237
+ clear () {
238
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
239
+ this.$refs.cp.$refs.cri.model[key] = ''
240
+ })
241
+ },
242
+ searchCondition (args) {
243
+ args.condition = args.condition + ` and u.f_orgid = '${this.curorgid[0]}'`
244
+ this.model.search(args.condition, args.model)
245
+ },
246
+ // 查询
247
+ search () {
248
+ this.$refs.cp.$refs.cri.search()
249
+ },
250
+ getorg (val) {
251
+ if (val.length <= 0) {
252
+ return
253
+ }
254
+ this.curorgid = val
255
+ this.search()
256
+ }
257
+ },
258
+ computed: {
259
+ }
260
+ }
261
+ </script>
262
+
263
+ <style scoped>
264
+ </style>