apply-clients 4.1.16-weinan → 4.1.17-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.16-weinan",
3
+ "version": "4.1.17-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -59,8 +59,9 @@
59
59
 
60
60
  for (var i = 0; i < res.data.length; i++) {
61
61
  console.log('-----------地址----------------')
62
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 3)}`)
63
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 3)}`
62
+
63
+ console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
64
+ res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
64
65
  }
65
66
 
66
67
  this.fileList = res.data
@@ -92,7 +93,6 @@
92
93
  },
93
94
  cameraCallBack (fileName, fileUrl) {
94
95
  console.log('-----------cameraCallBack-----------------')
95
-
96
96
  let data = {
97
97
  blodid: HostApp.__this__.blobid,
98
98
  type: HostApp.__this__.type,
@@ -104,7 +104,7 @@ export default{
104
104
  _this.$back()
105
105
  },
106
106
  search () {
107
- var condition = "1=1 and (f_apply_type! = '居民报建' and f_apply_type! = '工商户报建' or (f_apply_type = '居民报建' and defname = '现场勘察') or (f_apply_type = '工商户报建' and (defname = '现场勘察' or defname = '施工'))))"
107
+ var condition = "1=1 and (f_apply_type! = '居民报建' and f_apply_type! = '工商户报建' or (f_apply_type = '居民报建' and defname = '入户安装') or (f_apply_type = '工商户报建' and (defname = '现场勘察' or defname = '施工')))"
108
108
  var param = {condition: condition,condValue:[],data:{"id": Vue.user.id,orgid: Vue.user.orgid}}
109
109
  let http = new HttpResetClass()
110
110
  http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,{data:param}).then(res=>{
@@ -270,7 +270,7 @@
270
270
  this.stopapply(model1,model)
271
271
  return
272
272
  }
273
- if(this.selectdata.defname =='现场勘察' && this.selectdata.f_apply_type == '工商户报建'&& model. model.button.button_name == '提交'){
273
+ if(this.selectdata.defname =='现场勘察' && this.selectdata.f_apply_type == '工商户报建'&& model.button.button_name == '提交'){
274
274
  let http = new HttpResetClass()
275
275
  let data = {
276
276
  tablename: 't_files',
@@ -281,7 +281,7 @@
281
281
  rejectMsg: '查询失败'
282
282
  })
283
283
  console.log("数据长度:" + res.data.length)
284
- if (res.data.length < 0) {
284
+ if (res.data.length <= 0) {
285
285
  this.$showMessage("请上传照片!!!")
286
286
  return
287
287
  }
@@ -258,6 +258,17 @@
258
258
  closemodal(){
259
259
  this.showmodal=false
260
260
  },
261
+ // 是否禁用按钮
262
+ disableButton() {
263
+ let fields = this.data.fields
264
+ let flag = false
265
+ for (const item of fields) {
266
+ if (item.type === 'select' && item.label === '工程状态'&& (item.value === '正在施工' || item.value === '未开工' )&& item.disabledButton) {
267
+ flag = true
268
+ }
269
+ }
270
+ this.disable_button = flag
271
+ },
261
272
  // 点击按钮
262
273
  clicked(index,button){
263
274
  console.log(`点击了按钮index:${index}+button:${JSON.stringify(button)}`);
@@ -303,6 +314,7 @@
303
314
  },
304
315
  // 级联操作预留
305
316
  select_change(index){
317
+ this.disableButton()
306
318
  this.$dispatch('select_cascade',index)
307
319
  },
308
320
  // 检测按钮的disable
@@ -581,6 +581,75 @@ export default {
581
581
  throw `还有${res.data[0].num}户未安装,无法提交`
582
582
  }
583
583
  }
584
+ if (
585
+ model.f_apply_type === '工商户报建' &&
586
+ model.button.button_name === '提交' &&
587
+ (model.defname === '设计出图' || model.defname === '竣工验收' || model.defname === '合同签订' )
588
+ ) {
589
+ let http = new HttpResetClass()
590
+ let data = {
591
+ tablename: 't_files',
592
+ condition: `defname = '${model.defname}' and f_blobid = '${this.selectdata.f_process_id}'`
593
+ }
594
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
595
+ resolveMsg: null,
596
+ rejectMsg: '查询失败'
597
+ })
598
+ console.log("数据长度:" + res.data.length)
599
+ if (res.data.length <= 0) {
600
+ throw '请上传附件!!!'
601
+ }
602
+
603
+ }
604
+ if (
605
+ model.f_apply_type === '工商户报建' &&
606
+ model.button.button_name === '提交' &&
607
+ model.defname === '报建登记'
608
+ ) {
609
+ let http = new HttpResetClass()
610
+ let data = {
611
+ tablename: 't_files',
612
+ condition: `defname = '${model.defname}' and f_blobid = '${this.selectdata.f_process_id}'`
613
+ }
614
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
615
+ resolveMsg: null,
616
+ rejectMsg: '查询失败'
617
+ })
618
+ console.log("数据长度:" , res.data)
619
+ if (res.data.length <= 0) {
620
+ throw '请上传附件!!!'
621
+ }
622
+ let inc=true
623
+ let name1 = ''
624
+ let wenjian = ['营业执照','身份证','非居民用户申请表','灶具五证','厨房设备布置设计图']
625
+ for (let name = 0;name<wenjian.length;name++){
626
+ let has=false
627
+ for (let i=0;i<res.data.length;i++){
628
+ if(res.data[i].f_filename.includes(wenjian[name])){
629
+ has=true
630
+ }
631
+ }
632
+ if(!has){
633
+ name1=name1+wenjian[name]+','
634
+ inc=false
635
+ }
636
+ }
637
+ if (inc==false){
638
+ throw '请上传'+name1+'附件!!!'
639
+ }
640
+ /*for (let i=0;i<res.data.length;i++){
641
+ if (!(
642
+ res.data[i].f_filename.includes('营业执照')
643
+ || res.data[i].f_filename.includes('身份证')
644
+ || res.data[i].f_filename.includes('非居民用户申请表')
645
+ || res.data[i].f_filename.includes('灶具五证')
646
+ || res.data[i].f_filename.includes('厨房设备布置设计图')
647
+ )){
648
+ throw '请检查当前节点的附件,只能上传以下文件 营业执照/'
649
+ return
650
+ }
651
+ }*/
652
+ }
584
653
  return model
585
654
  },
586
655
  // ========================= 武安 =================================
@@ -893,7 +962,7 @@ export default {
893
962
  // }
894
963
  // }
895
964
  // }
896
- if(this.show_data.defname === '现场勘察' || this.selectdata.defname ==='入户安装') {
965
+ if(this.show_data.defname === '现场勘察' || this.show_data.defname ==='入户安装') {
897
966
  console.log("this.shdata",this.show_data)
898
967
  if (this.show_data.fields[index].label === '是否具备安装条件') {
899
968
  for (const button of this.show_data.buttons) {
@@ -534,6 +534,10 @@
534
534
  if (item.type === 'select' && (item.value === '否' || item.value === '未开工') && item.disabledButton) {
535
535
  flag = true
536
536
  }
537
+ // 任何选择框只要是否都不能提交
538
+ if (item.type === 'select' && item.label === '工程状态'&& item.value === '正在施工'&& item.disabledButton) {
539
+ flag = true
540
+ }
537
541
  }
538
542
 
539
543
  let count = 0