safecheck-client 3.0.33-16 → 3.0.33-161

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.
Files changed (169) hide show
  1. package/index.html +6 -2
  2. package/package.json +133 -133
  3. package/src/App.vue +2 -2
  4. package/src/components/Util/ImgSelfSafePlus.vue +19 -10
  5. package/src/components/Util.js +7 -0
  6. package/src/components/android/AreaPlan.vue +2 -1
  7. package/src/components/android/CurrentCreate.vue +1 -1
  8. package/src/components/android/ImgSelfAndroid.vue +181 -181
  9. package/src/components/android/SafecheckDevices.vue +5 -1
  10. package/src/components/android/SafecheckOrderV.vue +18 -12
  11. package/src/components/map/checkScreen.vue +27 -21
  12. package/src/components/paper/PlanChooser.vue +4 -2
  13. package/src/components/pc/NewCheckpaper.vue +11 -8
  14. package/src/components/planmanage/PlanManage.vue +14 -4
  15. package/src/components/planmanage/checkPlanList.vue +2 -1
  16. package/src/components/planmanage/checkUserList.vue +2 -0
  17. package/src/components/report/HiddenSituation.vue +3 -3
  18. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -2
  19. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  20. package/src/components/rongcheng/DefectPaper.vue +1 -1
  21. package/src/components/rongcheng/PaperListNPSQ.vue +36 -1
  22. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  23. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  24. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  25. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  26. package/src/components/safecheckNew/PaperList.vue +785 -0
  27. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  28. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  29. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  30. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  31. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  32. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2692 -0
  33. package/src/filiale/Util.js +5 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  35. package/src/filiale/baiyin/android.js +10 -0
  36. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -0
  37. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -0
  38. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -0
  39. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -0
  40. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -0
  41. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  42. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  43. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  44. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  45. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  46. package/src/filiale/baiyin/pc.js +20 -0
  47. package/src/filiale/bayan/android/AddPlanItem.vue +7 -2
  48. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  49. package/src/filiale/bayan/android/SafecheckOrderV.vue +20 -7
  50. package/src/filiale/bayan/android/SafecheckUserInfo.vue +566 -514
  51. package/src/filiale/bayan/android.js +1 -0
  52. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  53. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  54. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  55. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  56. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  57. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  58. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  59. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -0
  60. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  61. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  62. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  63. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  64. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  65. package/src/filiale/bayan/pc.js +7 -0
  66. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  67. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  68. package/src/filiale/fugou/android.js +2 -1
  69. package/src/filiale/fugou/pc/AddToCheckBook.vue +13 -14
  70. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  71. package/src/filiale/fugou/pc/CheckBookEntry.vue +2 -6
  72. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  73. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -18
  74. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  75. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  76. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  77. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  78. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  79. package/src/filiale/fugou/pc/checkUserList.vue +36 -35
  80. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  81. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  82. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  83. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  84. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  85. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  86. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  87. package/src/filiale/jingyang/pc.js +1 -0
  88. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -22
  89. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -0
  90. package/src/filiale/liaoyuan/pc.js +2 -1
  91. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  92. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1268
  93. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2779
  94. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  95. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  96. package/src/filiale/rongchuang/android.js +1 -0
  97. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  98. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  99. package/src/filiale/rongchuang/pc.js +1 -0
  100. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  101. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  102. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  103. package/src/filiale/siyang/android.js +11 -0
  104. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  105. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  106. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  107. package/src/filiale/siyang/pc/checkUserList.vue +781 -0
  108. package/src/filiale/siyang/pc.js +15 -0
  109. package/src/filiale/tianke/pc/checkScreen.vue +36 -31
  110. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  111. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  112. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  113. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  114. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  115. package/src/filiale/weinan/android/SafecheckDevices.vue +6 -2
  116. package/src/filiale/weinan/android/SafecheckOrderV.vue +16 -2
  117. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  118. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  119. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  120. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  121. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  122. package/src/filiale/weinan/pc.js +2 -0
  123. package/src/filiale/wenxi/android/CurrentCreate.vue +1 -1
  124. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  125. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  126. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  127. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +46 -1
  128. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +45 -4
  129. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  130. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  131. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  132. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  133. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  134. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2832
  135. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -869
  136. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  137. package/src/filiale/yangchunboneng/android.js +1 -0
  138. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +4 -4
  139. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +76 -32
  140. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +72 -1
  141. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1018
  142. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +944 -849
  143. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  144. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  145. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  146. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  147. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  148. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  149. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  150. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  151. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  152. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  153. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  154. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  155. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  156. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  157. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  158. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  159. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  160. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  161. package/src/filiale/yongzhou/pc.js +4 -0
  162. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +652 -0
  163. package/src/filiale/yuansheng/android.js +1 -0
  164. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  165. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  166. package/src/main.js +33 -33
  167. package/src/rongcheng.js +3 -1
  168. package/src/safecheck-android.js +6 -0
  169. package/src/safecheck.js +3 -0
