sale-client 3.6.419 → 3.6.451

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
- #Wed Oct 30 09:57:55 CST 2024
1
+ #Wed Nov 20 11:54:44 CST 2024
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.419",
3
+ "version": "3.6.451",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -114,13 +114,13 @@
114
114
  </div>
115
115
  </div>
116
116
  <div class="row auto">
117
- <div class="form-group form-input-group" title="参数:操作时间, 权限:【其他收费金额修改】">
117
+ <div class="form-group form-input-group" title="权限:【其他收费金额修改】">
118
118
  <label for="" class="control-label">数量:</label>
119
119
  <input type="text" width="300px" class="form-control" v-model="mingxi.number" :disabled="!editcollection">
120
120
  </div>
121
121
  </div>
122
122
  <div class="row auto">
123
- <div class="form-group form-input-group" title="参数:操作时间, 权限:【其他收费金额修改】">
123
+ <div class="form-group form-input-group" title="权限:【其他收费金额修改】">
124
124
  <label for="" class="control-label">单价:</label>
125
125
  <input type="text" width="300px" class="form-control" v-model="mingxi.unitprice" :disabled="!editcollection" >
126
126
  </div>
@@ -88,11 +88,11 @@
88
88
  </div>
89
89
 
90
90
  <div style="text-align:right;height:auto;margin-top:6px;">
91
- <button class="button_search" type="button" style="width:80px;" @click="confirm('拉黑')" v-show="!isBlackList && model.isblacklist =='false'" :disabled='!$v.valid'>
91
+ <button class="button_search" type="button" style="width:80px;" @click="confirm('拉黑')" v-show="model.isblacklist =='false'" :disabled='!$v.valid'>
92
92
  拉黑
93
93
  </button>
94
94
  <button class="button_search" type="button" style="width:80px;" @click="confirm('取消拉黑')"
95
- v-show="isBlackList || model.isblacklist =='true'" :disabled='!$v.valid'>
95
+ v-show="model.isblacklist =='true'" :disabled='!$v.valid'>
96
96
  取消拉黑
97
97
  </button>
98
98
  <button class="button_export" type="button" style="width:80px;" @click="close()">取消</button>
@@ -130,6 +130,7 @@
130
130
  self.model.f_limit_value = res.data[0].f_limit_value
131
131
  self.model.f_limit_times = res.data[0].f_limit_times
132
132
  self.model.f_limit_amount = res.data[0].f_limit_amount
133
+ self.model.isblacklist = res.data[0].isblacklist
133
134
  self.model.isshow = true
134
135
  if (typeof res.data[0].f_limit_type === 'undefined') {
135
136
  self.f_limit = '限购气量'
@@ -179,22 +180,11 @@
179
180
  }
180
181
  },
181
182
  ready () {
182
- if (this.data) {
183
- this.isBlackList = true
184
- initGen(this, this.data)
185
- } else {
186
- this.initModel()
187
- }
183
+ initGen(this, this.data)
188
184
  },
189
185
  watch: {
190
186
  'data' (val) {
191
- if (val) {
192
- this.isBlackList = true
193
- initGen(this, val)
194
- } else {
195
- this.isBlackList = false
196
- this.initModel()
197
- }
187
+ initGen(this, val)
198
188
  }
199
189
  },
200
190
  methods: {
@@ -155,6 +155,16 @@
155
155
  <template partial='foot'></template>
156
156
  </data-grid>
157
157
  </criteria-paged>
158
+ <modal :show.sync="selectShow" title="选择用户" v-ref:modal width="70%" backdrop="false">
159
+ <article slot="modal-body" class="modal-body">
160
+ <black-user-select
161
+ v-if="selectShow"
162
+ @select-changed="selected"
163
+ ></black-user-select>
164
+ </article>
165
+ <footer slot="modal-footer">
166
+ </footer>
167
+ </modal>
158
168
  </div>
159
169
  </template>
160
170
 
@@ -171,6 +181,7 @@
171
181
  user: []
172
182
  },
