apply-clients 3.3.65 → 3.3.69

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.
@@ -110,10 +110,10 @@
110
110
  <div class="col-xs-8" >
111
111
  <v-select
112
112
  width="100%"
113
- v-model="model.f_is_later"
113
+ v-model="model.f_no_valid"
114
114
  placeholder='稍后处理'
115
- condition="f_is_later = '{}'"
116
- :value.sync="model.f_is_later"
115
+ condition="f_no_valid = '{}'"
116
+ :value.sync="model.f_no_valid"
117
117
  :options='$parent.$parent.laterList'
118
118
  class="select select_list"
119
119
  :value-single="true"
@@ -148,7 +148,7 @@
148
148
  </div>
149
149
  <div class="col-xs-12">
150
150
  <p class="col-xs-3 text-left font"><b>客户编号:</b></p>
151
- <p class="col-xs-9 text-left input-font">{{ row.f_userinfo_code }}</p>
151
+ <p :class="[ row.defname =='通气点火' && (row.f_apply_nature=='热水器' || row.f_apply_nature=='壁挂炉') ? 'redy' : (row.f_apply_nature=='热水器' || row.f_apply_nature=='壁挂炉' ? 'pred': (row.defname =='通气点火' ? 'p1':''))]" class="col-xs-9 text-left input-font">{{ row.f_userinfo_code }}</p>
152
152
  </div>
153
153
  <div class="col-xs-12">
154
154
  <p class="col-xs-3 text-left font"><b>报建类型:</b></p>
@@ -171,14 +171,51 @@
171
171
  <p class="col-xs-9 text-left input-font">{{ row.f_construction_remarks }}</p>
172
172
  </div>
173
173
 
174
+ <div class="col-xs-12">
175
+ <p class="col-xs-4 text-left font"><b>稍后处理备注:</b></p>
176
+ <p class="col-xs-8 text-left input-font">{{row.f_later_remarks}}</p>
177
+ </div>
178
+
179
+ <div class="col-xs-12" v-if="row.f_back_reason != null">
180
+ <p class="col-xs-4 text-left font"><b>退回备注:</b></p>
181
+ <p class="col-xs-8 text-left input-font">
182
+ <span style="color: red;font-family: 微软雅黑;font-weight: bold;font-size: 18px">请注意被退回原因为:{{row.f_back_reason}} 退回时间:{{row.f_date}}</span>
183
+ </p>
184
+ </div>
185
+
174
186
  <div class="col-xs-12 text-right">
175
- <button class="btn btn-info" @click="$parent.$parent.$parent.later(row)" v-if="row.f_is_later !== ''">稍后处理</button>
187
+ <button class="btn btn-info" type="button" @click="$parent.$parent.$parent.show(row) " v-if="row.f_no_valid != '有效'">稍后处理</button>
176
188
  <button class="btn btn-info" @click="$parent.$parent.$parent.click(row)">处理</button>
177
189
  </div>
178
190
  </div>
179
191
  </div>
180
192
  </list>
193
+
181
194
  </criteria-paged>
195
+ <validator name="v">
196
+ <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="稍后处理">
197
+ <header slot="modal-header" class="modal-header">
198
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
199
+ <h4 class="modal-title">稍后处理</h4>
200
+ </header>
201
+
202
+ <article slot="modal-body" class="modal-body clearfix">
203
+ <div class="form-group col-sm-12">
204
+ <label class="col-sm-2 control-label">稍后处理备注:</label>
205
+ <div class="col-sm-10">
206
+ <input type="textarea"
207
+ class="form-control input_view"
208
+ style="width: 100%"
209
+ v-model="laterapply.f_later_remarks" />
210
+ </div>
211
+ </div>
212
+ </article>
213
+
214
+ <footer slot="modal-footer" class="modal-footer">
215
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="later(selectdate)">稍后处理</button>
216
+ </footer>
217
+ </modal>
218
+ </validator>
182
219
  </div>
183
220
  </template>
184
221
  <script>
