apply-clients 4.1.31-weinan → 4.1.33-weinan

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": "4.1.31-weinan",
3
+ "version": "4.1.33-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
  </div>
108
108
  <div v-for="(index,payment) in charge.payment_terms">
109
- <div class="form-group row vertical-center" :class="payment.f_payment_term ? '':'has-error'">
109
+ <!-- <div class="form-group row vertical-center" :class="payment.f_payment_term ? '':'has-error'">
110
110
  <label class="col-xs-4 control-label">收费项目:</label>
111
111
  <div class="col-xs-8">
112
112
  <input-select class="select select_list"
@@ -116,7 +116,7 @@
116
116
  :value-single="true"
117
117
  close-on-select ></input-select>
118
118
  </div>
119
- </div>
119
+ </div>-->
120
120
  <div class="form-group row vertical-center" :class="payment.f_charge_money ? '':'has-error'">
121
121
  <label class="col-xs-4 control-label">收费金额:</label>
122
122
  <div class="col-xs-8">
@@ -264,6 +264,7 @@ export default {
264
264
  this.timeLeft = 300
265
265
  // 修改支付状态
266
266
  this.updatestate('支付成功','有效')
267
+ this.saveother()
267
268
  // 清除二维码
268
269
  this.clearQrCode()
269
270
  this.showQrCode = false
@@ -317,6 +318,7 @@ export default {
317
318
  console.log(res.data)
318
319
  if (res.data.code == '200'){
319
320
  this.$showMessage('缴费成功!')
321
+ this.saveother()
320
322
  this.showCharge=false
321
323
  return
322
324
  }else {
@@ -587,7 +589,67 @@ export default {
587
589
  resolveMsg: null,
588
590
  rejectMsg: '关闭失败!!!'
589
591
  })
590
- }
592
+ },
593
+ async saveother(){
594
+ let http = new HttpResetClass()
595
+ let data = {
596
+ condition: " 1=1",
597
+ f_process_id: this.selectdata.f_process_id
598
+ }
599
+ let res = await http.load('POST', this.$androidUtil.getProxyUrl() +'/rs/sql/getAddresAndUserinfoAndUserfilesAmount', {data:data}, {
600
+ resolveMsg: null,
601
+ rejectMsg: null
602
+ })
603
+ let data1 = {
604
+ tablename: 't_material_charges',
605
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
606
+ }
607
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data1}, {resolveMsg: null, rejectMsg: '获取数据失败'})
608
+
609
+ let otherdetails = []
610
+ for(let i=0;i<res1.data.length;i++){
611
+ otherdetails.push(
612
+ {
613
+ "f_brand_spec":[res1.data[i].f_material_name],
614
+ "f_unitprice":res1.data[i].f_material_price,
615
+ "f_typename":[res1.data[i].f_typename],
616
+ "f_typenumber":[res1.data[i].f_typenumber],
617
+ "f_number":res1.data[i].f_material_number
618
+ }
619
+ )
620
+ }
621
+ console.log("查询的用户信息",otherdetails)
622
+ let data2 = {
623
+ "record_userinfo":res.data[0].f_userinfo_id,
624
+ "f_userfiles_id":res.data[0].f_userfiles_id,
625
+ "f_user_id":res.data[0].f_user_id,
626
+ "f_user_name":res.data[0].f_user_name,
627
+ "f_address":res.data[0].f_address,
628
+ "f_user_type":this.selectdata.f_user_type,
629
+ "f_gasproperties":"",
630
+ "f_collection":this.selectdata.f_cost_sum,
631
+ "f_comments":"",
632
+ "f_payment":this.charge.f_payment_method,
633
+ "f_voucher_number":"",
634
+ "f_bill_style":"普通收据",
635
+ "f_userinfo_id":res.data[0].f_userinfo_id,
636
+ "f_service_person":Vue.user.name,
637
+ "f_operat_type":"其他收费",
638
+ "f_describe":"",
639
+ "f_state":"有效",
640
+ "f_operator":Vue.user.name,
641
+ "f_operatorid":Vue.user.id,
642
+ "f_orgid":Vue.user.orgid,
643
+ "f_orgname":Vue.user.orgs,
644
+ "f_depid":Vue.user.depids,
645
+ "f_depname":Vue.user.f_department_name,
646
+ "t_userfees":"",
647
+ "f_fee_type":"其他费用",
648
+ "f_fee_time":"12",
649
+ "otherdetail":otherdetails
650
+ }
651
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/sale_othercharge_logic`, {data: data2}, {resolveMsg: null, rejectMsg: '保存数据失败'})
652
+ }
591
653
  // async getConfig () {
592
654
  // let http = new HttpResetClass()
593
655
  // let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getWeiXinConfig`, null, {
@@ -211,9 +211,10 @@
211
211
  :valueSingle="true"></input-select>
212
212
  </div>
213
213
  </div>-->
214
- <div class="form-group col-sm-6">
214
+ <div class="form-group col-sm-6" :class="[$v.f_install_date.required ? 'has-error' : '']">
215
215
  <label class="col-sm-4 control-label">安装日期:</label>
216
216
  <div class="col-sm-8">
217
+ <input type="text" v-show="false" v-model="item.f_install_date" :value.sync="item.f_install_date" v-validate:f_install_date = "['required']" >
217
218
  <datepicker
218
219
  placeholder="安装日期"
219
220
  :value.sync="item.f_install_date"
@@ -337,6 +337,17 @@
337
337
  this.stopapply(model1,model)
338
338
  return
339
339
  }
