sale-client 3.5.147 → 3.5.148

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": "sale-client",
3
- "version": "3.5.147",
3
+ "version": "3.5.148",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -5,7 +5,7 @@
5
5
  <div style="margin-top: 2%;">
6
6
  <a style="font-size: 16px;font-weight: 500;">表具信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
7
7
  </div>
8
- <div class="row">
8
+ <div class="row" >
9
9
  <div class="col-sm-4 form-group" v-if="isiot" :class="[$m.f_meternumber.required ? 'has-error' : '']">
10
10
  <label for="f_meternumber" class="font_normal_body">&ensp;表&emsp;&emsp;号</label>
11
11
  <input type="text" class="input_search" style="width:60%" v-model="row.f_meternumber"
@@ -32,7 +32,7 @@
32
32
  <input type="number" class="input_search" style="width:60%" v-model="row.f_meter_base" placeholder='表底数'
33
33
  :disabled="!jurisdiction.includes('档案信息查询修改')" :readonly="!row.f_userfiles_id">
34
34
  </div>
35
- <div class="col-sm-4 form-group">
35
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
36
36
  <label for="f_meter_base" class="font_normal_body">&ensp;初始底数</label>
37
37
  <input type="number" class="input_search" style="width:60%" v-model="row.f_initial_base" placeholder='表底数'
38
38
  :disabled="!jurisdiction.includes('档案信息查询修改')">
@@ -53,32 +53,32 @@
53
53
  close-on-select
54
54
  v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
55
55
  </div>
56
- <div class="col-sm-4 form-group">
56
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
57
57
  <label for="f_meter_base" class="font_normal_body">&ensp;累购气量</label>
58
58
  <input type="number" class="input_search" style="width:60%" v-model="row.f_total_gas" placeholder='累购气量'
59
59
  :disabled="!jurisdiction.includes('档案信息查询修改')">
60
60
  </div>
61
- <div class="col-sm-4 form-group">
61
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
62
62
  <label for="f_meter_base" class="font_normal_body">表写卡累购气量</label>
63
63
  <input type="number" class="input_search" style="width:60%" v-model="row.f_write_totalgas" placeholder='表写卡累购气量'
64
64
  :disabled="!jurisdiction.includes('档案信息查询修改')">
65
65
  </div>
66
- <div class="col-sm-4 form-group">
66
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
67
67
  <label for="f_meter_base" class="font_normal_body">&ensp;累购金额</label>
68
68
  <input type="number" class="input_search" style="width:60%" v-model="row.f_total_fee" placeholder='累购金额'
69
69
  :disabled="!jurisdiction.includes('档案信息查询修改')">
70
70
  </div>
71
- <div class="col-sm-4 form-group">
71
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
72
72
  <label for="f_meter_base" class="font_normal_body">表写卡累购金额</label>
73
73
  <input type="number" class="input_search" style="width:60%" v-model="row.f_write_totalfee" placeholder='表写卡累购金额'
74
74
  :disabled="!jurisdiction.includes('档案信息查询修改')">
75
75
  </div>
76
- <div class="col-sm-4 form-group" v-show="row.f_meter_classify != '机表'">
76
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify != '机表'" title="涉及权限:【档案信息查询修改】">
77
77
  <label for="f_times" class="font_normal_body">&ensp;写卡次数</label>
78
78
  <input type="number" class="input_search" style="width:60%" v-model="row.f_times" placeholder='写卡次数'
79
79
  :disabled="!jurisdiction.includes('档案信息查询修改')">
80
80
  </div>
81
- <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表'">
81
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表'" title="涉及权限:【档案信息查询修改】">
82
82
  <label for="f_times" class="font_normal_body">物联网写卡次数</label>
83
83
  <input type="number" class="input_search" style="width:60%" v-model="row.f_iot_times" placeholder='物联网次数'
84
84
  :disabled="!jurisdiction.includes('档案信息查询修改')">