@@ -3,7 +3,8 @@ import Vue from "vue";
3
3
 
4
4
  // 手机特殊目录注册到该文件中
5
5
  let specialComp = {
6
- 'add-plan-item': (resolve) => { require(['./android/AddPlanItem'], resolve) }
6
+ 'add-plan-item': (resolve) => { require(['./android/AddPlanItem'], resolve) },
7
+ 'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) }
7
8
  }
8
9
 
9
10
  exports.specialComp = specialComp
@@ -3,17 +3,17 @@
3
3
  <div class="auto select-overspread">
4
4
  <validator name='v'>
5
5
  <ul class="nav nav-tabs">
6
- <p class="bg-info text-center" style="padding: 8px;">添加到目标抄表册</p>
6
+ <p class="bg-info text-center" style="padding: 8px;">添加到目标安检册</p>
7
7
  </ul>
8
8
  <div class="form-horizontal select-overspread container-fluid auto" style="margin-top:20px;flex: 1;">
9
9
  <div class="row" style="text-align: center">
10
10
  <p class="text-center" style="padding: 8px;">共{{usernum?usernum:0}}位用户</p>
11
- <div class="col-sm-12 form-group" :class="[$v.f_meter_book_num.required ? 'has-error' : '']">
12
- <label class="font_normal_body" style="width: 26%;">目标抄表册</label>
13
- <input type="text" v-model="model.f_meter_book_num" v-show="false"
14
- v-validate:f_meter_book_num='{required: true }'>
15
- <v-select :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
16
- :options='meterbook' placeholder='安检册'
11
+ <div class="col-sm-12 form-group" :class="[$v.f_check_book_num.required ? 'has-error' : '']">
12
+ <label class="font_normal_body" style="width: 26%;">目标安检册</label>
13
+ <input type="text" v-model="model.f_check_book_num" v-show="false"
14
+ v-validate:f_check_book_num='{required: true }'>
15
+ <v-select :value.sync="model.f_check_book_num" v-model="model.f_check_book_num"
16
+ :options='checkbook' placeholder='安检册'
17
17
  :value-single="true" :search="true"
18
18
  style="width:60%"
19
19
  close-on-select></v-select>
