sale-client 4.2.8 → 4.2.9
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/GetLoginInfoService.js.bak +489 -0
- package/build/dev-server.js +7 -1
- package/package.json +2 -2
- package/src/components/FilesManage/addressts/FileUserFilests.vue +671 -0
- package/src/components/FilesManage/ncUserinfoList.vue +315 -0
- package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +107 -0
- package/src/components/SendCard/SendCardData.vue +208 -0
- package/src/components/accounts/accountAdd.vue +276 -0
- package/src/components/accounts/accountsList.vue +183 -0
- package/src/components/accounts/accountsManage.vue +87 -0
- package/src/components/common/chargeinfo/chargeinfo.vue +55 -0
- package/src/components/common/userinfo_detail/config/exportConfig.js +85 -0
- package/src/components/ncarchives/ncArchivesAdd.vue +468 -0
- package/src/components/ncarchives/ncArchivesList.vue +159 -0
- package/src/components/ncarchives/ncUserfilesList.vue +373 -0
- package/src/components/ncarchives/ncarchivesmanage.vue +80 -0
- package/src/components/revenue/IOTArrears/arrears.vue +323 -0
- package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +369 -0
- package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +59 -0
- package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +59 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +73 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +73 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +199 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +24 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +24 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +185 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +185 -0
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +356 -0
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +148 -0
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +136 -0
- package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +65 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +483 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +279 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +265 -0
- package/src/components/thirdapply/thirdAdd.vue +289 -0
- package/src/components/thirdapply/thirdList.vue +162 -0
- package/src/components/thirdapply/thirdManage.vue +74 -0
- package/src/components/webMeter/InstructQuery.vue +414 -0
- package/src/components/webMeter/ParamSet/ParamSet.vue +556 -0
- package/src/components/webMeter/ParamSet/ParamSetForm.vue +296 -0
- package/src/components/webMeter/WebUserHand.vue +483 -0
- package/src/components/webMeter/instructionView/NewQueryInstruct.vue +509 -0
- package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +48 -0
- package/src/components/webMeter/webManage/NewMeterList.vue +461 -0
- package/src/filiale/jinhong/machineHand.vue +2099 -2099
- package/src/filiale/jinhong/plugins/GetSaleParams.js +302 -302
- package/src/filiale/jinhong/plugins/LoadParams.js +124 -124
- package/src/filiale/jinhuang/WebHand.vue +1026 -1026
- package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +0 -2
- package/src/plugins/FileManageServicets.js +214 -0
- package/src/plugins/GetImg.js +53 -0
- package/hs_err_pid32452.log +0 -625
- package/hs_err_pid36896.log +0 -249
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="span">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<div class="form-horizontal select-overspread container-fluid" style="overflow-y: auto">
|
|
5
|
+
|
|
6
|
+
<div class="row auto">
|
|
7
|
+
<div class="col-sm-6 form-group" :class="[$v.f_payment_code.required ? 'has-error' : 'has-success']">
|
|
8
|
+
<label for="f_payment_code" class=" font_normal_body">付款编码</label>
|
|
9
|
+
<input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%"
|
|
10
|
+
v-model="accountmodel.f_payment_code"
|
|
11
|
+
v-validate:f_account='{required: true }'
|
|
12
|
+
placeholder="付款编码">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-6 form-group" :class="[$v.f_payment.required ? 'has-error' : 'has-success']">
|
|
15
|
+
<label for="f_payment" class=" font_normal_body">付款方式</label>
|
|
16
|
+
<input type="text" v-show="false" v-model="accountmodel.f_payment"
|
|
17
|
+
v-validate:f_payment='{required: true }'>
|
|
18
|
+
<v-select :value.sync="accountmodel.f_payment" :value-single="true"
|
|
19
|
+
:options='paymentoptions' placeholder='付款方式'
|
|
20
|
+
close-on-select></v-select>
|
|
21
|
+
</div>
|
|
22
|
+
<div :class="defaultstyle" >
|
|
23
|
+
<label class="font_normal_body">公  司</label>
|
|
24
|
+
<res-select restype='organization'
|
|
25
|
+
@res-select="getorg"
|
|
26
|
+
is-mul="false" v-ref:orgcom
|
|
27
|
+
:initresid='initres.org'>
|
|
28
|
+
</res-select>
|
|
29
|
+
<!--<right-tree @re-res="getorg"-->
|
|
30
|
+
<!--:initresid='initres.org'></right-tree>-->
|
|
31
|
+
</div>
|
|
32
|
+
<div :class="defaultstyle" >
|
|
33
|
+
<label class="font_normal_body">部  门</label>
|
|
34
|
+
<res-select restype='department'
|
|
35
|
+
@res-select="getdep"
|
|
36
|
+
is-mul="false"
|
|
37
|
+
:parentresid="depresid"
|
|
38
|
+
:initresid='initres.dep'
|
|
39
|
+
>
|
|
40
|
+
</res-select>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-sm-6 form-group" :class="[$v.f_account.required ? 'has-error' : 'has-success']">
|
|
43
|
+
<label for="f_account" class=" font_normal_body">收款账号</label>
|
|
44
|
+
<input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%"
|
|
45
|
+
v-model="accountmodel.f_account"
|
|
46
|
+
v-validate:f_account='{required: true }'
|
|
47
|
+
placeholder="收款账号">
|
|
48
|
+
</div>
|
|
49
|
+
<div class="col-sm-12 form-group" style="margin: 8px 0">
|
|
50
|
+
<label class="font_normal_body " >备  注</label>
|
|
51
|
+
<textarea class="input_textarea" rows="3" style="width:80%;height: auto !important;" v-model="accountmodel.f_comments"></textarea>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="row auto" style="text-align:right;margin: 20px 13%;">
|
|
55
|
+
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
56
|
+
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</validator>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script>
|
|
64
|
+
import {HttpResetClass} from 'vue-client'
|
|
65
|
+
let initGen = async function (self) {
|
|
66
|
+
await self.initParams();
|
|
67
|
+
await self.initdata()
|
|
68
|
+
}
|
|
69
|
+
export default {
|
|
70
|
+
title: '账号添加/修改',
|
|
71
|
+
data () {
|
|
72
|
+
return {
|
|
73
|
+
accountmodel:{
|
|
74
|
+
f_payment:"",
|
|
75
|
+
f_account:"",
|
|
76
|
+
f_orgid:'',
|
|
77
|
+
f_depid:'',
|
|
78
|
+
f_orgname:'',
|
|
79
|
+
f_depname:'',
|
|
80
|
+
f_payment_code:'' //付款编码
|
|
81
|
+
},
|
|
82
|
+
paymentoptions:[{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
|
|
83
|
+
initres: {
|
|
84
|
+
org:[this.$login.f.orgid],
|
|
85
|
+
dep:[],
|
|
86
|
+
user:[]
|
|
87
|
+
},
|
|
88
|
+
defaultstyle:"col-sm-6 form-group",
|
|
89
|
+
defaultcomponent:['company','department'],
|
|
90
|
+
depresid:[this.f_filialeids],
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
props: ['f_filialeids','operation'],
|
|
94
|
+
ready(){
|
|
95
|
+
initGen(this)
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
getdep(obj,val) {
|
|
99
|
+
if(obj){
|
|
100
|
+
console.log("选中部门的数据22",obj);
|
|
101
|
+
if(obj.length > 0){
|
|
102
|
+
this.accountmodel.f_depid = obj[0];
|
|
103
|
+
}
|
|
104
|
+
this.accountmodel.f_depname=val[0];
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
getorg (obj,val) {
|
|
108
|
+
console.log("选中公司的数据11",obj.resids);
|
|
109
|
+
if(obj){
|
|
110
|
+
this.depresid=obj;
|
|
111
|
+
if(this.depresid.length > 0){
|
|
112
|
+
this.accountmodel.f_orgid = this.depresid[0];
|
|
113
|
+
}
|
|
114
|
+
if(val[0] && val[0]!='' && val[0].indexOf(" - ")<0){
|
|
115
|
+
this.accountmodel.f_orgname=val[0];
|
|
116
|
+
}else if (val[0] && val[0]!='' && val[0].indexOf(" - ")>0){
|
|
117
|
+
let orgnames = val[0].split(" - ");
|
|
118
|
+
this.accountmodel.f_orgname=orgnames[0];
|
|
119
|
+
}else{
|
|
120
|
+
this.accountmodel.f_orgname='';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
//初始化数据
|
|
126
|
+
initdata(){
|
|
127
|
+
if(this.f_filialeids){
|
|
128
|
+
this.$set('initres.org',[this.f_filialeids])
|
|
129
|
+
//this.initres.org = [this.f_filialeids];
|
|
130
|
+
this.accountmodel.f_orgid=this.f_filialeids;
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
initdatamodify(rows){
|
|
134
|
+
if(this.f_filialeids){
|
|
135
|
+
this.$set('initres.org',[rows.f_orgid])
|
|
136
|
+
this.accountmodel.f_orgid=this.f_filialeids;
|
|
137
|
+
}
|
|
138
|
+
if(this.operation == 'modify'){
|
|
139
|
+
if(rows ==null) return;
|
|
140
|
+
this.$set('initres.org',[rows.f_orgid])
|
|
141
|
+
this.$set('initres.dep',[rows.f_depid])
|
|
142
|
+
this.accountmodel = Object.assign({},this.accountmodel,rows);
|
|
143
|
+
}
|
|
144
|
+
this.$refs.orgcom.getResList();
|
|
145
|
+
},
|
|
146
|
+
async initParams() {
|
|
147
|
+
await this.$LoadParams.loadParam(this.f_filialeids)
|
|
148
|
+
},
|
|
149
|
+
//保存
|
|
150
|
+
async confirm(){
|
|
151
|
+
await this.savearchives();
|
|
152
|
+
this.cleardara();
|
|
153
|
+
this.$dispatch('confirm');
|
|
154
|
+
},
|
|
155
|
+
cancel(){
|
|
156
|
+
this.cleardara()
|
|
157
|
+
this.$dispatch('cancel')
|
|
158
|
+
},
|
|
159
|
+
cleardara(){
|
|
160
|
+
this.accountmodel = {
|
|
161
|
+
f_payment:"",
|
|
162
|
+
f_account:"",
|
|
163
|
+
f_orgid:'',
|
|
164
|
+
f_depid:'',
|
|
165
|
+
f_orgname:'',
|
|
166
|
+
f_depname:'',
|
|
167
|
+
f_payment_code:'' //付款编码
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
async savearchives(){
|
|
171
|
+
if(this.f_filialeids == ''){
|
|
172
|
+
this.f_filialeids = this.$login.f.orgid;
|
|
173
|
+
}
|
|
174
|
+
let param = Object.assign({},this.accountmodel);
|
|
175
|
+
param.f_operate_date=this.$login.toStandardTimeString();
|
|
176
|
+
param.f_operatorid = param.f_operatorid||param.f_operatorid!='' ? param.f_operatorid: this.$login.f.id;
|
|
177
|
+
param.f_operator = param.f_operator||param.f_operator!=''? param.f_operator:this.$login.f.name;
|
|
178
|
+
param.f_orgname= param.f_orgname||param.f_orgname!=''? param.f_orgname:this.$login.f.orgs;
|
|
179
|
+
param.f_depid= param.f_depid||param.f_depid!=''? param.f_depid:this.$login.f.depids;
|
|
180
|
+
param.f_depname=param.f_depname||param.f_depname!=''? param.f_depname: this.$login.f.deps;
|
|
181
|
+
param.f_orgid = param.f_orgid ||param.f_orgid !=''?param.f_orgid:this.$login.f.orgid;
|
|
182
|
+
await this.$resetpost('rs/entity/t_payment_accounts',param,{
|
|
183
|
+
resolveMsg: '保存成功!',
|
|
184
|
+
rejectMsg: '保存失败!'
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
watch: {
|
|
189
|
+
async 'model.f_payment'(){
|
|
190
|
+
let payment = "";
|
|
191
|
+
if(this.accountmodel.f_payment instanceof Array && this.model.f_payment.length>0 ){
|
|
192
|
+
payment = this.accountmodel.f_payment[0]
|
|
193
|
+
}else{
|
|
194
|
+
payment = this.model.f_payment;
|
|
195
|
+
}
|
|
196
|
+
if(payment =="现金缴费"){
|
|
197
|
+
this.accountmust = false;
|
|
198
|
+
}else{
|
|
199
|
+
this.accountmust = true;
|
|
200
|
+
}
|
|
201
|
+
//加载收费账号
|
|
202
|
+
if(payment != ''){
|
|
203
|
+
let res = await this.$resetpost('rs/sql/manageSingleTable',
|
|
204
|
+
{data: {tablename: 't_payment_accounts', condition: ` f_payment = '${payment}' and f_state='有效' and f_orgid=${this.$login.f.orgid} and f_depid = ${this.$login.f.depids} `}},
|
|
205
|
+
{resolveMsg: null, rejectMsg: null})
|
|
206
|
+
if(res.data){
|
|
207
|
+
if(res.data.length>0){
|
|
208
|
+
let arr = [];
|
|
209
|
+
res.data.forEach((item)=>{
|
|
210
|
+
let tmp = {
|
|
211
|
+
label:item.f_account,
|
|
212
|
+
value: item.id
|
|
213
|
+
}
|
|
214
|
+
arr.push(tmp);
|
|
215
|
+
})
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
'f_filialeids'(){
|
|
221
|
+
if (this.accountmodel.f_filialeid) {
|
|
222
|
+
if (this.accountmodel.f_filialeid != this.f_filialeids) {
|
|
223
|
+
this.$dispatch('cancel')
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
this.cleardara()
|
|
227
|
+
this.initdata()
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
computed: {
|
|
231
|
+
usertypes () {
|
|
232
|
+
return this.$appdata.getParam('用户类型')
|
|
233
|
+
},
|
|
234
|
+
f_price_types () {
|
|
235
|
+
return this.$appdata.getParam('气价类型')
|
|
236
|
+
},
|
|
237
|
+
|
|
238
|
+
},
|
|
239
|
+
}
|
|
240
|
+
</script>
|
|
241
|
+
<style>
|
|
242
|
+
.box {
|
|
243
|
+
width: 727px;
|
|
244
|
+
height: 175px;
|
|
245
|
+
border-radius: 2px;
|
|
246
|
+
background-color: #fafafa;
|
|
247
|
+
border: 1px solid #999999;
|
|
248
|
+
margin-top: 13px;
|
|
249
|
+
}
|
|
250
|
+
.datapanel {
|
|
251
|
+
color: #333;
|
|
252
|
+
background-color: white;
|
|
253
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
|
|
254
|
+
padding: 10px 30px 10px 30px;
|
|
255
|
+
border-radius:15px;
|
|
256
|
+
}
|
|
257
|
+
.infosshow{
|
|
258
|
+
height: 50px;text-align: right;
|
|
259
|
+
line-height: 27px; padding-right:18px;
|
|
260
|
+
font-size: 25px;
|
|
261
|
+
width:50px;
|
|
262
|
+
cursor:pointer;
|
|
263
|
+
color:#000;
|
|
264
|
+
position:absolute;
|
|
265
|
+
top:0px;
|
|
266
|
+
right:2px;
|
|
267
|
+
}
|
|
268
|
+
.infosshow:hover{
|
|
269
|
+
color:#333;
|
|
270
|
+
}
|
|
271
|
+
.addmeterc{
|
|
272
|
+
position:absolute;
|
|
273
|
+
right:3px;
|
|
274
|
+
top:-3px;
|
|
275
|
+
}
|
|
276
|
+
</style>
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex" @keyup.enter="search">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div :class="$parent.$parent.style">
|
|
8
|
+
<label class="font_normal_body">组织机构</label>
|
|
9
|
+
<res-select restype='organization'
|
|
10
|
+
@res-select="$parent.$parent.getorg"
|
|
11
|
+
is-mul="false"
|
|
12
|
+
:initresid='$parent.$parent.curorgid'>
|
|
13
|
+
</res-select>
|
|
14
|
+
</div>
|
|
15
|
+
<div :class="$parent.$parent.style">
|
|
16
|
+
<label class="font_normal_body">付款方式</label>
|
|
17
|
+
<v-select :options='$parent.$parent.paymentoptions' :value.sync="model.f_payment"
|
|
18
|
+
close-on-select condition="f_payment='{}'"
|
|
19
|
+
placeholder='付款方式' v-model="model.f_payment"></v-select>
|
|
20
|
+
</div>
|
|
21
|
+
<div :class="$parent.$parent.style" >
|
|
22
|
+
<label class="font_normal_body">账号编码</label>
|
|
23
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_payment_code"
|
|
24
|
+
condition="f_payment_code like '%{}%'" placeholder="账号编码"/>
|
|
25
|
+
</div>
|
|
26
|
+
<div :class="$parent.$parent.style" >
|
|
27
|
+
<label class="font_normal_body">支付账号</label>
|
|
28
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_account"
|
|
29
|
+
condition="f_account like '%{}%'" placeholder="支付账号"/>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="col-sm-4 form-group button-range">
|
|
33
|
+
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
34
|
+
<button class="button_search button_spacing" @click="$parent.$parent.add()" >添加</button>
|
|
35
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
36
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
40
|
+
<div :class="$parent.$parent.style">
|
|
41
|
+
<label class="font_normal_body">账号状态</label>
|
|
42
|
+
<v-select :options='$parent.$parent.paystate' :value.sync="model.f_state"
|
|
43
|
+
close-on-select condition="f_state='{}'"
|
|
44
|
+
placeholder='账号状态' v-model="model.f_state"></v-select>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</criteria>
|
|
51
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
52
|
+
<template partial='head'>
|
|
53
|
+
<tr>
|
|
54
|
+
<th><nobr>序号</nobr></th>
|
|
55
|
+
<th><nobr>所属组织</nobr></th>
|
|
56
|
+
<th><nobr>所属部门</nobr></th>
|
|
57
|
+
<th><nobr>支付类型</nobr></th>
|
|
58
|
+
<th><nobr>账号</nobr></th>
|
|
59
|
+
<th><nobr>添加日期</nobr></th>
|
|
60
|
+
<th><nobr>状态</nobr></th>
|
|
61
|
+
<th><nobr>管理</nobr></th>
|
|
62
|
+
<th><nobr>操作</nobr></th>
|
|
63
|
+
</tr>
|
|
64
|
+
</template>
|
|
65
|
+
<template partial='body'>
|
|
66
|
+
<tr >
|
|
67
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>{{$index + 1}}</nobr></td>
|
|
68
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>{{row.f_orgname}}</nobr></td>
|
|
69
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>{{row.f_depname}}</nobr></td>
|
|
70
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>{{row.f_payment}}</nobr></td>
|
|
71
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>{{row.f_account}}</nobr></td>
|
|
72
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
73
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>{{row.f_state==null||row.f_state==''?'停用':row.f_state }}</nobr></td>
|
|
74
|
+
<td style="text-align:center" :style="{background:(row.f_state=='停用'? '#f1dec2':'')}"><nobr>
|
|
75
|
+
<button type="button" name="button" class="button_delete button_spacing" v-if="row.f_state=='有效'"
|
|
76
|
+
@click.stop="$parent.$parent.$parent.stopaccounts('1',row)">停用</button>
|
|
77
|
+
<button type="button" name="button" class="button_search button_spacing" v-if="row.f_state!='有效'"
|
|
78
|
+
@click.stop="$parent.$parent.$parent.stopaccounts('0',row)">启用</button>
|
|
79
|
+
</nobr></td>
|
|
80
|
+
<td :style="{background:(row.f_state=='停用'? '#f1dec2':'')}" style="text-align:center"><nobr>
|
|
81
|
+
<button type="button" name="button" class="btn btn-link"
|
|
82
|
+
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>
|
|
83
|
+
</nobr></td>
|
|
84
|
+
</tr>
|
|
85
|
+
</template>
|
|
86
|
+
<template partial='foot'></template>
|
|
87
|
+
</data-grid>
|
|
88
|
+
</criteria-paged>
|
|
89
|
+
</div>
|
|
90
|
+
</template>
|
|
91
|
+
|
|
92
|
+
<script>
|
|
93
|
+
import { PagedList } from 'vue-client'
|
|
94
|
+
|
|
95
|
+
export default {
|
|
96
|
+
|
|
97
|
+
data () {
|
|
98
|
+
return {
|
|
99
|
+
criteriaShow: false,
|
|
100
|
+
model: new PagedList('rs/sql/accountsQuery',20),
|
|
101
|
+
addflag: false,
|
|
102
|
+
addtitle:'',
|
|
103
|
+
|
|
104
|
+
// 公司下拉
|
|
105
|
+
curorgid: [this.$login.f.orgid],
|
|
106
|
+
f_orgid: '',
|
|
107
|
+
paymentoptions:[{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
|
|
108
|
+
paystate: [{label: '全部', value: ''},{label:'有效',value:'有效'},{label:'停用',value:'停用'}],
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
title: '收费账号管理',
|
|
112
|
+
props:{
|
|
113
|
+
f_filialeids:{
|
|
114
|
+
type: String
|
|
115
|
+
},
|
|
116
|
+
style: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: 'col-sm-2 form-group'
|
|
119
|
+
},
|
|
120
|
+
f_special:{
|
|
121
|
+
type: String
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
ready(){
|
|
125
|
+
this.search()
|
|
126
|
+
},
|
|
127
|
+
methods: {
|
|
128
|
+
hidden() {
|
|
129
|
+
this.criteriaShow = !this.criteriaShow
|
|
130
|
+
},
|
|
131
|
+
search() {
|
|
132
|
+
this.$refs.paged.$refs.cri.search()
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
async delete(row){
|
|
136
|
+
|
|
137
|
+
},
|
|
138
|
+
add(){
|
|
139
|
+
if (this.f_filialeids) {
|
|
140
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
141
|
+
this.$dispatch('add',this.f_filialeids)
|
|
142
|
+
} else {
|
|
143
|
+
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
modify(val){
|
|
147
|
+
this.$dispatch('modify',val)
|
|
148
|
+
},
|
|
149
|
+
stopaccounts(val,row){
|
|
150
|
+
let msg = val == '1'? '停用':'启用';
|
|
151
|
+
this.$showMessage(`是否要${msg}当前账号`,['confirm','cancel']).then(async (res)=>{
|
|
152
|
+
if(res == 'confirm'){
|
|
153
|
+
let state = val == '0'? '有效':'停用';
|
|
154
|
+
row.f_state=state;
|
|
155
|
+
await this.$resetpost('rs/entity/t_payment_accounts',row,{
|
|
156
|
+
resolveMsg: `${msg}成功!!`,
|
|
157
|
+
rejectMsg:`${msg}失败!!`
|
|
158
|
+
});
|
|
159
|
+
this.$refs.paged.$refs.cri.search();
|
|
160
|
+
}
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
},
|
|
164
|
+
selfSearch (args) {
|
|
165
|
+
if (!this.f_orgid) {
|
|
166
|
+
this.getorg([this.$login.f.orgid])
|
|
167
|
+
}
|
|
168
|
+
args.condition = `${args.condition} and f_orgid = ${this.f_orgid}`
|
|
169
|
+
this.model.search(args.condition, args.model)
|
|
170
|
+
this.$parent.cleanresfesh();
|
|
171
|
+
},
|
|
172
|
+
//清空
|
|
173
|
+
clear(){
|
|
174
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
175
|
+
},
|
|
176
|
+
getorg (val) {
|
|
177
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
178
|
+
this.f_filialeids = val[0]
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
}
|
|
183
|
+
</script>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row" :class="{'binary':listShow}">
|
|
3
|
+
<div :class="{'basic-main':!listShow,'binary-left':listShow}" >
|
|
4
|
+
<accounts-list v-ref:accountlist :style="style" ></accounts-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-show="listShow" class="binary-right">
|
|
7
|
+
<div class="flex">
|
|
8
|
+
<accounts-add v-ref:accountadd :operation="operation"
|
|
9
|
+
:f_filialeids.sync="f_filialeids"></accounts-add>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
title: '非民用档案管理',
|
|
19
|
+
components:{
|
|
20
|
+
},
|
|
21
|
+
data () {
|
|
22
|
+
return {
|
|
23
|
+
//分公司id串
|
|
24
|
+
width:'100%',
|
|
25
|
+
f_filialeids: '',
|
|
26
|
+
listShow:false,
|
|
27
|
+
style:'col-sm-2 form-group'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
ready(){
|
|
31
|
+
|
|
32
|
+
},
|
|
33
|
+
props:{
|
|
34
|
+
|
|
35
|
+
},
|
|
36
|
+
methods:{
|
|
37
|
+
refresh() {
|
|
38
|
+
this.listShow = false
|
|
39
|
+
this.$refs.accountlist.$refs.paged.$refs.cri.search()
|
|
40
|
+
},
|
|
41
|
+
cleanresfesh(){
|
|
42
|
+
this.listShow = false;
|
|
43
|
+
this.f_filialeid='';
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
events:{
|
|
47
|
+
'add'(f_orgid){
|
|
48
|
+
if(f_orgid==''){
|
|
49
|
+
this.f_filialeids = this.$login.f.orgid
|
|
50
|
+
}else{
|
|
51
|
+
this.f_filialeids = f_orgid;
|
|
52
|
+
}
|
|
53
|
+
this.style='col-sm-3 form-group'
|
|
54
|
+
this.listShow=true
|
|
55
|
+
this.$refs.accountadd.cleardara()
|
|
56
|
+
this.$refs.accountadd.operation='add'
|
|
57
|
+
this.$refs.accountadd.initdata()
|
|
58
|
+
},
|
|
59
|
+
'confirm' () {
|
|
60
|
+
this.style='col-sm-2 form-group'
|
|
61
|
+
this.$refs.accountadd.cleardara()
|
|
62
|
+
this.listShow = false
|
|
63
|
+
this.$refs.accountlist.$refs.paged.$refs.cri.search()
|
|
64
|
+
},
|
|
65
|
+
'cancel' () {
|
|
66
|
+
this.style='col-sm-2 form-group'
|
|
67
|
+
this.$refs.accountadd.cleardara()
|
|
68
|
+
this.$refs.accountlist.$refs.paged.$refs.cri.search()
|
|
69
|
+
this.listShow = false
|
|
70
|
+
},
|
|
71
|
+
async 'modify'(val){
|
|
72
|
+
if(val.f_orgid==''){
|
|
73
|
+
this.f_filialeids = this.$login.f.orgid;
|
|
74
|
+
}else{
|
|
75
|
+
this.f_filialeids = val.f_orgid;
|
|
76
|
+
}
|
|
77
|
+
//修改账号
|
|
78
|
+
this.style='col-sm-3 form-group';
|
|
79
|
+
this.listShow=true;
|
|
80
|
+
this.$refs.accountadd.cleardara();
|
|
81
|
+
this.$refs.accountadd.operation='modify';
|
|
82
|
+
this.$refs.accountadd.initdatamodify(val);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
</script>
|
|
87
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<modal :if.sync="isBusy" v-ref:modal backdrop="false">
|
|
3
|
+
<header slot="modal-header" class="modal-header">
|
|
4
|
+
<h4 class="modal-title">购气确认</h4>
|
|
5
|
+
</header>
|
|
6
|
+
<article slot="modal-body" class="modal-body">
|
|
7
|
+
<form class="form-horizontal">
|
|
8
|
+
<div class="form-group">
|
|
9
|
+
<label class="col-sm-2 control-label">客户名称</label>
|
|
10
|
+
<div class="col-sm-4">
|
|
11
|
+
<p class="form-control-static">{{model.CardID}}</p>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<label class="col-sm-2 control-label">本次购气量</label>
|
|
15
|
+
<div class="col-sm-4">
|
|
16
|
+
<p class="form-control-static">{{model.Times}}</p>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="form-group">
|
|
20
|
+
<label class="col-sm-2 control-label">应收金额</label>
|
|
21
|
+
<div class="col-sm-4">
|
|
22
|
+
<p class="form-control-static">{{model.Gas}}</p>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<label class="col-sm-2 control-label">实收金额</label>
|
|
26
|
+
<div class="col-sm-4">
|
|
27
|
+
<p class="form-control-static">{{model.Money}}</p>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="form-group" v-if="cardInfo.NewParam.IsInsert == 0">
|
|
31
|
+
<label class="col-sm-2 control-label">累购气量</label>
|
|
32
|
+
<div class="col-sm-4">
|
|
33
|
+
<p class="form-control-static">{{model.NewParam.ljgql}}</p>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</form>
|
|
37
|
+
</article>
|
|
38
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
39
|
+
<button type="button" class="button_search" @click='hasGasContinue'>确认</button>
|
|
40
|
+
<button type="button" class="btn btn-default" @click='hasGasClose'>取消</button>
|
|
41
|
+
</footer>
|
|
42
|
+
</modal>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
export default {
|
|
47
|
+
title: 'busy',
|
|
48
|
+
props: ['isBusy','model'],
|
|
49
|
+
data () {
|
|
50
|
+
return {
|
|
51
|
+
isBusy: false
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
</script>
|