apply-clients 4.1.47-weinan → 4.1.49-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.47-weinan",
3
+ "version": "4.1.49-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -629,7 +629,12 @@ export default {
629
629
  userinfo: this.userinfo,
630
630
  selectdata: this.selectdata
631
631
  }
632
- data.userinfo.devices[0].f_state = '有效'
632
+ if (data.userinfo.devices.length > 0){
633
+ let a = data.userinfo.devices.length
634
+ for (let i = 0; i<a;i++){
635
+ data.userinfo.devices[i].f_state = '有效'
636
+ }
637
+ }
633
638
  let res = await this.$resetpost(this.$androidUtil.getProxyUrl() +'/rs/logic/addInstallationDetailsDevices', {data:data}, {
634
639
  resolveMsg: null,
635
640
  rejectMsg: '设备添加失败!!!'
@@ -858,6 +858,20 @@ export default {
858
858
  if (this.show_data.fields[index].label === '地址类型'){
859
859
  this.addressType()
860
860
  }
861
+ if (this.show_data.fields[index].label === '项目名称'){
862
+ let http = new HttpResetClass()
863
+ let data = {
864
+ tablename:'t_apply',
865
+ condition:`f_entry_name = '${this.show_data.fields[index].value}'`
866
+ }
867
+ let res = await http.load('post','rs/sql/singleTable', {data:data},{
868
+ resolveMsg: null,
869
+ rejectMsg: '查询失败'})
870
+ if (res.data.length > 0){
871
+ this.$showMessage('项目名称不能重复,请重新输入!!!')
872
+ this.show_data.fields[index].value = ''
873
+ }
874
+ }
861
875
  // if (this.show_data.fields[index].label === '街道'){
862
876
  // console.log('-----------添加街道-----------')
863
877
  // if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {