sale-client 3.6.329 → 3.6.330
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/package.json +1 -1
- package/src/components/FilesManage/FileUserAddress.vue +8 -0
- package/src/components/charge/ChargeOper.vue +8 -0
- package/src/components/common/limit/LimitGasManage.vue +308 -0
- package/src/components/revenue/comprehen/ComprehenOperation/LimitGasManage.vue +306 -0
- package/src/filiale/bayan/LimitGasManage.vue +1 -0
- package/src/filiale/bayan/sale.js +2 -2
- package/src/filiale/rongchuang/EticketRecordList.vue +1 -4
- package/src/filiale/rongchuang/bill/CustQueryEticket.vue +0 -4
- package/src/filiale/rongchuang/bill/EticketOpenCard.vue +0 -4
- package/src/filiale/rongchuang/bill/EticketOpenJBPage.vue +0 -4
- package/src/filiale/rongchuang/bill/EticketOpenPage.vue +0 -4
- package/src/sale.js +3 -0
- package/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileChanges/last-build.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.5/gc.properties +0 -0
- package/.gradle/file-system.probe +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Wed Jul 03 11:29:24 CST 2024
|
|
2
2
|
gradle.version=5.2.1
|
package/package.json
CHANGED
|
@@ -130,6 +130,10 @@
|
|
|
130
130
|
<label class="font_normal_body " >备  注</label>
|
|
131
131
|
<textarea class="input_textarea" rows="3" style="margin-top: 25px; width:80%;height: auto;" v-model="model.f_comments"></textarea>
|
|
132
132
|
</div>
|
|
133
|
+
<div class="col-sm-12 form-group">
|
|
134
|
+
<label class="font_normal_body " style="margin-top: 40px">小区备注</label>
|
|
135
|
+
<textarea class="input_textarea" rows="3" style="margin-top: 70px; width:80%;height: auto;" v-model="model.f_comments1"></textarea>
|
|
136
|
+
</div>
|
|
133
137
|
<div style="text-align:right;margin-top:40px;margin-right:50px;" class="col-sm-12">
|
|
134
138
|
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
135
139
|
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
@@ -313,6 +317,7 @@
|
|
|
313
317
|
f_pcd_id: '',
|
|
314
318
|
f_street_id: '',
|
|
315
319
|
f_comments: '',
|
|
320
|
+
f_comments1:'',
|
|
316
321
|
f_residential_area_id: '',
|
|
317
322
|
f_pcd: '',
|
|
318
323
|
f_street: '',
|
|
@@ -539,6 +544,8 @@
|
|
|
539
544
|
this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
|
|
540
545
|
this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
|
|
541
546
|
this.model.slice_area = [{name: selectArea.f_slice_area, code: selectArea.f_area_code}]
|
|
547
|
+
this.model.f_comments1=selectArea.f_comments
|
|
548
|
+
|
|
542
549
|
// 拼接地址
|
|
543
550
|
this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
|
|
544
551
|
}
|
|
@@ -705,6 +712,7 @@
|
|
|
705
712
|
f_residential_area_id: '',
|
|
706
713
|
f_pcd: '',
|
|
707
714
|
f_comments: '',
|
|
715
|
+
f_comments1:'',
|
|
708
716
|
f_street: '',
|
|
709
717
|
f_residential_area: '',
|
|
710
718
|
f_slice_area: '',
|
|
@@ -165,6 +165,14 @@ let getBtnsGen = async function (self) {
|
|
|
165
165
|
self.styleChange(self.operBtns[0])
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
+
// 添加“限制购气”按钮
|
|
169
|
+
self.operBtns.push({
|
|
170
|
+
name: '限制购气',
|
|
171
|
+
value: {
|
|
172
|
+
'weight': 0,
|
|
173
|
+
'routeName': 'limit-gas-manages'
|
|
174
|
+
}
|
|
175
|
+
})
|
|
168
176
|
}
|
|
169
177
|
|
|
170
178
|
export default {
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form novalidate class="form-horizontal">
|
|
5
|
+
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-4 form-group" :class="[$v.f_third_pay.required ? 'has-error' : '']">
|
|
8
|
+
<label class="font_normal_body col-sm-3" >第三方缴费</label>
|
|
9
|
+
<input type="text" v-show="false" v-model="$refs.f_third_pay.selectedItems"
|
|
10
|
+
v-validate:f_third_pay='{required: true }'>
|
|
11
|
+
<v-select width="60%"
|
|
12
|
+
:value.sync="model.f_third_pay"
|
|
13
|
+
v-model="model.f_third_pay"
|
|
14
|
+
:options='thirdPays'
|
|
15
|
+
:value-single="true" v-ref:f_third_pay
|
|
16
|
+
close-on-select></v-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_style.required ? 'has-error' : '']">
|
|
19
|
+
<label class="font_normal_body col-sm-3" >限制类型</label>
|
|
20
|
+
<input type="text" v-show="false" v-model="$refs.f_limit_style.selectedItems"
|
|
21
|
+
v-validate:f_limit_style='{required: true }'>
|
|
22
|
+
<v-select width="60%"
|
|
23
|
+
:value.sync="model.f_limit_style"
|
|
24
|
+
v-model="model.f_limit_style"
|
|
25
|
+
:options='limitstyle'
|
|
26
|
+
:value-single="true" v-ref:f_limit_style
|
|
27
|
+
close-on-select></v-select>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-4 form-group" :class="[$v.f_time_type.required ? 'has-error' : '']">
|
|
30
|
+
<label class="font_normal_body col-sm-3" >周期类型</label>
|
|
31
|
+
<input type="text" v-show="false" v-model="$refs.f_time_type.selectedItems"
|
|
32
|
+
v-validate:f_time_type='{required: true }'>
|
|
33
|
+
<v-select width="60%"
|
|
34
|
+
:value.sync="model.f_time_type"
|
|
35
|
+
v-model="model.f_time_type"
|
|
36
|
+
:options='timeTypes'
|
|
37
|
+
:value-single="true" v-ref:f_time_type
|
|
38
|
+
close-on-select></v-select>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div class="row" style="margin-top:10px;" >
|
|
43
|
+
<div class="col-sm-4 form-group" :class="[$v.f_time_value.required ? 'has-error' : '']">
|
|
44
|
+
<label class="font_normal_body col-sm-3" >周期时长</label>
|
|
45
|
+
<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%">
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-4 form-group" :class="[$v.f_time_value.required ? 'has-error' : '']">
|
|
48
|
+
<label class="font_normal_body col-sm-3" >生效状态</label>
|
|
49
|
+
<input type="text" v-show="false" v-model="$refs.f_status.selectedItems"
|
|
50
|
+
v-validate:f_status='{required: true }'>
|
|
51
|
+
<v-select width="60%"
|
|
52
|
+
:value.sync="model.f_status"
|
|
53
|
+
v-model="model.f_status"
|
|
54
|
+
:options='fstatus'
|
|
55
|
+
:value-single="true" v-ref:f_status
|
|
56
|
+
close-on-select></v-select>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class="row" style="margin-top:10px;" v-if="model.f_limit_style !=='按总量'">
|
|
61
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_times.required ? 'has-error' : '']">
|
|
62
|
+
<label class="font_normal_body col-sm-3" >限制次数</label>
|
|
63
|
+
<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="限制次数">
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_value.required ? 'has-error' : '']" v-if="model.f_limit_type ==='气量'">
|
|
66
|
+
<label class="font_normal_body col-sm-3" >单次限购</label>
|
|
67
|
+
<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="单次限购">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_amount.required ? 'has-error' : '']" v-if="model.f_limit_type ==='金额'">
|
|
70
|
+
<label class="font_normal_body col-sm-3" >单次限购</label>
|
|
71
|
+
<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="单次限购">
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="row" style="margin-top:10px;" v-if="model.f_limit_style ==='按总量'">
|
|
76
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_value.required ? 'has-error' : '']" v-if="model.f_limit_type ==='气量'">
|
|
77
|
+
<label class="font_normal_body col-sm-3" >总限购量</label>
|
|
78
|
+
<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="单次限购">
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_amount.required ? 'has-error' : '']" v-if="model.f_limit_type ==='金额'">
|
|
81
|
+
<label class="font_normal_body col-sm-3" >总限购量</label>
|
|
82
|
+
<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="单次限购">
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div class="row" style="margin-top:10px;">
|
|
87
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_type.required ? 'has-error' : '']">
|
|
88
|
+
<label class="font_normal_body col-sm-3" >支付限制</label>
|
|
89
|
+
<input type="text" v-show="false" v-model="$refs.f_limit_type.selectedItems"
|
|
90
|
+
v-validate:f_limit_type='{required: true }'>
|
|
91
|
+
<v-select width="60%"
|
|
92
|
+
:value.sync="model.f_limit_type"
|
|
93
|
+
v-model="model.f_limit_type"
|
|
94
|
+
:options='limitTypes'
|
|
95
|
+
:value-single="true" v-ref:f_limit_type
|
|
96
|
+
close-on-select></v-select>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-sm-4 form-group" :class="[$v.f_start_date.required ? 'has-error' : '']">
|
|
99
|
+
<label class="font_normal_body col-sm-3" >执行时间</label>
|
|
100
|
+
<input type="text" v-show="false" v-model="model.f_start_date"
|
|
101
|
+
v-validate:f_start_date='{required: true }'>
|
|
102
|
+
<datepicker placeholder="执行时间" style="width:60%"
|
|
103
|
+
v-model="model.f_start_date"
|
|
104
|
+
:value.sync="model.f_start_date" v-ref:f_start_date
|
|
105
|
+
:format="'yyyy-MM-dd'">
|
|
106
|
+
</datepicker>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</form>
|
|
111
|
+
</validator>
|
|
112
|
+
<div style="text-align:right; height: 25%">
|
|
113
|
+
<button class="btn btn-success" v-if="limitshow" @click="cancellimit">取消限购</button>
|
|
114
|
+
<button class="button_search btn-gn" :disabled="!$v.valid" @click="confirm">确认</button>
|
|
115
|
+
<button class="button_clear btn-gn" @click="clean()">取消</button>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</template>
|
|
119
|
+
|
|
120
|
+
<script>
|
|
121
|
+
import {HttpResetClass} from 'vue-client'
|
|
122
|
+
|
|
123
|
+
let getLimitDataGen = async function (self) {
|
|
124
|
+
let param = {
|
|
125
|
+
tablename: 't_limit_gas'
|
|
126
|
+
}
|
|
127
|
+
if (self.f_price_id) {
|
|
128
|
+
param.condition = ` f_price_id = '${self.f_price_id}' and isnull(f_state,'') != '无效'`
|
|
129
|
+
} else if (self.f_userinfo_id) {
|
|
130
|
+
param.condition = ` f_userinfo_id = '${self.f_userinfo_id}' and isnull(f_state,'') != '无效'`
|
|
131
|
+
}
|
|
132
|
+
let http = new HttpResetClass()
|
|
133
|
+
let res = await http.load('POST', 'rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取限购配置失败!!'})
|
|
134
|
+
console.log('获取的限购数据', res)
|
|
135
|
+
if (res.data.length > 0 ) {
|
|
136
|
+
self.model = Object.assign({}, self.model, res.data[0])
|
|
137
|
+
self.model.f_third_pay = self.model.f_third_pay + ''
|
|
138
|
+
self.limitshow = true
|
|
139
|
+
} else {
|
|
140
|
+
self.limitshow = false
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export default {
|
|
145
|
+
title: '限制购气',
|
|
146
|
+
name: 'limit-gas-manages',
|
|
147
|
+
data () {
|
|
148
|
+
return {
|
|
149
|
+
model: {
|
|
150
|
+
f_third_pay: '0',
|
|
151
|
+
f_time_type: '按月',
|
|
152
|
+
f_limit_times: '',
|
|
153
|
+
f_time_value: '0',
|
|
154
|
+
f_limit_type: '气量',
|
|
155
|
+
f_limit_style:'',
|
|
156
|
+
f_limit_value: '',
|
|
157
|
+
f_limit_amount: '',
|
|
158
|
+
f_status:'',
|
|
159
|
+
f_start_date: this.$login.toStandardDateString()
|
|
160
|
+
},
|
|
161
|
+
limitshow: false,
|
|
162
|
+
thirdPays: [{label: '支持', value: '1'},{label: '不支持', value: '0'}],
|
|
163
|
+
timeTypes: [{label: '按月', value: '按月'},{label: '按日', value: '按日'}],
|
|
164
|
+
limitTypes: [{label: '气量', value: '气量'},{label: '金额', value: '金额'}],
|
|
165
|
+
limitstyle: [{label: '按次数', value: '按次数'},{label: '按总量', value: '按总量'}],
|
|
166
|
+
fstatus: [{label: '有效', value: '有效'},{label: '无效', value: '无效'}]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
props: ['show', 'f_price_id', 'f_userinfo_id','row'],
|
|
170
|
+
ready () {
|
|
171
|
+
this.getLimitData()
|
|
172
|
+
},
|
|
173
|
+
watch: {
|
|
174
|
+
'f_price_id' () {
|
|
175
|
+
this.getLimitData()
|
|
176
|
+
},
|
|
177
|
+
'f_userinfo_id' () {
|
|
178
|
+
this.getLimitData()
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
methods: {
|
|
182
|
+
getLimitData () {
|
|
183
|
+
console.log('获取限购配置。。', this.f_price_id, this.f_userinfo_id)
|
|
184
|
+
if (this.f_price_id || this.f_userinfo_id) {
|
|
185
|
+
getLimitDataGen(this)
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
computed: {
|
|
189
|
+
limitValid () {
|
|
190
|
+
let result = true
|
|
191
|
+
for (let key in this.model) {
|
|
192
|
+
if (this.model[key] === '') {
|
|
193
|
+
result = false
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return result
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
async confirm () {
|
|
200
|
+
this.$dispatch('limit', this.model)
|
|
201
|
+
this.model = {
|
|
202
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
203
|
+
f_third_pay: this.model.f_third_pay,
|
|
204
|
+
f_time_type: this.model.f_time_type,
|
|
205
|
+
f_limit_times: this.model.f_limit_times,
|
|
206
|
+
f_time_value: this.model.f_time_value,
|
|
207
|
+
f_limit_type: this.model.f_limit_type,
|
|
208
|
+
f_limit_style: this.model.f_limit_style,
|
|
209
|
+
f_limit_value: this.model.f_limit_value,
|
|
210
|
+
f_limit_amount: this.model.f_limit_amount,
|
|
211
|
+
f_status: this.model.f_status,
|
|
212
|
+
f_start_date: this.$login.toStandardDateString()
|
|
213
|
+
}
|
|
214
|
+
console.log('提交限购数据', this.model)
|
|
215
|
+
// let sql =`
|
|
216
|
+
// INSERT INTO t_limit_gas (
|
|
217
|
+
// f_third_pay,
|
|
218
|
+
// f_time_type,
|
|
219
|
+
// f_limit_times,
|
|
220
|
+
// f_time_value,
|
|
221
|
+
// f_limit_type,
|
|
222
|
+
// f_limit_style,
|
|
223
|
+
// f_limit_value,
|
|
224
|
+
// f_limit_amount,
|
|
225
|
+
// f_state,
|
|
226
|
+
// f_start_date,
|
|
227
|
+
// f_userinfo_id
|
|
228
|
+
// ) VALUES (
|
|
229
|
+
// '${this.model.f_third_pay}',
|
|
230
|
+
// '${this.model.f_time_type}',
|
|
231
|
+
// '${this.model.f_limit_times}',
|
|
232
|
+
// '${this.model.f_time_value}',
|
|
233
|
+
// '${this.model.f_limit_type}',
|
|
234
|
+
// '${this.model.f_limit_style}',
|
|
235
|
+
// '${this.model.f_limit_value}',
|
|
236
|
+
// '${this.model.f_limit_amount}',
|
|
237
|
+
// '${this.model.f_status}',
|
|
238
|
+
// '${this.model.f_start_date}',
|
|
239
|
+
// '${this.model.f_userinfo_id}'
|
|
240
|
+
// )`
|
|
241
|
+
let restrict = {
|
|
242
|
+
f_third_pay: this.model.f_third_pay,
|
|
243
|
+
f_time_type: this.model.f_time_type,
|
|
244
|
+
f_limit_times: this.model.f_limit_times,
|
|
245
|
+
f_time_value: this.model.f_time_value,
|
|
246
|
+
f_limit_type: this.model.f_limit_type,
|
|
247
|
+
f_limit_style: this.model.f_limit_style,
|
|
248
|
+
f_limit_value: this.model.f_limit_value,
|
|
249
|
+
f_limit_amount: this.model.f_limit_amount,
|
|
250
|
+
f_operator: this.$login.f.name,
|
|
251
|
+
f_status: this.model.f_status,
|
|
252
|
+
f_start_date: this.$login.toStandardDateString()
|
|
253
|
+
}
|
|
254
|
+
let operInfo = {
|
|
255
|
+
f_operator: this.$login.f.name,
|
|
256
|
+
f_operatorid: this.$login.f.id,
|
|
257
|
+
f_orgid: this.$login.f.orgid,
|
|
258
|
+
f_orgname: this.$login.f.orgs,
|
|
259
|
+
f_depid: this.$login.f.depids,
|
|
260
|
+
f_depname: this.$login.f.deps,
|
|
261
|
+
}
|
|
262
|
+
let user = {
|
|
263
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
264
|
+
f_user_name: this.row.f_user_name,
|
|
265
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
266
|
+
f_table_state: this.row.f_table_state,
|
|
267
|
+
f_user_id: this.row.f_user_id,
|
|
268
|
+
}
|
|
269
|
+
let param = {
|
|
270
|
+
restrict,
|
|
271
|
+
user,
|
|
272
|
+
operInfo
|
|
273
|
+
}
|
|
274
|
+
await this.$resetpost('rs/logic/limitGas',{data: param})
|
|
275
|
+
},
|
|
276
|
+
async cancellimit() {
|
|
277
|
+
let sql = `update t_limit_gas set f_state = '无效' where id = '${this.model.id}'`
|
|
278
|
+
let data = {
|
|
279
|
+
sql: sql
|
|
280
|
+
}
|
|
281
|
+
await this.$resetpost('rs/logic/runSQL',data)
|
|
282
|
+
this.model = {
|
|
283
|
+
f_third_pay: '0',
|
|
284
|
+
f_time_type: '按月',
|
|
285
|
+
f_limit_times: '',
|
|
286
|
+
f_time_value: '',
|
|
287
|
+
f_limit_type: '气量',
|
|
288
|
+
f_limit_style:'',
|
|
289
|
+
f_limit_value: 0,
|
|
290
|
+
f_limit_amount: 0,
|
|
291
|
+
f_status:'',
|
|
292
|
+
f_start_date: this.$login.toStandardDateString()
|
|
293
|
+
}
|
|
294
|
+
getLimitDataGen(this)
|
|
295
|
+
},
|
|
296
|
+
clean () {
|
|
297
|
+
this.$info('取消操作')
|
|
298
|
+
this.$dispatch('refresh', this.row)
|
|
299
|
+
},
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
</script>
|
|
304
|
+
|
|
305
|
+
<style>
|
|
306
|
+
|
|
307
|
+
</style>
|
|
308
|
+
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form novalidate class="form-horizontal">
|
|
5
|
+
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-4 form-group" :class="[$v.f_third_pay.required ? 'has-error' : '']">
|
|
8
|
+
<label class="font_normal_body col-sm-3" >第三方缴费</label>
|
|
9
|
+
<input type="text" v-show="false" v-model="$refs.f_third_pay.selectedItems"
|
|
10
|
+
v-validate:f_third_pay='{required: true }'>
|
|
11
|
+
<v-select width="60%"
|
|
12
|
+
:value.sync="model.f_third_pay"
|
|
13
|
+
v-model="model.f_third_pay"
|
|
14
|
+
:options='thirdPays'
|
|
15
|
+
:value-single="true" v-ref:f_third_pay
|
|
16
|
+
close-on-select></v-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_style.required ? 'has-error' : '']">
|
|
19
|
+
<label class="font_normal_body col-sm-3" >限制类型</label>
|
|
20
|
+
<input type="text" v-show="false" v-model="$refs.f_limit_style.selectedItems"
|
|
21
|
+
v-validate:f_limit_style='{required: true }'>
|
|
22
|
+
<v-select width="60%"
|
|
23
|
+
:value.sync="model.f_limit_style"
|
|
24
|
+
v-model="model.f_limit_style"
|
|
25
|
+
:options='limitstyle'
|
|
26
|
+
:value-single="true" v-ref:f_limit_style
|
|
27
|
+
close-on-select></v-select>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-4 form-group" :class="[$v.f_time_type.required ? 'has-error' : '']">
|
|
30
|
+
<label class="font_normal_body col-sm-3" >周期类型</label>
|
|
31
|
+
<input type="text" v-show="false" v-model="$refs.f_time_type.selectedItems"
|
|
32
|
+
v-validate:f_time_type='{required: true }'>
|
|
33
|
+
<v-select width="60%"
|
|
34
|
+
:value.sync="model.f_time_type"
|
|
35
|
+
v-model="model.f_time_type"
|
|
36
|
+
:options='timeTypes'
|
|
37
|
+
:value-single="true" v-ref:f_time_type
|
|
38
|
+
close-on-select></v-select>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div class="row" style="margin-top:10px;" >
|
|
43
|
+
<div class="col-sm-4 form-group" :class="[$v.f_time_value.required ? 'has-error' : '']">
|
|
44
|
+
<label class="font_normal_body col-sm-3" >周期时长</label>
|
|
45
|
+
<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%">
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-4 form-group" :class="[$v.f_time_value.required ? 'has-error' : '']">
|
|
48
|
+
<label class="font_normal_body col-sm-3" >生效状态</label>
|
|
49
|
+
<input type="text" v-show="false" v-model="$refs.f_status.selectedItems"
|
|
50
|
+
v-validate:f_status='{required: true }'>
|
|
51
|
+
<v-select width="60%"
|
|
52
|
+
:value.sync="model.f_status"
|
|
53
|
+
v-model="model.f_status"
|
|
54
|
+
:options='fstatus'
|
|
55
|
+
:value-single="true" v-ref:f_status
|
|
56
|
+
close-on-select></v-select>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class="row" style="margin-top:10px;" v-if="model.f_limit_style !=='按总量'">
|
|
61
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_times.required ? 'has-error' : '']">
|
|
62
|
+
<label class="font_normal_body col-sm-3" >限制次数</label>
|
|
63
|
+
<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="限制次数">
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_value.required ? 'has-error' : '']" v-if="model.f_limit_type ==='气量'">
|
|
66
|
+
<label class="font_normal_body col-sm-3" >单次限购</label>
|
|
67
|
+
<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="单次限购">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_amount.required ? 'has-error' : '']" v-if="model.f_limit_type ==='金额'">
|
|
70
|
+
<label class="font_normal_body col-sm-3" >单次限购</label>
|
|
71
|
+
<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="单次限购">
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="row" style="margin-top:10px;" v-if="model.f_limit_style ==='按总量'">
|
|
76
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_value.required ? 'has-error' : '']" v-if="model.f_limit_type ==='气量'">
|
|
77
|
+
<label class="font_normal_body col-sm-3" >总限购量</label>
|
|
78
|
+
<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="单次限购">
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_amount.required ? 'has-error' : '']" v-if="model.f_limit_type ==='金额'">
|
|
81
|
+
<label class="font_normal_body col-sm-3" >总限购量</label>
|
|
82
|
+
<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="单次限购">
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div class="row" style="margin-top:10px;">
|
|
87
|
+
<div class="col-sm-4 form-group" :class="[$v.f_limit_type.required ? 'has-error' : '']">
|
|
88
|
+
<label class="font_normal_body col-sm-3" >支付限制</label>
|
|
89
|
+
<input type="text" v-show="false" v-model="$refs.f_limit_type.selectedItems"
|
|
90
|
+
v-validate:f_limit_type='{required: true }'>
|
|
91
|
+
<v-select width="60%"
|
|
92
|
+
:value.sync="model.f_limit_type"
|
|
93
|
+
v-model="model.f_limit_type"
|
|
94
|
+
:options='limitTypes'
|
|
95
|
+
:value-single="true" v-ref:f_limit_type
|
|
96
|
+
close-on-select></v-select>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-sm-4 form-group" :class="[$v.f_start_date.required ? 'has-error' : '']">
|
|
99
|
+
<label class="font_normal_body col-sm-3" >执行时间</label>
|
|
100
|
+
<input type="text" v-show="false" v-model="model.f_start_date"
|
|
101
|
+
v-validate:f_start_date='{required: true }'>
|
|
102
|
+
<datepicker placeholder="执行时间" style="width:60%"
|
|
103
|
+
v-model="model.f_start_date"
|
|
104
|
+
:value.sync="model.f_start_date" v-ref:f_start_date
|
|
105
|
+
:format="'yyyy-MM-dd'">
|
|
106
|
+
</datepicker>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</form>
|
|
111
|
+
</validator>
|
|
112
|
+
<div style="text-align:right; height: 25%">
|
|
113
|
+
<button class="btn btn-success" v-if="limitshow" @click="cancellimit">取消限购</button>
|
|
114
|
+
<button class="button_search btn-gn" :disabled="!$v.valid" @click="confirm">确认</button>
|
|
115
|
+
<button class="button_clear btn-gn" @click="clean()">取消</button>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</template>
|
|
119
|
+
|
|
120
|
+
<script>
|
|
121
|
+
import {HttpResetClass} from 'vue-client'
|
|
122
|
+
|
|
123
|
+
let getLimitDataGen = async function (self) {
|
|
124
|
+
let param = {
|
|
125
|
+
tablename: 't_limit_gas'
|
|
126
|
+
}
|
|
127
|
+
if (self.f_price_id) {
|
|
128
|
+
param.condition = ` f_price_id = '${self.f_price_id}' and isnull(f_state,'') != '无效'`
|
|
129
|
+
} else if (self.f_userinfo_id) {
|
|
130
|
+
param.condition = ` f_userinfo_id = '${self.f_userinfo_id}' and isnull(f_state,'') != '无效'`
|
|
131
|
+
}
|
|
132
|
+
let http = new HttpResetClass()
|
|
133
|
+
let res = await http.load('POST', 'rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取限购配置失败!!'})
|
|
134
|
+
console.log('获取的限购数据', res)
|
|
135
|
+
if (res.data.length > 0 ) {
|
|
136
|
+
self.model = Object.assign({}, self.model, res.data[0])
|
|
137
|
+
self.model.f_third_pay = self.model.f_third_pay + ''
|
|
138
|
+
self.limitshow = true
|
|
139
|
+
} else {
|
|
140
|
+
self.limitshow = false
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export default {
|
|
145
|
+
title: '限制购气',
|
|
146
|
+
data () {
|
|
147
|
+
return {
|
|
148
|
+
model: {
|
|
149
|
+
f_third_pay: '0',
|
|
150
|
+
f_time_type: '按月',
|
|
151
|
+
f_limit_times: '',
|
|
152
|
+
f_time_value: '0',
|
|
153
|
+
f_limit_type: '气量',
|
|
154
|
+
f_limit_style:'',
|
|
155
|
+
f_limit_value: '',
|
|
156
|
+
f_limit_amount: '',
|
|
157
|
+
f_status:'',
|
|
158
|
+
f_start_date: this.$login.toStandardDateString()
|
|
159
|
+
},
|
|
160
|
+
limitshow: false,
|
|
161
|
+
thirdPays: [{label: '支持', value: '1'},{label: '不支持', value: '0'}],
|
|
162
|
+
timeTypes: [{label: '按月', value: '按月'},{label: '按日', value: '按日'}],
|
|
163
|
+
limitTypes: [{label: '气量', value: '气量'},{label: '金额', value: '金额'}],
|
|
164
|
+
limitstyle: [{label: '按次数', value: '按次数'},{label: '按总量', value: '按总量'}],
|
|
165
|
+
fstatus: [{label: '有效', value: '有效'},{label: '无效', value: '无效'}]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
props: ['show', 'f_price_id', 'f_userinfo_id','row'],
|
|
169
|
+
ready () {
|
|
170
|
+
this.getLimitData()
|
|
171
|
+
},
|
|
172
|
+
watch: {
|
|
173
|
+
'f_price_id' () {
|
|
174
|
+
this.getLimitData()
|
|
175
|
+
},
|
|
176
|
+
'f_userinfo_id' () {
|
|
177
|
+
this.getLimitData()
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
methods: {
|
|
181
|
+
getLimitData () {
|
|
182
|
+
console.log('获取限购配置。。', this.f_price_id, this.f_userinfo_id)
|
|
183
|
+
if (this.f_price_id || this.f_userinfo_id) {
|
|
184
|
+
getLimitDataGen(this)
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
computed: {
|
|
188
|
+
limitValid () {
|
|
189
|
+
let result = true
|
|
190
|
+
for (let key in this.model) {
|
|
191
|
+
if (this.model[key] === '') {
|
|
192
|
+
result = false
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return result
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
async confirm () {
|
|
199
|
+
this.$dispatch('limit', this.model)
|
|
200
|
+
this.model = {
|
|
201
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
202
|
+
f_third_pay: this.model.f_third_pay,
|
|
203
|
+
f_time_type: this.model.f_time_type,
|
|
204
|
+
f_limit_times: this.model.f_limit_times,
|
|
205
|
+
f_time_value: this.model.f_time_value,
|
|
206
|
+
f_limit_type: this.model.f_limit_type,
|
|
207
|
+
f_limit_style: this.model.f_limit_style,
|
|
208
|
+
f_limit_value: this.model.f_limit_value,
|
|
209
|
+
f_limit_amount: this.model.f_limit_amount,
|
|
210
|
+
f_status: this.model.f_status,
|
|
211
|
+
f_start_date: this.$login.toStandardDateString()
|
|
212
|
+
}
|
|
213
|
+
console.log('提交限购数据', this.model)
|
|
214
|
+
// let sql =`
|
|
215
|
+
// INSERT INTO t_limit_gas (
|
|
216
|
+
// f_third_pay,
|
|
217
|
+
// f_time_type,
|
|
218
|
+
// f_limit_times,
|
|
219
|
+
// f_time_value,
|
|
220
|
+
// f_limit_type,
|
|
221
|
+
// f_limit_style,
|
|
222
|
+
// f_limit_value,
|
|
223
|
+
// f_limit_amount,
|
|
224
|
+
// f_state,
|
|
225
|
+
// f_start_date,
|
|
226
|
+
// f_userinfo_id
|
|
227
|
+
// ) VALUES (
|
|
228
|
+
// '${this.model.f_third_pay}',
|
|
229
|
+
// '${this.model.f_time_type}',
|
|
230
|
+
// '${this.model.f_limit_times}',
|
|
231
|
+
// '${this.model.f_time_value}',
|
|
232
|
+
// '${this.model.f_limit_type}',
|
|
233
|
+
// '${this.model.f_limit_style}',
|
|
234
|
+
// '${this.model.f_limit_value}',
|
|
235
|
+
// '${this.model.f_limit_amount}',
|
|
236
|
+
// '${this.model.f_status}',
|
|
237
|
+
// '${this.model.f_start_date}',
|
|
238
|
+
// '${this.model.f_userinfo_id}'
|
|
239
|
+
// )`
|
|
240
|
+
let restrict = {
|
|
241
|
+
f_third_pay: this.model.f_third_pay,
|
|
242
|
+
f_time_type: this.model.f_time_type,
|
|
243
|
+
f_limit_times: this.model.f_limit_times,
|
|
244
|
+
f_time_value: this.model.f_time_value,
|
|
245
|
+
f_limit_type: this.model.f_limit_type,
|
|
246
|
+
f_limit_style: this.model.f_limit_style,
|
|
247
|
+
f_limit_value: this.model.f_limit_value,
|
|
248
|
+
f_limit_amount: this.model.f_limit_amount,
|
|
249
|
+
f_operator: this.$login.f.name,
|
|
250
|
+
f_status: this.model.f_status,
|
|
251
|
+
f_start_date: this.$login.toStandardDateString()
|
|
252
|
+
}
|
|
253
|
+
let operInfo = {
|
|
254
|
+
f_operator: this.$login.f.name,
|
|
255
|
+
f_operatorid: this.$login.f.id,
|
|
256
|
+
f_orgid: this.$login.f.orgid,
|
|
257
|
+
f_orgname: this.$login.f.orgs,
|
|
258
|
+
f_depid: this.$login.f.depids,
|
|
259
|
+
f_depname: this.$login.f.deps,
|
|
260
|
+
}
|
|
261
|
+
let user = {
|
|
262
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
263
|
+
f_user_name: this.row.f_user_name,
|
|
264
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
265
|
+
f_table_state: this.row.f_table_state,
|
|
266
|
+
f_user_id: this.row.f_user_id,
|
|
267
|
+
}
|
|
268
|
+
let param = {
|
|
269
|
+
restrict,
|
|
270
|
+
user,
|
|
271
|
+
operInfo
|
|
272
|
+
}
|
|
273
|
+
await this.$resetpost('rs/logic/limitGas',{data: param})
|
|
274
|
+
},
|
|
275
|
+
async cancellimit() {
|
|
276
|
+
let sql = `update t_limit_gas set f_state = '无效' where id = '${this.model.id}'`
|
|
277
|
+
let data = {
|
|
278
|
+
sql: sql
|
|
279
|
+
}
|
|
280
|
+
await this.$resetpost('rs/logic/runSQL',data)
|
|
281
|
+
this.model = {
|
|
282
|
+
f_third_pay: '0',
|
|
283
|
+
f_time_type: '按月',
|
|
284
|
+
f_limit_times: '',
|
|
285
|
+
f_time_value: '',
|
|
286
|
+
f_limit_type: '气量',
|
|
287
|
+
f_limit_style:'',
|
|
288
|
+
f_limit_value: 0,
|
|
289
|
+
f_limit_amount: 0,
|
|
290
|
+
f_status:'',
|
|
291
|
+
f_start_date: this.$login.toStandardDateString()
|
|
292
|
+
}
|
|
293
|
+
getLimitDataGen(this)
|
|
294
|
+
},
|
|
295
|
+
clean () {
|
|
296
|
+
this.$info('取消操作')
|
|
297
|
+
this.$dispatch('refresh', this.row)
|
|
298
|
+
},
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
</script>
|
|
303
|
+
|
|
304
|
+
<style>
|
|
305
|
+
|
|
306
|
+
</style>
|
|
@@ -26,6 +26,6 @@ export default function () {
|
|
|
26
26
|
Vue.component('machine-meter-center', (resolve) => { require(['./MachineMeterCenter'], resolve) })
|
|
27
27
|
// 其他收费xin
|
|
28
28
|
Vue.component('other-charge-new', (resolve) => { require(['./OtherChargeNew'], resolve) })
|
|
29
|
-
// 收费页面限制购气
|
|
30
|
-
Vue.component('limit-gas-manages', (resolve) => { require(['./LimitGasManage'], resolve) })
|
|
29
|
+
// // 收费页面限制购气
|
|
30
|
+
// Vue.component('limit-gas-manages', (resolve) => { require(['./LimitGasManage'], resolve) })
|
|
31
31
|
}
|
|
@@ -125,10 +125,7 @@
|
|
|
125
125
|
<th style="text-align:center">{{ row.f_charge_type }}</th>
|
|
126
126
|
<th style="text-align:center">{{ row.f_operate_date }}</th>
|
|
127
127
|
<th style="text-align:center">
|
|
128
|
-
<
|
|
129
|
-
@click="$parent.$parent.$parent.watch_ch(row.f_bill_url)">
|
|
130
|
-
查看发票
|
|
131
|
-
</button>
|
|
128
|
+
<a class="btn btn-link" v-if="row.f_bill_url" :href="row.f_bill_url" target="_blank">查看发票</a>
|
|
132
129
|
</th>
|
|
133
130
|
<th style="text-align:center">
|
|
134
131
|
<template >
|
|
@@ -210,10 +210,6 @@
|
|
|
210
210
|
},
|
|
211
211
|
methods: {
|
|
212
212
|
async open_eTicket () {
|
|
213
|
-
if (this.$login.f.orgid != '33520') {
|
|
214
|
-
this.$showAlert('目前只有 正安县新兴天然气有限公司 可以进行开发票操作!!', 'warning', 2000)
|
|
215
|
-
return
|
|
216
|
-
}
|
|
217
213
|
if(this.selecteds.length>1){
|
|
218
214
|
this.$showAlert('选中条数大于一条,请重新修改!!', 'warning', 2000)
|
|
219
215
|
return
|
|
@@ -154,10 +154,6 @@ export default {
|
|
|
154
154
|
this.$refs.paged.$refs.cri.search()
|
|
155
155
|
},
|
|
156
156
|
async open_eTicket () {
|
|
157
|
-
if (this.$login.f.orgid != '33520') {
|
|
158
|
-
this.$showAlert('目前只有 正安县新兴天然气有限公司 可以进行开发票操作!!', 'warning', 2000)
|
|
159
|
-
return
|
|
160
|
-
}
|
|
161
157
|
if ([...new Set(this.selecteds.map(item => item.f_userinfo_code))].length > 1) {
|
|
162
158
|
this.$showAlert('所选择用户不是同一用户!!', 'warning', 2000)
|
|
163
159
|
return
|
|
@@ -150,10 +150,6 @@ export default {
|
|
|
150
150
|
this.$refs.paged.$refs.cri.search()
|
|
151
151
|
},
|
|
152
152
|
async open_eTicket () {
|
|
153
|
-
if (this.$login.f.orgid != '33520') {
|
|
154
|
-
this.$showAlert('目前只有 正安县新兴天然气有限公司 可以进行开发票操作!!', 'warning', 2000)
|
|
155
|
-
return
|
|
156
|
-
}
|
|
157
153
|
if ([...new Set(this.selecteds.map(item => item.f_userinfo_code))].length > 1) {
|
|
158
154
|
this.$showAlert('所选择用户不是同一用户!!', 'warning', 2000)
|
|
159
155
|
return
|
|
@@ -145,10 +145,6 @@ export default {
|
|
|
145
145
|
this.$refs.paged.$refs.cri.search()
|
|
146
146
|
},
|
|
147
147
|
async open_eTicket () {
|
|
148
|
-
if (this.$login.f.orgid != '33520') {
|
|
149
|
-
this.$showAlert('目前只有 正安县新兴天然气有限公司 可以进行开发票操作!!', 'warning', 2000)
|
|
150
|
-
return
|
|
151
|
-
}
|
|
152
148
|
if ([...new Set(this.selecteds.map(item => item.f_userinfo_code))].length > 1) {
|
|
153
149
|
this.$showAlert('所选择用户不是同一用户!!', 'warning', 2000)
|
|
154
150
|
return
|
package/src/sale.js
CHANGED
|
@@ -414,6 +414,8 @@ export default function () {
|
|
|
414
414
|
Vue.component('correct-bill', (resolve) => { require(['./components/revenue/Common/CorrectBill'], resolve) })
|
|
415
415
|
// 限购配置
|
|
416
416
|
Vue.component('limit-gas', (resolve) => { require(['./components/revenue/Common/LimitGas'], resolve) })
|
|
417
|
+
// 收费页面限制购气
|
|
418
|
+
Vue.component('limit-gas-manages', (resolve) => { require(['./components/common/limit/LimitGasManage'], resolve) })
|
|
417
419
|
// 限购管理
|
|
418
420
|
Vue.component('limit-manage', (resolve) => { require(['./components/common/limit/LimitManage'], resolve) })
|
|
419
421
|
Vue.component('limit-list', (resolve) => { require(['./components/common/limit/LimitList'], resolve) })
|
|
@@ -1209,4 +1211,5 @@ export default function () {
|
|
|
1209
1211
|
// 合同签名
|
|
1210
1212
|
Vue.component('contract-signing-brain', (resolve) => { require(['./components/common/userinfo_detail/contractSigningBrain'], resolve) })
|
|
1211
1213
|
Vue.component('contract-sig', (resolve) => { require(['./components/common/userinfo_detail/contractSig'], resolve) })
|
|
1214
|
+
|
|
1212
1215
|
}
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|