sale-client 3.7.7 → 3.7.8

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
+ #Thu Oct 30 09:31:24 CST 2025
2
+ gradle.version=5.2.1
Binary file
File without changes
@@ -1,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.67:30785/', 'http://192.168.50.67:30785/', 'http://192.168.50.67:30785']
4
+ const [ serverRul, localUrl, v4Url ] = ['http://61.240.138.248:8400', 'http://61.240.138.248:8400', 'http://192.168.50.67:30785']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
@@ -20,21 +20,21 @@ var devConfig = {
20
20
  },
21
21
  proxy: {
22
22
  '/rs/sql/': {
23
- pathRewrite: {
24
- '^/rs/sql/': '/api/af-revenue/sql/'
25
- },
23
+ // pathRewrite: {
24
+ // '^/rs/sql/': '/api/af-revenue/sql/'
25
+ // },
26
26
  target: serverRul
27
27
  },
28
28
  '/rs/logic/': {
29
- pathRewrite: {
30
- '^/rs/logic/': '/api/af-revenue/logic/'
31
- },
29
+ // pathRewrite: {
30
+ // '^/rs/logic/': '/api/af-revenue/logic/'
31
+ // },
32
32
  target: serverRul
33
33
  },
34
34
  '/rs/file': {
35
- pathRewrite: {
36
- '^/rs/file/': '/api/af-revenue/file/'
37
- },
35
+ // pathRewrite: {
36
+ // '^/rs/file/': '/api/af-revenue/file/'
37
+ // },
38
38
  target: serverRul
39
39
  },
40
40
  '/api': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.7.7",
3
+ "version": "3.7.8",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  "qrcodejs2": "^0.0.2",
25
25
  "vue": "^1.0.17",
26
26
  "webpack-dev-server": "^2.11.5",
27
- "vue-client": "1.25.38",
27
+ "vue-client": "1.25.31",
28
28
  "yarn": "^1.22.10"
29
29
  },
