manage-client 4.0.67 → 4.0.69

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.
@@ -331,9 +331,9 @@
331
331
  await self.$MagLoadParams.loadParam()
332
332
  await self.$MagGetSaleParam.initinputtor()
333
333
  self.initQueryParam()
334
- self.getinstructtype()
335
- self.getinstructtitle()
336
- self.getinstructstate()
334
+ // self.getinstructtype()
335
+ // self.getinstructtitle()
336
+ // self.getinstructstate()
337
337
  await self.$getConfig(self, 'NewQueryInstruct')
338
338
  console.log('指令查看config', self.config)
339
339
  self.getfield = self.config.excelHeaders
@@ -356,8 +356,8 @@
356
356
  other: [],
357
357
  sumsmodel: {},
358
358
  userType:[],
359
- instructtype:[],
360
- instructstate:[],
359
+ // instructtype:[],
360
+ // instructstate:[],
361
361
  org:{
362
362
  org:[this.$login.f.orgid],
363
363
  dep:[],
@@ -379,7 +379,7 @@
379
379
  'f_orgname': '组织机构', 'f_instruct_title': '指令标题'
380
380
  }
381
381
  },
382
- instructtitle: [],
382
+ // instructtitle: [],
383
383
  detailShow: false,
384
384
  f_instruct_content: '',
385
385
  modelval: [
@@ -455,57 +455,57 @@
455
455
  }
456
456
  })
457
457
  },
458
- getinstructtype(){
459
- this.instructtype=[]
460
- let load = new HttpResetClass()
461
- load.load('POST', 'api/af-revenue/sql/singleTableParam', {
462
- data: {
463
- items:'f_instruct_type',
464
- tablename:'t_instruct',
465
- condition:'f_instruct_type is not null group by f_instruct_type'
466
- }
467
- },{warnMsg:null,resolveMsg:null}).then((res) => {
468
- this.instructtype.push({label: '全部', value: ''})
469
- res.data.forEach((item) => {
470
- this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
471
- })
472
- })
473
-
474
- },
475
- getinstructtitle(){
476
- this.instructtype=[]
477
- let load = new HttpResetClass()
478
- load.load('POST', 'api/af-revenue/sql/singleTableParam', {
479
- data: {
480
- items:'f_instruct_title',
481
- tablename:'t_instruct',
482
- condition:'f_instruct_title is not null group by f_instruct_title'
483
- }
484
- },{warnMsg:null,resolveMsg:null}).then((res) => {
485
- this.instructtitle.push({label: '全部', value: ''})
486
- res.data.forEach((item) => {
487
- this.instructtitle.push({label: item.f_instruct_title, value: item.f_instruct_title})
488
- })
489
- })
490
-
491
- },
492
- getinstructstate(){
493
- this.instructstate=[]
494
- let load = new HttpResetClass()
495
- load.load('POST', 'api/af-revenue/sql/singleTableParam', {
496
- data: {
497
- items:'f_instruct_state',
498
- tablename:'t_instruct',
499
- condition:'f_instruct_state is not null group by f_instruct_state'
500
- }
501
- },{warnMsg:null,resolveMsg:null}).then((res) => {
502
- this.instructstate.push({label: '全部', value: ''})
503
- res.data.forEach((item) => {
504
- this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
505
- })
506
- })
507
-
508
- },
458
+ // getinstructtype(){
459
+ // this.instructtype=[]
460
+ // let load = new HttpResetClass()
461
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
462
+ // data: {
463
+ // items:'f_instruct_type',
464
+ // tablename:'t_instruct',
465
+ // condition:`f_instruct_type is not null and f_instruct_date>='${this.f_start_date}' and f_instruct_date<='${this.f_end_date}' group by f_instruct_type`
466
+ // }
467
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
468
+ // this.instructtype.push({label: '全部', value: ''})
469
+ // res.data.forEach((item) => {
470
+ // this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
471
+ // })
472
+ // })
473
+ //
474
+ // },
475
+ // getinstructtitle(){
476
+ // this.instructtype=[]
477
+ // let load = new HttpResetClass()
478
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
479
+ // data: {
480
+ // items:'f_instruct_title',
481
+ // tablename:'t_instruct',
482
+ // condition:'f_instruct_title is not null group by f_instruct_title'
483
+ // }
484
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
485
+ // this.instructtitle.push({label: '全部', value: ''})
486
+ // res.data.forEach((item) => {
487
+ // this.instructtitle.push({label: item.f_instruct_title, value: item.f_instruct_title})
488
+ // })
489
+ // })
490
+ //
491
+ // },
492
+ // getinstructstate(){
493
+ // this.instructstate=[]
494
+ // let load = new HttpResetClass()
495
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
496
+ // data: {
497
+ // items:'f_instruct_state',
498
+ // tablename:'t_instruct',
499
+ // condition:'f_instruct_state is not null group by f_instruct_state'
500
+ // }
501
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
502
+ // this.instructstate.push({label: '全部', value: ''})
503
+ // res.data.forEach((item) => {
504
+ // this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
505
+ // })
506
+ // })
507
+ //
508
+ // },
509
509
  clearmsg () {
510
510
  this.$refs.paged.$refs.criteria.model = {}
511
511
  },
