safecheck-client 3.0.34-6 → 3.0.34-61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/docs/FormPrint.md +18 -18
  2. package/docs/GridTree.md +47 -47
  3. package/docs/PrintFile.md +38 -38
  4. package/docs/tree.md +40 -40
  5. package/package.json +1 -1
  6. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  7. package/src/assets/123.png +0 -0
  8. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  9. package/src/components/LoadData.vue +62 -0
  10. package/src/components/NewDefectList/DefectListNew.vue +617 -616
  11. package/src/components/android/AddGas.vue +147 -147
  12. package/src/components/android/AndroidDefectDeal.vue +1 -0
  13. package/src/components/android/AreaPlan.vue +566 -566
  14. package/src/components/android/AreaSelect.vue +208 -0
  15. package/src/components/android/BuildingSelect.vue +217 -0
  16. package/src/components/android/CheckPlanSelect.vue +248 -0
  17. package/src/components/android/CheckerMonthly.vue +84 -84
  18. package/src/components/android/LcheckUnplan.vue +108 -108
  19. package/src/components/android/PaperFeedback.vue +33 -0
  20. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  21. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  22. package/src/components/android/SafecheckDevices.vue +2 -2
  23. package/src/components/android/SafecheckOrderV.vue +8 -12
  24. package/src/components/android/SwitchValve.vue +323 -323
  25. package/src/components/android/examples/SafeListExamples.vue +96 -0
  26. package/src/components/android/examples/UserExamples.vue +130 -0
  27. package/src/components/checkerphonestate/Checker.vue +32 -32
  28. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  29. package/src/components/defects/AddDefectModal.vue +120 -120
  30. package/src/components/defects/AddDevice.vue +95 -95
  31. package/src/components/defects/DevicesSeting.vue +106 -106
  32. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  33. package/src/components/metterfiles/MetterFiles.vue +104 -104
  34. package/src/components/notice/NoticeQuery.vue +76 -76
  35. package/src/components/paper/RepairVerifyForm.vue +76 -76
  36. package/src/components/phonestate/DailyTraffic.vue +57 -57
  37. package/src/components/phonestate/LastKnownState.vue +74 -74
  38. package/src/components/rongcheng/AddPlanItem.vue +4 -0
  39. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  40. package/src/components/rongcheng/CheckSearchUser.vue +40 -14
  41. package/src/components/rongcheng/PaperStatem.vue +6 -1
  42. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  43. package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
  44. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  45. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  46. package/src/components/task/RepairAnnual.vue +79 -79
  47. package/src/components/task/RepairAnnualDetail.vue +49 -49
  48. package/src/components/task/RepairMonthly.vue +91 -91
  49. package/src/components/task/TaskAnnual.vue +77 -77
  50. package/src/components/task/TaskAnnualDetail.vue +47 -47
  51. package/src/components/task/TaskMonthly.vue +89 -89
  52. package/src/components/userfile/UserfileChange.vue +277 -277
  53. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
  54. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
  55. package/src/filiale/baiyin/android.js +1 -0
  56. package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
  57. package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
  58. package/src/filiale/baiyin/pc/PaperList.vue +7 -7
  59. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  60. package/src/filiale/baiyin/pc.js +21 -21
  61. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  62. package/src/filiale/bayan/pc/PaperList.vue +1 -0
  63. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  64. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  65. package/src/filiale/huaran/android.js +12 -0
  66. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  67. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  68. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  69. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  70. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  71. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  72. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  73. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  74. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  75. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  76. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  77. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  78. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  79. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  80. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  81. package/src/filiale/huaran/pc.js +27 -0
  82. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  83. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  84. package/src/filiale/jiaxian/android/SafecheckDevices.vue +6 -6
  85. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
  86. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  87. package/src/filiale/jiaxian/android.js +4 -0
  88. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  89. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  90. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  91. package/src/filiale/ruihua/android.js +11 -0
  92. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  93. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
  94. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  95. package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
  96. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  97. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  98. package/src/filiale/siyang/pc/checkUserList.vue +22 -18
  99. package/src/filiale/siyang/pc.js +5 -0
  100. package/src/filiale/tongchuan/android/Select.vue +421 -0
  101. package/src/filiale/tongchuan/android.js +1 -0
  102. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
  103. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
  104. package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
  105. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
  106. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  107. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
  108. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  109. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  110. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  111. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  112. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -722
  113. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  114. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  115. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  116. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  117. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  118. package/src/filiale/weinan/pc/checkUserList.vue +712 -776
  119. package/src/filiale/weinan/pc.js +47 -46
  120. package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
  121. package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
  122. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1192
  123. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -472
  124. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -473
  125. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +13 -11
  126. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +6 -6
  127. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
  128. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +10 -10
  129. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +6 -6
  130. package/src/filiale/yangchunboneng/pc/PaperList.vue +6 -6
  131. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  132. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  133. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  134. package/src/safecheck-android.js +7 -0
  135. package/src/safecheck-page.js +10 -0
