apply-clients 3.0.10-191 → 3.0.10-194

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": "3.0.10-191",
3
+ "version": "3.0.10-194",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -105,7 +105,7 @@ export default{
105
105
  // 回调执行方法名,key必须为callback
106
106
  'callback': 'javascript:HostApp.__this__.search()',
107
107
  // logic执行需要的业务参数
108
- 'data': {"workflow_names":"'报建缴费','核对','安装施工','通气'"},
108
+ 'data': {"workflow_names":"'报建缴费','现场勘察','通气'"},
109
109
  // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
110
110
  // 执行回调方法传入key为backresult
111
111
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
@@ -76,13 +76,7 @@
76
76
  let http = new HttpResetClass()
77
77
  var url = this.$androidUtil.getProxyUrl() + '/rs/search'
78
78
  console.log('即将请求后台获取下发人员,url=>' + url)
79
- // R(安装员报装)
80
-
81
- let actorexpression=this.selectdata.actorexpression
82
- //let actorexpression="R(安装员报装)"
83
- let actor=actorexpression.substring(actorexpression.indexOf('(')+1,actorexpression.indexOf(')'))
84
- console.log("看看角色"+JSON.stringify(actor))
85
- let res = await http.load('POST', url, {source:`tool.getChildrenOfResName($${actor}$)`,userid:Vue.user.id}, {resolveMsg: null, rejectMsg: '获取当前部门人员失败'})
79
+ let res = await http.load('POST', url, this.selectdata.actorexpression, {resolveMsg: null, rejectMsg: '获取当前部门人员失败'})
86
80
  console.log("请求后台获取下发人员结果转换=>" + JSON.stringify(res))
87
81
  let jsonString = JSON.stringify(res.data)
88
82
  let jsonArray = []
@@ -1361,6 +1355,12 @@
1361
1355
  let btn_operate = function * (self, url, http, model, delteLocal) {
1362
1356
  // 下发,提交,保存,退回都在后台处理
1363
1357
  console.log('即将请求后台url=>' + url)
1358
+ for (const selfKey in model) {
1359
+ if(model[selfKey]=="null"){
1360
+ delete model[selfKey]
1361
+ }
1362
+
1363
+ }
1364
1364
  model.employeetemplate=''
1365
1365
  http.load('POST',url,{data:{employeetemplate:'',tables:self.data.tables,start_activity:self.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})
1366
1366
  .then((res) => {
@@ -487,19 +487,22 @@ export default {
487
487
  })
488
488
  }
489
489
  }
490
- if (this.data.title=='报建缴费'){
491
- if (index==14){
490
+ if (this.data.title=='报建缴费' || this.data.title=='现场勘察'){
491
+ if (index==14 && this.data.title=='报建缴费'){
492
492
  console.log("14141414")
493
- let unaccounts_money=parseInt(this.data.fields[13].value)-parseInt(this.data.fields[14].value)
494
- let bignumber=this.smalltoBIG(parseInt(this.data.fields[14].value))
493
+ let unaccounts_money=this.data.fields[13].value?parseInt(this.data.fields[13].value):0-this.data.fields[14].value?parseInt(this.data.fields[14].value):0
494
+ let bignumber=this.smalltoBIG(this.data.fields[14].value?parseInt(this.data.fields[14].value):0)
495
495
  this.$set('data.fields[15].value',unaccounts_money)
496
496
  this.$set('data.fields[17].value',bignumber)
497
497
 
498
498
  }
499
499
  if (index==11||index==12){
500
- this.countmoney[index-11]=parseInt(this.data.fields[index].value)
500
+ this.countmoney[index-11]=this.data.fields[index].value?parseInt(this.data.fields[index].value):0
501
501
  console.log(this.data.fields[index].value)
502
502
  console.log("做出了改变")
503
+ }else{
504
+ this.countmoney[0]=this.data.fields[11].value?parseInt(this.data.fields[11].value):0
505
+ this.countmoney[1]=this.data.fields[12].value?parseInt(this.data.fields[12].value):0
503
506
  }
504
507
  console.log(JSON.stringify(this.countmoney))
505
508
  let money=0