173
183
  criteriaShow: false,
184
+ selectShow: false,
174
185
  blackImport: '',
175
186
  model: new PagedList('rs/sql/sale_getBlackList', 20),
176
187
  // 公司下拉
@@ -202,6 +213,11 @@
202
213
  this.search()
203
214
  },
204
215
  methods: {
216
+ selected (row) {
217
+ console.log(row)
218
+ this.selectShow = false
219
+ this.$dispatch('select-changed', row)
220
+ },
205
221
  getAuthority () {
206
222
  if (this.$login.r.find(value => value == '黑名单导入')) {
207
223
  this.blackImport = '黑名单导入'
@@ -251,7 +267,9 @@
251
267
  return
252
268
  }
253
269
  this.style = 'col-sm-3'
254
- this.$dispatch('add')
270
+ // this.$dispatch('add')
271
+ this.selectShow = true
272
+ this.$parent.isdetail = false
255
273
  },
256
274
  dblclick (val) {
257
275
  console.log(val)
@@ -0,0 +1,145 @@
1
+ <template>
2
+ <div class="flex-auto" style="flex:1;">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
5
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
+ <div class="row">
7
+ <res-select-group :show-component="['company']"
8
+ :initres="$parent.$parent.initres"
9
+ @re-res="$parent.$parent.getorg"
10
+ :style="$parent.$parent.style"
11
+ v-ref:sel>
12
+ </res-select-group>
13
+ <div class="form-group col-sm-3">
14
+ <label class="font_normal_body">用户编号</label>
15
+ <input class="input_search" condition="f_userinfo_code like '%{}%'" placeholder="用户编号" style="width:60%" type="text" v-model="model.ename"
16
+ />
17
+ </div>
18
+ <div class="form-group col-sm-3">
19
+ <label class="font_normal_body">用户姓名</label>
20
+ <input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%" type="text" v-model="model.name"
21
+ />
22
+ </div>
23
+ <div class="form-group col-sm-3 button-range" style="padding-right: 10px">
24
+ <button @click="$parent.$parent.search()" class="button_search button_spacing"
25
+ style="width:80px;margin-left:30px;" v-el:cx>查询
26
+ </button>
27
+ <div
28
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
29
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
30
+ </div>
31
+ </div>
32
+ <div class="row" v-if="$parent.$parent.criteriaShow">
33
+ <div class="form-group col-sm-3">
34
+ <label class="font_normal_body">电&emsp;&emsp;话</label>
35
+ <input class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%" type="text" v-model="model.f_user_phone">
36
+ </div>
37
+ <div class="form-group col-sm-3">
38
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
39
+ <input class="input_search" condition="f_meternumber = '{}'" placeholder='表号' style="width:60%" type="text" v-model="model.f_meternumber">
40
+ </div>
41
+ <div class="form-group col-sm-3">
42
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
43
+ <input class="input_search" condition="f_card_id = '{}'" placeholder='卡号' style="width:60%" type="text" v-model="model.f_card_id">
44
+ </div>
45
+ <div class="form-group col-sm-3">
46
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
47
+ <input class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%" type="text" v-model="model.f_address">
48
+ </div>
49
+
50
+ </div>
51
+
52
+ </div>
53
+ </criteria>
54
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
55
+ <template partial='head'>
56
+ <tr>
57
+ <th style="text-align: center;">用户编号</th>
58
+ <th style="text-align: center;">姓名</th>
59
+ <th style="text-align: center;">表号</th>
60
+ <th style="text-align: center;">卡号</th>
61
+ <th style="text-align: center;">电话</th>
62
+ <th style="text-align: center;">地址</th>
63
+ <th style="text-align: center;">操作</th>
64
+ </tr>
65
+ </template>
66
+ <template partial='body'>
67
+ <td style="text-align: center;">{{ row.f_userinfo_code }}</td>
68
+ <td style="text-align: center;">{{ row.f_user_name }}</td>
69
+ <td style="text-align: center;">{{ row.f_meternumber }}</td>
70
+ <td style="text-align: center;">{{ row.f_card_id }}</td>
71
+ <td style="text-align: center;">{{ row.f_user_phone }}</td>
72
+ <td style="text-align: center;">{{ row.f_address }}</td>
73
+ <td style="text-align: center;" class="row auto">
74
+ <nobr>
75
+ <button type="button"
76
+ name="button"
77
+ class="button_search button_spacing width-60"
78
+ @click.stop="$parent.$parent.$parent.select(row)">
79
+ 选择
80
+ </button>
81
+ </nobr>
82
+ </td>
83
+ </template>
84
+ <template partial='foot'></template>
85
+ </data-grid>
86
+ </criteria-paged>
87
+ </div>
88
+ </template>
89
+
90
+ <script>
91
+ import {PagedList} from 'vue-client'
92
+
93
+ export default {
94
+ data () {
95
+ return {
96
+ initres: {
97
+ org: [this.$login.f.orgid],
98
+ dep: [],
99
+ user: []
100
+ },
101
+ style: 'form-group col-sm-3',
102
+ criteriaShow: false,
103
+ f_orgid: '',
104
+ model: new PagedList('rs/sql/sale_getBlackSelectUser', 10)
105
+ }
106
+ },
107
+ props: {
108
+ },
109
+ ready () {
110
+ this.search()
111
+ },
112
+ methods: {
113
+ select (row) {
114
+ console.log('选中了用户', row)
115
+ this.$dispatch('select-changed', { val: row })
116
+ },
117
+ async getRes (condition, obj) {
118
+ console.log('condition =', condition)
119
+ console.log('obj =', obj)
120
+ },
121
+ hidden () {
122
+ this.criteriaShow = !this.criteriaShow
123
+ },
124
+ search () {
125
+ this.$refs.paged.$refs.cri.search()
126
+ this.$dispatch('search')
127
+ },
128
+ getorg (val) {
129
+ this.f_orgid = val
130
+ },
131
+ selfSearch (args) {
132
+ if (!this.f_orgid) {
133
+ this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
134
+ }
135
+ console.log('查询。。。', this.f_orgid)
136
+ if (this.f_orgid) {
137
+ args.condition = `${args.condition} ${this.f_orgid} `
138
+ }
139
+ this.model.search(args.condition, args.model)
140
+ }
141
+ },
142
+ watch: {},
143
+ computed: {}
144
+ }
145
+ </script>
@@ -274,12 +274,12 @@
274
274
  <td style="text-align: center;">
275
275
  <div class="form-group" style="margin-bottom:0px;"
276
276
  v-if="row.f_meter_state === '未抄表' ">
277
- <input type="text" class="form-control" v-model="row.f_unused_gas"
277
+ <input type="text" class="form-control" v-model="row.f_shengyu_gas"
278
278
  v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'"
279
279
  >
280
280
  </div>
281
281
  <div v-else>
282
- <span>{{row.f_unused_gas}}</span>
282
+ <span>{{row.f_shengyu_gas}}</span>
283
283
  </div>
284
284
  </td>
285
285
 
@@ -613,7 +613,7 @@
613
613
  // || ((row.f_tablebase - 0) - (row.f_last_tablebase - 0)).toFixed(2) < 0
614
614
  if (row.f_tablebase) {
615
615
  row.f_actualtablebase = (row.f_tablebase - 0) - (row.f_last_tablebase - 0)
616
- row.f_unused_gas = (row.f_total_gas - (row.f_tablebase - row.f_initial_base)).toFixed(2)
616
+ row.f_shengyu_gas = (row.f_total_gas - (row.f_tablebase - row.f_initial_base)).toFixed(2)
617
617
  /* this.$resetpost('rs/logic/cardhands', row, {resolveMsg: null, rejectMsg: '录入数据出错!!!'}).then((res) => {
618
618
  console.log('返回数据', res)
619
619
  row.id = res.data.id