telephone-clients 3.0.105-10 → 3.0.105-12

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": "telephone-clients",
3
- "version": "3.0.105-10",
3
+ "version": "3.0.105-12",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -256,7 +256,7 @@
256
256
  },
257
257
  data() {
258
258
  return {
259
- loading:false
259
+ loading:false,
260
260
  savebutten:false, // 工单保存按钮
261
261
  wwcbutten:false, // 未完成按钮
262
262
  wwxbutten:false, // 未维修按钮
@@ -0,0 +1,125 @@
1
+ <template>
2
+ <div id="pc-finduser-page">
3
+ <criteria-paged :model="model" v-ref:paged :simple="true">
4
+ <!-- <criteria partial='criteria'>
5
+ </criteria> -->
6
+ <data-grid :model="model" partial='list' v-ref:grid
7
+ class="list_area table_sy">
8
+ <template partial='head'>
9
+ <tr>
10
+ <th><nobr>操作</nobr></th>
11
+ <th><nobr>工单状态</nobr></th>
12
+ <th><nobr>工单类型</nobr></th>
13
+ <th><nobr>是否完成</nobr></th>
14
+ <th><nobr>工单编号</nobr></th>
15
+ <th><nobr>报修时间</nobr></th>
16
+ <th><nobr>报修电话</nobr></th>
17
+ <th><nobr>报修内容</nobr></th>
18
+ <th><nobr>用户地址</nobr></th>
19
+ <th><nobr>派单人员</nobr></th>
20
+ <th><nobr>维修人员</nobr></th>
21
+ <th><nobr>完成时间</nobr></th>
22
+ </tr>
23
+ </template>
24
+ <template partial='body'>
25
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>
26
+ <button class="button_search button_spacing" style="margin-right: 9px"
27
+ @click="$parent.$parent.$parent.showDetail(row)">详情
28
+ </button>
29
+ </nobr></td>
30
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr> {{ row.f_state ?row.f_state:(row.defname ?row.defname:'完成')}}</nobr></td>
31
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_workorder_type}}</nobr></td>
32
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_result_status?row.f_result_status:'未完成'}}</nobr></td>
33
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_service_id}}</nobr></td>
34
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_created_date}}</nobr></td>
35
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_phone}}</nobr></td>
36
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_remarks}}</nobr></td>
37
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_address}}</nobr></td>
38
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_single_man}}</nobr></td>
39
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_order_man}}</nobr></td>
40
+
41
+ <!--<td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_remarks}}</nobr></td>-->
42
+ <td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_date_leave}}</nobr></td>
43
+ </template>
44
+ <!--<template partial='foot'>
45
+ <td style="text-align:center">汇总</td>
46
+ <td></td>
47
+ <td></td>
48
+ <td >累计购气量:{{model.sums.f_pregas}}</td>
49
+ <td >累计金额:{{model.sums.f_totalcost}}</td>
50
+ <td >共{{model.count}}条</td>
51
+ </template>-->
52
+ </data-grid>
53
+ </criteria-paged>
54
+ <modal :show.sync="show" v-ref:modal backdrop="false">
55
+ <header slot="modal-header" class="modal-header">
56
+ 工单详情
57
+ </header>
58
+ <article slot="modal-body" class="modal-body">
59
+ <work-history :row-one="row" ></work-history>
60
+ </article>
61
+ <footer slot="modal-footer" class="modal-footer">
62
+ <button type="button" class="btn btn-success" @click='show = false'>关闭</button>
63
+ </footer>
64
+ </modal>
65
+ </div>
66
+ </template>
67
+
68
+ <script>
69
+ /**
70
+ *用户档案相关信息组件
71
+ */
72
+ import { PagedList } from 'vue-client'
73
+ export default {
74
+ title: '历史维修记录',
75
+ data () {
76
+ return {
77
+ model: new PagedList((this.user && this.user.isphone) ? '${this.$androidUtil.getProxyUrl()}/' : '' + 'rs/sql/serviceDetails', 5),
78
+ row: Object,
79
+ show:false,
80
+ }
81
+ },
82
+ props: {
83
+ user: {
84
+ type: Object
85
+ },
86
+ callObj:{
87
+ type: Object
88
+ },
89
+ clearflg:0
90
+ },
91
+ methods: {
92
+ showDetail(row){
93
+ console.log("996",row)
94
+ this.row = row
95
+ this.show = true
96
+ },
97
+ selected (row) {
98
+ if (this.row === row) {
99
+ this.row = null
100
+ } else {
101
+ this.row = row
102
+ }
103
+ },
104
+ isSelected (row) {
105
+ return this.row === row
106
+ }
107
+ },
108
+ watch : {
109
+ 'user' (val) {
110
+ this.model.rows = []
111
+ this.model.search(`f_userinfo_id = '${this.user.f_userinfo_id}'`)
112
+
113
+ },
114
+
115
+ 'clearflg'(){
116
+ this.model.rows = []
117
+ }
118
+ },
119
+ ready () {
120
+ if (this.user && this.user.f_userinfo_id) {
121
+ this.model.search(`f_userinfo_id = '${this.user.f_userinfo_id}'`)
122
+ }
123
+ }
124
+ }
125
+ </script>
@@ -4,6 +4,7 @@ import Vue from "vue";
4
4
  //pc和手机分别注册到两个文件中
5
5
  let specialComp = {
6
6
  // 工单详情子组件
7
+ 'repair-list': (resolve) => { require(['./pc/RepairList'], resolve) },
7
8
  'repairs-work': (resolve) => { require(['./pc/RepairsWork'], resolve) },
8
9
  'failure-edit': (resolve) => { require(['./pc/FailureEdit'], resolve) },
9
10
  'failure-edit-fire': (resolve) => { require(['./pc/FailureEditFire'], resolve) },