sale-client 4.1.1 → 4.1.2

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.
@@ -1,2 +1,2 @@
1
- #Thu Feb 27 12:01:45 CST 2025
1
+ #Mon Apr 28 13:42:54 CST 2025
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -8,7 +8,8 @@
8
8
  <button class="button_search" v-show="!warninginfo.data.state.info" @click="operational('files_complete')" style="width: max-content;">完善信息</button>
9
9
  <button class="button_search" v-show="warninginfo.data.state.blacklist&&!warninginfo.data.state.dibao" @click="operational('basic-living')" style="width: max-content;">低保续保</button>
10
10
  <button class="button_search" v-show="warninginfo.data.state.blacklist&&!warninginfo.data.state.dibao && warninginfo.data.state.dibaoend" @click="operational('stop-basic-living')" style="width: max-content;">停止续保</button>
11
- <button class="button_search" v-show="!(!warninginfo.data.state.dibao&&warninginfo.data.state.dibaoend)" @click="success()">确认</button>
11
+ <button class="button_search" v-show="!(!warninginfo.data.state.dibao&&warninginfo.data.state.dibaoend) && warninginfo.data.state.chargeAccount" @click="success()">确认</button>
12
+ <button class="button_search" v-show="!warninginfo.data.state.chargeAccount" @click="goToAccount()">去挂账管理</button>
12
13
  </span>
13
14
  </div>
14
15
  <p>{{authorityInformation}}</p>
@@ -65,6 +66,13 @@
65
66
  }
66
67
  },
