sale-client 3.6.473 → 3.6.474

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.
File without changes
@@ -0,0 +1,2 @@
1
+ #Mon Dec 30 14:38:17 CST 2024
2
+ gradle.version=5.2.1
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.473",
3
+ "version": "3.6.474",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,233 @@
1
+ <template>
2
+
3
+ <div style="" class="span">
4
+
5
+ <criteria-paged :model="model" v-ref:paged >
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search' >
7
+ <div v-show="$parent.$parent.isdeal" novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+
9
+ <div class="col-sm-2" style="float: left;padding-left: 8px">
10
+ <label class="font_normal_body">报警类型</label>
11
+ <v-select
12
+ style="width: 60%"
13
+ placeholder='报警类型'
14
+ :value.sync="model.f_meter_brand"
15
+ v-model="model.f_meter_brand"
16
+ :options='$parent.$parent.WarningType'
17
+ close-on-select
18
+ condition="f_error_type='{}'">
19
+ </v-select>
20
+ </div>
21
+
22
+ <div class="col-sm-2 ">
23
+ <label class="font_normal_body" style="word-break:keep-all;">起始时间</label>
24
+ <datepicker style="width: 60%" placeholder="起始时间"
25
+ :value.sync="model.f_start_date"
26
+ v-model="model.f_start_date"
27
+ :format="'yyyy-MM-dd HH:mm:ss'"
28
+ condition="f_insert_date > '{}'"
29
+ ></datepicker>
30
+ </div>
31
+ <div class="col-sm-2 " >
32
+ <label class="font_normal_body">&nbsp;至</label>
33
+ <datepicker style="width: 60%" placeholder="结束时间"
34
+ :value.sync="model.f_end_date"
35
+ v-model="model.f_end_date"
36
+ :format="'yyyy-MM-dd HH:mm:ss'"
37
+ condition="f_insert_date < '{}'"
38
+ ></datepicker>
39
+ </div>
40
+ <div style="float: right">
41
+ <button class="button_search" @click="search()" v-el:cba>查询</button>
42
+ </div>
43
+ </div>
44
+
45
+ </criteria>
46
+
47
+ <data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy">
48
+
49
+ <template partial='head'>
50
+ <tr style="margin-top: -10px">
51
+ <th>序号</th>
52
+ <th>上报时间</th>
53
+ <th>上报级别</th>
54
+ <th>报警类型</th>
55
+ <th>报警详情</th>
56
+ <th>最后一次报警时间</th>
57
+ <th>操作</th>
58
+ </tr>
59
+ </template>
60
+ <template partial='body'>
61
+ <tr>
62
+ <td style="text-align:center">{{$index+1}}</td>
63
+ <td style="text-align:center;width: 170px;">{{row.f_insert_date}}</td>
64
+ <td style="text-align:center;">{{row.f_error_level}}</td>
65
+ <td style="text-align:center;">{{row.f_error_type}}</td>
66
+ <td style="text-align:center;">{{row.f_error_msg}}</td>
67
+ <td style="text-align:center;">{{row.f_last_alarm_date}}</td>
68
+ <td style="text-align:center;" v-if="row.f_is_read == false || row.f_is_read === 0" >
69
+ <span ><a href="#" @click.stop="$parent.$parent.$parent.backSend1(row.id)">添加备注</a></span>
70
+ </td>
71
+ <td style="text-align:center;" v-if="row.f_is_read === 1"><span title="备注信息:{{row.f_error_reason}}">备注信息:{{row.f_error_reason}}</span></td>
72
+ </tr>
73
+
74
+ </template>
75
+
76
+ </data-grid>
77
+ </criteria-paged>
78
+ <modal :show.sync="watchshow" v-ref:modal backdrop="false">
79
+ <header slot="modal-header" class="modal-header">
80
+ <button type="button" class="close" @click="tableFault()"><span>&times;</span></button>
81
+ <h4 class="modal-title">信息备注</h4>
82
+ </header>
83
+ <article slot="modal-body" class="modal-body">
84
+ <div class="col-sm-12">
85
+ <label class="font_normal_body">添加信息备注</label>
86
+ <textarea name="name" rows="2" style="width: 100%"
87
+ class="ver-textarea" class="form-control"
88
+ placeholder='请填写信息备注'
89
+ v-model='f_error_reason'></textarea>
90
+ </div>
91
+ </article>
92
+ <footer slot="modal-footer" class="modal-footer">
93
+ <button v-show="watchshow" type="button" class="btn btn-default" @click='tableFault()'>取消</button>
94
+ <button v-show="watchshow" type="button" class="btn btn-danger btn-ln fr" @click='saveException()'>确认</button>
95
+ </footer>
96
+ </modal>
97
+ </div>
98
+ </template>
99
+
100
+ <script>
101
+ import Checkbox from 'vue-strap/src/Checkbox'
102
+ import { PagedList } from 'vue-client'
103
+ export default {
104
+ components: {Checkbox},
105
+ data () {
106
+ return {
107
+ watchshow: false,
108
+ cancelid: '',
109
+ condition: '',
110
+ error_condition: '',
111
+ f_error_reason: '',
112
+ searchobj: {},
113
+ model: new PagedList('rs/sql/singleTable_OrderBy', 20, {tablename: "'" + this.tablename + "'",
114
+ orderitem: "'" + this.orderitem + "'",
115
+ items: "'" + this.items + "'"})
116
+ }
117
+ },
118
+ name: 'WatchDealWarning',
119
+ props: {
120
+ searchobj: {},
121
+ isdeal: {},
122
+ tablename: {
123
+ type: String,
124
+ default: 't_exception'
125
+ },
126
+ orderitem: {
127
+ type: String,
128
+ default: 'f_insert_date desc'
129
+ },
130
+ items: {
131
+ type: String,
132
+ default: '*'
133
+ }
134
+ },
135
+ ready () {
136
+ this.$refs.paged.$refs.criteria.search()
137
+ },
138
+ methods: {
139
+
140
+ backSend1 (megrow) {
141
+ this.watchshow = true
142
+ this.cancelid = megrow
143
+ },
144
+
145
+ update () {
146
+ // 更改按钮
147
+ this.error_condition = `(`
148
+ // 拿到所有查到的对象遍历 选出已经勾选的并记录id
149
+ for (var row in this.$refs.paged.model.rows) {
150
+ if (this.$refs.paged.model.rows[row].f_is_read == true) {
151
+ this.error_condition = this.error_condition + this.$refs.paged.model.rows[row].id + ','
152
+ }
153
+ }
154
+ // 拼到条件
155
+ this.error_condition = this.error_condition.substring(0, this.error_condition.length - 1)
156
+ this.error_condition = this.error_condition + ')'
157
+ // 调用后台
158
+ this.$resetpost('rs/logic/iot_updateExceptionIsRead',
159
+ {data: {condition: this.error_condition}},
160
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
161
+ })
162
+ console.log(this.watchshow)
163
+ this.tableFault(this.error_condition)
164
+ this.search()
165
+ },
166
+ checked (e, val) {
167
+ val.f_is_read = e.target.checked
168
+ },
169
+ search (args) {
170
+ this.$refs.paged.model.rows = ''
171
+ if (this.isdeal) {
172
+ this.condition = `${args.condition} and f_is_read=1 and f_userfiles_id='${this.searchobj.f_userfiles_id}'`
173
+ this.model.search(this.condition, args.model)
174
+ } else {
175
+ this.condition = `f_is_read = 0 and ${args.condition} and f_userfiles_id='${this.searchobj.f_userfiles_id}'`
176
+ this.model.search(this.condition, args.model)
177
+ this.condition = '1=1'
178
+ }
179
+ },
180
+ tableFault (val) {
181
+ if (val) {
182
+ console.log('开启弹窗')
183
+ } else {
184
+ console.log('返回置空')
185
+ this.watchExce = {}
186
+ this.f_error_reason = ''
187
+ }
188
+ this.watchshow = !this.watchshow
189
+ },
190
+
191
+ saveException () {
192
+ let send = {
193
+ id: this.cancelid, // 当前记录ID
194
+ f_is_read: 1,
195
+ f_error_reason: this.f_error_reason // 备注原因
196
+ }
197
+ let param = {
198
+ tablename: 't_exception',
199
+ id: 1,
200
+ basedata: send
201
+ }
202
+ this.$resetpost('rs/logic/iot_saveTable', param).then(() => {
203
+ // this.params.rows.splice(index, 1)
204
+ this.watchshow = false
205
+ this.$refs.paged.$refs.criteria.search()
206
+ this.f_error_reason = ''
207
+ })
208
+ }
209
+ },
210
+ computed: {
211
+ WarningType () {
212
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报警类型')]
213
+ }
214
+ },
215
+ watch: {
216
+ // 监听查询对象
217
+ 'searchobj' (val) {
218
+ console.log('f_userfiles_id1:', val.f_userfiles_id)
219
+ if (this.searchobj != null) {
220
+ this.$refs.paged.$refs.criteria.search()
221
+ }
222
+ },
223
+ 'isdeal' (val) {
224
+ this.$refs.paged.$refs.criteria.search()
225
+ }
226
+
227
+ }
228
+ }
229
+ </script>
230
+
231
+ <style scoped>
232
+
233
+ </style>
@@ -11,4 +11,6 @@ export default function () {
11
11
 
12
12
  // 无卡收费
13
13
  Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo.vue'], resolve) })
14
+ // 待处理报警/已处理报警
15
+ Vue.component('watch-deal-warning', (resolve) => { require(['./WatchDealWarning'], resolve) })
14
16
  }