apply-clients 5.0.35-8 → 5.0.35-80

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 (51) hide show
  1. package/.eslintrc.js +16 -16
  2. package/package.json +3 -3
  3. package/src/AndroidApp.vue +28 -28
  4. package/src/android.js +18 -18
  5. package/src/apply.js +14 -1
  6. package/src/components/app_apply/ApplyDownList.vue +168 -168
  7. package/src/components/app_apply/ApplyInfo.vue +56 -56
  8. package/src/components/app_apply/ApplyListUpload.vue +268 -268
  9. package/src/components/app_apply/ApplyToDoList.vue +2820 -243
  10. package/src/components/app_apply/Gongcheng.vue +3631 -0
  11. package/src/components/app_apply/OneToMany.vue +194 -0
  12. package/src/components/app_apply/PlaceControler.vue +299 -273
  13. package/src/components/app_apply/ServiceControl.vue +736 -341
  14. package/src/components/app_apply/ServiceView.vue +383 -383
  15. package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
  16. package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
  17. package/src/components/app_apply/ezhou/MinYong.vue +92 -92
  18. package/src/components/app_apply/ezhou/ServiceView.vue +808 -626
  19. package/src/components/image/doc.jpg +0 -0
  20. package/src/components/image/dwg.png +0 -0
  21. package/src/components/image/dxf.png +0 -0
  22. package/src/components/image/excel.jpg +0 -0
  23. package/src/components/image/pdf.jpg +0 -0
  24. package/src/components/product/Common/ApplyValidateBill.vue +13 -6
  25. package/src/components/product/Common/PrintBill.vue +121 -120
  26. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
  27. package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
  28. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +587 -0
  29. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
  30. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
  31. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
  32. package/src/components/product/Function/InstallInfoSelect.vue +3 -2
  33. package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
  34. package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
  35. package/src/components/product/Function/functions/BuyerMessage.vue +1 -1
  36. package/src/components/product/Function/functions/InstallFee.vue +581 -345
  37. package/src/components/product/Process/ExplorationSelect.vue +9 -5
  38. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
  39. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +124 -37
  40. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
  41. package/src/components/product/Process/Processes/Service/ServiceControl.vue +368 -21
  42. package/src/components/product/ServiceView.vue +16 -6
  43. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +53 -6
  44. package/src/components/product/Supervisory/SupervisoryList.vue +57 -5
  45. package/src/components/product/applyReport/ApplyReport.vue +205 -0
  46. package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
  47. package/src/components/product/stopInfo/ApplyStopInfo.vue +2 -1
  48. package/src/ezhouAndroid.js +48 -45
  49. package/src/index.js +8 -8
  50. package/src/main.js +32 -32
  51. package/src/plugins/commonService.js +11 -7
@@ -94,7 +94,7 @@
94
94
  <label class="col-sm-4 control-label">报建类型</label>
95
95
  <div class="col-sm-8">
96
96
  <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'报装申请',value:'报装申请'},{label:'集体报建',value:'集体报建'}]"
97
- condition="f_apply_type = '{}'" placeholder='报建类型'
97
+ condition="f_apply_type = '{}'" placeholder='报建类型' :search="true"
98
98
  v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
99
99
  </v-select>
100
100
  </div>
@@ -112,7 +112,7 @@
112
112
  <div class="col-sm-2" style="float: left">
113
113
  <label class="col-sm-4 control-label">报装来源</label>
114
114
  <div class="col-sm-8">
115
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'}]"
115
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
116
116
  condition="f_apply_source = '{}'" placeholder='报装来源'
117
117
  v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
118
118
  </v-select>
@@ -296,7 +296,8 @@
296
296
  model: new PagedList('rs/sql/checkuser', 20, {
297
297
  data: {
298
298
  id: this.$login.f.id,
299
- fengongsi: this.$login.f.f_fengongsi
299
+ fengongsi: this.$login.f.f_fengongsi,
300
+ f_product_id: 0
300
301
  }
301
302
  }),
302
303
  fapplytype: this.$appdata.getParam('用户类型'),
@@ -319,6 +320,7 @@
319
320
  console.log("开始判断")
320
321
  },