340
+ if( this.selectdata.defname ==='入户安装'&& model.button.button_name == '提交'){
341
+ let data1 = {
342
+ tablename: 't_userfiles',
343
+ condition: `f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
344
+ }
345
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data1}, {resolveMsg: null, rejectMsg: '获取数据失败'})
346
+ if (res1<=0){
347
+ this.$showMessage("请填写表具信息!!!")
348
+ return
349
+ }
350
+ }
340
351
  if(this.selectdata.defname =='现场勘察' && this.selectdata.f_apply_type == '工商户报建'&& model.button.button_name == '提交'){
341
352
  let http = new HttpResetClass()
342
353
  let data = {
@@ -43,7 +43,32 @@
43
43
  <article slot="modal-body" class="modal-body">
44
44
  <div class="from-group">
45
45
  <label>材料名称</label>
46
- <input type="text" class="form-control" v-model="addItem.f_material_name">
46
+ <input-select
47
+ class="select select_list"
48
+ :value.sync="addItem.f_material_name"
49
+ v-model="addItem.f_material_name"
50
+ :options="positions"
51
+ @change="setTypename"
52
+ :valueSingle="true"></input-select>
53
+ </div>
54
+ <div class="from-group">
55
+ <label>品名规格</label>
56
+ <input-select
57
+ class="select select_list"
58
+ :value.sync="addItem.f_typename"
59
+ v-model="addItem.f_typename"
60
+ :options="typeNameList"
61
+ @change="setTypenumber"
62
+ :valueSingle="true"></input-select>
63
+ </div>
64
+ <div class="from-group">
65
+ <label>型号</label>
66
+ <input-select
67
+ class="select select_list"
68
+ :value.sync="addItem.f_typenumber"
69
+ v-model="addItem.f_typenumber"
70
+ :options="typeNumberList"
71
+ :valueSingle="true"></input-select>
47
72
  </div>
48
73
  <div class="from-group">
49
74
  <label>单价(元)</label>
@@ -84,6 +109,9 @@ export default {
84
109
  },
85
110
  addItem: {},
86
111
  f_cost_sum: 0,
112
+ positions:this.$appdata.getParam('品名及规格'),
113
+ typeNameList:null,
114
+ typeNumberList:null
87
115
  }
88
116
  },
89
117
  props: {
@@ -153,6 +181,12 @@ export default {
153
181
  smalltoBIG() {
154
182
  let num = Number(this.addItem.f_material_price) * Number(this.addItem.f_material_number)
155
183
  return num
184
+ },
185
+ setTypename (val) {
186
+ this.typeNameList = this.$appdata.getParam(val)
187
+ },
188
+ setTypenumber (val) {
189
+ this.typeNumberList = this.$appdata.getParam(val)
156
190
  }
157
191
  },
158
192
  watch: {}