67
68
  methods: {
69
+ goToAccount () {
70
+ console.log('点击了去挂帐管理')
71
+ if (window.parent !== window) {
72
+ window.parent.postMessage({type: 'route', path:'/duizhang/credit'}, '*')
73
+ this.close()
74
+ }
75
+ },
68
76
  close () {
69
77
  this.$emit('close')
70
78
  },
@@ -0,0 +1,235 @@
1
+ <template >
2
+ <div class="flex" style="justify-content: space-between;">
3
+ <div @keyup.enter="search" style="">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
6
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">开始时间</label>
10
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
11
+ class="datepicker"
12
+ condition="f_operate_date >= '{} 00:00:00' "
13
+ placeholder="起始时间"
14
+ style="width:60%"
15
+ v-model="model.f_start_date"
16
+ ></datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group" >
19
+ <label class="font_normal_body" >结束时间</label>
20
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
21
+ class="datepicker"
22
+ condition="f_operate_date <= '{} 23:59:59' "
23
+ placeholder="结束时间"
24
+ style="width:60%"
25
+ v-model="model.f_end_date"
26
+ ></datepicker>
27
+ </div>
28
+
29
+ <div style="float: right">
30
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
31
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
32
+ @print-data="$parent.$parent.print()" print-name="变更查询"></print-data>
33
+ </div>
34
+ </div>
35
+
36
+
37
+ </div>
38
+
39
+ </criteria>
40
+ <data-grid :model="model" class="list_area table_sy" class="list_area table_sy" partial='list' v-ref:grid>
41
+ <template partial='head'>
42
+ <tr>
43
+ <th><nobr>修改列</nobr></th>
44
+ <th><nobr>旧修改内容</nobr></th>
45
+ <th><nobr>新修改内容</nobr></th>
46
+ <th><nobr>操作状态 </nobr></th>
47
+ <th><nobr>操作人 </nobr></th>
48
+ <th><nobr>操作日期</nobr></th>
49
+ </tr>
50
+ </template>
51
+ <template partial='body' partial='list' v-ref:grid>
52
+ <tr >
53
+ <td style="text-align:center">{{row.f_field_name}}</td>
54
+ <td style="text-align:center">{{row.f_used_content}}</td>
55
+ <td style="text-align:center">{{row.f_new_content}}</td>
56
+ <td style="text-align:center">{{row.f_state}}</td>
57
+ <td style="text-align:center">{{row.f_operator}}</td>
58
+ <td style="text-align:center">{{row.f_operate_date}}</td>
59
+ </tr>
60
+ </template>
61
+ <template partial='foot'></template>
62
+ </data-grid>
63
+ </criteria-paged>
64
+ </div>
65
+ <!-- <table class="table-hover">-->
66
+ <!-- <tr class="table-bordered" style="position: relative">-->
67
+ <!-- <td-->
68
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
69
+ <!-- 汇总信息-->
70
+ <!-- </td>-->
71
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
72
+ <!-- 气量合计:&emsp;{{model.sums.f_oughtamount}}-->
73
+ <!-- </td>-->
74
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
75
+ <!-- 金额合计:&emsp;{{model.sums.f_oughtfee}}-->
76
+ <!-- </td>-->
77
+ <!-- </tr>-->
78
+ <!-- </table>-->
79
+ </div>
80
+
81
+ </template>
82
+
83
+ <script>
84
+ import {HttpResetClass, PagedList} from 'vue-client'
85
+ export default {
86
+ title: '变更记录',
87
+ data () {
88
+ return {
89
+ condition: `f_user_id = '${this.row.f_user_id}'`,
90
+ model: new PagedList('api/af-revenue/sql/getChangeRecord', 20, {}),
91
+ // 控制单选
92
+ radio: [],
93
+ // 选中的页
94
+ all: [],
95
+ // row数据
96
+ rowsdata: [],
97
+ fields: {'f_userinfo_code': '用户编号',
98
+ 'f_user_name': '姓名',
99
+ 'f_used_content': '旧修改内容',
100
+ 'f_new_content': '新修改内容',
101
+ 'f_state': '操作状态',
102
+ 'f_operator': '操作人',
103
+ 'f_operate_date': '操作日期'},
104
+ defaultfield: [
105
+ 'f_userinfo_code',
106
+ 'f_user_name',
107
+ 'f_used_content',
108
+ 'f_new_content',
109
+ 'f_state',
110
+ 'f_operator',
111
+ 'f_operate_date'
112
+ ],
113
+ printModel: {
114
+ rows: []
115
+ }
116
+ }
117
+ },
118
+ props: ['row'],
119
+ ready () {
120
+ this.$refs.paged.$refs.criteria.search()
121
+ // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
122
+ // for(let i in this.all){
123
+ // this.money+=i.f_oughtamount
124
+ // this.gas+=i.f_oughtfee
125
+ // }
126
+ },
127
+ methods: {
128
+ async search () {
129
+ this.condition = `f_userinfo_id = '${this.row.f_userinfo_id}' and f_orgid = '${this.$login.f.orgid}' and ${this.$refs.paged.$refs.criteria.condition}`
130
+ this.model.search(this.condition, this.model)
131
+ let http = new HttpResetClass()
132
+ let res = await http.load('POST', 'api/af-revenue/sql/getChangeRecord', {
133
+ data: {
134
+ condition: this.condition
135
+ }
136
+ }, {resolveMsg: null, rejectMsg: null})
137
+ this.printModel.rows = res.data
138
+ },
139
+
140
+ // 多选框初始化
141
+ selectInit () {
142
+ this.rowsdata = []
143
+ this.all = []
144
+ this.radio = []
145
+ },
146
+ print () {
147
+ this.selectInit()
148
+ },
149
+ select () {
150
+ let index = this.model.pageIndex - 1
151
+ if (!this.radio[index]) {
152
+ this.radio.$set(index, [])
153
+ }
154
+ if (this.all[index]) {
155
+ // 数据
156
+ this.rowsdata[index] = Object.assign([], this.model.rows)
157
+ // 勾选
158
+ for (var i = 0; i < this.model.rows.length; i++) {
159
+ this.radio[index].$set(i, true)
160
+ }
161
+ } else {
162
+ // 数据
163
+ this.rowsdata[index] = []
164
+ // 不勾选
165
+ for (var i = 0; i < this.model.rows.length; i++) {
166
+ this.radio[index].$set(i, false)
167
+ }
168
+ }
169
+ let z = 0
170
+ for (let i = 0; i < this.all.length; i++) {
171
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
172
+ this.printModel.rows[z++] = this.rowsdata[i][j]
173
+ }
174
+ }
175
+ },
176
+ selectOne (event, row, i) {
177
+ let index = this.model.pageIndex - 1
178
+ if (!this.rowsdata[index]) {
179
+ this.rowsdata[index] = []
180
+ }
181
+ if (!this.radio[index]) {
182
+ this.radio.$set(index, [])
183
+ }
184
+ if (event.target.checked) {
185
+ // 数据
186
+ this.rowsdata[index][i] = row
187
+ // 勾选
188
+ this.radio[index].$set(i, true)
189
+ // 判断是否全部选中
190
+ var allState = true
191
+ if (this.model.rows.length != this.radio[index].length) {
192
+ allState = false
193
+ }
194
+ for (var state of this.radio[index]) {
195
+ if (!state) {
196
+ allState = false
197
+ }
198
+ }
199
+ if (allState) {
200
+ this.all.$set(index, true)
201
+ } else {
202
+ this.all.$set(index, false)
203
+ }
204
+ } else {
205
+ // 数据
206
+ this.rowsdata[index][i] = []
207
+ // 不勾选
208
+ this.radio[index].$set(i, false)
209
+ // 任意取消一个则全选状态设为false
210
+ this.all.$set(index, false)
211
+ }
212
+ let z = 0
213
+ this.printModel.rows = []
214
+ for (let i = 0; i < this.all.length; i++) {
215
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
216
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
217
+ this.printModel.rows[z++] = this.rowsdata[i][j]
218
+ }
219
+ }
220
+ }
221
+ }
222
+ },
223
+ computed: {
224
+ ischecked () {
225
+ return function (index, i) {
226
+ if (!this.radio[index]) {
227
+ return false
228
+ }
229
+ return this.radio[index][i]
230
+ }
231
+ }
232
+ }
233
+ }
234
+ </script>
235
+
@@ -147,7 +147,7 @@
147
147
  import WatchCollection from './WatchCollection'
148
148
  import WatchWarning from './../../components/common/userinfo_detail/iot_detail/WatchWarning'
149
149
  import PriceChangeQueryUser from './../../components/common/userinfo_detail/ic_detail/PriceChangeQueryUser'
150
- import ChangeRecord from './../../components/common/userinfo_detail/ic_detail/ChangeRecord'
150
+ import ChangeRecord from './ChangeRecord'
151
151
  import PriceAdjustmentQueryUser from './../../components/common/userinfo_detail/ic_detail/PriceAdjustmentQueryUser'
152
152
  import MeterParam from './../../components/common/userinfo_detail/ic_detail/MeterParam'
153
153
  import DeveiceRecord from './../../components/common/userinfo_detail/ic_detail/DeveiceRecord'