321
322
  async ready() {
323
+ this.eachFind();
322
324
  this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
323
325
  this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
324
326
  await this.getConfig()
@@ -329,7 +331,6 @@
329
331
  let self = this
330
332
  //判断用户是否有权限
331
333
  this.checkUserOperator();
332
-
333
334
  },
334
335
  methods: {
335
336
  //清空 查询条件项
@@ -414,7 +415,8 @@
414
415
  f_process_id: res.data.f_process_id,
415
416
  f_apply_date: Util.toStandardTimeString(),
416
417
  f_apply_num: this.generateUUID(),
417
- f_apply_operator_telephone: this.$login.f.f_fgsdianhua
418
+ f_apply_operator_telephone: this.$login.f.f_fgsdianhua,
419
+ f_product_id: res.data.f_product_id
418
420
  }
419
421
  // // 如果是改装,将modify装入val
420
422
  // if(modify){
@@ -571,10 +573,12 @@
571
573
  }
572
574
  if(hourfals!=0){
573
575
  this.speckText('请注意:第:'+overNumString1+'数据一小时后过期')
576
+ this.$showMessage("请注意:第:" + overNumString1 + "数据一小时后过期")
574
577
  }
575
578
  if (flagNum1!=1){
576
579
  console.log(overNumString1);
577
580
  this.speckText('请注意:第:'+overNumString1+'数据即将过期')
581
+ this.$showMessage("请注意:第:" + overNumString1 + "数据即将过期")
578
582
  }
579
583
  if(dbflag !=1){
580
584
  this.speckText('请注意: 您有'+dbflag-1+'条数据被督办')
@@ -598,21 +598,18 @@
598
598
  if (!this.selectdata)
599
599
  return
600
600
  let data = {
601
- tablename: 't_userinfo',
601
+ tablename: 't_userinfo u left join t_user_address ua on u.f_userinfo_id=ua.f_userinfo_id',
602
602
  condition: 'f_process_id=' + '\'' + this.selectdata.f_process_id + '\''
603
603
  }
604
604
  let self = this
605
605
  let http = new HttpResetClass()
606
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
606
+ let res = await http.load('POST', 'rs/sql/singleTableUserInfo', {data: data}, {
607
607
  resolveMsg: null,
608
608
  rejectMsg: '获取户档案信息失败'
609
609
  })
610
610
  self.model.rows = []
611
-
612
611
  self.model.rows = res.data
613
612
  self.params = res.data
614
-
615
-
616
613
  },
