apply-clients 5.0.35-40 → 5.0.35-43

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-40",
3
+ "version": "5.0.35-43",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -170,11 +170,13 @@ export default {
170
170
  },
171
171
  search(){
172
172
  const param = {
173
+ "items":"*",
173
174
  "tablename":this.item.tables[0],
174
- "condition":`f_process_id='${this.item.f_process_id}'`
175
+ "condition":`f_process_id='${this.item.f_process_id}'`,
176
+ "orderitem":'id desc'
175
177
  }
176
178
  let http=new HttpResetClass()
177
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,{data:param}).then(res=>{
179
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data:param}).then(res=>{
178
180
  console.log(`前台本地报建代办工单查询结果data=>>>${JSON.stringify(res.data)}`)
179
181
  if(res.data){
180
182
  this.rows = res.data
@@ -174,7 +174,7 @@
174
174
  </div>
175
175
  </div>
176
176
  </div>
177
- <div class="form-group col-sm-11" v-show="isshow">
177
+ <div class="form-group col-sm-11" v-show="true">
178
178
  <label class="text-left font">用户签名</label>
179
179
  <div class="auto">
180
180
  <div class="panel">
@@ -481,6 +481,9 @@ export default {
481
481
  if (this.data.fields[i].type === 'datepicker' && !this.data.fields[i].value) {
482
482
  this.data.fields[i].value = new Date().Format("yyyy-MM-dd HH:mm:ss")
483
483
  }
484
+ if(this.data.f_user_type ==='非民用'){
485
+ this.data.fields[i].required = false
486
+ }
484
487
  if (this.data.fields[i].label==='气价名称'){
485
488
  console.log(this.data.fields[i].options)
486
489
  let data={
@@ -577,7 +580,7 @@ export default {
577
580
  // 点击按钮
578
581
  clicked(index, button) {
579
582
  console.log(`点击了按钮index:${index}+button:${JSON.stringify(button)}`);
580
- if (this.data.title != '现场勘查' && this.data.title != '现场勘查定价' && button.button_name=='提交') {
583
+ if (button.button_name=='提交') {
581
584
  if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
582
585
  this.$showMessage("必须有现场照片")
583
586
  return;
@@ -593,12 +596,12 @@ export default {
593
596
  }
594
597
 
595
598
 
596
- if ((this.data.title == '现场勘查' || this.data.title == '现场勘查定价') && button.button_name=='提交') {
597
- if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
598
- this.$showMessage("必须有现场照片")
599
- return;
600
- }
601
- }
599
+ // if ((this.data.title == '现场勘查' || this.data.title == '现场勘查定价') && button.button_name=='提交') {
600
+ // if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
601
+ // this.$showMessage("必须有现场照片")
602
+ // return;
603
+ // }
604
+ // }
602
605
  if (this.kchege == 'true') {
603
606
  console.log(this.model.f_hege)
604
607
  if (this.model.f_hege != 'true') {
@@ -712,7 +715,7 @@ export default {
712
715
  // }
713
716
  // this.$set('data.fields[8].value', money)
714
717
  // this.$set('data.fields[9].value', money)
715
- if (index == 10) {
718
+ if (index == 7) {
716
719
  console.log("1111111111" + value)
717
720
  if (value == '合格') {
718
721
  this.kchege = true
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="auto form-horizontal" >
3
- <modal :show.sync="show" v-ref:modal large backdrop="false">
3
+ <modal :show.sync="show" v-ref:modal large backdrop="false">
4
4
  <header slot="modal-header" class="modal-header">
5
5
  <h3 style="color:black" class="modal-title" >{{billConfig.billtype}}</h3>
6
6
  <button type="button" class="close" @click="closebuyerinfo"><span>&times;</span></button>
@@ -35,6 +35,7 @@
35
35
  import Vue from "vue";
36
36
 
37
37
  let getBillData = async function(self, val) {
38
+ debugger
38
39
  self.bill = new DataModel(self.billData.url, {reprint: "'正常'"})
39
40
  await self.bill.search(self.data.chargeid)
40
41
  // self.bill.condition=
@@ -54,7 +55,7 @@
54
55
  messShow: false
55
56
  }
56
57
  },
57
- props: ['show', 'data', 'billData', 'billConfig','titleName'],
58
+ props: ['show', 'data', 'billData', 'billConfig','titleName','billDataantai'],
58
59
  ready () {
59
60
  console.log('打票!!!!!!!!!!!!!!!!!')
60
61
 
@@ -230,10 +230,15 @@
230
230
  @validate-bill="validateBill"></apply-validate-bill>
231
231
  <printbill :show="print" :data='model' :selfclean="selfclean" :bill-config='config' :bill-data='billData'
232
232
  v-on:toggle="close" :selfsearch="load" @printok="printok" v-ref:printbill></printbill>
233
+ <printbill :show="printat" :data='model' :selfclean="selfclean" :bill-config='config' :bill-data='billDataantai'
234
+ v-on:toggle="close" :selfsearch="load" @printok="printok" v-ref:printbill></printbill>
233
235
  <bjpaper-ticket-bill :show="paperticket" :data='ids' @toggle="closeticket"></bjpaper-ticket-bill>
234
236
  <printbill :show="delprint" :data='model' :selfclean="selfclean" :bill-config='config2'
235
237
  :bill-data='billData' v-on:toggle="close" :selfsearch="load" @printok="printok"
236
238
  v-ref:printbill></printbill>
239
+ <printbill :show="delprintat" :data='model' :selfclean="selfclean" :bill-config='config2'
240
+ :bill-data='billDataantai' v-on:toggle="close" :selfsearch="load" @printok="printok"
241
+ v-ref:printbill></printbill>
237
242
  <div class="row" style="text-align:right;">
238
243
  <button :readonly="!validateOk" type="button" class="btn btn-success" style="" @click='confirm'>确认
239
244
  </button>
@@ -389,12 +394,18 @@
389
394
  paymenttypes: this.$appdata.getParam('付款方式'),
390
395
  printstyle: this.$appdata.getParam('打印格式'),
391
396
  print: false,
397
+ printat: false,
392
398
  delprint: false,
399
+ delprintat:false,
393
400
  taxprint: false,
394
401
  billData: {
395
402
  url: 'rs/report/applyCharge_bill',
396
403
  bill: ''
397
404
  },
405
+ billDataantai: {
406
+ url: 'rs/report/applyChargeAT_bill',
407
+ bill: ''
408
+ },
398
409
  config: {
399
410
  hasPrint: true, //默认打票
400
411
  hasBillManage: true, //默认不启用发票管理
@@ -595,7 +606,9 @@
595
606
  console.log("关闭打印框")
596
607
  this.taxprint = false
597
608
  this.print = false
609
+ this.printat = false
598
610
  this.delprint = false
611
+ this.delprintat = false
599
612
  this.clean()
600
613
  },
601
614
  printok() {
@@ -792,12 +805,25 @@
792
805
 
793
806
  this.model.f_bill_type = this.model.f_print[0]
794
807
  this.model.f_bill_style = this.model.f_print[0]
795
- this.print = true
808
+ debugger
809
+ console.log('打印this.model.f_print[0]',this.model.f_print[0])
810
+ debugger
811
+ if(this.model.f_payment_account==='欣泰'){
812
+ this.print = true
813
+ }else{
814
+ this.printat = true
815
+ }
816
+
796
817
 
797
818
  console.log('f_bill_style' + this.model.f_bill_style)
798
819
 
799
820
  } else {
800
- this.print = true
821
+ debugger
822
+ if(this.model.f_payment_account==='欣泰'){
823
+ this.print = true
824
+ }else{
825
+ this.printat = true
826
+ }
801
827
  }
802
828
  } else if (this.model.f_print[0] === '纸质普票') {
803
829
  this.param.f_print = this.model.f_print[0],
@@ -847,7 +873,6 @@
847
873
  this.model.rows[index].f_charge_money = -this.model.rows[index].f_charge_money;
848
874
  var val = this.model.rows[index];
849
875
  this.model.chargeid = val.id;
850
-
851
876
  this.delprint = false;
852
877
  this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
853
878
  console.log(JSON.stringify(val))
@@ -867,12 +892,25 @@
867
892
  this.model.chargeid = res.data.charge_id;
868
893
  if (val.f_bill_style === '增值税电子发票') {
869
894
  this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
870
- this.delprint = true;
895
+ if(this.model.f_payment_account==='欣泰'){
896
+ this.delprint = true;
897
+ }else{
898
+ this.delprintat = true
899
+ }
900
+
871
901
  } else {
872
902
  this.$showAlert('冲正成功', 'success', 2000)
903
+ if(this.model.f_payment_account==='欣泰'){
904
+ this.delprint = true;
905
+ }else{
906
+ this.delprintat = true
907
+ }
908
+ }
909
+ if(this.model.f_payment_account==='欣泰'){
873
910
  this.delprint = true;
911
+ }else{
912
+ this.delprintat = true
874
913
  }
875
- this.delprint = true;
876
914
  this.load()
877
915
  } else {
878
916
  this.$showAlert('冲正失败', 'warning', 5000)