manage-client 1.22.10-ca → 1.22.11-ca

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "1.22.10-ca",
3
+ "version": "1.22.11-ca",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,230 +1,230 @@
1
- <template >
2
- <div id="stand-work-list" class="flex bg-white p-10" style="overflow:hidden;">
3
- <criteria-paged :model="model" v-ref:paged >
4
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" width="100%">
7
- <div class="col-sm-4" >
8
- <label class="font_normal_body" style="width: 40%;" >开始时间</label>
9
- <datepicker placeholder="起始时间" style="width:60%"
10
- :value.sync="model.f_start_date"
11
- v-model="model.f_start_date"
12
- :format="'yyyy-MM-dd'"
13
- condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')"
14
- ></datepicker>
15
- </div>
16
- <div class="col-sm-4" >
17
- <label class="font_normal_body" style="width: 40%;" >结束时间</label>
18
- <datepicker placeholder="结束时间" style="width:60%"
19
- :value.sync="model.f_end_date"
20
- v-model="model.f_end_date"
21
- :format="'yyyy-MM-dd'"
22
- condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')"
23
- ></datepicker>
24
- </div>
25
-
26
-
27
- <div class="col-sm-4" >
28
- <label class="font_normal_body" style="width: 40%;">状态</label>
29
- <v-select :value.sync="model.f_state"
30
- v-model="model.f_state"
31
- style="width:60%"
32
- :options='$parent.$parent.charge_state' placeholder='请选择'
33
- condition="f_state = '{}'"
34
- close-on-select></v-select>
35
- </div>
36
- <div class="form-group col-sm-4">
37
- <label class="font_normal_body " style="width: 40%;" >售气公司</label>
38
- <v-select :value.sync="model.f_filiale"
39
- v-model="model.f_filiale"
40
- style="width:60%"
41
- :options='$parent.$parent.f_filiale' placeholder='请选择'
42
- condition="f_filiale = '{}'"
43
- close-on-select></v-select>
44
- <!--<input-->
45
- <!--type="text"-->
46
- <!--class="form-control" style="width: 60%"-->
47
- <!--v-model="model.f_filiale"-->
48
- <!--condition="f_filiale like '%{}%'"-->
49
- <!--placeholder="售气公司"-->
50
- <!--/>-->
51
- </div>
52
- <div class="form-group col-sm-4">
53
- <label class="font_normal_body " style="width: 40%;">售气部门</label>
54
- <v-select :value.sync="model.f_outlets"
55
- v-model="model.f_outlets"
56
- style="width:60%"
57
- :options='$parent.$parent.selldep' placeholder='请选择'
58
- condition="f_outlets = '{}'"
59
- close-on-select></v-select>
60
- <!--<input-->
61
- <!--type="text"-->
62
- <!--class="form-control" style="width: 60%"-->
63
- <!--v-model="model.f_outlets"-->
64
- <!--condition="f_outlets like '%{}%'"-->
65
- <!--placeholder="售气部门"-->
66
- <!--/>-->
67
- </div>
68
- <div class="form-group col-sm-4" >
69
- <label class="font_normal_body" style="width: 40%;" >写卡状态</label>
70
- <v-select :value.sync="model.f_write_card"
71
- v-model="model.f_write_card"
72
- style="width:60%" :value-single="true"
73
- :options='$parent.$parent.writeCard' placeholder='请选择'
74
- close-on-select></v-select>
75
- </div>
76
- <div class="form-group col-sm-4" >
77
- <label class="font_normal_body" style="width: 40%;">指令状态</label>
78
- <v-select :value.sync="model.f_instruct_state"
79
- v-model="model.f_instruct_state"
80
- style="width:60%"
81
- :options='$parent.$parent.f_instruct_state' placeholder='请选择'
82
- condition="f_instruct_state = '{}'"
83
- close-on-select></v-select>
84
- </div>
85
- <div class="form-group col-sm-4" >
86
- <label class="font_normal_body" style="width: 40%;">收费类型</label>
87
- <v-select :value.sync="model.f_type"
88
- v-model="model.f_type"
89
- style="width:60%" multiple
90
- :options='$parent.$parent.f_type' placeholder='请选择'
91
- condition="f_type in {}"
92
- close-on-select></v-select>
93
- </div>
94
- <div class="span" style="float:right;">
95
- <button class="btn btn-success" @click="search()" v-el:cba>查询</button>
96
- </div>
97
- </div>
98
- </div>
99
- </criteria>
100
- <data-grid :model="model" partial='list' v-ref:grid>
101
- <template partial='head'>
102
- <tr>
103
- <th><nobr>流水号</nobr></th>
104
- <th><nobr>购气量</nobr></th>
105
- <th><nobr>购气金额</nobr></th>
106
- <!-- <th><nobr>购气次数</nobr></th>-->
107
- <th><nobr>收费状态</nobr></th>
108
- <th><nobr>收费类型</nobr></th>
109
- <th><nobr>收费日期</nobr></th>
110
- <th><nobr>写卡日期</nobr></th>
111
- <th><nobr>操作员</nobr></th>
112
- <th><nobr>售气站点</nobr></th>
113
- <th><nobr>售气公司</nobr></th>
114
- <th><nobr>售气部门</nobr></th>
115
-
116
- <th><nobr>写卡状态</nobr></th>
117
- <th><nobr>执行结果</nobr></th>
118
-
119
- <th><nobr>操作员编号</nobr></th>
120
- </tr>
121
- </template>
122
- <template partial='body' partial='list' v-ref:grid>
123
- <tr >
124
- <td style="text-align:center">{{row.f_serial_id}}</td>
125
- <td style="text-align:center">{{row.f_pregas}}</td>
126
- <td style="text-align:center">{{row.f_preamount}}</td>
127
- <!-- <td style="text-align:center">{{row.f_times}}</td>-->
128
- <td style="text-align:center">{{row.f_state}}</td>
129
- <td style="text-align:center">{{row.f_type}}</td>
130
- <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
131
- <td style="text-align:center"><nobr>{{row.f_write_date}}</nobr></td>
132
- <td style="text-align:center">{{row.f_operator}}</td>
133
- <td style="text-align:center">{{row.op_spot}}</td>
134
- <td style="text-align:center"><nobr>{{row.f_filiale}}</nobr></td>
135
- <td style="text-align:center"><nobr>{{row.f_outlets}}</nobr></td>
136
- <td style="text-align:center">{{row.f_write_card}}</td>
137
- <td style="text-align:center">{{row.f_instruct_state}}</td>
138
- <td style="text-align:center">{{row.op_id}}</td>
139
- </tr>
140
- </template>
141
- <template partial='foot'></template>
142
- </data-grid>
143
- </criteria-paged>
144
- <table class="table-hover">
145
- <tr class="table-bordered">
146
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
147
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计:&emsp;{{sumsmodel.f_pregas}}</td>
148
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计:&emsp;{{sumsmodel.f_preamount}}</td>
149
- </tr>
150
- </table>
151
- </div>
152
- </template>
153
-
154
- <script>
155
- import {PagedList} from 'vue-client'
156
-
157
- export default {
158
- title: '收费',
159
- data () {
160
- return {
161
- condition: '1=1',
162
- model: new PagedList('rs/sql/sellQuery', 15, {items: '`*`', tablename: '`t_sellinggas`', orderitem: '`f_operate_date DESC`'},{f_pregas: 0,f_preamount: 0}),
163
- charge_state: this.$appdata.getParam('收费状态') ? [{label: '全部', value: ''},...this.$appdata.getParam('收费状态')] : [],
164
- writeCard: this.$appdata.getParam('写卡状态') ? [{label: '全部', value: ''},...this.$appdata.getParam('写卡状态')] : [],
165
- f_instruct_state: this.$appdata.getParam('指令状态') ? [{label: '全部', value: ''},...this.$appdata.getParam('指令状态')] : [],
166
- f_filiale: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
167
- f_outlets: this.$appdata.getParam('售气部门') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气部门')] : [],
168
- f_type: this.$appdata.getParam('收费类型') ? [{label: '全部', value: ''},...this.$appdata.getParam('收费类型')] : [],
169
- row: null,
170
- isdeal: true,
171
- show: false,
172
- sumsmodel: {}
173
- }
174
- },
175
- props:
176
- {
177
- searchdata: {},
178
- isdeal: {},
179
- args:{}
180
- },
181
- ready () {
182
-
183
- this.$refs.paged.$refs.criteria.model.f_state = ['有效']
184
- // this.search()
185
- this.$refs.paged.$refs.criteria.search()
186
- },
187
- methods: {
188
- search(args){
189
- if(this.args && this.args.model) {
190
- if(this.searchdata.f_user_id) {
191
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.searchdata.f_user_id}'`
192
- } else if(this.searchdata.f_card_id){
193
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_card_id = '${this.searchdata.f_card_id}'`
194
- }else if(this.searchdata.f_userinfo_id) {
195
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userinfo_id = '${this.searchdata.f_userinfo_id}'`
196
- }else {
197
- return
198
- }
199
- if(this.$refs.paged.$refs.criteria.model.f_write_card){
200
- if(this.$refs.paged.$refs.criteria.model.f_write_card==='无'){
201
- this.condition = `${this.condition} and f_write_card is null`
202
- }else {
203
- this.condition = `${this.condition} and f_write_card = '${this.$refs.paged.$refs.criteria.model.f_write_card}'`
204
- }
205
- }
206
- this.model.search(this.condition, this.args.model)
207
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
208
- }
209
- }
210
- },
211
- computed:{
212
- selldep () {
213
- let rs = []
214
- if(this.$refs.paged.$refs.criteria.model.f_filiale){
215
- this.$refs.paged.$refs.criteria.model.f_outlets = ''
216
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_filiale) ]
217
- }
218
- else {
219
- return [{label: '全部', value: ''}]
220
- }
221
- },
222
- },
223
- watch:{
224
- args(val){
225
- this.search()
226
- }
227
- }
228
- }
229
- </script>
230
-
1
+ <template >
2
+ <div id="stand-work-list" class="flex bg-white p-10" style="overflow:hidden;">
3
+ <criteria-paged :model="model" v-ref:paged >
4
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" width="100%">
7
+ <div class="col-sm-4" >
8
+ <label class="font_normal_body" style="width: 40%;" >开始时间</label>
9
+ <datepicker placeholder="起始时间" style="width:60%"
10
+ :value.sync="model.f_start_date"
11
+ v-model="model.f_start_date"
12
+ :format="'yyyy-MM-dd'"
13
+ condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')"
14
+ ></datepicker>
15
+ </div>
16
+ <div class="col-sm-4" >
17
+ <label class="font_normal_body" style="width: 40%;" >结束时间</label>
18
+ <datepicker placeholder="结束时间" style="width:60%"
19
+ :value.sync="model.f_end_date"
20
+ v-model="model.f_end_date"
21
+ :format="'yyyy-MM-dd'"
22
+ condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')"
23
+ ></datepicker>
24
+ </div>
25
+
26
+
27
+ <div class="col-sm-4" >
28
+ <label class="font_normal_body" style="width: 40%;">状态</label>
29
+ <v-select :value.sync="model.f_state"
30
+ v-model="model.f_state"
31
+ style="width:60%"
32
+ :options='$parent.$parent.charge_state' placeholder='请选择'
33
+ condition="f_state = '{}'"
34
+ close-on-select></v-select>
35
+ </div>
36
+ <div class="form-group col-sm-4">
37
+ <label class="font_normal_body " style="width: 40%;" >售气公司</label>
38
+ <v-select :value.sync="model.f_filiale"
39
+ v-model="model.f_filiale"
40
+ style="width:60%"
41
+ :options='$parent.$parent.f_filiale' placeholder='请选择'
42
+ condition="f_filiale = '{}'"
43
+ close-on-select></v-select>
44
+ <!--<input-->
45
+ <!--type="text"-->
46
+ <!--class="form-control" style="width: 60%"-->
47
+ <!--v-model="model.f_filiale"-->
48
+ <!--condition="f_filiale like '%{}%'"-->
49
+ <!--placeholder="售气公司"-->
50
+ <!--/>-->
51
+ </div>
52
+ <div class="form-group col-sm-4">
53
+ <label class="font_normal_body " style="width: 40%;">售气部门</label>
54
+ <v-select :value.sync="model.f_outlets"
55
+ v-model="model.f_outlets"
56
+ style="width:60%"
57
+ :options='$parent.$parent.selldep' placeholder='请选择'
58
+ condition="f_outlets = '{}'"
59
+ close-on-select></v-select>
60
+ <!--<input-->
61
+ <!--type="text"-->
62
+ <!--class="form-control" style="width: 60%"-->
63
+ <!--v-model="model.f_outlets"-->
64
+ <!--condition="f_outlets like '%{}%'"-->
65
+ <!--placeholder="售气部门"-->
66
+ <!--/>-->
67
+ </div>
68
+ <div class="form-group col-sm-4" >
69
+ <label class="font_normal_body" style="width: 40%;" >写卡状态</label>
70
+ <v-select :value.sync="model.f_write_card"
71
+ v-model="model.f_write_card"
72
+ style="width:60%" :value-single="true"
73
+ :options='$parent.$parent.writeCard' placeholder='请选择'
74
+ close-on-select></v-select>
75
+ </div>
76
+ <div class="form-group col-sm-4" >
77
+ <label class="font_normal_body" style="width: 40%;">指令状态</label>
78
+ <v-select :value.sync="model.f_instruct_state"
79
+ v-model="model.f_instruct_state"
80
+ style="width:60%"
81
+ :options='$parent.$parent.f_instruct_state' placeholder='请选择'
82
+ condition="f_instruct_state = '{}'"
83
+ close-on-select></v-select>
84
+ </div>
85
+ <div class="form-group col-sm-4" >
86
+ <label class="font_normal_body" style="width: 40%;">收费类型</label>
87
+ <v-select :value.sync="model.f_type"
88
+ v-model="model.f_type"
89
+ style="width:60%" multiple
90
+ :options='$parent.$parent.f_type' placeholder='请选择'
91
+ condition="f_type in {}"
92
+ close-on-select></v-select>
93
+ </div>
94
+ <div class="span" style="float:right;">
95
+ <button class="btn btn-success" @click="search()" v-el:cba>查询</button>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </criteria>
100
+ <data-grid :model="model" partial='list' v-ref:grid>
101
+ <template partial='head'>
102
+ <tr>
103
+ <th><nobr>流水号</nobr></th>
104
+ <th><nobr>购气量</nobr></th>
105
+ <th><nobr>购气金额</nobr></th>
106
+ <!-- <th><nobr>购气次数</nobr></th>-->
107
+ <th><nobr>收费状态</nobr></th>
108
+ <th><nobr>收费类型</nobr></th>
109
+ <th><nobr>收费日期</nobr></th>
110
+ <th><nobr>写卡日期</nobr></th>
111
+ <th><nobr>操作员</nobr></th>
112
+ <th><nobr>售气站点</nobr></th>
113
+ <th><nobr>售气公司</nobr></th>
114
+ <th><nobr>售气部门</nobr></th>
115
+
116
+ <th><nobr>写卡状态</nobr></th>
117
+ <th><nobr>执行结果</nobr></th>
118
+
119
+ <th><nobr>操作员编号</nobr></th>
120
+ </tr>
121
+ </template>
122
+ <template partial='body' partial='list' v-ref:grid>
123
+ <tr >
124
+ <td style="text-align:center">{{row.f_serial_id}}</td>
125
+ <td style="text-align:center">{{row.f_pregas}}</td>
126
+ <td style="text-align:center">{{row.f_preamount}}</td>
127
+ <!-- <td style="text-align:center">{{row.f_times}}</td>-->
128
+ <td style="text-align:center">{{row.f_state}}</td>
129
+ <td style="text-align:center">{{row.f_type}}</td>
130
+ <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
131
+ <td style="text-align:center"><nobr>{{row.f_write_date}}</nobr></td>
132
+ <td style="text-align:center">{{row.f_operator}}</td>
133
+ <td style="text-align:center">{{row.op_spot}}</td>
134
+ <td style="text-align:center"><nobr>{{row.f_filiale}}</nobr></td>
135
+ <td style="text-align:center"><nobr>{{row.f_outlets}}</nobr></td>
136
+ <td style="text-align:center">{{row.f_write_card}}</td>
137
+ <td style="text-align:center">{{row.f_instruct_state}}</td>
138
+ <td style="text-align:center">{{row.op_id}}</td>
139
+ </tr>
140
+ </template>
141
+ <template partial='foot'></template>
142
+ </data-grid>
143
+ </criteria-paged>
144
+ <table class="table-hover">
145
+ <tr class="table-bordered">
146
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
147
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计:&emsp;{{sumsmodel.f_pregas}}</td>
148
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计:&emsp;{{sumsmodel.f_preamount}}</td>
149
+ </tr>
150
+ </table>
151
+ </div>
152
+ </template>
153
+
154
+ <script>
155
+ import {PagedList} from 'vue-client'
156
+
157
+ export default {
158
+ title: '收费',
159
+ data () {
160
+ return {
161
+ condition: '1=1',
162
+ model: new PagedList('rs/sql/sellQuery', 15, {items: '`*`', tablename: '`t_sellinggas`', orderitem: '`f_operate_date DESC`'},{f_pregas: 0,f_preamount: 0}),
163
+ charge_state: this.$appdata.getParam('收费状态') ? [{label: '全部', value: ''},...this.$appdata.getParam('收费状态')] : [],
164
+ writeCard: this.$appdata.getParam('写卡状态') ? [{label: '全部', value: ''},...this.$appdata.getParam('写卡状态')] : [],
165
+ f_instruct_state: this.$appdata.getParam('指令状态') ? [{label: '全部', value: ''},...this.$appdata.getParam('指令状态')] : [],
166
+ f_filiale: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
167
+ f_outlets: this.$appdata.getParam('售气部门') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气部门')] : [],
168
+ f_type: this.$appdata.getParam('收费类型') ? [{label: '全部', value: ''},...this.$appdata.getParam('收费类型')] : [],
169
+ row: null,
170
+ isdeal: true,
171
+ show: false,
172
+ sumsmodel: {}
173
+ }
174
+ },
175
+ props:
176
+ {
177
+ searchdata: {},
178
+ isdeal: {},
179
+ args:{}
180
+ },
181
+ ready () {
182
+
183
+ this.$refs.paged.$refs.criteria.model.f_state = ['有效']
184
+ // this.search()
185
+ this.$refs.paged.$refs.criteria.search()
186
+ },
187
+ methods: {
188
+ search(args){
189
+ if(this.args && this.args.model) {
190
+ if(this.searchdata.f_user_id) {
191
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.searchdata.f_user_id}'`
192
+ } else if(this.searchdata.f_card_id){
193
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_card_id = '${this.searchdata.f_card_id}'`
194
+ }else if(this.searchdata.f_userinfo_id) {
195
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userinfo_id = '${this.searchdata.f_userinfo_id}'`
196
+ }else {
197
+ return
198
+ }
199
+ if(this.$refs.paged.$refs.criteria.model.f_write_card){
200
+ if(this.$refs.paged.$refs.criteria.model.f_write_card==='无'){
201
+ this.condition = `${this.condition} and f_write_card is null`
202
+ }else {
203
+ this.condition = `${this.condition} and f_write_card = '${this.$refs.paged.$refs.criteria.model.f_write_card}'`
204
+ }
205
+ }
206
+ this.model.search(this.condition, this.args.model)
207
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
208
+ }
209
+ }
210
+ },
211
+ computed:{
212
+ selldep () {
213
+ let rs = []
214
+ if(this.$refs.paged.$refs.criteria.model.f_filiale){
215
+ this.$refs.paged.$refs.criteria.model.f_outlets = ''
216
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_filiale) ]
217
+ }
218
+ else {
219
+ return [{label: '全部', value: ''}]
220
+ }
221
+ },
222
+ },
223
+ watch:{
224
+ args(val){
225
+ this.search()
226
+ }
227
+ }
228
+ }
229
+ </script>
230
+