@@ -577,6 +577,15 @@
577
577
  },
578
578
  },
579
579
  computed: {
580
+ instructtype () {
581
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('指令类型')]
582
+ },
583
+ instructstate () {
584
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('执行状态')]
585
+ },
586
+ instructtitle () {
587
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('指令标题')]
588
+ },
580
589
  userType () {
581
590
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
582
591
  },
@@ -0,0 +1,336 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <p class="bg-info text-center" style="padding: 8px;">天然气销售报表</p>
6
+ <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
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" for="startDate">开始日期:</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group" >
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <res-select-group
30
+ :show-component="$parent.$parent.resshow"
31
+ :selectin="true" :initres="$parent.$parent.initres"
32
+ :cascade =true @re-res="$parent.$parent.getRes"
33
+ v-ref:sel>
34
+ </res-select-group>
35
+
36
+ </div>
37
+ <div class="span" style = "float:right;">
38
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
39
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
40
+ <report-excel id='gasprice'></report-excel>
41
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
42
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
43
+ </div>
44
+ <div class="row" v-show="$parent.$parent.criteriaShow">
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
47
+ <v-select :value.sync="model.f_payment" multiple
48
+ v-model="model.f_payment"
49
+ :options='$parent.$parent.payment' placeholder='请选择'
50
+ condition="s.f_payment in {}"
51
+ close-on-select></v-select>
52
+ </div>
53
+ <div class="col-sm-2 form-group">
54
+ <label class="font_normal_body">气表类型</label>
55
+ <v-select :value.sync="model.f_meter_type" multiple
56
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
57
+ condition="s.f_meter_type in {}"
58
+ close-on-select></v-select>
59
+ </div>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">气价类型</label>
62
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
63
+ @change="$parent.$parent.pricetypechanged"
64
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
65
+ condition="sp.f_price_type = '{}'"
66
+ close-on-select v-ref:type>
67
+ </v-select>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">气价名称</label>
71
+ <v-select :value.sync="model.f_price_name"
72
+ v-model="model.f_price_name"
73
+ multiple
74
+ :options="$parent.$parent.getPricenames"
75
+ condition="sp.f_price_name in {}"
76
+ ></v-select>
77
+ </div>
78
+ <!--<div class="col-sm-2 form-group">-->
79
+ <!--<label class="font_normal_body">收费状态</label>-->
80
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
81
+ <!--v-model="$parent.$parent.f_state"-->
82
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
83
+ <!--condition="f_state in {}"-->
84
+ <!--close-on-select></v-select>-->
85
+ <!--</div>-->
86
+ </div>
87
+ </div>
88
+ </criteria>
89
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
90
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
91
+ <thead>
92
+ <tr>
93
+ <th colspan='9' style="font-weight: normal; text-align: left;">
94
+ <h3 style="text-align: center">天然气销售报表</h3>
95
+ </th>
96
+ </tr>
97
+ <tr>
98
+ <th colspan='8' style="font-weight: normal; text-align: center;">
99
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
100
+ 结束时间:{{ model.model.endDate }}
101
+ </th>
102
+ </tr>
103
+ <tr>
104
+ <th colspan='8' style="font-weight: normal; text-align: center;">
105
+ 打印时间:{{{$parent.printTime}}}
106
+ </th>
107
+ </tr>
108
+ <tr>
109
+ <th colspan='8' style="font-weight: normal; text-align: center;">
110
+ <div>
111
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
112
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
113
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
114
+ </div>
115
+ </th>
116
+ </tr>
117
+ </thead>
118
+ <tr>
119
+ <td colspan='12'>
120
+ {{{ model.data.substring(26,model.data.length-8) }}}
121
+ </td>
122
+ </tr>
123
+ <tfoot>
124
+ <tr style="text-align: left">
125
+ <th colspan='3'>财务审核:</th>
126
+ <th colspan='3'>收款审核:</th>
127
+ <th colspan='3'>收款员:</th>
128
+ </tr>
129
+ </tfoot>
130
+ </table>
131
+ {{{ $parent.reportStr}}}
132
+ </div>
133
+ </criteria-paged>
134
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
135
+ <header slot="modal-header" class="modal-header">
136
+ <h4 class="modal-title">输入文件名称</h4>
137
+ </header>
138
+ <article slot="modal-body" class="modal-body">
139
+ <div class="form-group">
140
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
141
+ </div>
142
+ </article>
143
+ <footer slot="modal-footer" class="modal-footer">
144
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
145
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
146
+ </footer>
147
+ </modal>
148
+ </div>
149
+ </template>
150
+
151
+ <script>
152
+ import { DataModel } from 'vue-client'
153
+ import co from 'co'
154
+
155
+ let readySomething = async function (self) {
156
+ self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
157
+ self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
158
+ console.log(self.$login.f)
159
+ await self.$MagLoadParams.loadParam()
160
+ self.initParams()
161
+ self.$refs.paged.$refs.criteria.search()
162
+ }
163
+ let saveFile = function * (self) {
164
+ // 线验证文件是否重名
165
+ let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
166
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
167
+ {resolveMsg: null, rejectMsg: null})
168
+ if (count.data.length > 0) {
169
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
170
+ return
171
+ }
172
+ let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
173
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
174
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
175
+ f_outlets: this.$login.f.depname})
176
+ if (saveBack.data.status === 'succeed') {
177
+ self.show = false
178
+ self.filename = ''
179
+ // 后台保存完成,通知刷新
180
+ self.$dispatch('save-success', self.filename)
181
+ }
182
+ }
183
+ export default {
184
+ title: '天然气销售报表',
185
+ props: ['data'],
186
+ data () {
187
+ return {
188
+ printTime: this.$login.toStandardTimeString(),
189
+ depresid: [],
190
+ userresid: [],
191
+ f_orgid: this.$login.f.orgid,
192
+ f_depid: this.$login.f.depids,
193
+ f_operatorid: this.$login.f.id,
194
+ operatorid: [],
195
+ depid: [],
196
+ orgname: '',
197
+ depname: '',
198
+ operatorname: '',
199
+ f_inputtor: [],
200
+ f_user_type: '',
201
+ criteriaShow: false,
202
+ orgCondtionStr: '1=1',
203
+ model: new DataModel('api/af-revenue/report/gasPriceGroup', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
204
+ f_orgid: 'this.model.f_orgid'}),
205
+ reportStr: null,
206
+ resshow: ['company', 'department', 'operator'],
207
+ initres: {
208
+ org: [this.$login.f.orgid],
209
+ dep: [],
210
+ user: []
211
+ },
212
+ f_filialeid: this.$login.f.orgid,
213
+ show: false,
214
+ }
215
+ },
216
+ ready () {
217
+ readySomething(this).then(() => {
218
+ this.$emit('ready')
219
+ }).catch((error) => {
220
+ this.$emit('error', error)
221
+ })
222
+ },
223
+ methods: {
224
+ initParams() {
225
+ // 初始化气表品牌
226
+ let brandArr = []
227
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
228
+ let temp = {}
229
+ temp.label = item.label
230
+ temp.value = item.value.f_meter_brand
231
+ brandArr.push(temp)
232
+ })
233
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
234
+ //初始化气表价格
235
+ this.prices = this.$MagGetSaleParam.getPrices()
236
+ },
237
+ hidden () {
238
+ this.criteriaShow = !this.criteriaShow
239
+ },
240
+ searchData () {
241
+ this.$refs.paged.$refs.criteria.search()
242
+ },
243
+ selfSearch (args) {
244
+ let orgcondition = args.condition + this.orgCondtionStr
245
+
246
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
247
+ this.$refs.paged.search(args)
248
+ },
249
+ async getRes(condition,obj) {
250
+ this.orgCondtionStr = condition
251
+ this.orgname = obj.orgnames[0]
252
+ this.depname = obj.depnames[0]
253
+ },
254
+ // 根据文件路径获取储存的报表内容
255
+ getFileContent (path) {
256
+ this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
257
+ this.reportStr = res.data.filecontent
258
+ this.model.state = '正确'
259
+ })
260
+ },
261
+ confirm () {
262
+ if (!this.filename || this.filename === '') {
263
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
264
+ }
265
+ let saveGen = saveFile(this)
266
+ co(saveGen)
267
+ },
268
+ close () {
269
+ this.show = false
270
+ },
271
+ pricetypechanged () {
272
+ this.$refs.paged.$refs.criteria.model.f_price_name = []
273
+ },
274
+ // 将报表保存成文件
275
+ confirmReport () {
276
+ this.show = true
277
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
278
+ }
279
+ },
280
+ watch: {
281
+ 'data' (val) {
282
+ if (val.f_files_path) {
283
+ this.getFileContent(val.f_files_path)
284
+ } else {
285
+ this.reportStr = null
286
+ }
287
+ }
288
+ },
289
+ computed: {
290
+ getPricenames () {
291
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype
292
+ if (this.$refs.paged.$refs.criteria.model !== null) {
293
+ let rs = []
294
+ let priceArr = []
295
+ if (pricetype.length > 0) {
296
+ let params = {
297
+ f_price_type: pricetype[0],
298
+ filter: this.f_filialeid,
299
+ prices: this.prices
300
+ }
301
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
302
+ let temp = {}
303
+ temp.label = item.label
304
+ temp.value = item.value.f_price_name
305
+ priceArr.push(temp)
306
+ })
307
+ if (priceArr.length == 0) {
308
+ rs = [{label: '全部', value: ''}]
309
+ } else {
310
+ rs = [...priceArr]
311
+ }
312
+ }
313
+ if (rs.length === 0) {
314
+ console.log('rs读出来是空')
315
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
316
+ }
317
+ return rs
318
+ }
319
+ },
320
+ pricetypes () {
321
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
322
+ },
323
+ metertypes () {
324
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
325
+ },
326
+ payment () {
327
+ return [...this.$appdata.getParam('付款方式查询')]
328
+ }
329
+ }
330
+ }
331
+ </script>
332
+ <style scoped>
333
+ .noborder{
334
+ border: none;
335
+ }
336
+ </style>
@@ -0,0 +1,9 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from 'vue'
3
+
4
+ export default function () {
5
+ // 气价分组汇总表
6
+ Vue.component('gas-price-group', (resolve) => {
7
+ require(['./GasPriceGroup'], resolve)
8
+ })
9
+ }
@@ -331,9 +331,9 @@
331
331
  await self.$MagLoadParams.loadParam()