@@ -1,277 +1,277 @@
1
- <template>
2
- <div class="flex">
3
- <validator name='v'>
4
- <form novalidate class="form-horizontal">
5
- <div class="form-group">
6
- <label for="f_user_name" class="col-sm-2 control-label ">用户姓名:</label>
7
- <div class="col-sm-2">
8
- <input type="text" v-model="model.f_username" class="form-control" id="f_user_name" v-validate:f_user_name='{ required: true }'>
9
- </div>
10
-
11
- <label for="f_user_phone" class="col-sm-2 control-label">用户电话</label>
12
- <div class="col-sm-2">
13
- <input type="text" v-model="model.f_phone" class="form-control" id="f_user_phone" v-validate:f_user_name='{ required: true }'>
14
- </div>
15
-
16
- <label for="f_subcompany" class="col-sm-2 control-label">所属分公司:</label>
17
- <div class="col-sm-2">
18
- <v-select id="f_subcompany"
19
- placeholder='请选择分公司'
20
- :value.sync="f_division"
21
- :options='f_divisions'
22
- close-on-select clear-button></v-select>
23
- </div>
24
- </div>
25
-
26
- <div class="form-group">
27
- <label for="f_last_check_date" class="col-sm-2 control-label ">最后安检日期:</label>
28
- <div class="col-sm-2">
29
- <datepicker id="startdate"
30
- :value.sync="f_last_check_date"
31
- :disabled-days-of-Week="[]"
32
- :format="'yyyy-MM-dd'" >
33
- </datepicker>
34
- </div>
35
-
36
- <label for="f_last_check_state" class="col-sm-2 control-label">最后安检状态:</label>
37
- <div class="col-sm-2">
38
- <v-select id="f_last_check_state"
39
- placeholder='请选择'
40
- :value.sync="f_last_check_state"
41
- :options='f_last_check_state_opt'
42
- close-on-select clear-button></v-select>
43
- </div>
44
-
45
- <label for="f_checker" class="col-sm-2 control-label">安检负责人:</label>
46
- <div class="col-sm-2">
47
- <v-select id="f_checker"
48
- placeholder='请选择'
49
- :value.sync="f_checker_selected"
50
- :options='f_checkers'
51
- close-on-select clear-button></v-select>
52
- </div>
53
- </div>
54
-
55
- <div class="form-group">
56
-
57
- <label for="f_archive_date" class="col-sm-2 control-label">建档日期:</label>
58
- <div class="col-sm-2">
59
- <datepicker id="startdate"
60
- :value.sync="f_archive_date"
61
- :disabled-days-of-Week="[]"
62
- :format="'yyyy-MM-dd'">
63
- </datepicker>
64
- </div>
65
-
66
- <label for="f_user_type" class="col-sm-2 control-label">用户类型:</label>
67
- <div class="col-sm-2">
68
- <v-select id="f_user_type"
69
- placeholder='请选择'
70
- :value.sync="f_user_type"
71
- :options='f_user_type_opt'
72
- close-on-select clear-button></v-select>
73
- </div>
74
-
75
- <label for="f_street" class="col-sm-2 control-label">街道:</label>
76
- <div class="col-sm-2">
77
- <input type="text" class="form-control " id="f_street"
78
- v-model="model.f_street" v-validate:f_street='{ required: true }'/>
79
- </div>
80
- </div>
81
- <div class="form-group">
82
- <label for="f_residential_area" class="col-sm-2 control-label" >小区:</label>
83
- <div class="col-sm-2">
84
- <input type="text" class="form-control " id="f_residential_area"
85
- v-model="model.f_districtname" v-validate:f_residential_area='{ required: true }'>
86
- </div>
87
-
88
- <label for="f_building" class="col-sm-2 control-label" >楼号:</label>
89
- <div class="col-sm-2">
90
- <input type="text" class="form-control " id="f_building"
91
- v-model="model.f_building" v-validate:f_building='{ required: true }'>
92
- </div>
93
-
94
- <label for="f_unit" class="col-sm-2 control-label">单元:</label>
95
- <div class="col-sm-2">
96
- <input type="text" class="form-control " id="f_unit"
97
- v-model="model.f_unit" v-validate:f_unit='{ required: true }'/>
98
- </div>
99
- </div>
100
- <div class="form-group">
101
-
102
- <label for="f_floor" class="col-sm-2 control-label" >楼层:</label>
103
- <div class="col-sm-2">
104
- <input type="text" class="form-control " id="f_floor"
105
- v-model="model.f_floor" v-validate:f_floor='{ required: true }'>
106
- </div>
107
- <label for="f_room" class="col-sm-2 control-label" >门牌号:</label>
108
- <div class="col-sm-2">
109
- <input type="text" class="form-control " id="f_room"
110
- v-model="model.f_room" v-validate:f_room='{ required: true }'>
111
- </div>
112
-
113
- <label for="f_address" class="col-sm-2 control-label">详细地址:</label>
114
- <div class="col-sm-2">
115
- <input type="text" class="form-control " id="f_address"
116
- v-model="model.f_address" v-validate:f_address='{ required: true }'/>
117
- </div>
118
-
119
- </div>
120
-
121
- <div class="form-group">
122
- <label for="f_modifier" class="col-sm-2 control-label " v-if="false">修改提交人:</label>
123
- <div class="col-sm-2" v-if="false">
124
- <input type="text" class="form-control " id="f_modifier" v-model="model.f_modifier" >
125
- </div>
126
- <label for="f_remark" class="col-sm-2 control-label">备注:</label>
127
- <div class="col-sm-10">
128
- <input type="text" class="form-control" id="f_remark"
129
- v-model="model.f_remark">
130
- </div>
131
- </div>
132
- <hr>
133
- 气表档案:<span class="glyphicon glyphicon-plus" @click="addMeter"></span>
134
- </form>
135
- <div class="span">
136
- <data-grid :model="model" partial='list' v-ref:grid>
137
- <template partial='head'>
138
- <tr>
139
- <th>表号</th>
140
- <th>卡号</th>
141
- <th>生产厂家</th>
142
- <th>计量类型</th>
143
- <th>操作</th>
144
- </tr>
145
- </template>
146
- <template partial='body'>
147
- <td>{{row.f_meter_no}}</td>
148
- <td>{{row.f_card_id}}</td>
149
- <td>{{row.f_meter_brand}}</td>
150
- <td>{{row.f_meter_measurement }}</td>
151
- <td>
152
- <span class="glyphicon glyphicon-remove" @click="$parent.$parent.deleteRow(row)"></span>&nbsp;&nbsp;
153
- <span class="glyphicon glyphicon-edit" @click="$parent.$parent.editRow(row)"></span>
154
- </td>
155
- </template>
156
- </data-grid>
157
- </div>
158
- <div class="auto">
159
- <button :disabled='!($v.valid) || model.rows.length==0' @click="confirm()" type="button" class="btn btn-success">提&nbsp;&nbsp;&nbsp;交</button>
160
- <button @click="$back()" type="button" class="btn btn-success">返&nbsp;&nbsp;&nbsp;回</button>
161
- </div>
162
- </validator>
163
- </div>
164
- </template>
165
-
166
- <script>
167
- import co from 'co'
168
- import MessageBox from 'vue-client'
169
- import Vue from 'vue'
170
- import * as Util from '../Util'
171
- import AppData from '../../stores/AppData'
172
-
173
- let saveGen = function * (self) {
174
- self.model.f_approved = '未审核'
175
- self.model.f_modifier = self.f.name
176
- self.model.f_modifier_id = self.f.id
177
- self.model.f_subcompany = self.f_division[0]
178
- self.model.f_last_check_date = self.f_last_check_date
179
- self.model.f_archive_date = self.f_archive_date
180
- self.model.f_residential_area = self.model.f_districtname
181
- self.model.f_user_type = self.f_user_type[0]
182
- self.model.f_last_check_state = self.f_last_check_state[0]
183
- self.model.f_checker = self.f_checker_selected[0]
184
- //let p = self.f_checker_selected[0].indexOf('-')
185
- //self.model.f_checker = self.f_checker_selected[0].substring(0, p)
186
- // self.model.f_checker = self.f_checker_selected[0].substring(p+1)
187
- yield self.$resetpost('rs/logic/提交档案修改', { data: self.model })
188
- // 通知项目保存成功。
189
- self.$back()
190
- }
191
-
192
-
193
- export default {
194
- props: ['f', 'model'],
195
- title: '修改用户档案',
196
- data () {
197
- return {
198
- //transient
199
- f_division: [''],
200
- f_divisions: Vue.f_subcompany != '' ? [{label: Vue.f_subcompany, value: Vue.f_subcompany}]: this.$appdata.getParam('安检系统用子公司'),
201
- f_last_check_date: '',
202
- f_archive_date: '',
203
- row: {},
204
- f_last_check_state: [''],
205
- f_checker_selected: [''],
206
- f_last_check_state_opt: this.$appdata.getParam('安检状态'),
207
- f_user_type: [''],
208
- f_user_type_opt: this.$appdata.getParam('用户类型'),
209
- f_checkers: this.$appdata.getParam(Vue.f_subcompany + '安检员'),
210
- }
211
- },
212
- ready () {
213
- this.f_last_check_state = [this.model.f_last_check_state]
214
- this.f_checker_selected = [this.model.f_checker + '-' + this.model.f_checker_id]
215
- this.f_user_type = [this.model.f_user_type]
216
- let that = this
217
- this.$resetpost('rs/sql/提取表档案', {data:{f_userfile_id: this.model.id}}, {resolveMsg: null, rejectMsg: '提取表档案失败'}).then(
218
- (response) => {
219
- response.data.forEach ((item) => {
220
- item.f_oldmeter_no = item.f_meter_no
221
- item.f_meter_flag = '修改'
222
- })
223
- that.$set('model.rows', response.data)
224
- }
225
- )
226
- },
227
- methods: {
228
- confirm () {
229
- if(!this.f_checker_selected[0]) {
230
- window.alert('请选择安检员!')
231
- return
232
- }
233
- if (!this.f_division[0]) {
234
- window.alert('请选择分公司!')
235
- return
236
- }
237
- if (!this.f_last_check_state[0]) {
238
- window.alert('请选择最后安检状态!')
239
- return
240
- }
241
- if (!this.f_user_type[0]) {
242
- window.alert('请选择用户类型!')
243
- return
244
- }
245
- let gen = saveGen(this)
246
- return co(gen)
247
- },
248
- editRow (row) {
249
- this.$goto('meter-file', {model: row})
250
- },
251
- deleteRow (row) {
252
- this.model.rows.splice(this.model.rows.indexOf(row), 1)
253
- },
254
- addMeter () {
255
- this.row = {}
256
- this.$goto('meter-file', {model:this.row}, 'self', this.addRow)
257
- },
258
- addRow () {
259
- if (this.row.id) {
260
- this.model.rows.push(this.row)
261
- this.row.f_userfile_id = this.id
262
- this.row.f_meter_flag = '新增'
263
- }
264
- }
265
- },
266
- watch: {
267
- 'model' (val) {
268
- this.f_division = [val.f_subcompany]
269
- this.f_checker = val.f_checker
270
- this.f_last_check_date = val.f_last_check_date
271
- this.f_archive_date = val.f_archive_date
272
- }
273
- },
274
- components: { MessageBox }
275
- }
276
-
277
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="form-group">
6
+ <label for="f_user_name" class="col-sm-2 control-label ">用户姓名:</label>
7
+ <div class="col-sm-2">
8
+ <input type="text" v-model="model.f_username" class="form-control" id="f_user_name" v-validate:f_user_name='{ required: true }'>
9
+ </div>
10
+
11
+ <label for="f_user_phone" class="col-sm-2 control-label">用户电话</label>
12
+ <div class="col-sm-2">
13
+ <input type="text" v-model="model.f_phone" class="form-control" id="f_user_phone" v-validate:f_user_name='{ required: true }'>
14
+ </div>
15
+
16
+ <label for="f_subcompany" class="col-sm-2 control-label">所属分公司:</label>
17
+ <div class="col-sm-2">
18
+ <v-select id="f_subcompany"
19
+ placeholder='请选择分公司'
20
+ :value.sync="f_division"
21
+ :options='f_divisions'
22
+ close-on-select clear-button></v-select>
23
+ </div>
24
+ </div>
25
+
26
+ <div class="form-group">
27
+ <label for="f_last_check_date" class="col-sm-2 control-label ">最后安检日期:</label>
28
+ <div class="col-sm-2">
29
+ <datepicker id="startdate"
30
+ :value.sync="f_last_check_date"
31
+ :disabled-days-of-Week="[]"
32
+ :format="'yyyy-MM-dd'" >
33
+ </datepicker>
34
+ </div>
35
+
36
+ <label for="f_last_check_state" class="col-sm-2 control-label">最后安检状态:</label>
37
+ <div class="col-sm-2">
38
+ <v-select id="f_last_check_state"
39
+ placeholder='请选择'
40
+ :value.sync="f_last_check_state"
41
+ :options='f_last_check_state_opt'
42
+ close-on-select clear-button></v-select>
43
+ </div>
44
+
45
+ <label for="f_checker" class="col-sm-2 control-label">安检负责人:</label>
46
+ <div class="col-sm-2">
47
+ <v-select id="f_checker"
48
+ placeholder='请选择'
49
+ :value.sync="f_checker_selected"
50
+ :options='f_checkers'
51
+ close-on-select clear-button></v-select>
52
+ </div>
53
+ </div>
54
+
55
+ <div class="form-group">
56
+
57
+ <label for="f_archive_date" class="col-sm-2 control-label">建档日期:</label>
58
+ <div class="col-sm-2">
59
+ <datepicker id="startdate"
60
+ :value.sync="f_archive_date"
61
+ :disabled-days-of-Week="[]"
62
+ :format="'yyyy-MM-dd'">
63
+ </datepicker>
64
+ </div>
65
+
66
+ <label for="f_user_type" class="col-sm-2 control-label">用户类型:</label>
67
+ <div class="col-sm-2">
68
+ <v-select id="f_user_type"
69
+ placeholder='请选择'
70
+ :value.sync="f_user_type"
71
+ :options='f_user_type_opt'
72
+ close-on-select clear-button></v-select>
73
+ </div>
74
+
75
+ <label for="f_street" class="col-sm-2 control-label">街道:</label>
76
+ <div class="col-sm-2">
77
+ <input type="text" class="form-control " id="f_street"
78
+ v-model="model.f_street" v-validate:f_street='{ required: true }'/>
79
+ </div>
80
+ </div>
81
+ <div class="form-group">
82
+ <label for="f_residential_area" class="col-sm-2 control-label" >小区:</label>
83
+ <div class="col-sm-2">
84
+ <input type="text" class="form-control " id="f_residential_area"
85
+ v-model="model.f_districtname" v-validate:f_residential_area='{ required: true }'>
86
+ </div>
87
+
88
+ <label for="f_building" class="col-sm-2 control-label" >楼号:</label>
89
+ <div class="col-sm-2">
90
+ <input type="text" class="form-control " id="f_building"
91
+ v-model="model.f_building" v-validate:f_building='{ required: true }'>
92
+ </div>
93
+
94
+ <label for="f_unit" class="col-sm-2 control-label">单元:</label>
95
+ <div class="col-sm-2">
96
+ <input type="text" class="form-control " id="f_unit"
97
+ v-model="model.f_unit" v-validate:f_unit='{ required: true }'/>
98
+ </div>
99
+ </div>
100
+ <div class="form-group">
101
+
102
+ <label for="f_floor" class="col-sm-2 control-label" >楼层:</label>
103
+ <div class="col-sm-2">
104
+ <input type="text" class="form-control " id="f_floor"
105
+ v-model="model.f_floor" v-validate:f_floor='{ required: true }'>
106
+ </div>
107
+ <label for="f_room" class="col-sm-2 control-label" >门牌号:</label>
108
+ <div class="col-sm-2">
109
+ <input type="text" class="form-control " id="f_room"
110
+ v-model="model.f_room" v-validate:f_room='{ required: true }'>
111
+ </div>
112
+
113
+ <label for="f_address" class="col-sm-2 control-label">详细地址:</label>
114
+ <div class="col-sm-2">
115
+ <input type="text" class="form-control " id="f_address"
116
+ v-model="model.f_address" v-validate:f_address='{ required: true }'/>
117
+ </div>
118
+
119
+ </div>
120
+
121
+ <div class="form-group">
122
+ <label for="f_modifier" class="col-sm-2 control-label " v-if="false">修改提交人:</label>
123
+ <div class="col-sm-2" v-if="false">
124
+ <input type="text" class="form-control " id="f_modifier" v-model="model.f_modifier" >
125
+ </div>
126
+ <label for="f_remark" class="col-sm-2 control-label">备注:</label>
127
+ <div class="col-sm-10">
128
+ <input type="text" class="form-control" id="f_remark"
129
+ v-model="model.f_remark">
130
+ </div>
131
+ </div>
132
+ <hr>
133
+ 气表档案:<span class="glyphicon glyphicon-plus" @click="addMeter"></span>
134
+ </form>
135
+ <div class="span">
136
+ <data-grid :model="model" partial='list' v-ref:grid>
137
+ <template partial='head'>
138
+ <tr>
139
+ <th>表号</th>
140
+ <th>卡号</th>
141
+ <th>生产厂家</th>
142
+ <th>计量类型</th>
143
+ <th>操作</th>
144
+ </tr>
145
+ </template>
146
+ <template partial='body'>
147
+ <td>{{row.f_meter_no}}</td>
148
+ <td>{{row.f_card_id}}</td>
149
+ <td>{{row.f_meter_brand}}</td>
150
+ <td>{{row.f_meter_measurement }}</td>
151
+ <td>
152
+ <span class="glyphicon glyphicon-remove" @click="$parent.$parent.deleteRow(row)"></span>&nbsp;&nbsp;
153
+ <span class="glyphicon glyphicon-edit" @click="$parent.$parent.editRow(row)"></span>
154
+ </td>
155
+ </template>
156
+ </data-grid>
157
+ </div>
158
+ <div class="auto">
159
+ <button :disabled='!($v.valid) || model.rows.length==0' @click="confirm()" type="button" class="btn btn-success">提&nbsp;&nbsp;&nbsp;交</button>
160
+ <button @click="$back()" type="button" class="btn btn-success">返&nbsp;&nbsp;&nbsp;回</button>
161
+ </div>
162
+ </validator>
163
+ </div>
164
+ </template>
165
+
166
+ <script>
167
+ import co from 'co'
168
+ import MessageBox from 'vue-client'
169
+ import Vue from 'vue'
170
+ import * as Util from '../Util'
171
+ import AppData from '../../stores/AppData'
172
+
173
+ let saveGen = function * (self) {
174
+ self.model.f_approved = '未审核'
175
+ self.model.f_modifier = self.f.name
176
+ self.model.f_modifier_id = self.f.id
177
+ self.model.f_subcompany = self.f_division[0]
178
+ self.model.f_last_check_date = self.f_last_check_date
179
+ self.model.f_archive_date = self.f_archive_date
180
+ self.model.f_residential_area = self.model.f_districtname
181
+ self.model.f_user_type = self.f_user_type[0]
182
+ self.model.f_last_check_state = self.f_last_check_state[0]
183
+ self.model.f_checker = self.f_checker_selected[0]
184
+ //let p = self.f_checker_selected[0].indexOf('-')
185
+ //self.model.f_checker = self.f_checker_selected[0].substring(0, p)
186
+ // self.model.f_checker = self.f_checker_selected[0].substring(p+1)
187
+ yield self.$resetpost('rs/logic/提交档案修改', { data: self.model })
188
+ // 通知项目保存成功。
189
+ self.$back()
190
+ }
191
+
192
+
193
+ export default {
194
+ props: ['f', 'model'],
195
+ title: '修改用户档案',
196
+ data () {
197
+ return {
198
+ //transient
199
+ f_division: [''],
200
+ f_divisions: Vue.f_subcompany != '' ? [{label: Vue.f_subcompany, value: Vue.f_subcompany}]: this.$appdata.getParam('安检系统用子公司'),
201
+ f_last_check_date: '',
202
+ f_archive_date: '',
203
+ row: {},
204
+ f_last_check_state: [''],
205
+ f_checker_selected: [''],
206
+ f_last_check_state_opt: this.$appdata.getParam('安检状态'),
207
+ f_user_type: [''],
208
+ f_user_type_opt: this.$appdata.getParam('用户类型'),
209
+ f_checkers: this.$appdata.getParam(Vue.f_subcompany + '安检员'),
210
+ }
211
+ },
212
+ ready () {
213
+ this.f_last_check_state = [this.model.f_last_check_state]
214
+ this.f_checker_selected = [this.model.f_checker + '-' + this.model.f_checker_id]
215
+ this.f_user_type = [this.model.f_user_type]
216
+ let that = this
217
+ this.$resetpost('rs/sql/提取表档案', {data:{f_userfile_id: this.model.id}}, {resolveMsg: null, rejectMsg: '提取表档案失败'}).then(
218
+ (response) => {
219
+ response.data.forEach ((item) => {
220
+ item.f_oldmeter_no = item.f_meter_no
221
+ item.f_meter_flag = '修改'
222
+ })
223
+ that.$set('model.rows', response.data)
224
+ }
225
+ )
226
+ },
227
+ methods: {
228
+ confirm () {
229
+ if(!this.f_checker_selected[0]) {
230
+ window.alert('请选择安检员!')
231
+ return
232
+ }
233
+ if (!this.f_division[0]) {
234
+ window.alert('请选择分公司!')
235
+ return
236
+ }
237
+ if (!this.f_last_check_state[0]) {
238
+ window.alert('请选择最后安检状态!')
239
+ return
240
+ }
241
+ if (!this.f_user_type[0]) {
242
+ window.alert('请选择用户类型!')
243
+ return
244
+ }
245
+ let gen = saveGen(this)
246
+ return co(gen)
247
+ },
248
+ editRow (row) {
249
+ this.$goto('meter-file', {model: row})
250
+ },
251
+ deleteRow (row) {
252
+ this.model.rows.splice(this.model.rows.indexOf(row), 1)
253
+ },
254
+ addMeter () {
255
+ this.row = {}
256
+ this.$goto('meter-file', {model:this.row}, 'self', this.addRow)
257
+ },
258
+ addRow () {
259
+ if (this.row.id) {
260
+ this.model.rows.push(this.row)
261
+ this.row.f_userfile_id = this.id
262
+ this.row.f_meter_flag = '新增'
263
+ }
264
+ }
265
+ },
266
+ watch: {
267
+ 'model' (val) {
268
+ this.f_division = [val.f_subcompany]
269
+ this.f_checker = val.f_checker
270
+ this.f_last_check_date = val.f_last_check_date
271
+ this.f_archive_date = val.f_archive_date
272
+ }
273
+ },
274
+ components: { MessageBox }
275
+ }
276
+
277
+ </script>
@@ -486,10 +486,10 @@
486
486
  commitDealDefect() {
487
487
  //tag
488
488
  //tag)
489
- // if (!this.deal.f_deal_path) {
490
- // this.$showMessage('处理后照片必须上传')
491
- // return
492
- // }
489
+ if (!this.deal.f_deal_path) {
490
+ this.$showMessage('处理后照片必须上传')
491
+ return
492
+ }
493
493
  if (this.isNeedDealSign && !this.deal.f_dealsign_path) {
494
494
  this.$showMessage('签名必须上传')
495
495
  return