@@ -189,23 +226,27 @@ export default {
189
226
  title: '报建流程',
190
227
  data () {
191
228
  return {
229
+ selectdate: {},
230
+ showCharge: false,
192
231
  model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`, 20, {
193
232
  // model: new PagedList('rs/sql/checkuser', 20, {
194
233
  data: {
234
+
195
235
  id: Vue.user.id,
196
236
  orgid: Vue.user.orgid
197
237
  // id: '51953',
198
238
  // orgid: '10101'
199
- }
239
+ },
240
+ laterapply:{}
200
241
  }),
201
242
  criteriaShow: false,
202
243
  applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
244
+ // applytype:[{label: '全部', value: ''},{label: '增容报建', value: '增容报建'}],
203
245
  defnames: [{label: '全部', value: ''}],
204
246
  applyNatures: [{label: '全部', value: ''}], // 报建性质
205
247
  laterList: [
206
248
  {label: '全部', value: ''},
207
- {label: '', value: ''},
208
- {label: '否', value: '否'}
249
+ {label: '有效', value: '有效'}
209
250
  ]
210
251
  }
211
252
  },
@@ -213,18 +254,30 @@ export default {
213
254
  this.search()
214
255
  },
215
256
  methods: {
257
+ show(row){
258
+ debugger
259
+ this.selectdate = row
260
+ this.showCharge=true
261
+ },
216
262
  async later (row) {
217
- let res = await this.$showMessage('您确定要将此任务加入稍后处理吗?', ['confirm'])
218
-
219
- if (res === 'confirm') {
220
- row.f_is_later = '是'
221
- let res = await this.$resetpost(
222
- 'rs/entity/t_apply',
223
- row
224
- )
225
-
226
- this.$refs.cp.$refs.cri.search()
263
+ debugger
264
+ let http = new HttpResetClass()
265
+ let data = {
266
+ laterapply: this.laterapply,
267
+ selectdata: row,
268
+ user: Vue.user
227
269
  }
270
+ let res = await http.load('POST', 'rs/logic/laterprocessing', {data:data}, {
271
+ resolveMsg: null,
272
+ rejectMsg: '稍后处理记录保存失败!!!'
273
+ })
274
+ this.closeModal()
275
+ },
276
+
277
+ closeModal() {
278
+ this.showCharge = false
279
+ this.laterapply = {}
280
+ this.search()
228
281
  },
229
282
  dialNumber (phone) {
230
283
  this.$showMessage(`是否拨打电话:${phone}`, ['confirm']).then((res) => {
@@ -279,7 +332,7 @@ export default {
279
332
  },
280
333
  computed: {
281
334
  appDefnames () {
282
- // let list = [{label: '报装缴费', value: '报装缴费'}, {label: '通气点火', value: '通气点火'}]
335
+ // let list = [{label: '报装缴费', value: '报装缴费'}, {label: '通气点火', value: '通气点火'},{label: '工程施工', value: '工程施工'},{label: '工程派工', value: '工程派工'},{label: '点火派单', value: '点火派单'}]
283
336
  let list = this.$appdata.getParam('手机节点')
284
337
  return `(${list.map(item => `'${item.value}'`).toString()})`
285
338
  }
@@ -287,6 +340,15 @@ export default {
287
340
  }
288
341
  </script>
289
342
  <style scoped>
343
+ .pred{
344
+ color: red;
345
+ }
346
+ .p1 {
347
+ color: #ffaf4f;
348
+ }
349
+ .redy{
350
+ color: deeppink;
351
+ }
290
352
  .panel-self{
291
353
  border-radius: 10px;
292
354
  border:1px solid #499EDF;
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
  </list>
36
36
 
37
- <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
37
+ <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细" width="100%">
38
38
  <header slot="modal-header" class="modal-header">
39
39
  <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
40
40
  <h4 class="modal-title">安装明细</h4>
@@ -108,6 +108,7 @@
108
108
  <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
109
109
  <div class="col-xs-8">
110
110
  <input class="form-control input_view" style=""
111
+ onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
111
112
  type="number"
112
113
  placeholder="表读数"
113
114
  v-model="item.f_meter_base"
@@ -119,6 +120,7 @@
119
120
  <label class="col-xs-4 control-label">初始底数:</label>
120
121
  <div class="col-xs-8">
121
122
  <input class="form-control input_view" style=""
123
+ onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
122
124
  type="number"
123
125
  v-model="item.f_initial_base"
124
126
  :value="item.f_initial_base"
@@ -387,7 +389,7 @@ export default {
387
389
  condition: `ua.f_process_id = '${this.selectdata.f_process_id}'`
388
390
  }
389
391
 
390
- if (this.selectdata.f_apply_type === '团购转散户') {
392
+ if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建') {
391
393
  data.condition = `ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
392
394
  }
393
395
  let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {