manage-client 3.3.18 → 3.3.19
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/package.json +1 -1
- package/src/filiale/lixianV3/BusinessManage.vue +206 -0
- package/src/filiale/lixianV3/GasYearRatioQuery.vue +400 -0
- package/src/filiale/lixianV3/InvoiceDetailsQuery.vue +215 -0
- package/src/filiale/lixianV3/config/DefaultPrint.js +6 -0
- package/src/filiale/lixianV3/config/exportConfig.js +2274 -0
- package/src/filiale/lixianV3/config/tableConfig.js +54 -0
- package/src/filiale/lixianV3/sale.js +11 -0
- package/src/filiale/shanxian/ChargeQuery.vue +2 -2
- package/src/filiale/shanxian/UserQuery.vue +2 -2
- package/src/filiale/shanxian/sale.js +1 -1
- package/manage_lib2022-12-01-14-30-50.zip +0 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">发票编号</label>
|
|
11
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.id"
|
|
12
|
+
condition="id = '{}' " placeholder="发票编号">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-2 form-group">
|
|
15
|
+
<label class="font_normal_body">使 用 人</label>
|
|
16
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_bill_operator"
|
|
17
|
+
condition="f_operator = '{}'" placeholder="使用人">
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
21
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
22
|
+
v-model="model.startDate"
|
|
23
|
+
:value.sync="model.startDate"
|
|
24
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
condition="f_operate_date >= '{}'">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
31
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
32
|
+
v-model="model.endDate"
|
|
33
|
+
:value.sync="model.endDate"
|
|
34
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
35
|
+
:show-reset-button="true"
|
|
36
|
+
condition="f_operate_date <= '{}'">
|
|
37
|
+
</datepicker>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="span" style="float:right;">
|
|
40
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
41
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
43
|
+
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
44
|
+
sqlurl="rs/logic/exportfile" sql-name="manage_singleTable"
|
|
45
|
+
template-name='发票使用导出'
|
|
46
|
+
:choose-col="true">
|
|
47
|
+
</export-excel>
|
|
48
|
+
<div style="float: right" class="button_spacing"
|
|
49
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
50
|
+
@click="$parent.$parent.hidden()"></div>
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
55
|
+
<res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres"
|
|
56
|
+
:cascade=true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
57
|
+
<div class="col-sm-2 form-group">
|
|
58
|
+
<label class="font_normal_body">业务类型</label>
|
|
59
|
+
<v-select :value.sync="model.f_type"
|
|
60
|
+
v-model="model.f_type"
|
|
61
|
+
style="width: 60%"
|
|
62
|
+
condition="f_bill_type = ‘{}’"
|
|
63
|
+
:options='$parent.$parent.billType' placeholder='业务类型'
|
|
64
|
+
close-on-select>
|
|
65
|
+
|
|
66
|
+
</v-select>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="col-sm-2 form-group">
|
|
69
|
+
<label class="font_normal_body">发票类型</label>
|
|
70
|
+
<v-select :value.sync="model.f_bill_style"
|
|
71
|
+
:options='$parent.$parent.billStyle' placeholder='发票类型' v-model="model.f_bill_style"
|
|
72
|
+
condition="f_bill_style = '{}'"
|
|
73
|
+
close-on-select>
|
|
74
|
+
</v-select>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</criteria>
|
|
79
|
+
|
|
80
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
|
|
81
|
+
<template partial='head'>
|
|
82
|
+
<tr>
|
|
83
|
+
<th>序号</th>
|
|
84
|
+
<th>发票编号</th>
|
|
85
|
+
<th>用户编号</th>
|
|
86
|
+
<th>表编号</th>
|
|
87
|
+
<th>用户姓名</th>
|
|
88
|
+
<th>购气量</th>
|
|
89
|
+
<th>实收金额</th>
|
|
90
|
+
<th>业务类型</th>
|
|
91
|
+
<th>打印类型</th>
|
|
92
|
+
<th>状态</th>
|
|
93
|
+
<th>使用人</th>
|
|
94
|
+
</tr>
|
|
95
|
+
</template>
|
|
96
|
+
<template partial='body'>
|
|
97
|
+
<tr>
|
|
98
|
+
<td style="text-align:center">{{$index+1}}</td>
|
|
99
|
+
<td style="text-align:center">{{row.id}}</td>
|
|
100
|
+
<td style="text-align:center">{{row.f_userinfo_id}}</td>
|
|
101
|
+
<td style="text-align:center">{{row.f_user_id}}</td>
|
|
102
|
+
<td style="text-align:center">{{row.f_user_name}}</td>
|
|
103
|
+
<td style="text-align:center">{{row.f_gas}}</td>
|
|
104
|
+
<td style="text-align:center">{{row.f_paid_money}}</td>
|
|
105
|
+
<td style="text-align:center">{{row.f_bill_type}}</td>
|
|
106
|
+
<td style="text-align:center">{{row.f_bill_style}}</td>
|
|
107
|
+
<td style="text-align:center">{{row.f_bill_state}}</td>
|
|
108
|
+
<td style="text-align:center">{{row.f_operator}}</td>
|
|
109
|
+
</tr>
|
|
110
|
+
</template>
|
|
111
|
+
<template partial='foot'></template>
|
|
112
|
+
</data-grid>
|
|
113
|
+
</criteria-paged>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<script>
|
|
120
|
+
import {PagedList} from 'vue-client'
|
|
121
|
+
import exportConfig from './config/exportConfig'
|
|
122
|
+
|
|
123
|
+
export default {
|
|
124
|
+
props: ['data'],
|
|
125
|
+
title: '发票详情查询',
|
|
126
|
+
data () {
|
|
127
|
+
return {
|
|
128
|
+
model: new PagedList('rs/sql/manage_singleTable', 50, {items: '"*"', tablename: '"t_billdetail"', orderitem: '"id desc"'}),
|
|
129
|
+
other: [],
|
|
130
|
+
orgCondtionStr: '',
|
|
131
|
+
resshow: ['company'],
|
|
132
|
+
initres: {
|
|
133
|
+
org: [this.$login.f.orgid]
|
|
134
|
+
},
|
|
135
|
+
criteriaShow: false,
|
|
136
|
+
condition: ''
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
ready () {
|
|
140
|
+
this.$refs.paged.$refs.cri.model.startDate = this.data ? this.data.startDate : this.$login.toStandardDateString() + ' 00:00:00'
|
|
141
|
+
this.$refs.paged.$refs.cri.model.endDate = this.data ? this.data.endDate : this.$login.toStandardDateString() + + ' 23:59:59'
|
|
142
|
+
},
|
|
143
|
+
methods: {
|
|
144
|
+
getotherfooter () {
|
|
145
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
146
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
147
|
+
this.other = []
|
|
148
|
+
// this.footer = [];
|
|
149
|
+
let exportdata = this.getCondition
|
|
150
|
+
let otherInData = []
|
|
151
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
152
|
+
let footerData = [],exportfield = this.getfield
|
|
153
|
+
// footerData.push("合计");
|
|
154
|
+
// let self = this;
|
|
155
|
+
// for (var field in self.sumsmodel) {
|
|
156
|
+
// footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
157
|
+
// }
|
|
158
|
+
// this.footer.push(footerData);
|
|
159
|
+
this.other.push(otherInData)
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
cancel () {
|
|
163
|
+
this.show = false
|
|
164
|
+
},
|
|
165
|
+
search () {
|
|
166
|
+
this.$refs.paged.$refs.cri.search()
|
|
167
|
+
},
|
|
168
|
+
selfSearch (args) {
|
|
169
|
+
let f_orgstr = this.orgCondtionStr
|
|
170
|
+
args.condition = `${args.condition} ` + f_orgstr
|
|
171
|
+
this.condition = args.condition
|
|
172
|
+
this.model.search(args.condition, args.model)
|
|
173
|
+
},
|
|
174
|
+
clear () {
|
|
175
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
176
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
show () {
|
|
180
|
+
this.criteriaShow = true
|
|
181
|
+
},
|
|
182
|
+
hidden () {
|
|
183
|
+
this.criteriaShow = !this.criteriaShow
|
|
184
|
+
},
|
|
185
|
+
async getRes (condition, obj) {
|
|
186
|
+
this.orgCondtionStr = condition
|
|
187
|
+
this.orgname = obj.orgnames[0]
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
events: {},
|
|
191
|
+
watch: {},
|
|
192
|
+
computed: {
|
|
193
|
+
getfield () {
|
|
194
|
+
return exportConfig.invoiceDetailsConfig
|
|
195
|
+
},
|
|
196
|
+
getCondition () {
|
|
197
|
+
return {
|
|
198
|
+
condition: this.condition,
|
|
199
|
+
orderitem: 'id desc',
|
|
200
|
+
tablename: 't_billdetail',
|
|
201
|
+
items: '*'
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
billType () {
|
|
205
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('发票业务类型')]
|
|
206
|
+
},
|
|
207
|
+
billStyle () {
|
|
208
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('发票类型')]
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
</script>
|
|
215
|
+
|