safecheck-client 4.0.0-57 → 4.0.0-59

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/NewDefectList/DefectListNew.vue +663 -663
  4. package/src/components/Util/SafecheckUpload.vue +281 -281
  5. package/src/components/android/AndroidDefectDetails.vue +725 -725
  6. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  7. package/src/components/android/SafecheckDevices.vue +1340 -1340
  8. package/src/components/pc/AddToCheckBook.vue +237 -237
  9. package/src/components/pc/CheckBook.vue +303 -303
  10. package/src/components/pc/CheckBookArea.vue +146 -146
  11. package/src/components/pc/CheckBookCompany.vue +144 -144
  12. package/src/components/pc/CheckBookDetails.vue +161 -161
  13. package/src/components/pc/CheckBookEntry.vue +60 -60
  14. package/src/components/pc/CheckBookList.vue +366 -366
  15. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  16. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  17. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  18. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  19. package/src/components/pc/CheckBookUser.vue +333 -333
  20. package/src/components/pc/DefectDeal.vue +1007 -1007
  21. package/src/components/pc/PaperDefectMain.vue +880 -880
  22. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +437 -433
  23. package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +346 -332
  24. package/src/filiale/meihekou/android/AreaPlan.vue +569 -569
  25. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  26. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  27. package/src/filiale/meihekou/android/CurrentCreate.vue +1087 -1087
  28. package/src/filiale/meihekou/android/MeterReading.vue +106 -106
  29. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2398 -2398
  30. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -787
  31. package/src/filiale/meihekou/android.js +19 -19
  32. package/src/filiale/meihekou/pc.js +12 -12
