safecheck-client 3.0.32-36 → 3.0.32-38

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.
Files changed (27) hide show
  1. package/package.json +133 -133
  2. package/src/App.vue +2 -2
  3. package/src/components/map/checkScreen.vue +880 -880
  4. package/src/filiale/Util.js +332 -332
  5. package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +648 -648
  6. package/src/filiale/ankangyihua/android/CurrentCreate.vue +1039 -1039
  7. package/src/filiale/bayan/pc/NewCheckpaper.vue +1958 -1958
  8. package/src/filiale/dexin/android/SafecheckOrderV.vue +2851 -2851
  9. package/src/filiale/fugou/pc/CheckBook.vue +301 -301
  10. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
  11. package/src/filiale/fugou/pc/CheckBookEntry.vue +66 -66
  12. package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
  13. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
  14. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +651 -651
  15. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -1081
  16. package/src/filiale/fugou/pc/PlanManage.vue +5 -17
  17. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  18. package/src/filiale/kelai/android/SafecheckDevices.vue +1232 -1232
  19. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  20. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -1680
  21. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2942 -2942
  22. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +4 -4
  23. package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
  24. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +135 -135
  25. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +869 -869
  26. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +198 -198
  27. package/src/main.js +1 -1
@@ -1,198 +1,198 @@
1
- <template>
2
- <div class="auto select-overspread">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3" >
8
- <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
- condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
- </div>
12
- <div class="form-group col-sm-2 button-range" >
13
- <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
14
- <button class="button_spacing button_search-1" @click='$parent.$parent.removes()' v-if="$parent.$parent.bookList.length>0" >移出安检册</button>
15
- </div>
16
- </div>
17
- </div>
18
- </criteria>
19
- <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
20
- <template partial='head' >
21
- <tr>
22
- <th>
23
- <nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll"></input>全选</nobr>
24
- </th>
25
- <th><nobr>序号</nobr></th>
26
- <th><nobr>用户编号</nobr></th>
27
- <th><nobr>用户姓名</nobr></th>
28
- <th><nobr>用户电话</nobr></th>
29
- <th><nobr>用户地址</nobr></th>
30
- <th><nobr>操作</nobr></th>
31
- </tr>
32
- </template>
33
- <template partial='body' >
34
- <tr >
35
- <td style="text-align: center">
36
- <nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
37
- @change="$parent.$parent.$parent.checkChange(row, $event)"></input>
38
- </nobr>
39
- </td>
40
- <td style="text-align:center;">{{$index+1}}</td>
41
- <td style="text-align:center">{{row.f_userinfo_code}}</td>
42
- <td style="text-align:center">{{row.f_user_name}}</td>
43
- <td style="text-align:center">{{row.f_user_phone}}</td>
44
- <td style="text-align:center">{{row.f_address}}</td>
45
- <td style="text-align: center">
46
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.remove(row)'>移出安检册</button>
47
- </td>
48
- </tr>
49
- </template>
50
- <template partial='foot'></template>
51
- </data-grid>
52
- </criteria-paged>
53
- </div>
54
- </template>
55
-
56
- <script>
57
- import {PagedList} from 'vue-client'
58
- import bus from "../../../bus";
59
-
60
- export default {
61
- title: '安检记录列表',
62
- props: ['row'],
63
- data () {
64
- return {
65
- checkAll:false,
66
- rowdata: this.row,
67
- bookList: [],
68
- model: new PagedList('rs/sql/getUserByCheckBook', 50)
69
- }
70
- },
71
- ready(){
72
- if(this.row){
73
- let condition=''
74
- if(this.row.id){
75
-
76
- condition = `tua.f_check_book_id ='${this.row.id}'`
77
- }else{
78
- condition = `1=1`
79
- }
80
-
81
- // if(this.row.f_check_book_type1=='小区'){
82
- // this.model.url = 'rs/sql/getUserByCheckBook'
83
- // condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
84
- // }else{
85
- // this.model.url = 'rs/sql/getUserByCheckBookCompany'
86
- // condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
87
- // }
88
- this.model.search(condition)
89
- //只显示用户页面
90
- this.row.f_check_book_type='用户'
91
- }
92
- },
93
- watch: {
94
- 'checkAll'(val){
95
- if(!val){
96
- this.bookList=[]
97
- }
98
- //如果是全选,则查询这个安检册下的用户
99
-
100
- if(val){
101
- //遍历this.model.rows
102
- this.model.rows.forEach(res=>{
103
- this.bookList.push(res.f_userinfo_id)
104
- })
105
- }
106
- },
107
- 'row' (val) {
108
- if (val) {
109
- this.rowdata = val
110
- let condition=''
111
- condition = `tua.f_check_book_id ='${val.id}'`
112
- // if(this.row.f_check_book_type1=='小区'){
113
- // condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
114
- // }else{
115
- // condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
116
- // }
117
- this.model.search(condition)
118
- }
119
- }
120
- },
121
- methods: {
122
- setCheckAll() {
123
- this.checkAll=this.checkAll?false:true;
124
- // 全选改变后,清空选中数据
125
- this.bookList = []
126
- },
127
- checkModel (row) {
128
- if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
129
- return true
130
- } else {
131
- return false
132
- }
133
- },
134
- checkChange (row, e) {
135
- if (e.target.checked) {
136
- this.bookList.push(row.f_userinfo_id)
137
- } else {
138
- this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
139
- }
140
- },
141
- removes(){
142
-
143
- if(this.bookList.length===0){
144
- this.$showMessage('请选择用户')
145
- return
146
- }
147
- this.$showMessage("确认将用户移出此安检册?",['confirm']).then(res=>{
148
- if(res==='confirm'){
149
- //for遍历this.bookList,将每个用户移出安检册
150
- var c="("
151
- for(var i=0;i<this.bookList.length;i++){
152
- c+=`'${this.bookList[i]}'`+","
153
- }
154
- //去掉最后一个逗号
155
- c=c.substring(0,c.length-1)
156
- c+=")"
157
- let data = {
158
- condition: c,
159
- f_book_id: this.row.id
160
- }
161
- this.$http.post('rs/logic/removesCheckBookUser', {data: data}).then(res=>{
162
- this.$showMessage('移出成功')
163
- this.$refs.paged.$refs.criteria.search()
164
- })
165
- }
166
- })
167
- },
168
- remove(row){
169
-
170
- this.$showMessage("确认移出此安检册?",['confirm']).then(res=>{
171
- if(res==='confirm'){
172
- let data = {
173
- f_userinfo_id: row.f_userinfo_id,
174
- f_book_id: this.row.id
175
- }
176
- this.$http.post('rs/logic/removeUserByCheckBook', {data: data}).then(res=>{
177
- this.$showMessage('移出成功')
178
- this.$refs.paged.$refs.criteria.search()
179
- })
180
- }
181
- })
182
- },
183
- selfSearch (args) {
184
- if (this.rowdata.id) {
185
- args.condition +=` and tua.f_check_book_id ='${this.rowdata.id}'`
186
- // if(this.rowdata.f_check_book_type1=='小区'){
187
- // args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
188
- // }else{
189
- // args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
190
- // }
191
- this.model.search(args.condition)
192
- } else {
193
- this.$showMessage('请选择片区')
194
- }
195
- }
196
- }
197
- }
198
- </script>
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3" >
8
+ <label class="font_normal_body">客户编号</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
+ condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
+ </div>
12
+ <div class="form-group col-sm-2 button-range" >
13
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
14
+ <button class="button_spacing button_search-1" @click='$parent.$parent.removes()' v-if="$parent.$parent.bookList.length>0" >移出安检册</button>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </criteria>
19
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
20
+ <template partial='head' >
21
+ <tr>
22
+ <th>
23
+ <nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll"></input>全选</nobr>
24
+ </th>
25
+ <th><nobr>序号</nobr></th>
26
+ <th><nobr>用户编号</nobr></th>
27
+ <th><nobr>用户姓名</nobr></th>
28
+ <th><nobr>用户电话</nobr></th>
29
+ <th><nobr>用户地址</nobr></th>
30
+ <th><nobr>操作</nobr></th>
31
+ </tr>
32
+ </template>
33
+ <template partial='body' >
34
+ <tr >
35
+ <td style="text-align: center">
36
+ <nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
37
+ @change="$parent.$parent.$parent.checkChange(row, $event)"></input>
38
+ </nobr>
39
+ </td>
40
+ <td style="text-align:center;">{{$index+1}}</td>
41
+ <td style="text-align:center">{{row.f_userinfo_code}}</td>
42
+ <td style="text-align:center">{{row.f_user_name}}</td>
43
+ <td style="text-align:center">{{row.f_user_phone}}</td>
44
+ <td style="text-align:center">{{row.f_address}}</td>
45
+ <td style="text-align: center">
46
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.remove(row)'>移出安检册</button>
47
+ </td>
48
+ </tr>
49
+ </template>
50
+ <template partial='foot'></template>
51
+ </data-grid>
52
+ </criteria-paged>
53
+ </div>
54
+ </template>
55
+
56
+ <script>
57
+ import {PagedList} from 'vue-client'
58
+ import bus from "../../../bus";
59
+
60
+ export default {
61
+ title: '安检记录列表',
62
+ props: ['row'],
63
+ data () {
64
+ return {
65
+ checkAll:false,
66
+ rowdata: this.row,
67
+ bookList: [],
68
+ model: new PagedList('rs/sql/getUserByCheckBook', 50)
69
+ }
70
+ },
71
+ ready(){
72
+ if(this.row){
73
+ let condition=''
74
+ if(this.row.id){
75
+
76
+ condition = `tua.f_check_book_id ='${this.row.id}'`
77
+ }else{
78
+ condition = `1=1`
79
+ }
80
+
81
+ // if(this.row.f_check_book_type1=='小区'){
82
+ // this.model.url = 'rs/sql/getUserByCheckBook'
83
+ // condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
84
+ // }else{
85
+ // this.model.url = 'rs/sql/getUserByCheckBookCompany'
86
+ // condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
87
+ // }
88
+ this.model.search(condition)
89
+ //只显示用户页面
90
+ this.row.f_check_book_type='用户'
91
+ }
92
+ },
93
+ watch: {
94
+ 'checkAll'(val){
95
+ if(!val){
96
+ this.bookList=[]
97
+ }
98
+ //如果是全选,则查询这个安检册下的用户
99
+
100
+ if(val){
101
+ //遍历this.model.rows
102
+ this.model.rows.forEach(res=>{
103
+ this.bookList.push(res.f_userinfo_id)
104
+ })
105
+ }
106
+ },
107
+ 'row' (val) {
108
+ if (val) {
109
+ this.rowdata = val
110
+ let condition=''
111
+ condition = `tua.f_check_book_id ='${val.id}'`
112
+ // if(this.row.f_check_book_type1=='小区'){
113
+ // condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
114
+ // }else{
115
+ // condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
116
+ // }
117
+ this.model.search(condition)
118
+ }
119
+ }
120
+ },
121
+ methods: {
122
+ setCheckAll() {
123
+ this.checkAll=this.checkAll?false:true;
124
+ // 全选改变后,清空选中数据
125
+ this.bookList = []
126
+ },
127
+ checkModel (row) {
128
+ if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
129
+ return true
130
+ } else {
131
+ return false
132
+ }
133
+ },
134
+ checkChange (row, e) {
135
+ if (e.target.checked) {
136
+ this.bookList.push(row.f_userinfo_id)
137
+ } else {
138
+ this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
139
+ }
140
+ },
141
+ removes(){
142
+
143
+ if(this.bookList.length===0){
144
+ this.$showMessage('请选择用户')
145
+ return
146
+ }
147
+ this.$showMessage("确认将用户移出此安检册?",['confirm']).then(res=>{
148
+ if(res==='confirm'){
149
+ //for遍历this.bookList,将每个用户移出安检册
150
+ var c="("
151
+ for(var i=0;i<this.bookList.length;i++){
152
+ c+=`'${this.bookList[i]}'`+","
153
+ }
154
+ //去掉最后一个逗号
155
+ c=c.substring(0,c.length-1)
156
+ c+=")"
157
+ let data = {
158
+ condition: c,
159
+ f_book_id: this.row.id
160
+ }
161
+ this.$http.post('rs/logic/removesCheckBookUser', {data: data}).then(res=>{
162
+ this.$showMessage('移出成功')
163
+ this.$refs.paged.$refs.criteria.search()
164
+ })
165
+ }
166
+ })
167
+ },
168
+ remove(row){
169
+
170
+ this.$showMessage("确认移出此安检册?",['confirm']).then(res=>{
171
+ if(res==='confirm'){
172
+ let data = {
173
+ f_userinfo_id: row.f_userinfo_id,
174
+ f_book_id: this.row.id
175
+ }
176
+ this.$http.post('rs/logic/removeUserByCheckBook', {data: data}).then(res=>{
177
+ this.$showMessage('移出成功')
178
+ this.$refs.paged.$refs.criteria.search()
179
+ })
180
+ }
181
+ })
182
+ },
183
+ selfSearch (args) {
184
+ if (this.rowdata.id) {
185
+ args.condition +=` and tua.f_check_book_id ='${this.rowdata.id}'`
186
+ // if(this.rowdata.f_check_book_type1=='小区'){
187
+ // args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
188
+ // }else{
189
+ // args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
190
+ // }
191
+ this.model.search(args.condition)
192
+ } else {
193
+ this.$showMessage('请选择片区')
194
+ }
195
+ }
196
+ }
197
+ }
198
+ </script>
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ all()
11
11
  var Verificationfalg = false
12
12
  system(Verificationfalg)
13
13
  // system()
14
- safecheck(process.env.SAFE_CHECK);
14
+ safecheck('rongchuang')
15
15
  // safecheck('rizhao')
16
16
  require('./bootstrap/less/bootstrap.less')
17
17
  require('./expandcss.less')