@@ -0,0 +1,231 @@
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
+ </tr>
58
+ </template>
59
+ <template partial='body'>
60
+ <tr>
61
+ <td style="text-align:center">{{$index+1}}</td>
62
+ <td style="text-align:center;width: 170px;">{{row.f_insert_date}}</td>
63
+ <td style="text-align:center;">{{row.f_error_level}}</td>
64
+ <td style="text-align:center;">{{row.f_error_type}}</td>
65
+ <td style="text-align:center;">{{row.f_error_msg}}</td>
66
+ <td style="text-align:center;" v-if="row.f_is_read == false" >
67
+ <span ><a href="#" @click.stop="$parent.$parent.$parent.backSend1(row.id)">故障处理</a></span>
68
+ </td>
69
+ <td style="text-align:center;" v-if="row.f_is_read === true"><span title="备注信息:{{row.f_error_reason}}">备注信息</span></td>
70
+ </tr>
71
+
72
+ </template>
73
+
74
+ </data-grid>
75
+ </criteria-paged>
76
+ <modal :show.sync="watchshow" v-ref:modal backdrop="false">
77
+ <header slot="modal-header" class="modal-header">
78
+ <button type="button" class="close" @click="tableFault()"><span>&times;</span></button>
79
+ <h4 class="modal-title">信息备注</h4>
80
+ </header>
81
+ <article slot="modal-body" class="modal-body">
82
+ <div class="col-sm-12">
83
+ <label class="font_normal_body">添加信息备注</label>
84
+ <textarea name="name" rows="2" style="width: 100%"
85
+ class="ver-textarea" class="form-control"
86
+ placeholder='请填写信息备注'
87
+ v-model='f_error_reason'></textarea>
88
+ </div>
89
+ </article>
90
+ <footer slot="modal-footer" class="modal-footer">
91
+ <button v-show="watchshow" type="button" class="btn btn-default" @click='tableFault()'>取消</button>
92
+ <button v-show="watchshow" type="button" class="btn btn-danger btn-ln fr" @click='saveException()'>确认</button>
93
+ </footer>
94
+ </modal>
95
+ </div>
96
+ </template>
97
+
98
+ <script>
99
+ import Checkbox from 'vue-strap/src/Checkbox'
100
+ import { PagedList } from 'vue-client'
101
+ export default {
102
+ components: {Checkbox},
103
+ data () {
104
+ return {
105
+ watchshow: false,
106
+ cancelid: '',
107
+ condition: '',
108
+ error_condition: '',
109
+ f_error_reason: '',
110
+ searchobj: {},
111
+ model: new PagedList('rs/sql/singleTable_OrderBy', 20, {tablename: "'" + this.tablename + "'",
112
+ orderitem: "'" + this.orderitem + "'",
113
+ items: "'" + this.items + "'"})
114
+ }
115
+ },
116
+ name: 'WatchDealWarning',
117
+ props: {
118
+ searchobj: {},
119
+ isdeal: {},
120
+ tablename: {
121
+ type: String,
122
+ default: 't_exception'
123
+ },
124
+ orderitem: {
125
+ type: String,
126
+ default: 'f_insert_date desc'
127
+ },
128
+ items: {
129
+ type: String,
130
+ default: '*'
131
+ }
132
+ },
133
+ ready () {
134
+ this.$refs.paged.$refs.criteria.search()
135
+ },
136
+ methods: {
137
+
138
+ backSend1 (megrow) {
139
+ this.watchshow = true
140
+ this.cancelid = megrow
141
+ },
142
+
143
+ update () {
144
+ // 更改按钮
145
+ this.error_condition = `(`
146
+ // 拿到所有查到的对象遍历 选出已经勾选的并记录id
147
+ for (var row in this.$refs.paged.model.rows) {
148
+ if (this.$refs.paged.model.rows[row].f_is_read == true) {
149
+ this.error_condition = this.error_condition + this.$refs.paged.model.rows[row].id + ','
150
+ }
151
+ }
152
+ // 拼到条件
153
+ this.error_condition = this.error_condition.substring(0, this.error_condition.length - 1)
154
+ this.error_condition = this.error_condition + ')'
155
+ // 调用后台
156
+ this.$resetpost('rs/logic/iot_updateExceptionIsRead',
157
+ {data: {condition: this.error_condition}},
158
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
159
+ })
160
+ console.log(this.watchshow)
161
+ this.tableFault(this.error_condition)
162
+ this.search()
163
+ },
164
+ checked (e, val) {
165
+ val.f_is_read = e.target.checked
166
+ },
167
+ search (args) {
168
+ this.$refs.paged.model.rows = ''
169
+ if (this.isdeal) {
170
+ this.condition = `${args.condition} and f_is_read=1 and f_userfiles_id='${this.searchobj.f_userfiles_id}'`
171
+ this.model.search(this.condition, args.model)
172
+ } else {
173
+ this.condition = `f_is_read = 0 and ${args.condition} and f_userfiles_id='${this.searchobj.f_userfiles_id}'`
174
+ this.model.search(this.condition, args.model)
175
+ this.condition = '1=1'
176
+ }
177
+ },
178
+ tableFault (val) {
179
+ if (val) {
180
+ console.log('开启弹窗')
181
+ } else {
182
+ console.log('返回置空')
183
+ this.watchExce = {}
184
+ this.f_error_reason = ''
185
+ }
186
+ this.watchshow = !this.watchshow
187
+ },
188
+
189
+ saveException () {
190
+ let send = {
191
+ id: this.cancelid, // 当前记录ID
192
+ f_is_read: 1,
193
+ f_error_reason: this.f_error_reason // 备注原因
194
+ }
195
+ let param = {
196
+ tablename: 't_exception',
197
+ id: 1,
198
+ basedata: send
199
+ }
200
+ this.$resetpost('rs/logic/iot_saveTable', param).then(() => {
201
+ // this.params.rows.splice(index, 1)
202
+ this.watchshow = false
203
+ this.$refs.paged.$refs.criteria.search()
204
+ this.f_error_reason = ''
205
+ })
206
+ }
207
+ },
208
+ computed: {
209
+ WarningType () {
210
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报警类型')]
211
+ }
212
+ },
213
+ watch: {
214
+ // 监听查询对象
215
+ 'searchobj' (val) {
216
+ console.log('f_userfiles_id1:', val.f_userfiles_id)
217
+ if (this.searchobj != null) {
218
+ this.$refs.paged.$refs.criteria.search()
219
+ }
220
+ },
221
+ 'isdeal' (val) {
222
+ this.$refs.paged.$refs.criteria.search()
223
+ }
224
+
225
+ }
226
+ }
227
+ </script>
228
+
229
+ <style scoped>
230
+
231
+ </style>
@@ -28,7 +28,8 @@ let specialComp = {
28
28
  'sale-web-meter-batch-operation-valve':(resolve) => { require(['./components/common/userinfo_detail/WebMeterBatchOperationValve'], resolve) },
29
29
  'sale-web-meter-operate':(resolve) => { require(['./components/common/userinfo_detail/WebMeterBatchOperate'], resolve) },
30
30
 
31
- 'edit-meter-info':(resolve) => { require(['./components/EditWebMeterInfo'], resolve) }
31
+ 'edit-meter-info':(resolve) => { require(['./components/EditWebMeterInfo'], resolve) },
32
+ 'watch-deal-warning':(resolve) => { require(['./components/common/WatchDealWarning.vue'], resolve) }
32
33
 
33
34
  }
34
35
  exports.specialComp = specialComp
package/src/sale.js CHANGED
@@ -689,8 +689,8 @@ export default function (filiale) {
689
689
  // 购气流水
690
690
  Vue.component('purchase-water', (resolve) => { require(['./components/revenue/base/PurchaseWater'], resolve) })
691
691
 
692
- // 用户基本信息
693
692
 
693
+ //单用户查询界面
694
694
  Vue.component('user-info-detail-manage', (resolve) => { require(['./components/common/userinfo_detail/UserInfoDetailManage'], resolve) })
695
695
  Vue.component('automatic-purse', (resolve) => { require(['./components/common/userinfo_detail/ic_detail/AutomaticPurse'], resolve) })
696
696
  Vue.component('user-base-info', (resolve) => { require(['./components/common/userinfo_detail/UserBaseInfo'], resolve) })