@@ -1,237 +1,237 @@
1
- <template>
2
- <div id='AddTobook'>
3
- <div class="auto select-overspread">
4
- <button class="button_new" style="margin-right: 10px" @click="showUploadCodeCondition()">导入编号</button>
5
- <validator name='v'>
6
- <ul class="nav nav-tabs">
7
- <p class="bg-info text-center" style="padding: 8px;">{{tabstitles[$parent.$refs.tabs.active]}}</p>
8
- </ul>
9
- <div class="form-horizontal select-overspread container-fluid auto" style="margin-top:20px;flex: 1;">
10
- <div class="row" style="text-align: center">
11
- <div class="col-sm-12 form-group" :class="[$v.f_check_book_num.required ? 'has-error' : '']">
12
- <label class="font_normal_body" style="width: 26%;">目标安检册</label>
13
- <input type="text" v-model="model.f_check_book_num" v-show="false"
14
- v-validate:f_check_book_num='{required: true }'>
15
- <v-select :value.sync="model.f_check_book_num" v-model="model.f_check_book_num"
16
- :options='checkbook' placeholder='安检册'
17
- :value-single="true" :search="true"
18
- style="width:60%"
19
- close-on-select></v-select>
20
- </div>
21
- </div>
22
- </div>
23
- <div class="row" >
24
- <div style="float:right;margin-top: 250px;margin-right: 20px;">
25
- <button @click="confirm()" class="btn button_search" style="width: 70px" :disabled='!$v.valid'>
26
- <span class="glyphicon glyphicon-floppy-disk"></span>保存
27
- </button>
28
- </div>
29
- </div>
30
- </validator>
31
- </div>
32
- <modal :show.sync="excelUserCondtion" width="500px" v-ref:modal1 >
33
- <div slot="modal-header" class="modal-header">
34
- <h4 class="modal-title">
35
- 导入用户编号
36
- </h4>
37
- </div>
38
- <div slot="modal-body" class="modal-body">
39
- <div class="row">
40
- <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
41
- action="api/af-safecheck/file/uploadFile" tagname="安检册导入" v-ref:file :headers="headers" multiple></file-upload>
42
- <img src="../../assets/anjince.png" style="width: 100%"/>
43
- </div>
44
- </div>
45
- <footer slot="modal-footer" class="modal-footer">
46
- </footer>
47
- </modal>
48
- </div>
49
- </template>
50
-
51
- <script>
52
- import * as Util from '../Util'
53
- import {HttpResetClass} from "vue-client";
54
- import bus from "../../bus";
55
- export default {
56
- name: 'AddTobook',
57
-
58
- data () {
59
- return {
60
- model:{
61
- f_check_book_num:''
62
- },
63
- excelUserCondtion:false,
64
- checkbook: [],
65
- checkbooks:[],
66
- tabstitles:['请选择用户添加到安检册内']
67
- }
68
- },
69
- created () {
70
- },
71
- ready () {
72
- // this.close()
73
- new HttpResetClass().load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=9999999',{data: {
74
- items: 'id,f_check_book_name,f_check_book_type,f_user_type',
75
- tablename: 't_check_book',
76
- condition: `1=1`,
77
- orderitem: 'id'
78
- }}, {resolveMsg: null, rejectMsg: null}).then(res=>{
79
- console.log("checkbook", res.data)
80
- res.data.forEach(item=>{
81
- this.checkbooks.push({
82
- f_user_type:item.f_user_type,
83
- booktype:item.f_check_book_type,
84
- label:item.f_check_book_name,
85
- value:item.id
86
- })
87
- })
88
- this.checkbook = this.checkbooks
89
- })
90
- },
91
- methods: {
92
- cancel(){
93
- this.showCondtion=false
94
- this.excelUserCondtion=false
95
- },
96
- showUploadCodeCondition(){
97
- this.excelUserCondtion=true
98
- },
99
- selectbook(val){
100
-
101
- },
102
- close () {
103
-
104
- },
105
-
106
- confirm () {
107
- if (!this.model.f_check_book_num){
108
- this.$showMessage('请选择目标安检册')
109
- return
110
- }
111
- console.log(this.$parent.$refs.tabs.active)
112
- console.log(this.$parent.bookList)
113
- console.log(this.$parent.bookAll)
114
- console.log(this.$parent.bookCondition)
115
- let userCondition = ''
116
- let f_userinfo_ids = "'"
117
- if(this.$parent.bookAll){
118
- if(!this.$parent.bookCondition){
119
- this.$showMessage("请先查询")
120
- return
121
- }else{
122
- userCondition = this.$parent.bookCondition
123
- }
124
- }else if(this.$parent.bookList.length > 0){
125
- if(this.$parent.$refs.tabs.active ===0){
126
- for(let i = 0;i<this.$parent.bookList.length;i++){
127
- if(i === this.$parent.bookList.length-1){
128
- f_userinfo_ids += this.$parent.bookList[i].f_userinfo_id + "'"
129
- }else{
130
- f_userinfo_ids += this.$parent.bookList[i].f_userinfo_id + "','"
131
- }
132
- }
133
- userCondition ='tui.f_userinfo_id in (' + f_userinfo_ids+ ')'
134
- }
135
- if(this.$parent.$refs.tabs.active ===1){
136
-
137
- }
138
- if(this.$parent.$refs.tabs.active ===2){
139
-
140
- }
141
- }else{
142
- this.$showMessage(this.$parent.$refs.tabs.active===3?'请选择用户':'请选择')
143
- return;
144
- }
145
- if(this.$parent.$refs.tabs.active ===1){
146
- new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
147
- f_check_book_type:'小区',condition:userCondition}},
148
- {resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
149
- if(res && res.data){
150
- this.model.f_check_book_num = ""
151
- this.$showMessage("本次成功添加"+res.data+"个小区",['confirm']).then(res=>{
152
- if(res==='confirm'){
153
- console.log("刷新了")
154
- bus.$emit('fresh-area')
155
- }
156
- })
157
- }else{
158
- this.$showMessage("添加失败")
159
- }
160
- })
161
- }else if(this.$parent.$refs.tabs.active ===0){
162
- new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {
163
- f_check_book_id: this.model.f_check_book_num,
164
- f_check_book_type:'用户',
165
- booklist:this.$parent.bookList,
166
- condition:userCondition
167
- }},
168
- {resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
169
- if(res && res.data){
170
- this.model.f_check_book_num = ""
171
- this.$showMessage("本次成功添加"+this.$parent.bookList.length+"个用户",['confirm']).then(res=>{
172
- if(res==='confirm'){
173
- console.log("刷新了")
174
- bus.$emit('fresh-area')
175
- }
176
- })
177
- }else{
178
- this.$showMessage("添加失败")
179
- }
180
- })
181
- } else{
182
- new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
183
- f_check_book_type:'单位',condition:userCondition}},
184
- {resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
185
- if(res && res.data){
186
- this.model.f_check_book_num = ""
187
- this.$showMessage("本次成功添加"+res.data+"个单位",['confirm']).then(res=>{
188
- if(res==='confirm'){
189
- console.log("刷新了")
190
- bus.$emit('fresh-area')
191
- }
192
- })
193
- }else{
194
- this.$showMessage("添加失败")
195
- }
196
- })
197
- }
198
- }
199
- },
200
- watch:{
201
- // '$parent.$refs.tabs.active'(val){
202
- // if(val =='0'){
203
- // this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='民用')
204
- // }else{
205
- // this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='非民用')
206
- // }
207
- // this.model.f_check_book_num = ''
208
- // }
209
- },
210
- computed: {
211
-
212
- },
213
- events: {
214
- onFileUpload: function (file, res) {
215
- if ( this.model.f_check_book_num==''){
216
- this.$showMessage("请先选择目标安检册")
217
- return
218
- }
219
- let data = {
220
- f_check_book_id: this.model.f_check_book_num,
221
- filepath: res.f_downloadpath
222
- }
223
- new HttpResetClass().load('POST','/api/af-safecheck/logic/checkbookImport', {data: data}, {
224
- resolveMsg: '导入成功!',
225
- rejectMsg: '导入失败'
226
- }).then((res) => {
227
- this.excelUserCondtion = false
228
- })
229
- },
230
-
231
- }
232
- }
233
- </script>
234
-
235
- <style lang="less">
236
-
237
- </style>
1
+ <template>
2
+ <div id='AddTobook'>
3
+ <div class="auto select-overspread">
4
+ <button class="button_new" style="margin-right: 10px" @click="showUploadCodeCondition()">导入编号</button>
5
+ <validator name='v'>
6
+ <ul class="nav nav-tabs">
7
+ <p class="bg-info text-center" style="padding: 8px;">{{tabstitles[$parent.$refs.tabs.active]}}</p>
8
+ </ul>
9
+ <div class="form-horizontal select-overspread container-fluid auto" style="margin-top:20px;flex: 1;">
10
+ <div class="row" style="text-align: center">
11
+ <div class="col-sm-12 form-group" :class="[$v.f_check_book_num.required ? 'has-error' : '']">
12
+ <label class="font_normal_body" style="width: 26%;">目标安检册</label>
13
+ <input type="text" v-model="model.f_check_book_num" v-show="false"
14
+ v-validate:f_check_book_num='{required: true }'>
15
+ <v-select :value.sync="model.f_check_book_num" v-model="model.f_check_book_num"
16
+ :options='checkbook' placeholder='安检册'
17
+ :value-single="true" :search="true"
18
+ style="width:60%"
19
+ close-on-select></v-select>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ <div class="row" >
24
+ <div style="float:right;margin-top: 250px;margin-right: 20px;">
25
+ <button @click="confirm()" class="btn button_search" style="width: 70px" :disabled='!$v.valid'>
26
+ <span class="glyphicon glyphicon-floppy-disk"></span>保存
27
+ </button>
28
+ </div>
29
+ </div>
30
+ </validator>
31
+ </div>
32
+ <modal :show.sync="excelUserCondtion" width="500px" v-ref:modal1 >
33
+ <div slot="modal-header" class="modal-header">
34
+ <h4 class="modal-title">
35
+ 导入用户编号
36
+ </h4>
37
+ </div>
38
+ <div slot="modal-body" class="modal-body">
39
+ <div class="row">
40
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
41
+ action="api/af-safecheck/file/uploadFile" tagname="安检册导入" v-ref:file :headers="headers" multiple></file-upload>
42
+ <img src="../../assets/anjince.png" style="width: 100%"/>
43
+ </div>
44
+ </div>
45
+ <footer slot="modal-footer" class="modal-footer">
46
+ </footer>
47
+ </modal>
48
+ </div>
49
+ </template>
50
+
51
+ <script>
52
+ import * as Util from '../Util'
53
+ import {HttpResetClass} from "vue-client";
54
+ import bus from "../../bus";
55
+ export default {
56
+ name: 'AddTobook',
57
+
58
+ data () {
59
+ return {
60
+ model:{
61
+ f_check_book_num:''
62
+ },
63
+ excelUserCondtion:false,
64
+ checkbook: [],
65
+ checkbooks:[],
66
+ tabstitles:['请选择用户添加到安检册内']
67
+ }
68
+ },
69
+ created () {
70
+ },
71
+ ready () {
72
+ // this.close()
73
+ new HttpResetClass().load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=9999999',{data: {
74
+ items: 'id,f_check_book_name,f_check_book_type,f_user_type',
75
+ tablename: 't_check_book',
76
+ condition: `1=1`,
77
+ orderitem: 'id'
78
+ }}, {resolveMsg: null, rejectMsg: null}).then(res=>{
79
+ console.log("checkbook", res.data)
80
+ res.data.forEach(item=>{
81
+ this.checkbooks.push({
82
+ f_user_type:item.f_user_type,
83
+ booktype:item.f_check_book_type,
84
+ label:item.f_check_book_name,
85
+ value:item.id
86
+ })
87
+ })
88
+ this.checkbook = this.checkbooks
89
+ })
90
+ },
91
+ methods: {
92
+ cancel(){
93
+ this.showCondtion=false
94
+ this.excelUserCondtion=false
95
+ },
96
+ showUploadCodeCondition(){
97
+ this.excelUserCondtion=true
98
+ },
99
+ selectbook(val){
100
+
101
+ },
102
+ close () {
103
+
104
+ },
105
+
106
+ confirm () {
107
+ if (!this.model.f_check_book_num){
108
+ this.$showMessage('请选择目标安检册')
109
+ return
110
+ }
111
+ console.log(this.$parent.$refs.tabs.active)
112
+ console.log(this.$parent.bookList)
113
+ console.log(this.$parent.bookAll)
114
+ console.log(this.$parent.bookCondition)
115
+ let userCondition = ''
116
+ let f_userinfo_ids = "'"
117
+ if(this.$parent.bookAll){
118
+ if(!this.$parent.bookCondition){
119
+ this.$showMessage("请先查询")
120
+ return
121
+ }else{
122
+ userCondition = this.$parent.bookCondition
123
+ }
124
+ }else if(this.$parent.bookList.length > 0){
125
+ if(this.$parent.$refs.tabs.active ===0){
126
+ for(let i = 0;i<this.$parent.bookList.length;i++){
127
+ if(i === this.$parent.bookList.length-1){
128
+ f_userinfo_ids += this.$parent.bookList[i].f_userinfo_id + "'"
129
+ }else{
130
+ f_userinfo_ids += this.$parent.bookList[i].f_userinfo_id + "','"
131
+ }
132
+ }
133
+ userCondition ='tui.f_userinfo_id in (' + f_userinfo_ids+ ')'
134
+ }
135
+ if(this.$parent.$refs.tabs.active ===1){
136
+
137
+ }
138
+ if(this.$parent.$refs.tabs.active ===2){
139
+
140
+ }
141
+ }else{
142
+ this.$showMessage(this.$parent.$refs.tabs.active===3?'请选择用户':'请选择')
143
+ return;
144
+ }
145
+ if(this.$parent.$refs.tabs.active ===1){
146
+ new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
147
+ f_check_book_type:'小区',condition:userCondition}},
148
+ {resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
149
+ if(res && res.data){
150
+ this.model.f_check_book_num = ""
151
+ this.$showMessage("本次成功添加"+res.data+"个小区",['confirm']).then(res=>{
152
+ if(res==='confirm'){
153
+ console.log("刷新了")
154
+ bus.$emit('fresh-area')
155
+ }
156
+ })
157
+ }else{
158
+ this.$showMessage("添加失败")
159
+ }
160
+ })
161
+ }else if(this.$parent.$refs.tabs.active ===0){
162
+ new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {
163
+ f_check_book_id: this.model.f_check_book_num,
164
+ f_check_book_type:'用户',
165
+ booklist:this.$parent.bookList,
166
+ condition:userCondition
167
+ }},
168
+ {resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
169
+ if(res && res.data){
170
+ this.model.f_check_book_num = ""
171
+ this.$showMessage("本次成功添加"+this.$parent.bookList.length+"个用户",['confirm']).then(res=>{
172
+ if(res==='confirm'){
173
+ console.log("刷新了")
174
+ bus.$emit('fresh-area')
175
+ }
176
+ })
177
+ }else{
178
+ this.$showMessage("添加失败")
179
+ }
180
+ })
181
+ } else{
182
+ new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
183
+ f_check_book_type:'单位',condition:userCondition}},
184
+ {resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
185
+ if(res && res.data){
186
+ this.model.f_check_book_num = ""
187
+ this.$showMessage("本次成功添加"+res.data+"个单位",['confirm']).then(res=>{
188
+ if(res==='confirm'){
189
+ console.log("刷新了")
190
+ bus.$emit('fresh-area')
191
+ }
192
+ })
193
+ }else{
194
+ this.$showMessage("添加失败")
195
+ }
196
+ })
197
+ }
198
+ }
199
+ },
200
+ watch:{
201
+ // '$parent.$refs.tabs.active'(val){
202
+ // if(val =='0'){
203
+ // this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='民用')
204
+ // }else{
205
+ // this.checkbook = this.checkbooks.filter(item=>item.f_user_type==='非民用')
206
+ // }
207
+ // this.model.f_check_book_num = ''
208
+ // }
209
+ },
210
+ computed: {
211
+
212
+ },
213
+ events: {
214
+ onFileUpload: function (file, res) {
215
+ if ( this.model.f_check_book_num==''){
216
+ this.$showMessage("请先选择目标安检册")
217
+ return
218
+ }
219
+ let data = {
220
+ f_check_book_id: this.model.f_check_book_num,
221
+ filepath: res.f_downloadpath
222
+ }
223
+ new HttpResetClass().load('POST','/api/af-safecheck/logic/checkbookImport', {data: data}, {
224
+ resolveMsg: '导入成功!',
225
+ rejectMsg: '导入失败'
226
+ }).then((res) => {
227
+ this.excelUserCondtion = false
228
+ })
229
+ },
230
+
231
+ }
232
+ }
233
+ </script>
234
+
235
+ <style lang="less">
236
+
237
+ </style>