30
30
  "devDependencies": {
@@ -76,7 +76,7 @@
76
76
  "karma-spec-reporter": "0.0.31",
77
77
  "karma-webpack": "^2.0.2",
78
78
  "ldap-clients": "3.0.96",
79
- "system-clients": "4.0.12",
79
+ "system-clients": "3.2.92-temp",
80
80
  "less": "^2.7.3",
81
81
  "manage-client": "3.1.8-88",
82
82
  "mkdirp": "^0.5.1",
@@ -0,0 +1,235 @@
1
+ <template>
2
+ <div class="auto">
3
+ <modal :show.sync="show" v-ref:modal large backdrop="false">
4
+ <header slot="modal-header" class="modal-header">
5
+ <h3 style="color:black" class="modal-title">限购配置</h3>
6
+ </header>
7
+ <article slot="modal-body" class="modal-body">
8
+ <validator name='v'>
9
+ <form class="form-horizontal select-overspread">
10
+ <div class="row">
11
+ <div class="col-sm-6 form-group" :class="[$v.f_third_pay.required ? 'has-error' : '']">
12
+ <label class="font_normal_body col-sm-3" >第三方缴费</label>
13
+ <input type="text" v-show="false" v-model="$refs.f_third_pay.selectedItems"
14
+ v-validate:f_third_pay='{required: true }'>
15
+ <v-select width="60%"
16
+ :value.sync="model.f_third_pay"
17
+ v-model="model.f_third_pay"
18
+ :options='thirdPays'
19
+ :value-single="true" v-ref:f_third_pay
20
+ close-on-select></v-select>
21
+ </div>
22
+ <div class="col-sm-6 form-group" :class="[$v.f_limit_style.required ? 'has-error' : '']">
23
+ <label class="font_normal_body col-sm-3" >限制类型</label>
24
+ <input type="text" v-show="false" v-model="$refs.f_limit_style.selectedItems"
25
+ v-validate:f_limit_style='{required: true }'>
26
+ <v-select width="60%"
27
+ :value.sync="model.f_limit_style"
28
+ v-model="model.f_limit_style"
29
+ :options='limitstyle'
30
+ :value-single="true" v-ref:f_limit_style
31
+ close-on-select></v-select>
32
+ </div>
33
+ </div>
34
+ <div class="row" style="margin-top:10px;" >
35
+ <div class="col-sm-6 form-group" :class="[$v.f_time_type.required ? 'has-error' : '']">
36
+ <label class="font_normal_body col-sm-3" >周期类型</label>
37
+ <input type="text" v-show="false" v-model="$refs.f_time_type.selectedItems"
38
+ v-validate:f_time_type='{required: true }'>
39
+ <v-select width="60%"
40
+ :value.sync="model.f_time_type"
41
+ v-model="model.f_time_type"
42
+ :options='timeTypes'
43
+ :value-single="true" v-ref:f_time_type
44
+ close-on-select></v-select>
45
+ </div>
46
+ <div class="col-sm-6 form-group" :class="[$v.f_time_value.required ? 'has-error' : '']">
47
+ <label class="font_normal_body col-sm-3" >周期时长</label>
48
+ <input type="text" class="input_search" v-model="model.f_time_value" placeholder="周期时长" v-validate:f_time_value='{required: true }' style="vertical-align:middle;width: 60%">
49
+ </div>
50
+ </div>
51
+
52
+ <div class="row" style="margin-top:10px;" v-if="model.f_limit_style !=='按总量'">
53
+ <div class="col-sm-6 form-group" :class="[$v.f_limit_times.required ? 'has-error' : '']">
54
+ <label class="font_normal_body col-sm-3" >限制次数</label>
55
+ <input type="text" class="input_search" v-model="model.f_limit_times" style="vertical-align:middle;width: 60%" v-validate:f_limit_times='{required: true }' placeholder="限制次数">
56
+ </div>
57
+ <div class="col-sm-6 form-group" :class="[$v.f_limit_value.required ? 'has-error' : '']" v-if="model.f_limit_type ==='气量'">
58
+ <label class="font_normal_body col-sm-3" >单次限购</label>
59
+ <input type="text" class="input_search" v-model="model.f_limit_value" style="vertical-align:middle;width: 60%" v-validate:f_limit_value='{required: true }' placeholder="单次限购">
60
+ </div>
61
+ <div class="col-sm-6 form-group" :class="[$v.f_limit_amount.required ? 'has-error' : '']" v-if="model.f_limit_type ==='金额'">
62
+ <label class="font_normal_body col-sm-3" >单次限购</label>
63
+ <input type="text" class="input_search" v-model="model.f_limit_amount" style="vertical-align:middle;width: 60%" v-validate:f_limit_amount='{required: true }' placeholder="单次限购">
64
+ </div>
65
+ </div>
66
+ <div class="row" style="margin-top:10px;" v-if="model.f_limit_style ==='按总量'">
67
+ <div class="col-sm-6 form-group" :class="[$v.f_limit_value.required ? 'has-error' : '']" v-if="model.f_limit_type ==='气量'">
68
+ <label class="font_normal_body col-sm-3" >总限购量</label>
69
+ <input type="text" class="input_search" v-model="model.f_limit_value" style="vertical-align:middle;width: 60%" v-validate:f_limit_value='{required: true }' placeholder="单次限购">
70
+ </div>
71
+ <div class="col-sm-6 form-group" :class="[$v.f_limit_amount.required ? 'has-error' : '']" v-if="model.f_limit_type ==='金额'">
72
+ <label class="font_normal_body col-sm-3" >总限购量</label>
73
+ <input type="text" class="input_search" v-model="model.f_limit_amount" style="vertical-align:middle;width: 60%" v-validate:f_limit_amount='{required: true }' placeholder="单次限购">
74
+ </div>
75
+ </div>
76
+ <div class="row" style="margin-top:10px;">
77
+ <div class="col-sm-6 form-group" :class="[$v.f_limit_type.required ? 'has-error' : '']">
78
+ <label class="font_normal_body col-sm-3" >支付限制</label>
79
+ <input type="text" v-show="false" v-model="$refs.f_limit_type.selectedItems"
80
+ v-validate:f_limit_type='{required: true }'>
81
+ <v-select width="60%"
82
+ :value.sync="model.f_limit_type"
83
+ v-model="model.f_limit_type"
84
+ :options='limitTypes'
85
+ :value-single="true" v-ref:f_limit_type
86
+ close-on-select></v-select>
87
+ </div>
88
+ <div class="col-sm-6 form-group" :class="[$v.f_start_date.required ? 'has-error' : '']">
89
+ <label class="font_normal_body col-sm-3" >执行时间</label>
90
+ <input type="text" v-show="false" v-model="model.f_start_date"
91
+ v-validate:f_start_date='{required: true }'>
92
+ <datepicker placeholder="执行时间" style="width:60%"
93
+ v-model="model.f_start_date"
94
+ :value.sync="model.f_start_date" v-ref:f_start_date
95
+ :format="'yyyy-MM-dd'">
96
+ </datepicker>
97
+ </div>
98
+ </div>
99
+ <div class="row" style="margin-top:10px;">
100
+ <label class="font_normal_body col-sm-3" >限购原因</label>
101
+ <input type="text" class="input_search" v-model="model.f_operate_reason" style="vertical-align:middle;width: 60%" placeholder="限购原因">
102
+ </div>
103
+ </form>
104
+ </validator>
105
+ </article>
106
+ <footer slot="modal-footer" class="modal-footer">
107
+ <button class="btn btn-success" v-if="limitshow" @click="cancellimit">取消限购</button>
108
+ <button class="button_search btn-gn" :disabled="!$v.valid" @click="confirm">确认</button>
109
+ <button class="button_clear btn-gn" @click="cancel">取消</button>
110
+ </footer>
111
+ </modal>
112
+ </div>
113
+ </template>
114
+ <script>
115
+
116
+ import {HttpResetClass} from 'vue-client'
117
+
118
+ let getLimitDataGen = async function (self) {
119
+ let param = {
120
+ tablename: 't_limit_gas'
121
+ }
122
+ if (self.f_price_id) {
123
+ param.condition = ` f_price_id = '${self.f_price_id}' and isnull(f_state,'') != '无效'`
124
+ } else if (self.f_userinfo_id) {
125
+ param.condition = ` f_userinfo_id = '${self.f_userinfo_id}' and isnull(f_state,'') != '无效'`
126
+ }
127
+ let http = new HttpResetClass()
128
+ let res = await http.load('POST', 'rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取限购配置失败!!'})
129
+ console.log('获取的限购数据', res)
130
+ if (res.data.length > 0 ) {
131
+ self.model = Object.assign({}, self.model, res.data[0])
132
+ self.model.f_third_pay = self.model.f_third_pay + ''
133
+ self.limitshow = true
134
+ } else {
135
+ self.limitshow = false
136
+ }
137
+
138
+ }
139
+
140
+
141
+ export default {
142
+ title: '限购配置',
143
+ data () {
144
+ return {
145
+ model: {
146
+ f_third_pay: '0',
147
+ f_time_type: '按月',
148
+ f_limit_times: '',
149
+ f_time_value: '0',
150
+ f_limit_type: '气量',
151
+ f_limit_style: '',
152
+ f_limit_value: '',
153
+ f_limit_amount: '',
154
+ f_start_date: this.$login.toStandardDateString()
155
+ },
156
+ limitshow: false,
157
+ thirdPays: [{label: '包含', value: '1'}, {label: '不包含', value: '0'}, {label: '仅第三方', value: '-1'}],
158
+ timeTypes: [{label: '按月', value: '按月'}, {label: '按日', value: '按日'}],
159
+ limitTypes: [{label: '气量', value: '气量'}, {label: '金额', value: '金额'}],
160
+ limitstyle: [{label: '按次数', value: '按次数'}, {label: '按总量', value: '按总量'}]
161
+ }
162
+ },
163
+ props: ['show', 'f_price_id', 'f_userinfo_id'],
164
+ ready () {
165
+ this.getLimitData()
166
+ },
167
+ watch: {
168
+ 'f_price_id' () {
169
+ this.getLimitData()
170
+ },
171
+ 'f_userinfo_id' () {
172
+ this.getLimitData()
173
+ }
174
+ },
175
+ methods: {
176
+ getLimitData () {
177
+ console.log('获取限购配置。。', this.f_price_id, this.f_userinfo_id)
178
+ if (this.f_price_id || this.f_userinfo_id) {
179
+ getLimitDataGen(this)
180
+ }
181
+ },
182
+ computed: {
183
+ limitValid () {
184
+ let result = true
185
+ for (let key in this.model) {
186
+ if (this.model[key] === '') {
187
+ result = false
188
+ }
189
+ }
190
+ return result
191
+ },
192
+ },
193
+ confirm () {
194
+ this.$dispatch('limit', this.model)
195
+ this.model = {
196
+ f_third_pay: this.model.f_third_pay,
197
+ f_time_type: this.model.f_time_type,
198
+ f_limit_times: this.model.f_limit_times,
199
+ f_time_value: this.model.f_time_value,
200
+ f_limit_type: this.model.f_limit_type,
201
+ f_limit_style: this.model.f_limit_style,
202
+ f_limit_value: this.model.f_limit_value,
203
+ f_limit_amount: this.model.f_limit_amount,
204
+ f_start_date: this.$login.toStandardDateString()
205
+ }
206
+ console.log('提交限购数据', this.model)
207
+ this.show = false
208
+ },
209
+ async cancellimit() {
210
+ let sql = `update t_limit_gas set f_state = '无效' where id = '${this.model.id}'`
211
+ let data = {
212
+ sql: sql
213
+ }
214
+ await this.$resetpost('rs/logic/runSQL',data)
215
+ this.model = {
216
+ f_third_pay: '0',
217
+ f_time_type: '按月',
218
+ f_limit_times: '',
219
+ f_time_value: '',
220
+ f_limit_type: '气量',
221
+ f_limit_style: '',
222
+ f_limit_value: 0,
223
+ f_limit_amount: 0,
224
+ f_start_date: this.$login.toStandardDateString()
225
+ }
226
+ getLimitDataGen(this)
227
+ },
228
+ cancel () {
229
+ this.show = false
230
+ }
231
+ }
232
+
233
+ }
234
+
235
+ </script>
@@ -33,4 +33,6 @@ export default function () {
33
33
  Vue.component('icTable', (resolve) => { require(['./icTable'], resolve) })
34
34
  Vue.component('user-info-detail-manage-new', (resolve) => { require(['./UserInfoDetailManageNew'], resolve) })
35
35
  Vue.component('high-meter', (resolve) => { require(['../../components/UserFiles/HighMeterCard.vue'], resolve) })
36
+ // 限购配置
37
+ Vue.component('limit-gas', (resolve) => { require(['./LimitGas'], resolve) })
36
38
  }
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/bayan/sale'
5
+ import FilialeSale from './filiale/yuansheng/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'