safecheck-client 3.0.33-91 → 3.0.33-93

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,105 +1,105 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:criteria>
5
- <validator name='v' partial>
6
- <div class="form-inline auto" >
7
- <div class="form-group" >
8
- <v-select id="f_subcompany"
9
- placeholder='请选择分公司'
10
- :value.sync="$parent.$parent.model.f_subcompany"
11
- :options='$parent.$parent.f_divisions'
12
- close-on-select clear-button></v-select>
13
- </div>
14
- <div class="form-group">
15
- <v-select id="f_check_type"
16
- placeholder='请选择用户类型'
17
- :value.sync="$parent.$parent.model.f_check_type"
18
- :options='$parent.$parent.user_types'
19
- close-on-select clear-button></v-select>
20
- </div>
21
- <div class="form-group">
22
- <datepicker id="startdate"
23
- v-model='model.date1'
24
- :value.sync="model.date1"
25
- :disabled-days-of-Week="[]"
26
- placeholder="开始时间"
27
- :format="'yyyy-MM-dd'"
28
- :show-reset-button="reset">
29
- </datepicker>
30
- </div>
31
- <div class="form-group">
32
- <datepicker id="startdate"
33
- v-model='model.date2'
34
- :value.sync="model.date2"
35
- :disabled-days-of-Week="[]"
36
- :format="'yyyy-MM-dd'"
37
- placeholder="结束时间"
38
- :show-reset-button="reset">
39
- </datepicker>
40
- </div>
41
- <div class="form-group">
42
- <input type="number" class="form-control"
43
- placeholder='年限超过' defaultValue="8"
44
- v-model="$parent.$parent.model.year">
45
- </div>
46
- <!--<div class="form-group">-->
47
- <!--<v-select id="f_maker"-->
48
- <!--placeholder='请选择热水器品牌'-->
49
- <!--:value.sync="$parent.$parent.model.f_maker"-->
50
- <!--:options='$parent.$parent.brands'-->
51
- <!--close-on-select clear-button></v-select>-->
52
- <!--</div>-->
53
- <div class="form-group">
54
- <button class="btn btn-success width-80" @click="search()">查询</button>
55
- </div>
56
- </div>
57
- </validator>
58
- </criteria>
59
- <data-grid :model="model" partial='list' v-ref:grid>
60
- <template partial='head'>
61
- <tr>
62
- <th>用户姓名</th>
63
- <th>用户ID</th>
64
- <th>灶具品牌</th>
65
- <th>出厂日期</th>
66
- </tr>
67
- </template>
68
- <template partial='body'>
69
- <td>{{row.f_user_name}}</td>
70
- <td>{{row.f_userinfoid}}</td>
71
- <td>{{row.f_brand }}</td>
72
- <td>{{row.f_making_date}}</td>
73
- </template>
74
- </data-grid>
75
- </criteria-paged>
76
- </div>
77
- </template>
78
-
79
- <script>
80
- import { PagedList } from 'vue-client'
81
- import Vue from 'vue'
82
- import AppData from '../../stores/AppData'
83
-
84
- export default {
85
- title: '热水器使用情况',
86
- data () {
87
- let model = new PagedList('rs/sql/热水器使用情况', 20,
88
- {date1: 'this.model.date1', date2: 'this.model.date2',
89
- year: 'this.year', f_subcompany: 'this.f_subcompany[0]',
90
- f_check_type: 'this.f_check_type[0]', f_brand: 'this.f_maker[0]'})
91
- model.f_subcompany = [this.$login.f.f_fengongsi]
92
- model.f_check_type = ['居民']
93
- model.f_maker = ['']
94
- model.date1 = ''
95
- model.date2 = ''
96
- model.year = 6
97
- return {
98
- model: model,
99
- f_divisions: this.$login.f.f_fengongsi != '' ? [{label: this.$login.f.f_fengongsi, value: this.$login.f.f_fengongsi}]: this.$appdata.getParam('安检系统用子公司'),
100
- user_types: this.$appdata.getParam('用户类型'),
101
- brands: this.$appdata.getParam('热水器品牌')
102
- }
103
- }
104
- }
105
- </script>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:criteria>
5
+ <validator name='v' partial>
6
+ <div class="form-inline auto" >
7
+ <div class="form-group" >
8
+ <v-select id="f_subcompany"
9
+ placeholder='请选择分公司'
10
+ :value.sync="$parent.$parent.model.f_subcompany"
11
+ :options='$parent.$parent.f_divisions'
12
+ close-on-select clear-button></v-select>
13
+ </div>
14
+ <div class="form-group">
15
+ <v-select id="f_check_type"
16
+ placeholder='请选择用户类型'
17
+ :value.sync="$parent.$parent.model.f_check_type"
18
+ :options='$parent.$parent.user_types'
19
+ close-on-select clear-button></v-select>
20
+ </div>
21
+ <div class="form-group">
22
+ <datepicker id="startdate"
23
+ v-model='model.date1'
24
+ :value.sync="model.date1"
25
+ :disabled-days-of-Week="[]"
26
+ placeholder="开始时间"
27
+ :format="'yyyy-MM-dd'"
28
+ :show-reset-button="reset">
29
+ </datepicker>
30
+ </div>
31
+ <div class="form-group">
32
+ <datepicker id="startdate"
33
+ v-model='model.date2'
34
+ :value.sync="model.date2"
35
+ :disabled-days-of-Week="[]"
36
+ :format="'yyyy-MM-dd'"
37
+ placeholder="结束时间"
38
+ :show-reset-button="reset">
39
+ </datepicker>
40
+ </div>
41
+ <div class="form-group">
42
+ <input type="number" class="form-control"
43
+ placeholder='年限超过' defaultValue="8"
44
+ v-model="$parent.$parent.model.year">
45
+ </div>
46
+ <!--<div class="form-group">-->
47
+ <!--<v-select id="f_maker"-->
48
+ <!--placeholder='请选择热水器品牌'-->
49
+ <!--:value.sync="$parent.$parent.model.f_maker"-->
50
+ <!--:options='$parent.$parent.brands'-->
51
+ <!--close-on-select clear-button></v-select>-->
52
+ <!--</div>-->
53
+ <div class="form-group">
54
+ <button class="btn btn-success width-80" @click="search()">查询</button>
55
+ </div>
56
+ </div>
57
+ </validator>
58
+ </criteria>
59
+ <data-grid :model="model" partial='list' v-ref:grid>
60
+ <template partial='head'>
61
+ <tr>
62
+ <th>用户姓名</th>
63
+ <th>用户ID</th>
64
+ <th>灶具品牌</th>
65
+ <th>出厂日期</th>
66
+ </tr>
67
+ </template>
68
+ <template partial='body'>
69
+ <td>{{row.f_user_name}}</td>
70
+ <td>{{row.f_userinfoid}}</td>
71
+ <td>{{row.f_brand }}</td>
72
+ <td>{{row.f_making_date}}</td>
73
+ </template>
74
+ </data-grid>
75
+ </criteria-paged>
76
+ </div>
77
+ </template>
78
+
79
+ <script>
80
+ import { PagedList } from 'vue-client'
81
+ import Vue from 'vue'
82
+ import AppData from '../../stores/AppData'
83
+
84
+ export default {
85
+ title: '热水器使用情况',
86
+ data () {
87
+ let model = new PagedList('rs/sql/热水器使用情况', 20,
88
+ {date1: 'this.model.date1', date2: 'this.model.date2',
89
+ year: 'this.year', f_subcompany: 'this.f_subcompany[0]',
90
+ f_check_type: 'this.f_check_type[0]', f_brand: 'this.f_maker[0]'})
91
+ model.f_subcompany = [this.$login.f.f_fengongsi]
92
+ model.f_check_type = ['居民']
93
+ model.f_maker = ['']
94
+ model.date1 = ''
95
+ model.date2 = ''
96
+ model.year = 6
97
+ return {
98
+ model: model,
99
+ f_divisions: this.$login.f.f_fengongsi != '' ? [{label: this.$login.f.f_fengongsi, value: this.$login.f.f_fengongsi}]: this.$appdata.getParam('安检系统用子公司'),
100
+ user_types: this.$appdata.getParam('用户类型'),
101
+ brands: this.$appdata.getParam('热水器品牌')
102
+ }
103
+ }
104
+ }
105
+ </script>
@@ -1,126 +1,126 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:criteria>
5
- <validator name='v' partial>
6
- <div class="form-inline auto" >
7
- <div class="form-group">
8
- <div class="form-group" >
9
- <label for="f_subcompany">分公司:</label>
10
- <v-select id="f_subcompany"
11
- placeholder='请选择分公司'
12
- :value.sync="$parent.$parent.model.f_subcompany"
13
- :options='$parent.$parent.f_divisions'
14
- close-on-select clear-button></v-select>
15
- </div>
16
- <div class="form-group">
17
- <label for="f_check_type">用户类型:</label>
18
- <v-select id="f_check_type"
19
- placeholder='请选择用户类型'
20
- :value.sync="$parent.$parent.model.f_check_type"
21
- :options='$parent.$parent.user_types'
22
- close-on-select clear-button></v-select></v-select>
23
- </div>
24
- <div class="form-group">
25
- 安检时间 从:
26
- <datepicker id="startdate"
27
- v-model='model.date1'
28
- :value.sync="model.date1"
29
- :disabled-days-of-Week="[]"
30
- :format="'yyyy-MM-dd'"
31
- :show-reset-button="reset">
32
- </datepicker>
33
- </div>
34
- <div class="form-group">
35
- 到:
36
- <datepicker id="startdate"
37
- v-model='model.date2'
38
- :value.sync="model.date2"
39
- :disabled-days-of-Week="[]"
40
- :format="'yyyy-MM-dd'"
41
- :show-reset-button="reset">
42
- </datepicker>
43
- </div>
44
- 安检计划:
45
- <input type="text" class="form-control" v-model="$parent.$parent.model.f_check_plan.f_plan_name" @click="$parent.$parent.showChooser" readonly="readonly">
46
- <button class="btn btn-default" @click="search()">查询</button>
47
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
48
- <div slot="modal-header" class="modal-header">
49
- <h4 class="modal-title">
50
- 选择计划
51
- </h4>
52
- </div>
53
- <div slot="modal-body" class="modal-body">
54
- <plan-chooser :f.sync="$parent.$parent.f" v-ref:chooser></plan-chooser>
55
- </div>
56
- <div slot="modal-footer" class="modal-footer">
57
- <button type="button" class="btn btn-default" @click="$parent.$parent.ok">确认</button>
58
- <button type="button" class="btn btn-default" @click="$parent.$parent.cancel">取消</button>
59
- </div>
60
- <modal>
61
- </div>
62
- </div>
63
- </validator>
64
- </criteria>
65
- <data-grid :model="model" partial='list' v-ref:grid>
66
- <template partial='head'>
67
- <tr>
68
- <th>用户姓名</th>
69
- <th>用户地址</th>
70
- <th>安检日期</th>
71
- <th>安检状态</th>
72
- <th>本期用气量</th>
73
- </tr>
74
- </template>
75
- <template partial='body'>
76
- <td>{{row.f_user_name}}</td>
77
- <td>{{row.f_address}}</td>
78
- <td>{{row.f_offsite_time}}</td>
79
- <td>{{row.f_entry_status}}</td>
80
- <td>{{row.f_usage}}</td>
81
- </template>
82
- </data-grid>
83
- </criteria-paged>
84
- </div>
85
- </template>
86
-
87
- <script>
88
- import { PagedList } from 'vue-client'
89
- import Vue from 'vue'
90
- import AppData from '../../stores/AppData'
91
-
92
- export default {
93
- title: '本期用气量查询',
94
- props: ['f'],
95
- data () {
96
- let model = new PagedList('rs/sql/本期用气量查询', 20,
97
- {date1: 'this.model.date1', date2: 'this.model.date2',
98
- f_check_type: 'this.f_check_type[0]', f_subcompany: 'this.f_subcompany[0]', f_plan_id: 'this.f_check_plan.id'})
99
- model.f_subcompany = [Vue.f_subcompany]
100
- model.f_check_type = ['']
101
- model.date1 = ''
102
- model.date2 = ''
103
- model.f_check_plan = {f_plan_name: '', id: ''}
104
- model.f_defect = ['']
105
- return {
106
- model: model,
107
- f_divisions: Vue.f_subcompany != '' ? [{label: Vue.f_subcompany, value: Vue.f_subcompany}]: this.$appdata.getParam('安检系统用子公司'),
108
- user_types: this.$appdata.getParam('用户类型'),
109
- showModal: false
110
- }
111
- },
112
- methods: {
113
- showChooser () {
114
- this.showModal = true
115
- },
116
- ok () {
117
- this.showModal = false
118
- this.model.f_check_plan = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
119
- },
120
- cancel () {
121
- this.showModal = false
122
- this.model.f_check_plan = {f_plan_name: '', id: ''}
123
- }
124
- }
125
- }
126
- </script>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:criteria>
5
+ <validator name='v' partial>
6
+ <div class="form-inline auto" >
7
+ <div class="form-group">
8
+ <div class="form-group" >
9
+ <label for="f_subcompany">分公司:</label>
10
+ <v-select id="f_subcompany"
11
+ placeholder='请选择分公司'
12
+ :value.sync="$parent.$parent.model.f_subcompany"
13
+ :options='$parent.$parent.f_divisions'
14
+ close-on-select clear-button></v-select>
15
+ </div>
16
+ <div class="form-group">
17
+ <label for="f_check_type">用户类型:</label>
18
+ <v-select id="f_check_type"
19
+ placeholder='请选择用户类型'
20
+ :value.sync="$parent.$parent.model.f_check_type"
21
+ :options='$parent.$parent.user_types'
22
+ close-on-select clear-button></v-select></v-select>
23
+ </div>
24
+ <div class="form-group">
25
+ 安检时间 从:
26
+ <datepicker id="startdate"
27
+ v-model='model.date1'
28
+ :value.sync="model.date1"
29
+ :disabled-days-of-Week="[]"
30
+ :format="'yyyy-MM-dd'"
31
+ :show-reset-button="reset">
32
+ </datepicker>
33
+ </div>
34
+ <div class="form-group">
35
+ 到:
36
+ <datepicker id="startdate"
37
+ v-model='model.date2'
38
+ :value.sync="model.date2"
39
+ :disabled-days-of-Week="[]"
40
+ :format="'yyyy-MM-dd'"
41
+ :show-reset-button="reset">
42
+ </datepicker>
43
+ </div>
44
+ 安检计划:
45
+ <input type="text" class="form-control" v-model="$parent.$parent.model.f_check_plan.f_plan_name" @click="$parent.$parent.showChooser" readonly="readonly">
46
+ <button class="btn btn-default" @click="search()">查询</button>
47
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
48
+ <div slot="modal-header" class="modal-header">
49
+ <h4 class="modal-title">
50
+ 选择计划
51
+ </h4>
52
+ </div>
53
+ <div slot="modal-body" class="modal-body">
54
+ <plan-chooser :f.sync="$parent.$parent.f" v-ref:chooser></plan-chooser>
55
+ </div>
56
+ <div slot="modal-footer" class="modal-footer">
57
+ <button type="button" class="btn btn-default" @click="$parent.$parent.ok">确认</button>
58
+ <button type="button" class="btn btn-default" @click="$parent.$parent.cancel">取消</button>
59
+ </div>
60
+ <modal>
61
+ </div>
62
+ </div>
63
+ </validator>
64
+ </criteria>
65
+ <data-grid :model="model" partial='list' v-ref:grid>
66
+ <template partial='head'>
67
+ <tr>
68
+ <th>用户姓名</th>
69
+ <th>用户地址</th>
70
+ <th>安检日期</th>
71
+ <th>安检状态</th>
72
+ <th>本期用气量</th>
73
+ </tr>
74
+ </template>
75
+ <template partial='body'>
76
+ <td>{{row.f_user_name}}</td>
77
+ <td>{{row.f_address}}</td>
78
+ <td>{{row.f_offsite_time}}</td>
79
+ <td>{{row.f_entry_status}}</td>
80
+ <td>{{row.f_usage}}</td>
81
+ </template>
82
+ </data-grid>
83
+ </criteria-paged>
84
+ </div>
85
+ </template>
86
+
87
+ <script>
88
+ import { PagedList } from 'vue-client'
89
+ import Vue from 'vue'
90
+ import AppData from '../../stores/AppData'
91
+
92
+ export default {
93
+ title: '本期用气量查询',
94
+ props: ['f'],
95
+ data () {
96
+ let model = new PagedList('rs/sql/本期用气量查询', 20,
97
+ {date1: 'this.model.date1', date2: 'this.model.date2',
98
+ f_check_type: 'this.f_check_type[0]', f_subcompany: 'this.f_subcompany[0]', f_plan_id: 'this.f_check_plan.id'})
99
+ model.f_subcompany = [Vue.f_subcompany]
100
+ model.f_check_type = ['']
101
+ model.date1 = ''
102
+ model.date2 = ''
103
+ model.f_check_plan = {f_plan_name: '', id: ''}
104
+ model.f_defect = ['']
105
+ return {
106
+ model: model,
107
+ f_divisions: Vue.f_subcompany != '' ? [{label: Vue.f_subcompany, value: Vue.f_subcompany}]: this.$appdata.getParam('安检系统用子公司'),
108
+ user_types: this.$appdata.getParam('用户类型'),
109
+ showModal: false
110
+ }
111
+ },
112
+ methods: {
113
+ showChooser () {
114
+ this.showModal = true
115
+ },
116
+ ok () {
117
+ this.showModal = false
118
+ this.model.f_check_plan = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
119
+ },
120
+ cancel () {
121
+ this.showModal = false
122
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
123
+ }
124
+ }
125
+ }
126
+ </script>