sale-client 3.7.19 → 3.7.21

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.
@@ -96,7 +96,6 @@
96
96
  <saletab header="合同查看" v-if="permission('合同查看')">
97
97
  <contract-signing-list :row="row" v-if="show == '合同查看'" @deal-msg="dealMsg"></contract-signing-list>
98
98
  </saletab>
99
- s
100
99
  <!-- <saletab header="报装流转记录" v-if="permission('报装流转记录查看')">-->
101
100
  <!-- <supervisory-control :row="row" ></supervisory-control>-->
102
101
  <!-- </saletab>-->
@@ -0,0 +1,219 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
3
+ <div class="flex">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.selfSearch'>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <!-- 用户姓名查询 -->
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">用户姓名</label>
11
+ <input type="text" class="input_search"
12
+ style="width:60%"
13
+ v-model="model.f_user_name"
14
+ condition="f_user_name like '%{}%'"
15
+ placeholder="请输入用户姓名"/>
16
+ </div>
17
+
18
+ <!-- 用户标识查询 -->
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">用户标识</label>
21
+ <input type="text" class="input_search"
22
+ style="width:60%"
23
+ v-model="model.f_user_id"
24
+ condition="f_user_id like '%{}%'"
25
+ placeholder="请输入用户标识"/>
26
+ </div>
27
+
28
+ <!-- 回复人查询 -->
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">回复人</label>
31
+ <input type="text" class="input_search"
32
+ style="width:60%"
33
+ v-model="model.f_attendant"
34
+ condition="f_attendant like '%{}%'"
35
+ placeholder="请输入回复人"/>
36
+ </div>
37
+
38
+ <!-- 查询按钮 -->
39
+ <div class="span col-sm-2 form-group button-range" style="float: right">
40
+ <button class="button_search button_spacing" @click="search()" v-el:cx>查询</button>
41
+ <button class="button_clear button_spacing" @click="clear">清空</button>
42
+ <div style="float: right" class="button_spacing"
43
+ :class="{'button_shrink_top': criteriaShow,'button_shrink_bottom': !criteriaShow}"
44
+ @click="criteriaShow = !criteriaShow"></div>
45
+ </div>
46
+ </div>
47
+
48
+ <!-- 扩展查询条件 -->
49
+ <div class="row" v-show="criteriaShow">
50
+ <!-- 转人工时间范围 -->
51
+ <div class="col-sm-3 form-group">
52
+ <label class="font_normal_body">转人工起始时间</label>
53
+ <datepicker placeholder='转人工起始时间' style="width:60%"
54
+ v-model="model.ivrStartDate"
55
+ :value.sync="model.ivrStartDate"
56
+ :format="'yyyy-MM-dd HH:mm:ss'"
57
+ :show-reset-button="true"
58
+ condition="f_ivr_time >= '{}'">
59
+ </datepicker>
60
+ </div>
61
+ <div class="col-sm-3 form-group">
62
+ <label class="font_normal_body">转人工结束时间</label>
63
+ <datepicker placeholder='转人工结束时间' style="width:60%"
64
+ v-model="model.ivrEndDate"
65
+ :value.sync="model.ivrEndDate"
66
+ :format="'yyyy-MM-dd HH:mm:ss'"
67
+ :show-reset-button="true"
68
+ condition="f_ivr_time <= '{}'">
69
+ </datepicker>
70
+ </div>
71
+
72
+ <!-- 人工回复时间范围 -->
73
+ <div class="col-sm-3 form-group">
74
+ <label class="font_normal_body">回复起始时间</label>
75
+ <datepicker placeholder='回复起始时间' style="width:60%"
76
+ v-model="model.msgStartDate"
77
+ :value.sync="model.msgStartDate"
78
+ :format="'yyyy-MM-dd HH:mm:ss'"
79
+ :show-reset-button="true"
80
+ condition="f_msg_time >= '{}'">
81
+ </datepicker>
82
+ </div>
83
+ <div class="col-sm-3 form-group">
84
+ <label class="font_normal_body">回复结束时间</label>
85
+ <datepicker placeholder='回复结束时间' style="width:60%"
86
+ v-model="model.msgEndDate"
87
+ :value.sync="model.msgEndDate"
88
+ :format="'yyyy-MM-dd HH:mm:ss'"
89
+ :show-reset-button="true"
90
+ condition="f_msg_time <= '{}'">
91
+ </datepicker>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ </criteria>
96
+
97
+ <!-- 数据表格 -->
98
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
101
+ <th>序号</th>
102
+ <th>用户姓名</th>
103
+ <th>用户标识</th>
104
+ <th>转人工时间</th>
105
+ <th>人工回复时间</th>
106
+ <th>回复人</th>
107
+ <th>评价等级</th>
108
+ </tr>
109
+ </template>
110
+ <template partial='body'>
111
+ <tr>
112
+ <td style="text-align:center">{{$index+1}}</td>
113
+ <td style="text-align:center">{{row.f_user_name}}</td>
114
+ <td style="text-align:center">{{row.f_user_id}}</td>
115
+ <td style="text-align:center">{{row.f_ivr_time}}</td>
116
+ <td style="text-align:center">{{row.f_msg_time}}</td>
117
+ <td style="text-align:center">{{row.f_attendant}}</td>
118
+ <td style="text-align:center">{{row.f_rate}}</td>
119
+ </tr>
120
+ </template>
121
+ </data-grid>
122
+ </criteria-paged>
123
+ </div>
124
+ </div>
125
+ </template>
126
+
127
+ <script>
128
+ import { PagedList } from 'vue-client'
129
+
130
+ export default {
131
+ title: '转人工管理',
132
+ data() {
133
+ return {
134
+ model: new PagedList('rs/sql/saleSingleTable', 20, {
135
+ tablename: '`t_text_log`',
136
+ items: '`*`'
137
+ }),
138
+ criteriaShow: false,
139
+ condition2: '',
140
+ rateOptions: [
141
+ {label: '全部', value: ''},
142
+ {label: '1星', value: 1},
143
+ {label: '2星', value: 2},
144
+ {label: '3星', value: 3},
145
+ {label: '4星', value: 4},
146
+ {label: '5星', value: 5}
147
+ ]
148
+ }
149
+ },
150
+ ready() {
151
+ this.search()
152
+ },
153
+ methods: {
154
+ search() {
155
+ this.selfSearch({condition: '1=1', model: this.model})
156
+ },
157
+
158
+ clear() {
159
+ // 清空所有查询条件
160
+ this.model.f_user_name = ''
161
+ this.model.f_user_id = ''
162
+ this.model.f_attendant = ''
163
+ this.model.f_rate = ''
164
+ this.model.ivrStartDate = ''
165
+ this.model.ivrEndDate = ''
166
+ this.model.msgStartDate = ''
167
+ this.model.msgEndDate = ''
168
+
169
+ // 清空后自动查询
170
+ this.search()
171
+ },
172
+
173
+ selfSearch(args) {
174
+ let condition = args.condition || '1=1'
175
+
176
+ // 用户姓名条件
177
+ if (this.model.f_user_name) {
178
+ condition += ` and f_user_name like '%${this.model.f_user_name}%'`
179
+ }
180
+
181
+ // 用户标识条件
182
+ if (this.model.f_user_id) {
183
+ condition += ` and f_user_id like '%${this.model.f_user_id}%'`
184
+ }
185
+
186
+ // 回复人条件
187
+ if (this.model.f_attendant) {
188
+ condition += ` and f_attendant like '%${this.model.f_attendant}%'`
189
+ }
190
+
191
+
192
+ // 转人工时间范围条件 - 使用 SQL Server 兼容的格式
193
+ if (this.model.ivrStartDate && this.model.ivrEndDate) {
194
+ condition += ` and f_ivr_time between '${this.model.ivrStartDate}' and '${this.model.ivrEndDate}'`
195
+ } else if (this.model.ivrStartDate) {
196
+ condition += ` and f_ivr_time >= '${this.model.ivrStartDate}'`
197
+ } else if (this.model.ivrEndDate) {
198
+ condition += ` and f_ivr_time <= '${this.model.ivrEndDate}'`
199
+ }
200
+
201
+ // 人工回复时间范围条件 - 使用 SQL Server 兼容的格式
202
+ if (this.model.msgStartDate && this.model.msgEndDate) {
203
+ condition += ` and f_msg_time between '${this.model.msgStartDate}' and '${this.model.msgEndDate}'`
204
+ } else if (this.model.msgStartDate) {
205
+ condition += ` and f_msg_time >= '${this.model.msgStartDate}'`
206
+ } else if (this.model.msgEndDate) {
207
+ condition += ` and f_msg_time <= '${this.model.msgEndDate}'`
208
+ }
209
+
210
+ console.log('转人工管理查询条件:', condition)
211
+ this.condition2 = condition
212
+ this.model.search(condition, args.model)
213
+ }
214
+ }
215
+ }
216
+ </script>
217
+
218
+ <style lang="less" scoped>
219
+ </style>