apply-clients 3.4.88-2 → 3.4.88-20

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 (29) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/android/AppSign.vue +0 -1
  4. package/src/components/android/Ignition/VentilationIgnition.vue +3 -99
  5. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +1 -103
  6. package/src/components/product/Function/Service/FunctionServiceControl.vue +53 -1
  7. package/src/components/product/Ignition/IgnitionListManage.vue +1 -1
  8. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +0 -8
  9. package/src/filiale/hongda/android/AppAddMaterialScience.vue +195 -196
  10. package/src/filiale/hongda/pc/ServiceView.vue +6 -3
  11. package/src/filiale/hongda/pc/addMaterialScience.vue +64 -24
  12. package/src/filiale/hongda/pc/printChargepc.vue +15 -37
  13. package/src/filiale/hongda/pc/printactivatecard.vue +2 -4
  14. package/src/filiale/hongda/pc/printinstall.vue +3 -25
  15. package/src/filiale/shexian/android/AppExplorationUser.vue +506 -631
  16. package/src/filiale/shexian/android/AppInstallationDetails.vue +500 -498
  17. package/src/filiale/shexian/android/AppServiceView.vue +4 -3
  18. package/src/filiale/shexian/pc/ApplyChargeList.vue +471 -0
  19. package/src/filiale/shexian/pc/ExplorationSelect.vue +1 -1
  20. package/src/filiale/shexian/pc/InstallInfoSelect.vue +320 -0
  21. package/src/filiale/shexian/pc/InstallationDetails.vue +639 -614
  22. package/src/filiale/shexian/pc/ServiceControl.vue +1947 -1955
  23. package/src/filiale/shexian/pc/ServiceView.vue +1025 -1020
  24. package/src/filiale/shexian/pc/StopApplyList.vue +271 -0
  25. package/src/filiale/shexian/pc/SupervisoryList.vue +405 -0
  26. package/src/filiale/shexian/pc/SupervisoryServiceControl.vue +902 -902
  27. package/src/filiale/shexian/pc/chargeManagement.vue +654 -654
  28. package/src/filiale/shexian/pc.js +15 -11
  29. package/src/main.js +23 -23
@@ -110,10 +110,10 @@ app.use(hotMiddleware)
110
110
  // serve pure static assets
111
111
  app.use('/static', express.static('./static'))
112
112
 