@@ -48,7 +48,7 @@ export default {
48
48
  data () {
49
49
  return {
50
50
  model: {
51
- f_meter_book_num: '',
51
+ f_check_book_num: '',
52
52
  f_userinfo_code: '',
53
53
  f_user_state: '',
54
54
  f_operator: this.$login.f.name,
@@ -59,7 +59,7 @@ export default {
59
59
  f_depname: this.$login.f.deps,
60
60
  f_state: '有效'
61
61
  },
62
- meterbook: [],
62
+ checkbook: [],
63
63
  f_orgid: ''
64
64
  }
65
65
  },
@@ -68,17 +68,16 @@ export default {
68
68
  async ready () {
69
69
  // await this.$LoadParams.loadMeterBook(this.f_filialeid)
70
70
  this.$refs.paged.$refs.cri.model.performDate = this.$login.toStandardDateString()
71
- this.close()
71
+ // this.close()
72
72
  },
73
73
  methods: {
74
74
  selectbook(val){
75
75
  console.log("val",val)
76
- this.meterbook=val
77
- this.meterbook.push({label: '移出表册', value: '0'})
78
- console.log(" this.meterbook.push(val)", this.meterbook)
76
+ this.checkbook=val
77
+ console.log(" this.checkbook.push(val)", this.checkbook)
79
78
  },
80
79
  close () {
81
- this.model.f_meter_book_num = ''
80
+ this.model.f_check_book_num = ''
82
81
  this.$dispatch('add-tobook-refresh')
83
82
  },
84
83
  confirm () {
@@ -218,6 +218,8 @@ export default {
218
218
  showdetails (row) {
219
219
  console.log('showdetails',row)
220
220
  this.rowData = row
221
+ this.rowData.f_check_book_type='用户'
222
+ this.rowData.f_user_type=''
221
223
  this.showItem = false
222
224
  this.showItemUser = true
223
225
  },
@@ -53,23 +53,19 @@
53
53
  this.refresh()
54
54
  },
55
55
  'add-tobook-confirm' (model) {
56
- model.userfilesids = []
57
56
  this.rowsdata = this.$refs.mbpeople_list.$refs.paged.$refs.grid.getRowData()
58
57
  let msg = '确认将选中的用户全部移入表册?'
59
- var alluser=[]
60
58
  if (this.rowsdata === null || this.rowsdata.length == 0) {
61
59
  this.$showAlert('请勾选用户!!', 'warning', 3000)
62
60
  } else {
63
61
  let userfilesids = []
64
62
  this.rowsdata.forEach((row) => {
65
- userfilesids.push(row.f_userfiles_id + '')
63
+ userfilesids.push(row.f_userinfo_id + '')
66
64
  })
67
- model.userfilesids = userfilesids
68
- alluser = this.rowsdata
69
65
  // 变成可以直接使用的格式
70
66
  this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
71
67
  if (res === 'confirm') {
72
- this.$resetpost('api/af-revenue/logic/saveBookuser', {model: model,rowsdata: alluser}, {
68
+ this.$resetpost('rs/logic/updateCheckBook', {f_check_book_id: model.f_check_book_num,rowsdata: userfilesids}, {
73
69
  resolveMsg: '保存成功',
74
70
  rejectMsg: '保存失败!'
75
71
  }).then(() => {
@@ -117,7 +117,7 @@
117
117
  <nobr>创建人</nobr>
118
118
  </th>
119
119
  <th>
120
- <nobr>小区/单位数量</nobr>
120
+ <nobr>用户数量</nobr>
121
121
  </th>
122
122
  <th>
123
123
  <nobr>已下发</nobr>
@@ -143,7 +143,7 @@
143
143
  <td style="text-align: center;">{{ row.f_user_type }}</td>
144
144
  <td style="text-align: center;">{{ row.f_create_date }}</td>
145
145
  <td style="text-align: center;">{{ row.f_create_person }}</td>
146
- <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.f_user_type==='民用'?row.num2:row.num3}}</b></button></td>
146
+ <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num2}}</b></button></td>
147
147
  <td style="text-align: center;">{{ row.xiafa }}</td>
148
148
  <td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>
149
149
  <td style="text-align: center;">{{ row.yijian }}</td>
@@ -7,12 +7,12 @@
7
7
  <div class="col-sm-3 form-group">
8
8
  <label class="font_normal_body">用户编号</label>
9
9
  <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
- condition="f_userinfo_code = '{}'" placeholder='用户编号'>
10
+ condition="f_userinfo_code like '%{}%'" placeholder='用户编号'>
11
11
  </div>
12
12
  <div class="col-sm-3 form-group">
13
13
  <label class="font_normal_body">用户姓名</label>
14
14
  <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
15
- condition="f_user_name = '{}'" placeholder='用户姓名'>
15
+ condition="f_user_name like '%{}%'" placeholder='用户姓名'>
16
16
  </div>
17
17
 
18
18
  <div class="form-group button-range" style="float: right">
@@ -43,21 +43,23 @@
43
43
  condition="f_user_phone like '%{}%'" v-next-el='yhxm' style="width: 60%"
44
44
  >
45
45
  </div>
46
- <div class="col-sm-2 form-group" title="参数名称:【用气类型】">
46
+ <div class="form-group col-sm-3" title="参数名称:【用气类型】">
47
47
  <label class="font_normal_body" >用气类型</label>
48
48
  <v-select :value.sync="model.f_user_gas_type"
49
49
  v-model="model.f_user_gas_type"
50
+ :multiple="true"
50
51
  :options='$parent.$parent.usergastype' placeholder='请选择'
51
52
  condition="f_user_gas_type in {}"
52
- close-on-select></v-select>
53
+ ></v-select>
53
54
  </div>
54
- <div class="col-sm-2 form-group" title="参数名称:【用户标签】">
55
+ <div class="form-group col-sm-3" title="参数名称:【用户标签】">
55
56
  <label class="font_normal_body" >用户标签</label>
56
57
  <v-select :value.sync="model.f_user_tags"
57
58
  v-model="model.f_user_tags"
59
+ :multiple="true"
58
60
  :options='$parent.$parent.usertags' placeholder='请选择'
59
61
  condition="f_user_tags in {}"
60
- close-on-select></v-select>
62
+ ></v-select>
61
63
  </div>
62
64
  <div class="form-group col-sm-3">
63
65
  <label class="font_normal_body">客户类型</label>
@@ -73,10 +75,10 @@
73
75
  </div>
74
76
  <div class="col-sm-3 form-group">
75
77
  <label class="font_normal_body">所属表册</label>
76
- <v-select :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
78
+ <v-select :value.sync="model.f_check_book_num" v-model="model.f_check_book_num"
77
79
  :options='$parent.$parent.meterbooks' placeholder='安检册'
78
80
  :value-single="true"
79
- condition="f_meter_book_num='{}'"
81
+ condition="f_check_book_name='{}'"
80
82
  style="width:60%"
81
83
  close-on-select></v-select>
82
84
  </div>
@@ -150,7 +152,7 @@
150
152
  <v-select :options='$parent.$parent.whether_list'
151
153
  :value.sync="model.f_book_name"
152
154
  v-model="model.f_book_name"
153
- close-on-select condition="f_book_name {}"
155
+ close-on-select condition="f_check_book_name {}"
154
156
  placeholder='是否在册' ></v-select>
155
157
  </div>
156
158
  <div class="col-sm-3 form-group">
@@ -194,6 +196,18 @@
194
196
  close-on-select>
195
197
  </v-select>
196
198
  </div>
199
+ <div class="col-sm-3 form-group">
200
+ <label class="font_normal_body">开户时间</label>
201
+ <datepicker
202
+ :value.sync="model.f_open_date"
203
+ placeholder='开户时间' style="width:60%"
204
+ :disabled-days-of-week="[]"
205
+ :format="'yyyy-MM-dd'"
206
+ :select-month="true"
207
+ v-model='model.f_open_date'
208
+ :show-rest-button="reset">
209
+ </datepicker>
210
+ </div>
197
211
  </div>
198
212
  </div>
199
213
  </criteria>
@@ -216,7 +230,7 @@
216
230
  <th><nobr>表号</nobr></th>
217
231
  <th><nobr>气表状态</nobr></th>
218
232
  <th><nobr>所属表册</nobr></th>
219
- <th><nobr>册内排序</nobr></th>
233
+ <!-- <th><nobr>册内排序</nobr></th>-->
220
234
  <th><nobr>表箱号</nobr></th>
221
235
  <th><nobr>入户证号</nobr></th>
222
236
  <th><nobr>表底数</nobr></th>
@@ -238,8 +252,8 @@
238
252
  <td>{{row.f_address}}</td>
239
253
  <td>{{row.f_meternumber}}</td>
240
254
  <td>{{row.f_table_state}}</td>
241
- <td>{{row.f_book_name}}</td>
242
- <td>{{row.f_meter_book_sort}}</td>
255
+ <td>{{row.f_check_book_name}}</td>
256
+ <!-- <td>{{row.f_meter_book_sort}}</td>-->
243
257
  <!-- <td>{{row.f_adjustable_id}}</td>-->
244
258
  <td style="text-align:center">{{row.f_metertitles}}</td>
245
259
  <td style="text-align:center"><nobr>{{row.f_book_no}}</nobr></td>
@@ -272,7 +286,6 @@ let loadParamGem = async function (self) {
272
286
  await self.$LoadParams.loadParam()
273
287
  self.getfield = self.config.excelHeaders
274
288
  // self.$refs.paged.$refs.cri.model.f_meter_classify = ['机表']
275
- self.$refs.paged.$refs.cri.model.f_book_name = ['is null']
276
289
  await self.initAdjustables()
277
290
  // await self.search()
278
291
  }
@@ -294,7 +307,7 @@ export default {
294
307
  f_filialeid: this.$login.f.orgid,
295
308
  f_orgid: '',
296
309
  invoiceuse: [{label: '是', value: 'is not null'}, {label: '否', value: 'is null'}],
297
- model: new PagedList('api/af-revenue/sql/mb_peopleList', 20),
310
+ model: new PagedList('rs/sql/mb_peopleList', 20),
298
311
  f_orgstr: this.$login.f.orgid,
299
312
  // 要操作的用户
300
313
  rowsdata: [],
@@ -312,7 +325,7 @@ export default {
312
325
  table_state: this.$appdata.getParam('气表状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')] : [],
313
326
  f_small_areas: this.$appdata.getParam('小区域') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('小区域')] : [],
314
327
  user_state: [{label: '正常', value: '正常'}, {label: '预备', value: '预备'}, {label: '销户', value: '销户'}],
315
- whether_list: [{label: '已在册内', value: 'is not null'}, {label: '不在册内', value: 'is null'}],
328
+ whether_list: [{label: '全部', value: ''},{label: '已在册内', value: 'is not null'}, {label: '不在册内', value: 'is null'}],
316
329
  meterbrands: [],
317
330
  condition: '',
318
331
  adjustables: [],
@@ -335,6 +348,7 @@ export default {
335
348
  ready () {
336
349
  getAreaConfig(this)
337
350
  loadParamGem(this)
351
+ this.getmeterbook()
338
352
  },
339
353
  methods: {
340
354
  async meterbook(){
@@ -342,11 +356,11 @@ export default {
342
356
  if(this.f_orgid==''){
343
357
  this.f_orgid=this.$login.f.orgid
344
358
  }
345
- let res=await this.$resetpost('api/af-revenue/sql/saleSingleTable',{data:{tablename:'t_meter_book',condition:` 1=1 and f_orgid=${this.f_orgid} and f_book_state='有效'`}},{resolveMsg:null,rejectMsg:null})
359
+ let res=await this.$resetpost('rs/sql/tel_singleTable_OrderBy',{data:{items:' * ',tablename:'t_check_book',condition:` 1=1 `,orderitem:' id desc'}},{resolveMsg:null,rejectMsg:null})
346
360
  for(let i=0;i<res.data.length;i++){
347
361
  console.log("res",res.data[i])
348
362
  let temp=[]
349
- temp.label=res.data[i].f_book_name
363
+ temp.label=res.data[i].f_check_book_name
350
364
  temp.value=res.data[i].id
351
365
  this.meterbooks.push(temp)
352
366
  }
@@ -406,7 +420,7 @@ export default {
406
420
  })
407
421
  this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
408
422
  //
409
- // // 加载抄表册
423
+ // // 加载安检册
410
424
  // console.log("------------------this.$GetSaleParam.getMeterBooks()",this.$GetSaleParam.getMeterBooks())
411
425
  // this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
412
426
  },
@@ -418,6 +432,9 @@ export default {
418
432
  let f_orgstr = this.orgCondtionStr ? this.orgCondtionStr : "and f_orgid in ('" + this.f_orgid + "')"
419
433
  args.condition = `${args.condition} ` + f_orgstr
420
434
  // args.condition += ` and f_orgid = ${this.f_orgstr}`
435
+ if(args.model.f_open_date){
436
+ args.condition += ` and f_open_date <='${args.model.f_open_date}' `
437
+ }
421
438
  this.condition = args.condition
422
439
  this.$parent.condition = this.condition
423
440
  this.model.search(args.condition, args.model)
@@ -4,36 +4,59 @@
4
4
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
7
- <div class="form-group col-sm-3" >
7
+ <div class="form-group col-sm-3">
8
8
  <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
+ placeholder='客户编号'
10
11
  condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
12
  </div>
12
- <div class="form-group col-sm-2 button-range" >
13
- <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
13
+ <div class="form-group col-sm-2 button-range">
14
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
15
+
16
+ </div>
17
+ <div class="form-group col-sm-2 button-range">
18
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delOfCheckBook()" v-el:cba>移出</button>
14
19
 
15
20
  </div>
16
21
  </div>
17
22
  </div>
18
23
  </criteria>
19
- <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
20
- <template partial='head' >
24
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
25
+ <template partial='head'>
21
26
  <tr>
22
- <th><nobr>序号</nobr></th>
23
- <th><nobr>用户编号</nobr></th>
24
- <th><nobr>用户姓名</nobr></th>
25
- <th><nobr>用户电话</nobr></th>
26
- <th><nobr>用户地址</nobr></th>
27
+ <th>
28
+ <nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
29
+ </th>
30
+ <th>
31
+ <nobr>序号</nobr>
32
+ </th>
33
+ <th>
34
+ <nobr>用户编号</nobr>
35
+ </th>
36
+ <th>
37
+ <nobr>用户姓名</nobr>
38
+ </th>
39
+ <th>
40
+ <nobr>用户电话</nobr>
41
+ </th>
42
+ <th>
43
+ <nobr>用户地址</nobr>
44
+ </th>
27
45
 
28
46
  </tr>
29
47
  </template>
30
- <template partial='body' >
31
- <tr >
32
- <td style="text-align:center;">{{$index+1}}</td>
33
- <td style="text-align:center">{{row.f_userinfo_code}}</td>
34
- <td style="text-align:center">{{row.f_user_name}}</td>
35
- <td style="text-align:center">{{row.f_user_phone}}</td>
36
- <td style="text-align:center">{{row.f_address}}</td>
48
+ <template partial='body'>
49
+ <tr>
50
+ <td style="text-align: center">
51
+ <nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
52
+ @change="$parent.$parent.$parent.checkChange(row, $event)"></input>
53
+ </nobr>
54
+ </td>
55
+ <td style="text-align:center;">{{ $index + 1 }}</td>
56
+ <td style="text-align:center">{{ row.f_userinfo_code }}</td>
57
+ <td style="text-align:center">{{ row.f_user_name }}</td>
58
+ <td style="text-align:center">{{ row.f_user_phone }}</td>
59
+ <td style="text-align:center">{{ row.f_address }}</td>
37
60
  </tr>
38
61
  </template>
39
62
  <template partial='foot'></template>
@@ -43,58 +66,92 @@
43
66
  </template>
44
67
 
45
68
  <script>
46
- import {PagedList} from 'vue-client'
69
+ import {HttpResetClass, PagedList} from 'vue-client'
47
70
 
48
71
  export default {
49
72
  title: '安检记录列表',
50
73
  props: ['row'],
51
- data () {
74
+ data() {
52
75
  return {
53
76
  rowdata: this.row,
54
- model: new PagedList('rs/sql/getUserByCheckBook', 50)
77
+ bookAll: false,
78
+ bookList:[],
79
+ model: new PagedList('rs/sql/safe_singleTable_OrderBy', 50,
80
+ {
81
+ items: '"tua.f_address,tui.f_userinfo_code,tui.f_user_name,tui.f_user_phone,tui.f_userinfo_id"',
82
+ tablename: '"t_user_address tua left join t_userinfo tui on tua.f_userinfo_id = tui.f_userinfo_id"',
83
+ orderitem: '"tua.id desc"'
84
+ }
85
+ )
55
86
  }
56
87
  },
57
- ready(){
58
- if(this.row){
59
- let condition=''
60
- if(this.row.f_check_book_type1=='小区'){
61
- this.model.url = 'rs/sql/getUserByCheckBook'
62
- condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
63
- }else{
64
- this.model.url = 'rs/sql/getUserByCheckBookCompany'
65
- condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
66
- }
88
+ ready() {
89
+ if (this.row) {
90
+ let condition = ''
91
+ condition = `tua.f_check_book_id =${this.row.id}`
67
92
  this.model.search(condition)
68
93
  //只显示用户页面
69
- this.row.f_check_book_type='用户'
94
+ this.row.f_check_book_type = '用户'
70
95
  }
71
96
  },
72
97
  watch: {
73
- 'row' (val) {
98
+ 'row'(val) {
74
99
  if (val) {
75
100
  this.rowdata = val
76
- let condition=''
77
- if(this.row.f_check_book_type1=='小区'){
78
- condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
79
- }else{
80
- condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
81
- }
101
+ let condition = ''
102
+ condition = `tua.f_check_book_id =${val.id} `
82
103
  this.model.search(condition)
83
104
  }
84
105
  }
85
106
  },
86
107
  methods: {
87
- selfSearch (args) {
108
+ selfSearch(args) {
88
109
  if (this.rowdata.id) {
89
- if(this.rowdata.f_check_book_type1=='小区'){
90
- args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
91
- }else{
92
- args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
93
- }
110
+ args.condition += `and tua.f_check_book_id =${this.rowdata.id}`
94
111
  this.model.search(args.condition)
95
112
  } else {
96
113
  this.$showMessage('请选择片区')
97
114
  }
115
+ },
116
+ checkModel (row) {
117
+ if (this.bookAll) {
118
+ return true
119
+ } else {
120
+ return this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1;
121
+ }
122
+ },
123
+ checkChange (row, e) {
124
+ if (e.target.checked) {
125
+ this.bookList.push(row.f_userinfo_id)
126
+ } else {
127
+ this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
128
+ }
129
+ },
130
+ delOfCheckBook(){
131
+ try {
132
+ let upAddress = `update t_user_address set f_check_book_id = null where 1 = 2 `
133
+ if (this.bookAll){
134
+ upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${this.row.id}'`
135
+ }else if (this.bookList.length > 0){
136
+ let codes = this.bookList.map( item => { return `'${item}'` } ).join()
137
+ upAddress = `update t_user_address set f_check_book_id = null where f_userinfo_id in (${codes})`
138
+ }
139
+ this.$showMessage('确认移出安检册', ['confirm', 'cancel']).then((res) => {
140
+ if (res === 'confirm') {
141
+ let http = new HttpResetClass()
142
+ http.load('POST', 'rs/logic/runSQL', {data: {sql: upAddress}},
143
+ {resolveMsg: null, rejectMsg: '移出安检册失败'}).then(resp=>{
144
+ this.$showMessage('移出成功')
145
+ this.$refs.paged.$refs.criteria.search()
146
+ }).catch(error=>{
147
+ this.$showMessage('移出失败',error)
148
+
149
+ })
150
+ }
151
+ })
152
+ }catch (e) {
153
+ this.$showMessage('移出失败',e)
154
+ }
98
155
  }
99
156
  }
100
157
  }
@@ -199,9 +199,9 @@
199
199
  v-model="model.f_user_tags"
200
200
  :options='$parent.$parent.userTags'
201
201
  filer-key="name"
202
- close-on-select clear-button
203
- condition="f_user_tags='{}'"
204
- :value-single="true">
202
+ :multiple="true"
203
+ condition="f_user_tags in {}"
204
+ >
205
205
  </v-select>
206
206
  </div>
207
207
  <div :class="$parent.$parent.style">
@@ -212,9 +212,9 @@
212
212
  v-model="model.f_user_gas_type"
213
213
  :options='$parent.$parent.userGasType'
214
214
  filer-key="name"
215
- close-on-select clear-button
216
- condition="f_user_gas_type='{}'"
217
- :value-single="true">
215
+ :multiple="true"
216
+ condition="f_user_gas_type in {}"
217
+ >
218
218
  </v-select>
219
219
  </div>
220
220
  </div>
@@ -414,6 +414,8 @@
414
414
  <th><nobr>用户电话</nobr></th>
415
415
  <th><nobr>用户小区</nobr></th>
416
416
  <th><nobr>用户地址</nobr></th>
417
+ <th><nobr>用户标签</nobr></th>
418
+ <th><nobr>用气类型</nobr></th>
417
419
  <th><nobr>开户时间</nobr></th>
418
420
  <th><nobr>安检时间</nobr></th>
419
421
  <th><nobr>安检员</nobr></th>
@@ -436,6 +438,8 @@
436
438
  <td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
437
439
  <td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
438
440
  <td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
441
+ <td style="text-align: center">{{ row.f_user_tags }}</td>
442
+ <td style="text-align: center">{{ row.f_user_gas_type }}</td>
439
443
  <td style="text-align: center;white-space:nowrap;">{{row.f_gas_date}}</td>
440
444
  <td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
441
445
  <td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
@@ -193,9 +193,8 @@
193
193
  v-model="model.f_user_tags"
194
194
  :options='$parent.$parent.userTags'
195
195
  filer-key="name"
196
- close-on-select clear-button
197
- condition="f_user_tags='{}'"
198
- :value-single="true">
196
+ condition="f_user_tags in {}"
197
+ :multiple="true">
199
198
  </v-select>
200
199
  </div>
201
200
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
@@ -206,9 +205,8 @@
206
205
  v-model="model.f_user_gas_type"
207
206
  :options='$parent.$parent.userGasType'
208
207
  filer-key="name"
209
- close-on-select clear-button
210
- condition="f_user_gas_type='{}'"
211
- :value-single="true">
208
+ condition="f_user_gas_type in {}"
209
+ :multiple="true">
212
210
  </v-select>
213
211
  </div>
214
212
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
@@ -267,6 +265,12 @@
267
265
  <th>
268
266
  <nobr>客户小区</nobr>
269
267
  </th>
268
+ <th>
269
+ <nobr>用户标签</nobr>
270
+ </th>
271
+ <th>
272
+ <nobr>用气类型</nobr>
273
+ </th>
270
274
  <th>
271
275
  <data-order field="f_address" name="客户地址"></data-order>
272
276
  </th>
@@ -312,6 +316,8 @@
312
316
  <td style="text-align: center">{{row.f_user_name}}</td>
313
317
  <td style="text-align: center">{{row.f_user_phone}}</td>
314
318
  <td style="text-align: center">{{row.f_residential_area}}</td>
319
+ <td style="text-align: center">{{ row.f_user_tags }}</td>
320
+ <td style="text-align: center">{{ row.f_user_gas_type }}</td>
315
321
  <td style="text-align: center">{{row.f_address}}</td>
316
322
  <td style="text-align: center">{{row.f_offsite_time}}</td>
317
323
  <td style="text-align: center">{{row.f_checker_name}}</td>
@@ -295,9 +295,9 @@
295
295
  :value.sync="model.f_user_tags" v-model="model.f_user_tags"
296
296
  :options='$parent.$parent.userTags'
297
297
  filer-key="name"
298
- close-on-select clear-button
299
- condition="f_user_tags='{}'"
300
- :value-single="true">
298
+ :multiple="true"
299
+ condition="f_user_tags in {}"
300
+ >
301
301
  </v-select>
302
302
  </div>
303
303
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
@@ -307,9 +307,9 @@
307
307
  :value.sync="model.f_user_gas_type" v-model="model.f_user_gas_type"
308
308
  :options='$parent.$parent.userGasType'
309
309
  filer-key="name"
310
- close-on-select clear-button
311
- condition="f_user_gas_type='{}'"
312
- :value-single="true">
310
+ :multiple="true"
311
+ condition="f_user_gas_type in {}"
312
+ >
313
313
  </v-select>
314
314
  </div>
315
315
  </div>
@@ -362,6 +362,12 @@
362
362
  <th>
363
363
  <nobr>用气状态</nobr>
364
364
  </th>
365
+ <th>
366
+ <nobr>用户标签</nobr>
367
+ </th>
368
+ <th>
369
+ <nobr>用气类型</nobr>
370
+ </th>
365
371
  <th>
366
372
  <data-order field="f_offsite_time" name="安检时间"></data-order>
367
373
  </th>
@@ -407,6 +413,8 @@
407
413
  <td style="text-align: center">{{ row.f_entry_status }}</td>
408
414
  <td style="text-align: center">{{ row.f_plan_name }}</td>
409
415
  <td style="text-align: center">{{ row.f_usegas }}</td>
416
+ <td style="text-align: center">{{ row.f_user_tags }}</td>
417
+ <td style="text-align: center">{{ row.f_user_gas_type }}</td>
410
418
  <td style="text-align: center">{{ row.f_offsite_time }}</td>
411
419
  <td style="text-align: center">{{ row.f_checker_name }}</td>
412
420
  <td style="text-align: center">{{ row.f_repair_approved_note }}</td>