system-clients 3.0.41 → 3.0.42-fanxian

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,67 +1,67 @@
1
- <template>
2
- <div class="flex-row">
3
- <div :class="{'basic-main':!isChange,'binary-left':isChange}">
4
- <pos-list :row="row" @select-changed="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" v-ref:list ></pos-list>
5
- </div>
6
- <div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
7
- <pos-add :data="row" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
8
- </div>
9
- </div>
10
- </template>
11
- <script>
12
-
13
- import PosList from './PosList'
14
- import PosAdd from './PosAdd'
15
-
16
- export default {
17
- title: 'POS终端管理',
18
- components: {
19
- PosList, PosAdd
20
- },
21
- data () {
22
- return {
23
- isChange: false,
24
- row: null,
25
-
26
- f_filialeids: ''
27
- }
28
- },
29
- methods: {
30
- selected (obj) {
31
- this.isChange = true
32
- this.row = obj.val
33
- }
34
- },
35
- events: {
36
- 'search' () {
37
- this.isChange = false
38
- this.row = null
39
- this.$refs.list.$refs.paged.$refs.cri.search()
40
- },
41
- 'research' () {
42
- console.log('重新查询')
43
- this.isChange = false
44
- this.row = null
45
- },
46
- 'refresh' () {
47
- this.isChange = false
48
- this.row = null
49
- this.$refs.list.search()
50
- },
51
- 'error' (name, row, res) {
52
- this.isChange = false
53
- this.row = null
54
- },
55
- 'close' () {
56
- this.isChange = false
57
- this.row = null
58
- this.$refs.list.search()
59
- },
60
- 'add' () {
61
- this.row = null
62
- this.isChange = true
63
- this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
64
- }
65
- }
66
- }
67
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div :class="{'basic-main':!isChange,'binary-left':isChange}">
4
+ <pos-list :row="row" @select-changed="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" v-ref:list ></pos-list>
5
+ </div>
6
+ <div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
7
+ <pos-add :data="row" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
8
+ </div>
9
+ </div>
10
+ </template>
11
+ <script>
12
+
13
+ import PosList from './PosList'
14
+ import PosAdd from './PosAdd'
15
+
16
+ export default {
17
+ title: 'POS终端管理',
18
+ components: {
19
+ PosList, PosAdd
20
+ },
21
+ data () {
22
+ return {
23
+ isChange: false,
24
+ row: null,
25
+
26
+ f_filialeids: ''
27
+ }
28
+ },
29
+ methods: {
30
+ selected (obj) {
31
+ this.isChange = true
32
+ this.row = obj.val
33
+ }
34
+ },
35
+ events: {
36
+ 'search' () {
37
+ this.isChange = false
38
+ this.row = null
39
+ this.$refs.list.$refs.paged.$refs.cri.search()
40
+ },
41
+ 'research' () {
42
+ console.log('重新查询')
43
+ this.isChange = false
44
+ this.row = null
45
+ },
46
+ 'refresh' () {
47
+ this.isChange = false
48
+ this.row = null
49
+ this.$refs.list.search()
50
+ },
51
+ 'error' (name, row, res) {
52
+ this.isChange = false
53
+ this.row = null
54
+ },
55
+ 'close' () {
56
+ this.isChange = false
57
+ this.row = null
58
+ this.$refs.list.search()
59
+ },
60
+ 'add' () {
61
+ this.row = null
62
+ this.isChange = true
63
+ this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
64
+ }
65
+ }
66
+ }
67
+ </script>
@@ -0,0 +1,122 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged >
5
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search' >
6
+ <div v-show="false" novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ </div>
8
+
9
+ </criteria>
10
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
11
+ <template partial='head'>
12
+ <tr>
13
+ <th><nobr>客户编号</nobr></th>
14
+ <th><nobr>客户姓名</nobr></th>
15
+ <th><nobr>上报时间</nobr></th>
16
+ <th><nobr>上报级别</nobr></th>
17
+ <th><nobr>报警类型</nobr></th>
18
+ <th><nobr>报警详情</nobr></th>
19
+ <th>操作</th>
20
+ </tr>
21
+ </template>
22
+ <template partial='body'>
23
+ <tr>
24
+ <td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
25
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
26
+ <td style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></td>
27
+ <td style="text-align:center"><nobr>{{row.f_error_level}}</nobr></td>
28
+ <td style="text-align:center"><nobr>{{row.f_error_type}}</nobr></td>
29
+ <td style="text-align:center"><nobr>{{row.f_error_msg}}</nobr></td>
30
+ <td style="text-align:center;" v-if="row.f_is_read == false" >
31
+ <span ><a href="#" @click.stop="$parent.$parent.$parent.backSend1(row.id)">添加备注</a></span>
32
+ </td>
33
+ <td style="text-align:center;" v-if="row.f_is_read === true"><span title="备注信息:{{row.f_error_reason}}">备注信息</span></td>
34
+ </tr>
35
+ </template>
36
+ <template partial='foot'></template>
37
+ </data-grid>
38
+ </criteria-paged>
39
+
40
+ <modal :show.sync="watchshow" v-ref:modal backdrop="false">
41
+ <header slot="modal-header" class="modal-header">
42
+ <button type="button" class="close" @click="tableFault()"><span>&times;</span></button>
43
+ <h4 class="modal-title">信息备注</h4>
44
+ </header>
45
+ <article slot="modal-body" class="modal-body">
46
+ <div class="col-sm-12">
47
+ <label class="font_normal_body">添加信息备注</label>
48
+ <textarea name="name" rows="2" style="width: 100%"
49
+ class="ver-textarea" class="form-control"
50
+ placeholder='请填写信息备注'
51
+ v-model='f_error_reason'></textarea>
52
+ </div>
53
+ </article>
54
+ <footer slot="modal-footer" class="modal-footer">
55
+ <button v-show="watchshow" type="button" class="btn btn-default" @click='tableFault()'>取消</button>
56
+ <button v-show="watchshow" type="button" class="btn btn-danger btn-ln fr" @click='saveException()'>确认</button>
57
+ </footer>
58
+ </modal>
59
+ </div>
60
+ </div>
61
+ </template>
62
+ <script>
63
+ import {PagedList} from 'vue-client'
64
+
65
+ export default {
66
+ title: '异常警报信息',
67
+ props: ['mergeinfo'],
68
+ data () {
69
+ return {
70
+ watchshow: false,
71
+ cancelid: '',
72
+ condition: '1=1',
73
+ error_condition: '',
74
+ f_error_reason: '',
75
+ model: new PagedList('rs/sql/getAbnormityWarning', 8)
76
+ }
77
+ },
78
+ ready () {
79
+ this.model
80
+ this.$refs.paged.$refs.criteria.search()
81
+ },
82
+ methods: {
83
+ backSend1(megrow){
84
+ this.watchshow = true
85
+ this.cancelid = megrow
86
+ },
87
+ tableFault (val) {
88
+ if (val) {
89
+ console.log('开启弹窗')
90
+ } else {
91
+ console.log('返回置空')
92
+ this.f_error_reason = ''
93
+ }
94
+ this.watchshow = !this.watchshow
95
+ },
96
+ search (args) {
97
+ console.log(args)
98
+ this.condition = '1=1'
99
+ this.model.search(args.condition, args.model)
100
+ },
101
+ saveException () {
102
+ let send = {
103
+ id: this.cancelid, // 当前记录ID
104
+ f_is_read: 1,
105
+ f_error_reason: this.f_error_reason // 备注原因
106
+ }
107
+ let param = {
108
+ tablename: 't_exception',
109
+ id:1,
110
+ basedata: send
111
+ }
112
+ this.$resetpost('rs/logic/iat_saveTable', param).then(() => {
113
+ // this.params.rows.splice(index, 1)
114
+ this.watchshow = false
115
+ this.$refs.paged
116
+ this.f_error_reason = ''
117
+ })
118
+ }
119
+ }
120
+
121
+ }
122
+ </script>
@@ -1,140 +1,140 @@
1
- <template>
2
- <div :class="style">
3
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
4
- <right-tree @re-res="getorg"
5
- :initresid='initres.org'></right-tree>
6
- </div>
7
- <div :class="style">
8
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp;</label>
9
- <res-select restype='department'
10
- @res-select="getdep"
11
- :parentresid="depresid"
12
- :initresid='initres.dep'
13
- :is-mul="mul">
14
- </res-select>
15
- </div>
16
- <div :class="style">
17
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp;</label>
18
- <res-select restype='user'
19
- @res-select="getuser"
20
- :parentresid="userresid"
21
- :initresid='initres.user'
22
- :is-mul="mul">
23
- </res-select>
24
- </div>
25
- <div :class="style " >
26
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;片区&nbsp;&nbsp;&nbsp;</label>
27
- <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
28
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
29
- close-on-select v-ref:slice>
30
- </v-select>
31
- </div>
32
- </template>
33
- <script>
34
- import plugin from '../../plugins/GetLoginInfoService'
35
- export default {
36
- title: '资源选择测试',
37
- props: {
38
- style: {
39
- type: String,
40
- default: 'col-sm-2'
41
- },
42
- mul: {
43
- type: Boolean,
44
- default: true
45
- },
46
- //初始值
47
- initres: {
48
- type: Object,
49
- default: null,
50
- },
51
- },
52
- data () {
53
- return {
54
- orgresid:[this.$login.f.orgid],
55
- depresid:[],
56
- userresid:[],
57
- sliceArea: [],
58
- slice_area:[],
59
-
60
- obj:{
61
- orgnames:[],
62
- depnames:[],
63
- operatornames:[]
64
- }
65
- }
66
- },
67
- ready () {
68
- console.log('开始获取组织结构。。。')
69
- this.initAreas(this.$login.f.orgid)
70
- },
71
- methods:{
72
-
73
- // 初始化片区
74
- async initAreas (val) {
75
- if (val) {
76
- let getAllArea = await this.$resetpost('/rs/search', {
77
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
78
- userid: this.$login.f.id
79
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
80
- let arr = getAllArea.data.filter((res) => {
81
- return res.parentid == val
82
- })
83
- console.log('过滤之后的片区', arr)
84
- this.sliceArea = []
85
- arr.forEach((res) => {
86
- this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
87
- })
88
- }
89
- },
90
- returnOrg(ids){
91
-
92
- let condition;
93
- if(this.depresid.length > 0)
94
- condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
95
- else
96
- condition = " and f_orgid = " + this.$login.f.orgid;
97
- if(this.userresid.length > 0){
98
- condition += " and f_depid in " + plugin.convertToIn(this.userresid);
99
- }
100
- if(ids && ids.length > 0){
101
- condition += " and f_operatorid in " + plugin.convertToIn(ids);
102
- }
103
- if(this.slice_area.length>0){
104
- condition += " and f_zones = '" + this.slice_area[0].name+"'"
105
- }
106
- this.$dispatch('re-res',condition,this.obj)
107
- },
108
- getorg (obj) {
109
- console.log("选中公司的数据11",obj.resids)
110
- this.depresid=obj.resids
111
- this.obj.orgnames = obj.res
112
- this.initAreas(obj.resids)
113
- this.returnOrg();
114
- },
115
- getdep(obj,val) {
116
- console.log("选中部门的数据22",obj)
117
- this.obj.depnames = val
118
- this.userresid=obj
119
- this.returnOrg();
120
- },
121
- getuser(obj) {
122
- this.obj.operatornames = obj
123
- console.log("选中用户的数据33",obj)
124
- this.returnOrg(obj);
125
- },
126
- getarea(val) {
127
- this.slice_area=val
128
- console.log("选中的大区",val)
129
- if(this.obj.operatornames){
130
- this.returnOrg(this.obj.operatornames);
131
- }else{
132
- this.returnOrg();
133
- }
134
- }
135
- },
136
- watch: {
137
-
138
- }
139
- }
140
- </script>
1
+ <template>
2
+ <div :class="style">
3
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
4
+ <right-tree @re-res="getorg"
5
+ :initresid='initres.org'></right-tree>
6
+ </div>
7
+ <div :class="style">
8
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp;</label>
9
+ <res-select restype='department'
10
+ @res-select="getdep"
11
+ :parentresid="depresid"
12
+ :initresid='initres.dep'
13
+ :is-mul="mul">
14
+ </res-select>
15
+ </div>
16
+ <div :class="style">
17
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp;</label>
18
+ <res-select restype='user'
19
+ @res-select="getuser"
20
+ :parentresid="userresid"
21
+ :initresid='initres.user'
22
+ :is-mul="mul">
23
+ </res-select>
24
+ </div>
25
+ <div :class="style " >
26
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;片区&nbsp;&nbsp;&nbsp;</label>
27
+ <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
28
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
29
+ close-on-select v-ref:slice>
30
+ </v-select>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ import plugin from '../../plugins/GetLoginInfoService'
35
+ export default {
36
+ title: '资源选择测试',
37
+ props: {
38
+ style: {
39
+ type: String,
40
+ default: 'col-sm-2'
41
+ },
42
+ mul: {
43
+ type: Boolean,
44
+ default: true
45
+ },
46
+ //初始值
47
+ initres: {
48
+ type: Object,
49
+ default: null,
50
+ },
51
+ },
52
+ data () {
53
+ return {
54
+ orgresid:[this.$login.f.orgid],
55
+ depresid:[],
56
+ userresid:[],
57
+ sliceArea: [],
58
+ slice_area:[],
59
+
60
+ obj:{
61
+ orgnames:[],
62
+ depnames:[],
63
+ operatornames:[]
64
+ }
65
+ }
66
+ },
67
+ ready () {
68
+ console.log('开始获取组织结构。。。')
69
+ this.initAreas(this.$login.f.orgid)
70
+ },
71
+ methods:{
72
+
73
+ // 初始化片区
74
+ async initAreas (val) {
75
+ if (val) {
76
+ let getAllArea = await this.$resetpost('/rs/search', {
77
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
78
+ userid: this.$login.f.id
79
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
80
+ let arr = getAllArea.data.filter((res) => {
81
+ return res.parentid == val
82
+ })
83
+ console.log('过滤之后的片区', arr)
84
+ this.sliceArea = []
85
+ arr.forEach((res) => {
86
+ this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
87
+ })
88
+ }
89
+ },
90
+ returnOrg(ids){
91
+
92
+ let condition;
93
+ if(this.depresid.length > 0)
94
+ condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
95
+ else
96
+ condition = " and f_orgid = " + this.$login.f.orgid;
97
+ if(this.userresid.length > 0){
98
+ condition += " and f_depid in " + plugin.convertToIn(this.userresid);
99
+ }
100
+ if(ids && ids.length > 0){
101
+ condition += " and f_operatorid in " + plugin.convertToIn(ids);
102
+ }
103
+ if(this.slice_area.length>0){
104
+ condition += " and f_zones = '" + this.slice_area[0].name+"'"
105
+ }
106
+ this.$dispatch('re-res',condition,this.obj)
107
+ },
108
+ getorg (obj) {
109
+ console.log("选中公司的数据11",obj.resids)
110
+ this.depresid=obj.resids
111
+ this.obj.orgnames = obj.res
112
+ this.initAreas(obj.resids)
113
+ this.returnOrg();
114
+ },
115
+ getdep(obj,val) {
116
+ console.log("选中部门的数据22",obj)
117
+ this.obj.depnames = val
118
+ this.userresid=obj
119
+ this.returnOrg();
120
+ },
121
+ getuser(obj) {
122
+ this.obj.operatornames = obj
123
+ console.log("选中用户的数据33",obj)
124
+ this.returnOrg(obj);
125
+ },
126
+ getarea(val) {
127
+ this.slice_area=val
128
+ console.log("选中的大区",val)
129
+ if(this.obj.operatornames){
130
+ this.returnOrg(this.obj.operatornames);
131
+ }else{
132
+ this.returnOrg();
133
+ }
134
+ }
135
+ },
136
+ watch: {
137
+
138
+ }
139
+ }
140
+ </script>