113
- module.exports = app.listen(8300, function (err) {
113
+ module.exports = app.listen(8800, function (err) {
114
114
  if (err) {
115
115
  console.log(err)
116
116
  return
117
117
  }
118
- console.log('Listening at http://localhost:8300')
118
+ console.log('Listening at http://localhost:8800')
119
119
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.88-2",
3
+ "version": "3.4.88-20",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -40,7 +40,6 @@ export default {
40
40
  this.$emit('sign-clean')
41
41
  },
42
42
  sign () {
43
- debugger
44
43
  this.type='手机签字'
45
44
  console.log('==============签字打印this============',this)
46
45
  this.delAudioFile(this.f_sign_path)
@@ -1,25 +1,6 @@
1
1
  <template>
2
2
  <div>
3
3
  <tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab" :active.sync="active">
4
- <tab header='任务地图'>
5
- <div class="auto tip">
6
- <p>当前任务数量:{{ tasknumber }}</p>
7
- <p>当前任务点:{{labelmarksarray.length}}</p>
8
- </div>
9
- <amap-location
10
- :islocation="true"
11
- :locationzoomcenter="false"
12
- :usenative="true"
13
- :isshowsearch="false"
14
- :mylocationinfo="false"
15
- :islocationclearmark="false"
16
- :isshowmapmodel="false"
17
- :locationwindow="false"
18
- mapmodel="dragMarker"
19
- :labelmarksarray="labelmarksarray"
20
- @diyspotmouseclick="diyspotmouseclick"
21
- ></amap-location>
22
- </tab>
23
4
  <tab header='任务列表'>
24
5
  <div class="p-10">
25
6
  <criteria-paged :model="model" v-ref:cp>
@@ -122,13 +103,6 @@
122
103
  <p class="col-xs-3 text-left font"><b>地&emsp;&emsp;址:</b></p>
123
104
  <p class="col-xs-9 text-left input-font">{{ row.f_address }}</p>
124
105
  </div>
125
- <div class="col-xs-12">
126
- <p class="col-xs-3 text-left font"><b>定位地址:</b></p>
127
- <p class="col-xs-9 text-left input-font">
128
- {{ row.f_location_address }}
129
- <svg v-if="row.f_location_address" @click.prevent="$parent.$parent.$parent.$parent.$parent.openAmap(row)" style="width: 25px;height: 25px;position: absolute;" t="1628575336648" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3201" width="200" height="200"><path d="M512 956h-1.1c-10.9 0-20.5-6.9-24.7-17L369.9 654.1 85 537.8c-10.1-4.1-16.8-13.7-17.2-24.6-0.4-10.9 5.6-21 15.3-25.9l833-416.5c10.7-5.3 23.6-3.2 32.1 5.2s10.5 21.4 5.2 32.1L536.8 940.9c-4.7 9.4-14.3 15.1-24.8 15.1zM162.7 509.6l239 97.6c6.9 2.8 12.4 8.3 15.2 15.2l97.6 239 351.9-703.8-703.7 352z" fill="#666666" p-id="3202"></path></svg>
130
- </p>
131
- </div>
132
106
  <div class="col-xs-12">
133
107
  <p class="col-xs-3 text-left font"><b>报建类型:</b></p>
134
108
  <p class="col-xs-9 text-left input-font">
@@ -163,8 +137,6 @@ export default {
163
137
  model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/getWaitIgnitionTaskApp`, 20, null),
164
138
  // model: new PagedList(`rs/sql/getWaitIgnitionTask`, 20, null),
165
139
  criteriaShow: false,
166
- tasknumber: 0,
167
- labelmarksarray: [],
168
140
  active: 0,
169
141
  f_lat: null,
170
142
  f_lng: null,
@@ -177,7 +149,6 @@ export default {
177
149
  },
178
150
  methods: {
179
151
  refresh () {
180
- this.getWaitIgnitionTaskDot()
181
152
  this.getArea()
182
153
  this.search()
183
154
  },
@@ -193,7 +164,7 @@ export default {
193
164
  row.f_apply_type = '通气点火'
194
165
  // row.f_process_id = row.f_blobid
195
166
  console.log('----------------------++++++++++++++++++',row.f_process_id)
196
- this.$goto('ventilation-ignition-handle', {selectdata: row}, 'self', _this.refresh)
167
+ this.$goto('app-ignition-handle', {selectdata: row}, 'self', _this.refresh)
197
168
  },
198
169
  dialNumber (tel) {
199
170
  this.$showMessage(`是否拨打电话:${tel}`, ['confirm']).then((res) => {
@@ -202,68 +173,6 @@ export default {
202
173
  }
203
174
  })
204
175
  },
205
- // 导航
206
- openAmap (row) {
207
- HostApp.openThirdPartyMap({
208
- lon: row.f_lng,
209
- lat: row.f_lat,
210
- address: row.f_location_address
211
- })
212
- },
213
- diyspotmouseclick (data) {
214
- console.log('************************************')
215
- console.log(data)
216
- this.f_lat = data.f_lat
217
- this.f_lng = data.f_lng
218
- this.search()
219
-
220
- this.active = 1
221
- },
222
- async getWaitIgnitionTaskDot () {
223
- this.tasknumber = 0
224
- let http = new HttpResetClass()
225
- let data = {
226
- userid: Vue.user.id
227
- // userid: this.$login.f.id
228
- }
229
- let res = await http.load(
230
- 'POST',
231
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getWaitIgnitionTaskDot`,
232
- // `rs/sql/getWaitIgnitionTaskDot`,
233
- {data: data},
234
- {
235
- resolveMsg: null,
236
- rejectMsg: '任务点获取失败!!!'
237
- })
238
- this.labelmarksarray = res.data.map(item => {
239
- this.tasknumber += item.count
240
- return {
241
- data: {
242
- data: item,
243
- content: `<p>任务数:${item.count}</p>`
244
- },
245
- position: [item.f_lng, item.f_lat],
246
- isclearmarker: false,
247
- islabel: false
248
- }
249
- })
250
- // for (const item of res.data) {
251
- // this.tasknumber += item.count
252
- // if (isEmpty(item.f_lng) || isEmpty(item.f_lat)) {
253
- // continue
254
- // }
255
- //
256
- // this.labelmarksarray.push({
257
- // data: {
258
- // data: item,
259
- // content: `<p>任务数:${item.count}</p>`
260
- // },
261
- // position: [item.f_lng, item.f_lat],
262
- // isclearmarker: true,
263
- // islabel: false
264
- // })
265
- // }
266
- },
267
176
  searchCondition (args) {
268
177
  args.condition += `and ir.f_ignition_operator_id = '${Vue.user.id}' and ir.f_state = '正在进行'`
269
178
  // args.condition += `and ir.f_ignition_operator_id = '${this.$login.f.id}' and ir.f_state = '正在进行'`
@@ -272,13 +181,8 @@ export default {
272
181
  // args.condition = args.condition.replace(`ir.f_ignition_operator_id = \'${this.$login.f.id}\'`, 'ir.f_shared_dispatch = \'是\'');
273
182
  args.condition = args.condition.replace(`ir.f_ignition_operator_id = \'${Vue.user.id}\'`, 'ir.f_shared_dispatch = \'是\'');
274
183
  }
275
- if (!isEmpty(this.f_lat) && !isEmpty(this.f_lng)) {
276
- args.condition += `and ui.f_lat = '${this.f_lat}' and ui.f_lng = '${this.f_lng}'`
277
- }
278
184
  this.model.search(args.condition, args.model)
279
185
 
280
- this.f_lng = null
281
- this.f_lat = null
282
186
  },
283
187
  // 查询
284
188
  search () {
@@ -313,14 +217,14 @@ export default {
313
217
  async getArea () {
314
218
  let data = {
315
219
  tablename: 't_area_address',
316
- condition: `f_filiale = '${Vue.user.f_fengongsi}' and f_area_status = '启用'`
220
+ condition: `f_filiale = '${Vue.user.orgid}' and f_area_status = '启用'`
317
221
  // condition: `f_filiale = '${this.$login.f.f_fengongsi}' and f_area_status = '启用'`
318
222
  }
319
223
  let http = new HttpResetClass()
320
224
  let res = await http.load(
321
225
  'POST',
322
226
  // `rs/sql/applySingleTable`,
323
- `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
227
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
324
228
  {data: data},
325
229
  {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
326
230
  )
@@ -113,9 +113,6 @@
113
113
  </div>
114
114
  <div class="col-xs-12 auto">
115
115
  <accordion one-at-a-time="true">
116
- <panel header="设备查看" :is-open="false" type="primary">
117
- <app-devices-management :selectdata="selectdata" :mark = 1 ></app-devices-management>
118
- </panel>
119
116
  <panel header="拍照" :is-open="false" type="primary">
120
117
  <app-take-pic
121
118
  :blobid="selectdata.f_blobid"
@@ -128,14 +125,6 @@
128
125
  </panel>
129
126
  </accordion>
130
127
  </div>
131
- <div class="col-xs-12 form-group auto" v-if="selectdata.f_meter_classify === '物联网表'">
132
- <div class="col-xs-5">
133
- <button style="width: 100%" class="btn btn-success" @click.prevent="openModal('退出强制状态')">退出强制状态</button>
134
- </div>
135
- <div class="col-xs-5 col-xs-offset-2">
136
- <button style="width: 100%" class="btn btn-danger" @click.prevent="openModal('关阀')">强制关阀</button>
137
- </div>
138
- </div>
139
128
  <div class="col-xs-12 auto">
140
129
  <accordion one-at-a-time="true">
141
130
  <panel header="用户签字" :is-open="false" type="primary">
@@ -155,35 +144,6 @@
155
144
  </div>
156
145
 
157
146
  <validator name="v">
158
- <modal v-if="showModal" :show.sync="showModal" v-ref:modal :large="true" :backdrop="false">
159
- <header slot="modal-header" class="modal-header">
160
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
161
- <h4 class="modal-title">{{type}}操作</h4>
162
- </header>
163
- <article slot="modal-body" class="modal-body clearfix">
164
- <div class="form-group row vertical-center">
165
- <div class="col-xs-12" v-if="type !== '关阀'" :class="[$v.reason.required ? 'apply-has-error' : '']">
166
- <input
167
- type="checkbox"
168
- class=""
169
- :value.sync="boxReason"
170
- v-model="boxReason"
171
- :value="boxReason"
172
- @change="changeAllChecked()"
173
- ></input>{{ reasonOptions[0].label }}
174
- </div>
175
- <div class="col-xs-12" :class="[$v.reason.required ? 'apply-has-error' : '']">
176
- <textarea rows="2" style="width: 100%;height: 100%"
177
- :placeholder="type+'操作原因'" v-validate:reason = "['required']"
178
- v-model="reason" :value="reason"
179
- ></textarea>
180
- </div>
181
- </div>
182
- </article>
183
- <footer slot="modal-footer" class="modal-footer">
184
- <button type="button" class="btn btn-primary" @click="onOffValve" :disabled="!$v.valid">确认</button>
185
- </footer>
186
- </modal>
187
147
  </validator>
188
148
  </template>
189
149
  <script>
@@ -276,7 +236,6 @@ export default {
276
236
  this.$dispatch('confirm')
277
237
  },
278
238
  async search(){
279
- console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>", this.selectdata.f_process_id + 'cs' + this.selectdata.defname + 'cs' + this.selectdata.f_apply_type)
280
239
  let data = {
281
240
  tablename: 't_ignition_record',
282
241
  condition: `f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
@@ -284,7 +243,7 @@ export default {
284
243
  let http = new HttpResetClass()
285
244
  let res = await http.load(
286
245
  'POST',
287
- `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
246
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
288
247
  {data: data},
289
248
  {resolveMsg: null, rejectMsg: '点火记录查询失败!!!'}
290
249
  )
@@ -292,67 +251,6 @@ export default {
292
251
  this.model.f_ignition_trouble = res.data[0].f_ignition_trouble
293
252
  this.model.f_ignition_remarks = res.data[0].f_ignition_remarks
294
253
  }
295
- },
296
- async onOffValve () {
297
- let http = new HttpResetClass()
298
- let data = null
299
- let res = null
300
-
301
- if (this.type !== '退出强制状态') {
302
- data = {
303
- condition: `f_meternumber = '${this.selectdata.f_meternumber}'`,
304
- contentData: {
305
- isOpen: this.type === '开阀' ? 1 : 0
306
- },
307
- inputtor: Vue.user.name,
308
- instructTitle: this.type,
309
- instructType: '阀门控制',
310
- meterBrandName: this.selectdata.f_meter_brand
311
- }
312
- res = await http.load(
313
- 'POST',
314
- `${this.$androidUtil.getProxyUrl()}/rs/logic/saveInstruct`,
315
- {data: data},
316
- {resolveMsg: null, rejectMsg: `${this.type}失败!!!`}
317
- )
318
- }
319
-
320
- data = {
321
- f_user_id: this.selectdata.f_user_id,
322
- f_userinfo_id: this.selectdata.f_userinfo_id,
323
- record: {
324
- f_filiale: Vue.user.f_fengongsi,
325
- f_instruct_meta_data: this.type === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
326
- f_instruct_title: this.type === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
327
- f_instruct_type: '阀门控制',
328
- f_meternumber: this.selectdata.f_meternumber,
329
- f_operator: Vue.user.name,
330
- f_outlets: this.selectdata.f_outlets,
331
- f_reason: this.reason,
332
- f_user_id: this.selectdata.f_user_id,
333
- f_userinfo_id: this.selectdata.f_userinfo_id
334
- },
335
- state: this.type === '退出强制状态' ? 0 : 1
336
- }
337
-
338
- res = await http.load(
339
- 'POST',
340
- `${this.$androidUtil.getProxyUrl()}/rs/logic/updateNetWorkValve`,
341
- {data: data},
342
- {resolveMsg: '执行成功!!!', rejectMsg: `执行失败!!!`}
343
- )
344
-
345
- this.closeModal()
346
- },
347
- openModal (type) {
348
- this.type = type
349
- this.showModal = true
350
- },
351
- closeModal () {
352
- this.showModal = false
353
- this.type = null
354
-
355
- this.reason = null
356
254
  }
357
255
  },
358
256
  events: {
@@ -228,9 +228,61 @@
228
228
  item.disabled = false
229
229
  }
230
230
  }
231
- }
231
+ },
232
+ async getPrice (f_price_id) {
233
+ console.log('=======================')
234
+ console.log(f_price_id)
235
+
236
+ let data = {
237
+ condition: `sp.f_filialeid = '${this.$login.f.orgid}'`
238
+ }
239
+ // if(this.Pricetype==='机表'){
240
+ // data.condition=`sp.f_custom = '机表'`
241
+ // }
242
+ // if(this.Pricetype==='非机表'){
243
+ // data.condition=`sp.f_custom = '非机表'`
244
+ // }
245
+
246
+ if (!isEmpty(f_price_id)) {
247
+ data.condition = `sp.f_filialeid = '${this.$login.f.orgid}' and sp.f_price_id = ${f_price_id}`
248
+ }
249
+ let http = new HttpResetClass()
250
+ let res = await http.load(
251
+ 'POST',
252
+ `rs/sql/applyGetPrice`,
253
+ {data: data},
254
+ {resolveMsg: null, rejectMsg: '气价查询失败!!!'}
255
+ )
256
+
257
+ let a= res.data.map(item => {
258
+ return {
259
+ label: item.f_price_name,
260
+ value: item
261
+ }
262
+ })
263
+ this.selectdata.fields.forEach(field => {
264
+ if (field.label === '气价名称') {
265
+ field.options = a}
266
+ })
267
+ return a
268
+ },
232
269
  },
233
270
  events: {
271
+ // 选择气价
272
+ 'priceChange' (index) {
273
+ if (isEmpty(this.show_data.stairPrice)) {
274
+ return
275
+ }
276
+
277
+ let stairPrice = this.getLableValue('气价名称')
278
+
279
+ this.setLabelValue('气价类型', stairPrice.f_price_type)
280
+ this.setLabelValue('用气性质', stairPrice.f_gasproperties)
281
+ this.setLabelValue('价格', stairPrice.f_price)
282
+ this.setLabelValue('客户类型', stairPrice.f_user_type)
283
+ this.show_data.f_price_id = stairPrice.id
284
+ this.show_data.f_price_name = stairPrice.f_price_name
285
+ },
234
286
  // 信息修改初始化
235
287
  'modifyInfoReadyEvent' () {
236
288
  this.$getConfig(this, 'UserAddress')
@@ -139,7 +139,7 @@
139
139
  <nobr><font>{{row.f_apply_num}}</font></nobr>
140
140
  </td>
141
141
  <td style="text-align: center;">
142
- <nobr><font>{{row.f_userinfo_id}}</font></nobr>
142
+ <nobr><font>{{row.f_userinfo_code}}</font></nobr>
143
143
  </td>
144
144
  <td style="text-align: center;">
145
145
  <nobr><font>{{row.f_user_name}}</font></nobr>
@@ -182,14 +182,6 @@
182
182
  console.log(this.selectdata.f_apply_count)
183
183
  console.log(this.model.count !== this.selectdata.f_apply_count)
184
184
  this.selectdata.f_apply_count = this.model.count
185
-
186
- this.$resetpost(
187
- 'rs/entity/t_apply',
188
- this.selectdata,
189
- {resolveMsg: null, rejectMsg: '数据更新失败!!!'}
190
- ).then(res => {
191
- this.$dispatch('breakControl', this.selectdata)
192
- })
193
185
  }
194
186
  }
195
187
  }