332
332
  await self.$MagGetSaleParam.initinputtor()
333
333
  self.initQueryParam()
334
- self.getinstructtype()
335
- self.getinstructtitle()
336
- self.getinstructstate()
334
+ // self.getinstructtype()
335
+ // self.getinstructtitle()
336
+ // self.getinstructstate()
337
337
  await self.$getConfig(self, 'NewQueryInstruct')
338
338
  console.log('指令查看config', self.config)
339
339
  self.getfield = self.config.excelHeaders
@@ -356,8 +356,8 @@
356
356
  other: [],
357
357
  sumsmodel: {},
358
358
  userType:[],
359
- instructtype:[],
360
- instructstate:[],
359
+ // instructtype:[],
360
+ // instructstate:[],
361
361
  org:{
362
362
  org:[this.$login.f.orgid],
363
363
  dep:[],
@@ -379,7 +379,7 @@
379
379
  'f_orgname': '组织机构', 'f_instruct_title': '指令标题'
380
380
  }
381
381
  },
382
- instructtitle: [],
382
+ // instructtitle: [],
383
383
  detailShow: false,
384
384
  f_instruct_content: '',
385
385
  modelval: [
@@ -455,57 +455,57 @@
455
455
  }
456
456
  })
457
457
  },
458
- getinstructtype(){
459
- this.instructtype=[]
460
- let load = new HttpResetClass()
461
- load.load('POST', 'api/af-revenue/sql/singleTableParam', {
462
- data: {
463
- items:'f_instruct_type',
464
- tablename:'t_instruct',
465
- condition:'f_instruct_type is not null group by f_instruct_type'
466
- }
467
- },{warnMsg:null,resolveMsg:null}).then((res) => {
468
- this.instructtype.push({label: '全部', value: ''})
469
- res.data.forEach((item) => {
470
- this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
471
- })
472
- })
473
-
474
- },
475
- getinstructtitle(){
476
- this.instructtype=[]
477
- let load = new HttpResetClass()
478
- load.load('POST', 'api/af-revenue/sql/singleTableParam', {
479
- data: {
480
- items:'f_instruct_title',
481
- tablename:'t_instruct',
482
- condition:'f_instruct_title is not null group by f_instruct_title'
483
- }
484
- },{warnMsg:null,resolveMsg:null}).then((res) => {
485
- this.instructtitle.push({label: '全部', value: ''})
486
- res.data.forEach((item) => {
487
- this.instructtitle.push({label: item.f_instruct_title, value: item.f_instruct_title})
488
- })
489
- })
490
-
491
- },
492
- getinstructstate(){
493
- this.instructstate=[]
494
- let load = new HttpResetClass()
495
- load.load('POST', 'api/af-revenue/sql/singleTableParam', {
496
- data: {
497
- items:'f_instruct_state',
498
- tablename:'t_instruct',
499
- condition:'f_instruct_state is not null group by f_instruct_state'
500
- }
501
- },{warnMsg:null,resolveMsg:null}).then((res) => {
502
- this.instructstate.push({label: '全部', value: ''})
503
- res.data.forEach((item) => {
504
- this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
505
- })
506
- })
507
-
508
- },
458
+ // getinstructtype(){
459
+ // this.instructtype=[]
460
+ // let load = new HttpResetClass()
461
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
462
+ // data: {
463
+ // items:'f_instruct_type',
464
+ // tablename:'t_instruct',
465
+ // condition:'f_instruct_type is not null and group by f_instruct_type'
466
+ // }
467
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
468
+ // this.instructtype.push({label: '全部', value: ''})
469
+ // res.data.forEach((item) => {
470
+ // this.instructtype.push({label: item.f_instruct_type, value: item.f_instruct_type})
471
+ // })
472
+ // })
473
+ //
474
+ // },
475
+ // getinstructtitle(){
476
+ // this.instructtype=[]
477
+ // let load = new HttpResetClass()
478
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
479
+ // data: {
480
+ // items:'f_instruct_title',
481
+ // tablename:'t_instruct',
482
+ // condition:'f_instruct_title is not null group by f_instruct_title'
483
+ // }
484
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
485
+ // this.instructtitle.push({label: '全部', value: ''})
486
+ // res.data.forEach((item) => {
487
+ // this.instructtitle.push({label: item.f_instruct_title, value: item.f_instruct_title})
488
+ // })
489
+ // })
490
+ //
491
+ // },
492
+ // getinstructstate(){
493
+ // this.instructstate=[]
494
+ // let load = new HttpResetClass()
495
+ // load.load('POST', 'api/af-revenue/sql/singleTableParam', {
496
+ // data: {
497
+ // items:'f_instruct_state',
498
+ // tablename:'t_instruct',
499
+ // condition:'f_instruct_state is not null group by f_instruct_state'
500
+ // }
501
+ // },{warnMsg:null,resolveMsg:null}).then((res) => {
502
+ // this.instructstate.push({label: '全部', value: ''})
503
+ // res.data.forEach((item) => {
504
+ // this.instructstate.push({label: item.f_instruct_state, value: item.f_instruct_state})
505
+ // })
506
+ // })
507
+ //
508
+ // },
509
509
  clearmsg () {
510
510
  this.$refs.paged.$refs.criteria.model = {}
511
511
  },
@@ -577,6 +577,12 @@
577
577
  },
578
578
  },
579
579
  computed: {
580
+ instructtype () {
581
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('指令类型')]
582
+ },
583
+ instructstate () {
584
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('执行状态')]
585
+ },
580
586
  userType () {
581
587
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
582
588
  },