safecheck-client 4.0.2-44 → 4.0.2-47

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 (26) hide show
  1. package/package.json +1 -1
  2. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  3. package/src/components/android/SafeRightTree.vue +218 -218
  4. package/src/components/android/SafecheckDevices.vue +1340 -1340
  5. package/src/components/android/week/CheckResultSimple.vue +251 -251
  6. package/src/components/android/week/FirstWeekCheck.vue +253 -253
  7. package/src/components/android/week/StepHeaderBar.vue +453 -453
  8. package/src/components/android/week/WeekCheck.vue +203 -203
  9. package/src/components/android/week/WeekCheckPaper.vue +219 -219
  10. package/src/components/paper/safetyledger.vue +4 -0
  11. package/src/components/pc/CheckBookArea.vue +146 -146
  12. package/src/components/pc/CheckBookCompany.vue +144 -144
  13. package/src/components/pc/CheckBookDetails.vue +161 -161
  14. package/src/components/pc/CheckBookEntry.vue +60 -60
  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/report/CheckPlanAreaList.vue +551 -548
  20. package/src/filiale/jinhong/pc/CheckSearchUser.vue +1120 -1120
  21. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  22. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  23. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1343
  24. package/src/filiale/meihekou/android.js +22 -22
  25. package/src/main.js +33 -33
  26. package/src/safecheck-android.js +326 -326