617
614
  impexcel() {
618
615
  this.importtype='1'
@@ -103,6 +103,25 @@
103
103
  </div>
104
104
  </div>
105
105
 
106
+ <div class="form-group col-sm-2">
107
+ <label class="col-sm-4 control-label linehhh">报装类型</label>
108
+ <div class="col-sm-8">
109
+ <v-select :value.sync="model.f_work_type" v-model="model.f_work_type"
110
+ :options='$parent.$parent.worktype' width="100%"
111
+ close-on-select condition="a.f_work_type = '{}'">
112
+ </v-select>
113
+ </div>
114
+ </div>
115
+
116
+ <div class="form-group col-sm-2">
117
+ <label class="col-sm-4 control-label linehhh">用户类型</label>
118
+ <div class="col-sm-8">
119
+ <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
120
+ :options='$parent.$parent.usertype' width="100%"
121
+ close-on-select condition="a.f_user_type = '{}'">
122
+ </v-select>
123
+ </div>
124
+ </div>
106
125
 
107
126
  <div class="form-group">
108
127
  <button class="btn btn-primary" @click="search(),$parent.$parent.showpager()">
@@ -130,7 +149,7 @@
130
149
  <th><nobr>总应缴金额</nobr></th>
131
150
  <th><nobr>已交金额</nobr></th>
132
151
  <th><nobr>未交金额</nobr></th>
133
- <!-- <th><nobr>发票冲正</nobr></th>-->
152
+ <th><nobr>操作</nobr></th>
134
153
  </tr>
135
154
  </template>
136
155
  <template partial='body'>
@@ -151,7 +170,9 @@
151
170
  <td style="text-align: center;">{{row.f_total_cost}}</td>
152
171
  <td style="text-align: center;">{{row.app_f_cumulative_money}}</td>
153
172
  <td style="text-align: center;">{{row.f_unaccounts_money}}</td>
154
- <!-- <td style="text-align: center;">{{row.f_is_correct}}</td>-->
173
+ <td style="text-align: center;">
174
+ <button class="btn-primary btn btn-sm" @click.prevent="$parent.$parent.$parent.update_way(row)">修改</button>
175
+ </td>
155
176
  </template>
156
177
  </data-grid>
157
178
  </criteria-paged>
@@ -159,19 +180,45 @@
159
180
  <div class="flex" style="height: 10%">
160
181
  <div novalidate class="form-inline auto" partial>
161
182
  <p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
162
- <span style="color: red">{{modeluse.rows.length}}</span>笔,合计金额<span style="color: red">{{price.rows[0].f_charge_money}}</span>元
183
+ <span style="color: red">{{modeluse.rows.length}}</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>元-->
163
187
  </p>
164
188
  </div>
165
189
  </div>
166
190
  </div>
191
+ <!--修改弹出框-->
192
+ <modal :show.sync="updateControl" v-ref:modal backdrop="false">
193
+ <header slot="modal-header" class="modal-header">
194
+ <button type="button" class="close" @click="closeUpdate()"><span>&times;</span></button>
195
+ <h4 class="modal-title">修改</h4>
196
+ </header>
197
+ <article slot="modal-body" class="modal-body" >
198
+ <div class="from-group" style="width: 100%">
199
+ <label style="width: 15%;float: left">票据类型</label>
200
+ <v-select :value.sync="selectItem.f_bill_style" v-model="selectItem.f_bill_style"
201
+ :options='billstyle' placeholder='请选择' style="width: 80%;float: left"
202
+ close-on-select >
203
+ </v-select>
204
+ </div>
205
+ </article>
206
+
167
207
 
208
+ <footer slot="modal-footer" class="modal-footer">
209
+ <div class="from-group" style="width: 100%;float: left">
210
+ <button v-show="updateControl" type="button" class="btn btn-default" @click='closeUpdate'>取消</button>
211
+ <button v-show="updateControl" type="button" class="btn btn-success" @click='confirm'>确认</button>
212
+ </div>
213
+ </footer>
214
+ </modal>
168
215
  </div>
169
216
  </template>
170
217
  <script>
171
218
  import * as Util from '../../../../Util'
172
219
 
173
220
  import { PagedList } from 'vue-client'
174
-
221
+ import {HttpResetClass} from 'vue-client'
175
222
  Date.prototype.Format = function (fmt) {
176
223
  var o = {
177
224
  "M+": this.getMonth() + 1, //月份
@@ -196,57 +243,99 @@
196
243
  filialeNameStr: null,
197
244
  filialeCodeStr: this.$login.f.f_orgids,
198
245
  userid: this.$login.f.id,
199
- source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
246
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
200
247
  // f_operate_start_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
201
248
  // f_operate_end_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
202
- model: new PagedList('rs/sql/getApplyCharge', 30, { orderitem: '`id`'}),
203
- modeluse: new PagedList('rs/sql/getApplyCharge', 999999, { orderitem: '`id`'}),
204
- price: new PagedList('rs/sql/getChargeAll', 999999, { orderitem: '`f_charge_money`'}),
205
- human:[],
206
- filiale:[],
207
- method:[],
208
- correct:[
249
+ model: new PagedList('rs/sql/getApplyCharge', 30, {orderitem: '`id`'}),
250
+ modeluse: new PagedList('rs/sql/getApplyCharge', 999999, {orderitem: '`id`'}),
251
+ price: new PagedList('rs/sql/getChargeAll', 999999, {orderitem: '`f_charge_money`'}),
252
+ human: [],
253
+ filiale: [],
254
+ method: this.$appdata.getParam('付款方式'),
255
+ usertype:[
256
+ {label: '民用', value: '民用'},
257
+ {label: '非民用', value: '非民用'}
258
+ ],
259
+ worktype:[
260
+ {label: '新报装', value: '新报装'},
261
+ {label: '改管', value: '改管'}
262
+ ],
263
+ correct: [
209
264
  {label: '是', value: '是'},
210
- {label:'否', value: '否'}
265
+ {label: '否', value: '否'}
211
266
  ],
212
- state:[
267
+ state: [
213
268
  {label: '有效', value: '有效'},
214
- {label:'无效', value: '无效'}
215
- ]
269
+ {label: '无效', value: '无效'}
270
+ ],
271
+ selectItem: {},
272
+ billstyle: this.$appdata.getParam('发票类型'),
273
+ updateControl: false,
274
+ billID: 0
216
275
  }
217
276
  },
218
277
  ready () {
219
- this.$refs.cp.$refs.cri.model.f_operate_start_date = Util.toStandardDateString() + ' 00:00:00'
220
- this.$refs.cp.$refs.cri.model.f_operate_end_date = Util.toStandardDateString() + ' 23:59:59'
278
+ this.$refs.paged.$refs.criteria.model.f_operate_start_date = Util.toStandardDateString() + ' 00:00:00'
279
+ this.$refs.paged.$refs.criteria.model.f_operate_end_date = Util.toStandardDateString() + ' 23:59:59'
221
280
  this.search()
222
281
  this.gethuman()
223
282
  },
224
283
  methods: {
225
- clear(){
226
- this.$refs.cp.$refs.cri.model = {}
284
+ clear () {
285
+ this.$refs.paged.$refs.criteria.model = {}
227
286
  },
228
- getRes(obj) {
287
+ getRes (obj) {
229
288
  this.filialeNameStr = obj.res
230
289
  this.filialeCodeStr = obj.resids
231
290
  console.log(this.filialeNameStr)
232
291
  console.log(this.filialeCodeStr)
233
292
  },
234
- showpager() {
293
+ showpager () {
235
294
  // this.$refs.cp.pager = true
236
295
  this.$dispatch('hiddenbtn')
237
296
  },
238
- search () {
239
- let condition = "1=1 and r.f_filiale like '%"+this.$login.f.f_fengongsi+"%'"
297
+ search () {
298
+ let condition = "1=1 and r.f_filiale like '%" + this.$login.f.f_fengongsi + "%'"
299
+ // debugger
300
+ // let condition = args.condition
301
+ debugger
240
302
  this.model.search(condition)
241
303
  this.modeluse.search(condition)
242
- this.price.search(condition)
304
+ let condition1 = condition
305
+ this.price.search(condition1)
243
306
  },
244
-
245
- selfSearch(args) {
246
- args.condition = args.condition + ` and tbd.f_orgstr like '%${this.filialeCodeStr}%'`
307
+ update_way (row) {
308
+ console.log('进入修改方法')
309
+ this.selectItem = {}
310
+ this.billID = row.id
311
+ this.updateControl = true
312
+ },
313
+ closeUpdate () {
314
+ this.updateControl = false
315
+ },
316
+ confirm () {
317
+ let data = {
318
+ f_bill_style: this.selectItem.f_bill_style[0],
319
+ id: this.billID
320
+ }
321
+ console.log('数据:' + JSON.stringify(this.selectItem))
322
+ this.$resetpost('rs/entity/t_charge_record', data).then((res) => {
323
+ console.log('返回值:' + JSON.stringify(res.data))
324
+ if (res.data.id > 0) {
325
+ // this.$showMessage('修改成功!')
326
+ this.closeUpdate()
327
+ this.search()
328
+ }
329
+ })
330
+ },
331
+ selfSearch (args) {
332
+ args.condition = args.condition + ` and a.f_filialeids like '%${this.filialeCodeStr}%'`
333
+ console.log('condition:', args.condition)
247
334
  this.model.search(args.condition, args.model)
335
+ this.modeluse.search(args.condition, args.model)
336
+ this.price.search(args.condition, args.model)
248
337
  },
249
- cleaner() {
338
+ cleaner () {
250
339
  Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
251
340
  this.$refs.paged.$refs.criteria.model[key] = ''
252
341
  })
@@ -256,19 +345,19 @@
256
345
  this.modeluse.search(this.$refs.paged.$refs.criteria.condition)
257
346
  this.price.search(this.$refs.paged.$refs.criteria.condition)
258
347
  },
259
- gethuman(){
348
+ gethuman () {
260
349
  console.log('获取人员')
261
350
  this.$resetpost('rs/logic/getChargeList', {data: {condition: `1=1`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
262
351
  // this.params.rows.splice(index, 1)
263
- console.log('获取成功',res)
352
+ console.log('获取成功', res)
264
353
  let house = []
265
- for (let row of res.data.human){
266
- house.push({label: row.f_charge_collectors,value: row.f_charge_collectors})
354
+ for (let row of res.data.human) {
355
+ house.push({label: row.f_charge_collectors, value: row.f_charge_collectors})
267
356
  }
268
357
  this.human = house
269
358
  let house2 = []
270
359
  for (let row of res.data.f){
271
- house2.push({label: row.f_filiale,value: row.f_filiale})
360
+ house2.push({label: row.r.f_filiale,value: row.r.f_filiale})
272
361
  }
273
362
  this.filiale = house2
274
363
  let house3 = []
@@ -277,9 +366,7 @@
277
366
  }
278
367
  this.method = house3
279
368
  })
280
-
281
- },
282
-
369
+ }
283
370
  },
284
371
  computed: {
285
372
 
@@ -0,0 +1,85 @@
1
+ <template>
2
+ <div class="auto form-horizontal" >
3
+ <modal :show.sync="show" v-ref:modal large backdrop="false">
4
+ <header slot="modal-header" class="modal-header">
5
+ <h3 style="color:black" class="modal-title">发票号</h3>
6
+ </header>
7
+ <article slot="modal-body" class="modal-body">
8
+
9
+ <validator name='v'>
10
+ <form class="form-horizontal select-overspread">
11
+ <div class="row" style="display: flex;justify-content: center;" id='normal-bill2' >
12
+ <div class="form-group col-sm-6">
13
+ <label class=" col-sm-2 control-label">发票代码:</label>
14
+ <input type="text" class="form-control" v-model="model.f_bill_code" style="width:60%"
15
+ placeholder="发票代码" disabled
16
+ >
17
+ </div>
18
+ <div class="form-group col-sm-6">
19
+ <label class=" col-sm-2 control-label">发票号码:</label>
20
+ <input type="text" class="form-control" v-model="model.f_bill_number" style="width:60%"
21
+ placeholder="发票号码" disabled
22
+ >
23
+ </div>
24
+ </div>
25
+ </form>
26
+ </validator>
27
+ </article>
28
+ <footer slot="modal-footer" class="modal-footer">
29
+ <button type="button" class="btn btn-default" @click='cancel()' >取消</button>
30
+ </footer>
31
+ </modal>
32
+ </div>
33
+ </template>
34
+ <script>
35
+ import { DataModel } from 'vue-client'
36
+ let getBillData = async function(self) {
37
+ if(self.data.eticketid){
38
+ let res=await self.$resetpost("rs/sql/applysingleTable",{data:{tablename:"t_eticket",condition:` id= ${self.data.eticketid}`}})
39
+ console.log("看看res",res)
40
+ self.model.f_bill_code=res.data[0].f_bill_code
41
+ self.model.f_bill_number=res.data[0].f_bill_number
42
+ }else{
43
+ let res=await self.$resetpost("rs/sql/applysingleTable",{data:{tablename:"t_eticket",condition:` f_sell_id=${self.data.id}`}})
44
+ console.log("看看res",res)
45
+ self.model.f_bill_code=res.data[0].f_bill_code
46
+ self.model.f_bill_number=res.data[0].f_bill_number
47
+ }
48
+ }
49
+
50
+ export default {
51
+ title: '收费发票',
52
+ data () {
53
+ return {
54
+ model:{
55
+ f_bill_code:'',
56
+ f_bill_number:''
57
+ }
58
+ }
59
+ },
60
+ props: ['show', 'data'],
61
+ ready () {
62
+ },
63
+ methods: {
64
+ cancel () {
65
+ this.$dispatch('toggle')
66
+ },
67
+ },
68
+ watch: {
69
+ 'show' (val) {
70
+ if (val) {
71
+ getBillData(this, val).then(() => {
72
+ this.$emit('ready')
73
+ }).catch((error) => {
74
+ this.$emit('error', error)
75
+ })
76
+ }
77
+ }
78
+ },
79
+ events: {
80
+ }
81
+ }
82
+
83
+ </script>
84
+ <style >
85
+ </style>