manage-client 3.3.57 → 3.3.58

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": "manage-client",
3
- "version": "3.3.57",
3
+ "version": "3.3.58",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -157,7 +157,7 @@
157
157
  </div>
158
158
  </div>
159
159
  </criteria>
160
- <data-grid :model="model" class="list_area table_sy" id="queryinstruct" partial='list' v-ref:grid>
160
+ <data-grid :model="model" class="list_area table_sy" id="queryinstruct" partial='list' :modelval="$parent.$parent.modelval" v-ref:grid>
161
161
  <template partial='head'>
162
162
  <tr>
163
163
  <th style="text-align:center">
@@ -213,7 +213,15 @@
213
213
  <th style="text-align:center">
214
214
  <nobr>记录状态</nobr>
215
215
  </th>
216
- <th style="text-align:center"><nobr>组织机构</nobr></th>
216
+ <th style="text-align:center">
217
+ <nobr>组织机构</nobr>
218
+ </th>
219
+ <th style="text-align:center;">
220
+ <nobr>指令内容</nobr>
221
+ </th>
222
+ <th style="text-align:center">
223
+ <nobr>指令详情</nobr>
224
+ </th>
217
225
  </tr>
218
226
  </template>
219
227
  <template partial='body'>
@@ -257,9 +265,9 @@
257
265
  </td>
258
266
  <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
259
267
  <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
260
- <th style="text-align:center">
268
+ <td style="text-align:center">
261
269
  <nobr>{{row.f_collection}}</nobr>
262
- </th>
270
+ </td>
263
271
  <td style="text-align:center">
264
272
  <nobr>{{row.note}}</nobr>
265
273
  </td>
@@ -281,11 +289,24 @@
281
289
  <td style="text-align:center">
282
290
  <nobr>{{row.f_orgname}}</nobr>
283
291
  </td>
292
+ <td style="text-align:center;">
293
+ <nobr>{{row.f_instruct_content}}</nobr>
294
+ </td>
295
+ <td style="text-align:center">
296
+ <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.instructDetail(row)">指令详情</button>
297
+ </td>
284
298
  </tr>
285
299
  </template>
286
300
  </data-grid>
287
301
  </criteria-paged>
288
302
  </div>
303
+ <modal :show.sync="detailShow" v-if="detailShow" width="40%" style="width:auto;" v-ref:modal middle backdrop="false">
304
+ <article slot="modal-body">
305
+ <p class="text-center" style="font-size: 15px" v-html="f_instruct_content"></p>
306
+ </article>
307
+ <footer slot="modal-footer" class="modal-footer">
308
+ </footer>
309
+ </modal>
289
310
  </div>
290
311
  </template>
291
312
  <script>
@@ -342,16 +363,46 @@
342
363
  'f_orgname': '组织机构'
343
364
  }
344
365
  },
345
- instructtitle: []
366
+ instructtitle: [],
367
+ detailShow: false,
368
+ f_instruct_content: '',
369
+ modelval: [
370
+ '序号','客户编号','客户名称','客户地址','表号','气表品牌','指令类型','指令标题','执行状态','执行结果','指令生成人','指令生成时间',
371
+ '指令发送时间','上表时间','充值金额','操作内容','操作原因','操作人(记录)','操作时间(记录)','操作类型','记录状态','组织机构'
372
+ ]
346
373
  }
347
374
  },
348
375
  ready () {
349
376
  readyGen(this)
350
377
  this.$refs.paged.$refs.criteria.model.f_start_date = Util.toStandardDateString() + ' 00:00:00'
351
378
  this.$refs.paged.$refs.criteria.model.f_end_date = Util.toStandardDateString() + ' 23:59:59'
379
+ this.$refs.paged.$refs.grid.modelval = this.modelval
352
380
  //this.$refs.paged.$refs.criteria.search()
353
381
  },
354
382
  methods: {
383
+ instructDetail(row){
384
+ if (row.f_instruct_content != '{}') {
385
+ let data = JSON.parse(row.f_instruct_content)
386
+ console.log('看下具体的指令详情===>',data)
387
+ let str = ''
388
+ if (data.hasOwnProperty("Data")) {
389
+ console.log('看下具体的指令详情2===>',data.Data)
390
+ console.log('看下具体的指令详情2===>',typeof data.Data)
391
+ for (let key in data.Data) {
392
+ str = str + key + ':' + data.Data[key] + '</br>'
393
+ }
394
+ }
395
+ for (let key in data) {
396
+ if (key != 'Data'){
397
+ str = str + key + ':' + data[key] + '</br>'
398
+ }
399
+ }
400
+ this.f_instruct_content = str
401
+ this.detailShow = true
402
+ }else{
403
+ this.$showMessage('当前指令没有内容!!!', ['confirm'])
404
+ }
405
+ },
355
406
  hidden(){
356
407
  this.criteriaShow = !this.criteriaShow
357
408
  },
@@ -461,8 +512,11 @@
461
512
  this.f_orgid = `${this.f_orgid_new}`;
462
513
  //await this.$LoadParams.loadParam(this.f_orgid_new)
463
514
  }
464
- this.model.search(args.condition, args.model)
465
- this.initQueryParam();
515
+ await this.model.search(args.condition, args.model)
516
+ await this.initQueryParam();
517
+ await this.$refs.paged.$refs.grid.InitializedData()
518
+ await this.$refs.paged.$refs.grid.displayColumnSettings(undefined)
519
+
466
520
  },
467
521
 
468
522
  },