@@ -1,253 +1,253 @@
1
- <template>
2
- <div class="auto">
3
- <div v-if="!showcheck">
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
6
- <div partial>
7
- <form>
8
- <div class="row app-row">
9
- <div class="col-xs-4">
10
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
11
- <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
12
- </div>
13
- <div class="col-xs-8" >
14
- <input class="search_input input-font"
15
- v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
16
- <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
17
- </div>
18
- </div>
19
- <div class="row text-center" style="margin-top: 20px;">
20
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
21
- <button v-if="$parent.$parent.model.rows.length == 0" type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="$parent.$parent.showModal">执行首检</button>
22
- </div>
23
- </form>
24
- </div>
25
- </criteria>
26
-
27
- <list :model="model" partial='list'>
28
- <div partial>
29
- <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
30
- <div class="panel" style="padding: 10px 10px 5px 10px;">
31
- <div class="panel-body panel-self">
32
- <div class="row">
33
- <p class="panel-title col-xs-4 text-left font">表号</p>
34
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
35
- </div>
36
- <div class="row">
37
- <p class="panel-title col-xs-4 text-left font">首检日期</p>
38
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_first_inspection_date }}</p>
39
- </div>
40
- <div class="row">
41
- <p class="panel-title col-xs-4 text-left font">首检机构</p>
42
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_inspection_agency }}</p>
43
- </div>
44
- <div class="row">
45
- <p class="panel-title col-xs-4 text-left font">气表品牌</p>
46
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_brand }}</p>
47
- </div>
48
- <div class="row">
49
- <p class="panel-title col-xs-4 text-left font">气表型号</p>
50
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_style }}</p>
51
- </div>
52
- </div>
53
- </div>
54
-
55
- </div>
56
- </div>
57
- </list>
58
- </criteria-paged>
59
- </div>
60
- <div v-if="showcheck">
61
- <check-rsult-simple :items="weekCheck" ></check-rsult-simple>
62
- <div class="row text-center" style="margin-top: 20px;">
63
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="colse">取消</button>
64
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="uploadCheckPaper">提交</button>
65
- </div>
66
- </div>
67
- </div>
68
- </template>
69
-
70
- <script>
71
- import {HttpResetClass, PagedList} from 'vue-client'
72
- import Vue from 'vue'
73
- import * as Util from '../../Util'
74
-
75
- export default {
76
- title: '首检',
77
- data () {
78
- let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/getFirstWeekTable`, 20,
79
- {
80
- f_orgids:'this.f_orgids'
81
- })
82
- model.f_orgids = Vue.user.orgid
83
- return {
84
- model: model,
85
- weekCheck:[],
86
- useritem:{},
87
- weekConfig:{},
88
- showcheck:false
89
- }
90
- },
91
- ready () {
92
- this.getweekconfig()
93
- },
94
- computed: {
95
- },
96
- methods:{
97
- getweekconfig(){
98
- const http = new HttpResetClass()
99
- http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getWeekCheckTypeByType`, {f_safecheck_type: '首检' }).then(res=>{
100
- if (res.data && res.data.length > 0 ){
101
- this.weekConfig = res.data[0]
102
- }
103
- })
104
- },
105
- getdetails(){
106
- const json = JSON.parse(this.weekConfig.f_json)
107
- this.weekCheck = []
108
- if (json && json.length > 0){
109
- for (let i = 0; i < json.length; i++){
110
- if (json[i].itemname === '首检'){
111
- json[i].items.forEach(row => {
112
- this.weekCheck.push({
113
- f_item_name: row.itemname,
114
- f_item_value: row.f_item_value || '',
115
- options:row.options,
116
- type: row.type,
117
- isshow:true,
118
- images: [],
119
- multiple: row.multiple?row.multiple:false,
120
- readonly:false
121
- })
122
- })
123
- }
124
- }
125
- }
126
- },
127
- scan(){
128
- HostApp.__this__=this,
129
- HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
130
- },
131
- getCode(){
132
- let datapa = HostApp.getCode().data;
133
- this.$refs.paged.$refs.cri.model.f_meternumber=datapa
134
- },
135
- inspect (row) {
136
- this.getdetails()
137
- this.useritem = row
138
- this.weekCheck.forEach(item=>{
139
- if (item.f_item_name === '表号' && !Util.isEmpty(row.f_meternumber)){
140
- item.f_item_value = row.f_meternumber
141
- item.readonly = true
142
- }
143
- if (item.f_item_name === '气表品牌' && !Util.isEmpty(row.f_meter_brand)){
144
- item.f_item_value = row.f_meter_brand
145
- item.readonly = true
146
- }
147
- if (item.f_item_name === '气表型号' && !Util.isEmpty(row.f_meter_style)){
148
- item.f_item_value = row.f_meter_style
149
- item.readonly = true
150
- }
151
- })
152
- this.showcheck = true
153
- },
154
- showModal(){
155
- this.getdetails()
156
- this.showcheck = true
157
- },
158
- colse(){
159
- this.getdetails()
160
- this.showcheck = false
161
- },
162
- uploadCheckPaper(){
163
- const json = JSON.parse(this.weekConfig.f_json)
164
- json.forEach(res=>{
165
- if (res.itemname === '首检'){
166
- res.items = this.weekCheck
167
- }
168
- })
169
- const http = new HttpResetClass()
170
- const weekCheckpaper = {
171
- f_meter_brand: this.useritem.f_meter_brand,
172
- f_meter_style: this.useritem.f_meter_style,
173
- f_meternumber: this.useritem.f_meternumber,
174
- f_device_address: this.useritem.f_device_address,
175
- f_address: this.useritem.f_device_address,
176
- f_operatorid: Vue.user.id,
177
- f_operator: Vue.user.name,
178
- f_complete: '已完成',
179
- f_last_inspection_result: '正常',
180
- f_entry_status: '正常',
181
- f_safe_type: '首检',
182
- f_state: '已检',
183
- f_safe_content: json,
184
- f_safecheck_type_id: this.weekConfig.f_security_check_type_id,
185
- f_safe_type_version: this.weekConfig.version,
186
- f_upload_date: Util.toStandardTimeString(),
187
- f_filialeid: Vue.user.orgid,
188
- f_orgid: Vue.user.orgid,
189
- f_orgname: Vue.user.orgs,
190
- }
191
- this.weekCheck.forEach(item => {
192
- if (item.f_item_name === '表号'){
193
- weekCheckpaper.f_meternumber = item.f_item_value
194
- }
195
- if (item.f_item_name === '气表品牌'){
196
- weekCheckpaper.f_meter_brand = item.f_item_value
197
- }
198
- if (item.f_item_name === '气表型号'){
199
- weekCheckpaper.f_meter_style = item.f_item_value
200
- }
201
- })
202
- http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/saveWeekPaper`, weekCheckpaper, {resolveMsg: '首检成功!', rejectMsg: '首检失败,请联系管理员检查!'}).then(res=>{
203
- if (res.data){
204
- this.colse()
205
- }
206
- })
207
- },
208
- selfsearch(args){
209
- if (Util.isEmpty(args.model.f_meternumber)){
210
- this.$showMessage("请输入表号查询!")
211
- return
212
- }
213
- this.model.search(args.condition, args.model)
214
- }
215
- }
216
- }
217
- </script>
218
- <style scoped>
219
- .app-row {
220
- background-color: white;
221
- padding: 10px 10px 0 10px;
222
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
223
- }
224
- .search_input {
225
- border: 0;
226
- outline: none;
227
- }
228
- .font{
229
- font: 15px PingFang-SC-Medium;
230
- color: #666666;
231
- }
232
- .input-font{
233
- font: 15px PingFang-SC-Medium;
234
- color: #333333;
235
- }
236
- .btn-font{
237
- font:600 16px PingFang-SC-Bold;
238
- color: #499EDF;
239
- }
240
- .btn-color{
241
- background-color: #FFFFFF;
242
- border-radius: 10px ;
243
- border: 1px solid #499EDF;
244
- }
245
- .app-text {
246
- font-size: 12px;
247
- }
248
- .panel-self{
249
- border-radius: 10px;
250
- border:1px solid #499EDF;
251
- background-color: #F8F8F8;
252
- }
253
- </style>
1
+ <template>
2
+ <div class="auto">
3
+ <div v-if="!showcheck">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:cri>
6
+ <div partial>
7
+ <form>
8
+ <div class="row app-row">
9
+ <div class="col-xs-4">
10
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
11
+ <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
12
+ </div>
13
+ <div class="col-xs-8" >
14
+ <input class="search_input input-font"
15
+ v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
16
+ <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
17
+ </div>
18
+ </div>
19
+ <div class="row text-center" style="margin-top: 20px;">
20
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
21
+ <button v-if="$parent.$parent.model.rows.length == 0" type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="$parent.$parent.showModal">执行首检</button>
22
+ </div>
23
+ </form>
24
+ </div>
25
+ </criteria>
26
+
27
+ <list :model="model" partial='list'>
28
+ <div partial>
29
+ <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
30
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
31
+ <div class="panel-body panel-self">
32
+ <div class="row">
33
+ <p class="panel-title col-xs-4 text-left font">表号</p>
34
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
35
+ </div>
36
+ <div class="row">
37
+ <p class="panel-title col-xs-4 text-left font">首检日期</p>
38
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_first_inspection_date }}</p>
39
+ </div>
40
+ <div class="row">
41
+ <p class="panel-title col-xs-4 text-left font">首检机构</p>
42
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_inspection_agency }}</p>
43
+ </div>
44
+ <div class="row">
45
+ <p class="panel-title col-xs-4 text-left font">气表品牌</p>
46
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_brand }}</p>
47
+ </div>
48
+ <div class="row">
49
+ <p class="panel-title col-xs-4 text-left font">气表型号</p>
50
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meter_style }}</p>
51
+ </div>
52
+ </div>
53
+ </div>
54
+
55
+ </div>
56
+ </div>
57
+ </list>
58
+ </criteria-paged>
59
+ </div>
60
+ <div v-if="showcheck">
61
+ <check-rsult-simple :items="weekCheck" ></check-rsult-simple>
62
+ <div class="row text-center" style="margin-top: 20px;">
63
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="colse">取消</button>
64
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="uploadCheckPaper">提交</button>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </template>
69
+
70
+ <script>
71
+ import {HttpResetClass, PagedList} from 'vue-client'
72
+ import Vue from 'vue'
73
+ import * as Util from '../../Util'
74
+
75
+ export default {
76
+ title: '首检',
77
+ data () {
78
+ let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/getFirstWeekTable`, 20,
79
+ {
80
+ f_orgids:'this.f_orgids'
81
+ })
82
+ model.f_orgids = Vue.user.orgid
83
+ return {
84
+ model: model,
85
+ weekCheck:[],
86
+ useritem:{},
87
+ weekConfig:{},
88
+ showcheck:false
89
+ }
90
+ },
91
+ ready () {
92
+ this.getweekconfig()
93
+ },
94
+ computed: {
95
+ },
96
+ methods:{
97
+ getweekconfig(){
98
+ const http = new HttpResetClass()
99
+ http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getWeekCheckTypeByType`, {f_safecheck_type: '首检' }).then(res=>{
100
+ if (res.data && res.data.length > 0 ){
101
+ this.weekConfig = res.data[0]
102
+ }
103
+ })
104
+ },
105
+ getdetails(){
106
+ const json = JSON.parse(this.weekConfig.f_json)
107
+ this.weekCheck = []
108
+ if (json && json.length > 0){
109
+ for (let i = 0; i < json.length; i++){
110
+ if (json[i].itemname === '首检'){
111
+ json[i].items.forEach(row => {
112
+ this.weekCheck.push({
113
+ f_item_name: row.itemname,
114
+ f_item_value: row.f_item_value || '',
115
+ options:row.options,
116
+ type: row.type,
117
+ isshow:true,
118
+ images: [],
119
+ multiple: row.multiple?row.multiple:false,
120
+ readonly:false
121
+ })
122
+ })
123
+ }
124
+ }
125
+ }
126
+ },
127
+ scan(){
128
+ HostApp.__this__=this,
129
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
130
+ },
131
+ getCode(){
132
+ let datapa = HostApp.getCode().data;
133
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
134
+ },
135
+ inspect (row) {
136
+ this.getdetails()
137
+ this.useritem = row
138
+ this.weekCheck.forEach(item=>{
139
+ if (item.f_item_name === '表号' && !Util.isEmpty(row.f_meternumber)){
140
+ item.f_item_value = row.f_meternumber
141
+ item.readonly = true
142
+ }
143
+ if (item.f_item_name === '气表品牌' && !Util.isEmpty(row.f_meter_brand)){
144
+ item.f_item_value = row.f_meter_brand
145
+ item.readonly = true
146
+ }
147
+ if (item.f_item_name === '气表型号' && !Util.isEmpty(row.f_meter_style)){
148
+ item.f_item_value = row.f_meter_style
149
+ item.readonly = true
150
+ }
151
+ })
152
+ this.showcheck = true
153
+ },
154
+ showModal(){
155
+ this.getdetails()
156
+ this.showcheck = true
157
+ },
158
+ colse(){
159
+ this.getdetails()
160
+ this.showcheck = false
161
+ },
162
+ uploadCheckPaper(){
163
+ const json = JSON.parse(this.weekConfig.f_json)
164
+ json.forEach(res=>{
165
+ if (res.itemname === '首检'){
166
+ res.items = this.weekCheck
167
+ }
168
+ })
169
+ const http = new HttpResetClass()
170
+ const weekCheckpaper = {
171
+ f_meter_brand: this.useritem.f_meter_brand,
172
+ f_meter_style: this.useritem.f_meter_style,
173
+ f_meternumber: this.useritem.f_meternumber,
174
+ f_device_address: this.useritem.f_device_address,
175
+ f_address: this.useritem.f_device_address,
176
+ f_operatorid: Vue.user.id,
177
+ f_operator: Vue.user.name,
178
+ f_complete: '已完成',
179
+ f_last_inspection_result: '正常',
180
+ f_entry_status: '正常',
181
+ f_safe_type: '首检',
182
+ f_state: '已检',
183
+ f_safe_content: json,
184
+ f_safecheck_type_id: this.weekConfig.f_security_check_type_id,
185
+ f_safe_type_version: this.weekConfig.version,
186
+ f_upload_date: Util.toStandardTimeString(),
187
+ f_filialeid: Vue.user.orgid,
188
+ f_orgid: Vue.user.orgid,
189
+ f_orgname: Vue.user.orgs,
190
+ }
191
+ this.weekCheck.forEach(item => {
192
+ if (item.f_item_name === '表号'){
193
+ weekCheckpaper.f_meternumber = item.f_item_value
194
+ }
195
+ if (item.f_item_name === '气表品牌'){
196
+ weekCheckpaper.f_meter_brand = item.f_item_value
197
+ }
198
+ if (item.f_item_name === '气表型号'){
199
+ weekCheckpaper.f_meter_style = item.f_item_value
200
+ }
201
+ })
202
+ http.load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/saveWeekPaper`, weekCheckpaper, {resolveMsg: '首检成功!', rejectMsg: '首检失败,请联系管理员检查!'}).then(res=>{
203
+ if (res.data){
204
+ this.colse()
205
+ }
206
+ })
207
+ },
208
+ selfsearch(args){
209
+ if (Util.isEmpty(args.model.f_meternumber)){
210
+ this.$showMessage("请输入表号查询!")
211
+ return
212
+ }
213
+ this.model.search(args.condition, args.model)
214
+ }
215
+ }
216
+ }
217
+ </script>
218
+ <style scoped>
219
+ .app-row {
220
+ background-color: white;
221
+ padding: 10px 10px 0 10px;
222
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
223
+ }
224
+ .search_input {
225
+ border: 0;
226
+ outline: none;
227
+ }
228
+ .font{
229
+ font: 15px PingFang-SC-Medium;
230
+ color: #666666;
231
+ }
232
+ .input-font{
233
+ font: 15px PingFang-SC-Medium;
234
+ color: #333333;
235
+ }
236
+ .btn-font{
237
+ font:600 16px PingFang-SC-Bold;
238
+ color: #499EDF;
239
+ }
240
+ .btn-color{
241
+ background-color: #FFFFFF;
242
+ border-radius: 10px ;
243
+ border: 1px solid #499EDF;
244
+ }
245
+ .app-text {
246
+ font-size: 12px;
247
+ }
248
+ .panel-self{
249
+ border-radius: 10px;
250
+ border:1px solid #499EDF;
251
+ background-color: #F8F8F8;
252
+ }
253
+ </style>