telephone-clients 3.0.103-71 → 3.0.103-73

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.
@@ -1,98 +1,98 @@
1
- <template>
2
- <div id='app' class="basic-main" style="height: 100%">
3
- <criteria-paged :model="model" :pager='false' v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' class="search_area" v-ref:criteria>
5
- <div novalidate class="form-inline auto" partial>
6
- <div class="row">
7
- <div class="col-sm-2 form-group">
8
- <label for="startDate" class="font_normal_body">开始日期:</label>
9
- <datepicker id="startDate" placeholder="开始日期"
10
- v-model="model.startDate"
11
- :value.sync="model.startDate"
12
- style="width: 60%;"
13
- :disabled-days-of-Week="[]"
14
- :format="'yyyy-MM-dd'"
15
- :show-reset-button="reset">
16
- </datepicker>
17
- </div>
18
- <div class="col-sm-2 form-group">
19
- <label for="endDate" class="font_normal_body">结束日期:</label>
20
- <datepicker id="endDate" placeholder="结束日期"
21
- v-model="model.endDate"
22
- :value.sync="model.endDate"
23
- :disabled-days-of-Week="[]"
24
- style="width: 60%;"
25
- :format="'yyyy-MM-dd'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-3 form-group" style="margin-top: 8px">
30
- <button class="button_search button_spacing" @click="search()">查询</button>
31
- <report-print class="button_export button_spacing" style="width:28%" ></report-print>
32
- <report-excel class="button_export button_spacing" style="width:28%" ></report-excel>
33
- </div>
34
- </div>
35
- </div>
36
- </criteria>
37
- <div partial='list' class="list_area" style="overflow-y: scroll;position:relative">
38
- <table class='tableprint' style="margin: 0px auto">
39
- <thead>
40
- <tr>
41
- <th colspan='5' style="font-weight: normal; text-align: left;">
42
- <h3 style="text-align: center">维修报表统计</h3>
43
- </th>
44
- </tr>
45
- </thead>
46
- <tr>
47
- <th colspan='5' style="font-weight: normal;">
48
- {{{ model.data.substring(26,model.data.length-8) }}}
49
- </th>
50
- </tr>
51
- </table>
52
- </div>
53
- </criteria-paged>
54
- </div>
55
-
56
- </template>
57
-
58
- <script>
59
- import {DataModel} from 'vue-client'
60
-
61
- export default {
62
- title: '维修报表',
63
- data() {
64
- let model = new DataModel('rs/telephone/report/repairsDetailsReport')
65
- return {
66
- filialeNameStr: '',
67
- filialeCodeStr: '',
68
- userid: this.$login.f.id,
69
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
70
- model: model
71
- }
72
- },
73
- methods: {
74
- getRes(obj) {
75
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
76
- },
77
- search(args){
78
- let condition = ' and 1 = 1 '
79
- if (args.model.startDate){
80
- condition += ` and ts1.f_date_leave >= '${args.model.startDate} 00:00:00' `
81
- }
82
- if (args.model.endDate){
83
- condition += ` and ts1.f_date_leave <= '${args.model.endDate} 23:59:59' `
84
- }
85
- this.model.search(condition,args.model)
86
- }
87
- },
88
- ready() {
89
- },
90
- computed: {
91
- }
92
- }
93
- </script>
94
- <style>
95
- th>tr>td {
96
- width: 200px;
97
- }
98
- </style>
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' class="search_area" v-ref:criteria>
5
+ <div novalidate class="form-inline auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group">
8
+ <label for="startDate" class="font_normal_body">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ style="width: 60%;"
13
+ :disabled-days-of-Week="[]"
14
+ :format="'yyyy-MM-dd'"
15
+ :show-reset-button="reset">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期:</label>
20
+ <datepicker id="endDate" placeholder="结束日期"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :disabled-days-of-Week="[]"
24
+ style="width: 60%;"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3 form-group" style="margin-top: 8px">
30
+ <button class="button_search button_spacing" @click="search()">查询</button>
31
+ <report-print class="button_export button_spacing" style="width:28%" ></report-print>
32
+ <report-excel class="button_export button_spacing" style="width:28%" ></report-excel>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </criteria>
37
+ <div partial='list' class="list_area" style="overflow-y: scroll;position:relative">
38
+ <table class='tableprint' style="margin: 0px auto">
39
+ <thead>
40
+ <tr>
41
+ <th colspan='5' style="font-weight: normal; text-align: left;">
42
+ <h3 style="text-align: center">维修报表统计</h3>
43
+ </th>
44
+ </tr>
45
+ </thead>
46
+ <tr>
47
+ <th colspan='5' style="font-weight: normal;">
48
+ {{{ model.data.substring(26,model.data.length-8) }}}
49
+ </th>
50
+ </tr>
51
+ </table>
52
+ </div>
53
+ </criteria-paged>
54
+ </div>
55
+
56
+ </template>
57
+
58
+ <script>
59
+ import {DataModel} from 'vue-client'
60
+
61
+ export default {
62
+ title: '维修报表',
63
+ data() {
64
+ let model = new DataModel('rs/telephone/report/repairsDetailsReport')
65
+ return {
66
+ filialeNameStr: '',
67
+ filialeCodeStr: '',
68
+ userid: this.$login.f.id,
69
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
70
+ model: model
71
+ }
72
+ },
73
+ methods: {
74
+ getRes(obj) {
75
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
76
+ },
77
+ search(args){
78
+ let condition = ' and 1 = 1 '
79
+ if (args.model.startDate){
80
+ condition += ` and ts1.f_date_leave >= '${args.model.startDate} 00:00:00' `
81
+ }
82
+ if (args.model.endDate){
83
+ condition += ` and ts1.f_date_leave <= '${args.model.endDate} 23:59:59' `
84
+ }
85
+ this.model.search(condition,args.model)
86
+ }
87
+ },
88
+ ready() {
89
+ },
90
+ computed: {
91
+ }
92
+ }
93
+ </script>
94
+ <style>
95
+ th>tr>td {
96
+ width: 200px;
97
+ }
98
+ </style>