apply-clients 5.0.35-19 → 5.0.35-22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "5.0.35-19",
3
+ "version": "5.0.35-22",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -291,6 +291,8 @@
291
291
  <script>
292
292
 
293
293
  // Date格式化
294
+
295
+
294
296
  Date.prototype.Format = function (fmt) {
295
297
  var o = {
296
298
  "M+": this.getMonth() + 1, //月份
@@ -309,7 +311,7 @@ Date.prototype.Format = function (fmt) {
309
311
 
310
312
  import Vue from 'vue'
311
313
  import * as Util from '../../Util'
312
-
314
+ import {HttpResetClass} from 'vue-client'
313
315
  export default {
314
316
  title: '报建业务通用组件',
315
317
  props: ['data', 'model'],
@@ -319,7 +321,6 @@ export default {
319
321
  isshow: true,
320
322
  kchege: false,
321
323
  kcbuhege: false,
322
-
323
324
  countmoney: [0, 0, 0],
324
325
  data: null,
325
326
  showmodal: false,
@@ -396,10 +397,6 @@ export default {
396
397
  }
397
398
  },
398
399
  sign() {
399
- // if(!this.model.f_read_instructions){
400
- // this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
401
- // return
402
- // }
403
400
  this.delAudioFile('f_sign_path', this.model.f_sign_path)
404
401
  let prop = 'f_sign_path'
405
402
  let idx = 'aofeng'
@@ -441,7 +438,7 @@ export default {
441
438
  console.log(this.isshow)
442
439
  Vue.nopic = 'file:///android_asset/nopic.png'
443
440
  if (!this.model.f_sign_path)
444
- this.$set('model.f_sign_path', Vue.nopic)
441
+ this.$set('model.f_sign_path', Vue.nopic)
445
442
  console.log('!this.model.f_overall_imgs==>' + !this.model.f_overall_imgs)
446
443
  if (!this.model.f_overall_imgs) {
447
444
  let imgs = []
@@ -462,6 +459,54 @@ export default {
462
459
  if (this.data.fields[i].type === 'datepicker' && !this.data.fields[i].value) {
463
460
  this.data.fields[i].value = new Date().Format("yyyy-MM-dd HH:mm:ss")
464
461
  }
462
+ if (this.data.fields[i].label==='气价名称'){
463
+ console.log(this.data.fields[i].options)
464
+ let data={
465
+ items:"f_price_name",
466
+ tablename:"t_stairprice",
467
+ condition:`f_filialeids = '${Vue.user.f_orgids}' and f_state= '有效' and getdate()>=f_perform_date and getdate()<=f_end_date `,
468
+ orderitem:'id'
469
+ }
470
+ let qijia=[]
471
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
472
+ console.log("66666666666666666666")
473
+ console.log(JSON.stringify(res))
474
+ console.log(typeof res)
475
+ //console.log(JSON.stringify(res.data[0]))
476
+ let result=res.data
477
+ result.forEach(ress=>{
478
+ qijia.push({
479
+ label:ress.f_price_name,
480
+ value:ress.f_price_name
481
+ })
482
+ })
483
+ this.data.fields[i].options=qijia
484
+ })
485
+ }
486
+ if (this.data.fields[i].label==='气表品牌'){
487
+ console.log(this.data.fields[i].options)
488
+ let data={
489
+ items:"f_meter_brand",
490
+ tablename:"t_gasbrand",
491
+ condition:`f_filialeids = '${Vue.user.f_orgids}'`,
492
+ orderitem:'id'
493
+ }
494
+ let pinpai=[]
495
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
496
+ console.log("666666666666666666662")
497
+ console.log(JSON.stringify(res))
498
+ console.log(typeof res)
499
+ //console.log(JSON.stringify(res.data[0]))
500
+ let result=res.data
501
+ result.forEach(ress=>{
502
+ pinpai.push({
503
+ label:ress.f_meter_brand,
504
+ value:ress.f_meter_brand
505
+ })
506
+ })
507
+ this.data.fields[i].options=pinpai
508
+ })
509
+ }
465
510
  }
466
511
  }
467
512
 
@@ -510,15 +555,23 @@ export default {
510
555
  // 点击按钮
511
556
  clicked(index, button) {
512
557
  console.log(`点击了按钮index:${index}+button:${JSON.stringify(button)}`);
513
- if (this.data.title != '现场勘查' && this.data.title != '现场勘查定价' && this.button.button_name=='提交') {
558
+ if (this.data.title != '现场勘查' && this.data.title != '现场勘查定价' && button.button_name=='提交') {
514
559
  if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
515
560
  this.$showMessage("必须有现场照片")
516
561
  return;
517
- }else if(!this.model.f_sign_path){
562
+ }
563
+ if(Vue.nopic==this.model.f_sign_path){
518
564
  this.$showMessage("必须有签名照片")
519
565
  return;
520
566
  }
521
- }else{
567
+ this.model.f_overall_imgs.push({
568
+ f_overall_path: this.model.f_sign_path,
569
+ f_overall_name: this.data.title
570
+ })
571
+ }
572
+
573
+
574
+ if ((this.data.title == '现场勘查' || this.data.title == '现场勘查定价') && button.button_name=='提交') {
522
575
  if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
523
576
  this.$showMessage("必须有现场照片")
524
577
  return;
@@ -585,6 +638,32 @@ export default {
585
638
  console.log(required)
586
639
  console.log(value)
587
640
  console.log(this.data.title)
641
+ if (this.data.fields[index].label=='气表品牌'){
642
+ console.log("进入改变气表型号")
643
+ console.log(this.data.fields[index+1].options)
644
+ this.data.fields[index+1].options=[]
645
+ let data={
646
+ items:"gm.f_meter_style",
647
+ tablename:"t_gasmodel gm left join t_gasbrand gb on gm.f_gasbrand_id=gb.id",
648
+ condition:`gb.f_filialeids = '${Vue.user.f_orgids}' and gb.f_meter_brand='${value}'`,
649
+ orderitem:'gm.id'
650
+ }
651
+ let xinghao=[]
652
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
653
+ console.log("66666666666666666666")
654
+ console.log(JSON.stringify(res))
655
+ console.log(typeof res)
656
+ //console.log(JSON.stringify(res.data[0]))
657
+ let result=res.data
658
+ result.forEach(ress=>{
659
+ xinghao.push({
660
+ label:ress.f_meter_style,
661
+ value:ress.f_meter_style
662
+ })
663
+ })
664
+ this.data.fields[index+1].options=xinghao
665
+ })
666
+ }
588
667
  if (this.data.title == '现场勘查') {
589
668
  if (index == 4) {
590
669
  if (value == '合格') {